helpers.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. // Display
  2. $displays: "block" "flex" "inline" "inline-block" "inline-flex";
  3. @each $display in $displays {
  4. .is-#{$display} {
  5. display: #{$display};
  6. }
  7. .is-#{$display}-mobile {
  8. @include mobile {
  9. display: #{$display} !important;
  10. }
  11. }
  12. .is-#{$display}-tablet {
  13. @include tablet {
  14. display: #{$display} !important;
  15. }
  16. }
  17. .is-#{$display}-tablet-only {
  18. @include tablet-only {
  19. display: #{$display} !important;
  20. }
  21. }
  22. .is-#{$display}-touch {
  23. @include touch {
  24. display: #{$display} !important;
  25. }
  26. }
  27. .is-#{$display}-desktop {
  28. @include desktop {
  29. display: #{$display} !important;
  30. }
  31. }
  32. .is-#{$display}-desktop-only {
  33. @include desktop-only {
  34. display: #{$display} !important;
  35. }
  36. }
  37. .is-#{$display}-widescreen {
  38. @include widescreen {
  39. display: #{$display} !important;
  40. }
  41. }
  42. }
  43. // Float
  44. .is-clearfix {
  45. @include clearfix;
  46. }
  47. .is-pulled-left {
  48. float: left;
  49. }
  50. .is-pulled-right {
  51. float: right;
  52. }
  53. // Overflow
  54. .is-clipped {
  55. overflow: hidden !important;
  56. }
  57. // Overlay
  58. .is-overlay {
  59. @include overlay;
  60. }
  61. // Text
  62. .has-text-centered {
  63. text-align: center;
  64. }
  65. .has-text-left {
  66. text-align: left;
  67. }
  68. .has-text-right {
  69. text-align: right;
  70. }
  71. // Visibility
  72. .is-hidden {
  73. display: none !important;
  74. }
  75. .is-hidden-mobile {
  76. @include mobile {
  77. display: none !important;
  78. }
  79. }
  80. .is-hidden-tablet {
  81. @include tablet {
  82. display: none !important;
  83. }
  84. }
  85. .is-hidden-tablet-only {
  86. @include tablet-only {
  87. display: none !important;
  88. }
  89. }
  90. .is-hidden-touch {
  91. @include touch {
  92. display: none !important;
  93. }
  94. }
  95. .is-hidden-desktop {
  96. @include desktop {
  97. display: none !important;
  98. }
  99. }
  100. .is-hidden-desktop-only {
  101. @include desktop-only {
  102. display: none !important;
  103. }
  104. }
  105. .is-hidden-widescreen {
  106. @include widescreen {
  107. display: none !important;
  108. }
  109. }
  110. // Other
  111. .is-disabled {
  112. pointer-events: none;
  113. }
  114. .is-marginless {
  115. margin: 0 !important;
  116. }
  117. .is-unselectable {
  118. @extend .unselectable;
  119. }