_utils.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. .clearfix {
  2. @include clearfix();
  3. }
  4. .highlight-word {
  5. color: $brand-primary;
  6. }
  7. .emphasis-word {
  8. font-weight: $font-weight-semi-bold;
  9. color: $text-color-emphasis;
  10. }
  11. // Close icons
  12. // --------------------------------------------------
  13. .close {
  14. @include opacity(20);
  15. float: right;
  16. font-size: 20px;
  17. font-weight: bold;
  18. line-height: $line-height-base;
  19. color: $black;
  20. text-shadow: 0 1px 0 rgba(255, 255, 255, 1);
  21. &:hover,
  22. &:focus {
  23. color: $black;
  24. text-decoration: none;
  25. cursor: pointer;
  26. @include opacity(40);
  27. }
  28. }
  29. // Additional properties for button version
  30. // iOS requires the button element instead of an anchor tag.
  31. // If you want the anchor version, it requires `href="#"`.
  32. button.close {
  33. padding: 0;
  34. cursor: pointer;
  35. background: transparent;
  36. border: 0;
  37. -webkit-appearance: none;
  38. }
  39. //
  40. // Utility classes
  41. // --------------------------------------------------
  42. // Quick floats
  43. .pull-right {
  44. float: right !important;
  45. }
  46. .pull-left {
  47. float: left !important;
  48. }
  49. // Toggling content
  50. .hide {
  51. display: none;
  52. }
  53. .show {
  54. display: block;
  55. }
  56. // Visibility
  57. .invisible {
  58. visibility: hidden !important;
  59. }
  60. // For Affix plugin
  61. .affix {
  62. position: fixed;
  63. }
  64. .d-inline-block {
  65. display: inline-block;
  66. }
  67. .absolute {
  68. position: absolute;
  69. }
  70. .flex-grow-1 {
  71. flex-grow: 1;
  72. }
  73. .flex-shrink-1 {
  74. flex-shrink: 1;
  75. }
  76. .flex-shrink-0 {
  77. flex-shrink: 0;
  78. }
  79. .flex-flow-column-nowrap {
  80. display: flex;
  81. flex-flow: column nowrap;
  82. }
  83. .center-vh {
  84. height: 100%;
  85. display: flex;
  86. flex-direction: column;
  87. align-items: center;
  88. justify-content: center;
  89. justify-items: center;
  90. }
  91. .align-items-center {
  92. display: flex;
  93. flex-direction: row nowrap;
  94. align-items: center;
  95. }