luda 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +5 -0
  4. data/assets/javascripts/luda-degradation.js +131 -0
  5. data/assets/javascripts/luda-degradation.js.map +1 -0
  6. data/assets/javascripts/luda-degradation.min.js +7 -0
  7. data/assets/javascripts/luda-degradation.min.js.map +1 -0
  8. data/assets/javascripts/luda-sprockets.js +11 -0
  9. data/assets/javascripts/luda.js +2024 -0
  10. data/assets/javascripts/luda.js.map +1 -0
  11. data/assets/javascripts/luda.min.js +7 -0
  12. data/assets/javascripts/luda.min.js.map +1 -0
  13. data/assets/javascripts/luda/behaviours/enter-click.js +38 -0
  14. data/assets/javascripts/luda/behaviours/focus.js +103 -0
  15. data/assets/javascripts/luda/behaviours/radio-tab.js +69 -0
  16. data/assets/javascripts/luda/behaviours/readonly.js +57 -0
  17. data/assets/javascripts/luda/behaviours/toggle.js +104 -0
  18. data/assets/javascripts/luda/collections/carousel.js +314 -0
  19. data/assets/javascripts/luda/collections/dropdown.js +269 -0
  20. data/assets/javascripts/luda/collections/form-dropdown.js +112 -0
  21. data/assets/javascripts/luda/collections/tab.js +117 -0
  22. data/assets/javascripts/luda/component.js +240 -0
  23. data/assets/javascripts/luda/constants.js +18 -0
  24. data/assets/javascripts/luda/degradation.js +125 -0
  25. data/assets/javascripts/luda/dom.js +81 -0
  26. data/assets/javascripts/luda/elements/form-file.js +104 -0
  27. data/assets/javascripts/luda/elements/form-select.js +212 -0
  28. data/assets/javascripts/luda/event.js +193 -0
  29. data/assets/javascripts/luda/index.js +20 -0
  30. data/assets/javascripts/luda/install.js +75 -0
  31. data/assets/javascripts/luda/singleton.js +77 -0
  32. data/assets/javascripts/luda/utilities.js +16 -0
  33. data/assets/stylesheets/luda/_core/_base.sass +430 -0
  34. data/assets/stylesheets/luda/_core/_functions.sass +240 -0
  35. data/assets/stylesheets/luda/_core/_variables.sass +710 -0
  36. data/assets/stylesheets/luda/_core/behaviours/_disabled.sass +12 -0
  37. data/assets/stylesheets/luda/_core/behaviours/_focus.sass +7 -0
  38. data/assets/stylesheets/luda/_core/behaviours/_readonly.sass +16 -0
  39. data/assets/stylesheets/luda/_core/behaviours/_toggle.sass +4 -0
  40. data/assets/stylesheets/luda/_core/collections/_alert.sass +24 -0
  41. data/assets/stylesheets/luda/_core/collections/_avatar.sass +117 -0
  42. data/assets/stylesheets/luda/_core/collections/_breadcrumb.sass +21 -0
  43. data/assets/stylesheets/luda/_core/collections/_button-group.sass +67 -0
  44. data/assets/stylesheets/luda/_core/collections/_button-icon.sass +46 -0
  45. data/assets/stylesheets/luda/_core/collections/_carousel.sass +132 -0
  46. data/assets/stylesheets/luda/_core/collections/_dropdown.sass +60 -0
  47. data/assets/stylesheets/luda/_core/collections/_form-button.sass +23 -0
  48. data/assets/stylesheets/luda/_core/collections/_form-dropdown.sass +21 -0
  49. data/assets/stylesheets/luda/_core/collections/_form-group.sass +48 -0
  50. data/assets/stylesheets/luda/_core/collections/_form-icon.sass +71 -0
  51. data/assets/stylesheets/luda/_core/collections/_media.sass +55 -0
  52. data/assets/stylesheets/luda/_core/collections/_modal.sass +12 -0
  53. data/assets/stylesheets/luda/_core/collections/_nav.sass +162 -0
  54. data/assets/stylesheets/luda/_core/collections/_tab.sass +18 -0
  55. data/assets/stylesheets/luda/_core/elements/_badge.sass +19 -0
  56. data/assets/stylesheets/luda/_core/elements/_baseline.sass +22 -0
  57. data/assets/stylesheets/luda/_core/elements/_button.sass +136 -0
  58. data/assets/stylesheets/luda/_core/elements/_container.sass +8 -0
  59. data/assets/stylesheets/luda/_core/elements/_grid.sass +55 -0
  60. data/assets/stylesheets/luda/_core/elements/_icon.sass +110 -0
  61. data/assets/stylesheets/luda/_core/elements/_overlay.sass +11 -0
  62. data/assets/stylesheets/luda/_core/elements/_progress.sass +31 -0
  63. data/assets/stylesheets/luda/_core/elements/_scrollbar.sass +21 -0
  64. data/assets/stylesheets/luda/_core/elements/_table.sass +102 -0
  65. data/assets/stylesheets/luda/_core/elements/_turbolinks-progress-bar.sass +5 -0
  66. data/assets/stylesheets/luda/_core/elements/form/_form-check-radio.sass +105 -0
  67. data/assets/stylesheets/luda/_core/elements/form/_form-element.sass +83 -0
  68. data/assets/stylesheets/luda/_core/elements/form/_form-helper.sass +66 -0
  69. data/assets/stylesheets/luda/_core/elements/form/_form-label.sass +20 -0
  70. data/assets/stylesheets/luda/_core/elements/form/_form-range.sass +92 -0
  71. data/assets/stylesheets/luda/_core/elements/form/_form-row.sass +214 -0
  72. data/assets/stylesheets/luda/_core/elements/typography/_code.sass +27 -0
  73. data/assets/stylesheets/luda/_core/elements/typography/_link.sass +15 -0
  74. data/assets/stylesheets/luda/_core/elements/typography/_list.sass +14 -0
  75. data/assets/stylesheets/luda/_core/elements/typography/_mark.sass +7 -0
  76. data/assets/stylesheets/luda/_core/elements/typography/_quote.sass +68 -0
  77. data/assets/stylesheets/luda/_core/elements/typography/_sub-sup.sass +16 -0
  78. data/assets/stylesheets/luda/_core/elements/typography/_typography.sass +52 -0
  79. data/assets/stylesheets/luda/_core/mixins/_browser.sass +15 -0
  80. data/assets/stylesheets/luda/_core/mixins/_button.sass +90 -0
  81. data/assets/stylesheets/luda/_core/mixins/_dropdown.sass +40 -0
  82. data/assets/stylesheets/luda/_core/mixins/_focus.sass +3 -0
  83. data/assets/stylesheets/luda/_core/mixins/_form.sass +27 -0
  84. data/assets/stylesheets/luda/_core/mixins/_install.sass +7 -0
  85. data/assets/stylesheets/luda/_core/mixins/_media-query.sass +66 -0
  86. data/assets/stylesheets/luda/_core/mixins/_overlay.sass +14 -0
  87. data/assets/stylesheets/luda/_core/mixins/_sass-lint-fix.sass +3 -0
  88. data/assets/stylesheets/luda/_core/mixins/_typography.sass +40 -0
  89. data/assets/stylesheets/luda/_core/utilities/_align.sass +19 -0
  90. data/assets/stylesheets/luda/_core/utilities/_background.sass +88 -0
  91. data/assets/stylesheets/luda/_core/utilities/_color.sass +36 -0
  92. data/assets/stylesheets/luda/_core/utilities/_display.sass +40 -0
  93. data/assets/stylesheets/luda/_core/utilities/_flex.sass +114 -0
  94. data/assets/stylesheets/luda/_core/utilities/_float.sass +21 -0
  95. data/assets/stylesheets/luda/_core/utilities/_opacity.sass +19 -0
  96. data/assets/stylesheets/luda/_core/utilities/_overflow.sass +18 -0
  97. data/assets/stylesheets/luda/_core/utilities/_position.sass +48 -0
  98. data/assets/stylesheets/luda/_core/utilities/_shape.sass +62 -0
  99. data/assets/stylesheets/luda/_core/utilities/_size.sass +67 -0
  100. data/assets/stylesheets/luda/_core/utilities/_space.sass +227 -0
  101. data/assets/stylesheets/luda/_core/utilities/_text.sass +85 -0
  102. data/assets/stylesheets/luda/_core/utilities/_visibility.sass +11 -0
  103. data/assets/stylesheets/luda/_core/utilities/_z-index.sass +19 -0
  104. data/assets/stylesheets/luda/_default.sass +51 -0
  105. data/assets/stylesheets/luda/core/_base.sass +430 -0
  106. data/assets/stylesheets/luda/core/_functions.sass +240 -0
  107. data/assets/stylesheets/luda/core/_variables.sass +710 -0
  108. data/assets/stylesheets/luda/core/behaviours/_disabled.sass +12 -0
  109. data/assets/stylesheets/luda/core/behaviours/_focus.sass +7 -0
  110. data/assets/stylesheets/luda/core/behaviours/_readonly.sass +16 -0
  111. data/assets/stylesheets/luda/core/behaviours/_toggle.sass +4 -0
  112. data/assets/stylesheets/luda/core/collections/_alert.sass +24 -0
  113. data/assets/stylesheets/luda/core/collections/_avatar.sass +117 -0
  114. data/assets/stylesheets/luda/core/collections/_breadcrumb.sass +21 -0
  115. data/assets/stylesheets/luda/core/collections/_button-group.sass +67 -0
  116. data/assets/stylesheets/luda/core/collections/_button-icon.sass +46 -0
  117. data/assets/stylesheets/luda/core/collections/_carousel.sass +132 -0
  118. data/assets/stylesheets/luda/core/collections/_dropdown.sass +60 -0
  119. data/assets/stylesheets/luda/core/collections/_form-button.sass +23 -0
  120. data/assets/stylesheets/luda/core/collections/_form-dropdown.sass +21 -0
  121. data/assets/stylesheets/luda/core/collections/_form-group.sass +48 -0
  122. data/assets/stylesheets/luda/core/collections/_form-icon.sass +71 -0
  123. data/assets/stylesheets/luda/core/collections/_media.sass +55 -0
  124. data/assets/stylesheets/luda/core/collections/_modal.sass +12 -0
  125. data/assets/stylesheets/luda/core/collections/_nav.sass +162 -0
  126. data/assets/stylesheets/luda/core/collections/_tab.sass +18 -0
  127. data/assets/stylesheets/luda/core/elements/_badge.sass +19 -0
  128. data/assets/stylesheets/luda/core/elements/_baseline.sass +22 -0
  129. data/assets/stylesheets/luda/core/elements/_button.sass +136 -0
  130. data/assets/stylesheets/luda/core/elements/_container.sass +8 -0
  131. data/assets/stylesheets/luda/core/elements/_grid.sass +55 -0
  132. data/assets/stylesheets/luda/core/elements/_icon.sass +110 -0
  133. data/assets/stylesheets/luda/core/elements/_overlay.sass +11 -0
  134. data/assets/stylesheets/luda/core/elements/_progress.sass +31 -0
  135. data/assets/stylesheets/luda/core/elements/_scrollbar.sass +21 -0
  136. data/assets/stylesheets/luda/core/elements/_table.sass +102 -0
  137. data/assets/stylesheets/luda/core/elements/_turbolinks-progress-bar.sass +5 -0
  138. data/assets/stylesheets/luda/core/elements/form/_form-check-radio.sass +105 -0
  139. data/assets/stylesheets/luda/core/elements/form/_form-element.sass +83 -0
  140. data/assets/stylesheets/luda/core/elements/form/_form-helper.sass +66 -0
  141. data/assets/stylesheets/luda/core/elements/form/_form-label.sass +20 -0
  142. data/assets/stylesheets/luda/core/elements/form/_form-range.sass +92 -0
  143. data/assets/stylesheets/luda/core/elements/form/_form-row.sass +214 -0
  144. data/assets/stylesheets/luda/core/elements/typography/_code.sass +27 -0
  145. data/assets/stylesheets/luda/core/elements/typography/_link.sass +15 -0
  146. data/assets/stylesheets/luda/core/elements/typography/_list.sass +14 -0
  147. data/assets/stylesheets/luda/core/elements/typography/_mark.sass +7 -0
  148. data/assets/stylesheets/luda/core/elements/typography/_quote.sass +68 -0
  149. data/assets/stylesheets/luda/core/elements/typography/_sub-sup.sass +16 -0
  150. data/assets/stylesheets/luda/core/elements/typography/_typography.sass +52 -0
  151. data/assets/stylesheets/luda/core/mixins/_browser.sass +15 -0
  152. data/assets/stylesheets/luda/core/mixins/_button.sass +90 -0
  153. data/assets/stylesheets/luda/core/mixins/_dropdown.sass +40 -0
  154. data/assets/stylesheets/luda/core/mixins/_focus.sass +3 -0
  155. data/assets/stylesheets/luda/core/mixins/_form.sass +27 -0
  156. data/assets/stylesheets/luda/core/mixins/_install.sass +7 -0
  157. data/assets/stylesheets/luda/core/mixins/_media-query.sass +66 -0
  158. data/assets/stylesheets/luda/core/mixins/_overlay.sass +14 -0
  159. data/assets/stylesheets/luda/core/mixins/_sass-lint-fix.sass +3 -0
  160. data/assets/stylesheets/luda/core/mixins/_typography.sass +40 -0
  161. data/assets/stylesheets/luda/core/utilities/_align.sass +19 -0
  162. data/assets/stylesheets/luda/core/utilities/_background.sass +88 -0
  163. data/assets/stylesheets/luda/core/utilities/_color.sass +36 -0
  164. data/assets/stylesheets/luda/core/utilities/_display.sass +40 -0
  165. data/assets/stylesheets/luda/core/utilities/_flex.sass +114 -0
  166. data/assets/stylesheets/luda/core/utilities/_float.sass +21 -0
  167. data/assets/stylesheets/luda/core/utilities/_opacity.sass +19 -0
  168. data/assets/stylesheets/luda/core/utilities/_overflow.sass +18 -0
  169. data/assets/stylesheets/luda/core/utilities/_position.sass +48 -0
  170. data/assets/stylesheets/luda/core/utilities/_shape.sass +62 -0
  171. data/assets/stylesheets/luda/core/utilities/_size.sass +67 -0
  172. data/assets/stylesheets/luda/core/utilities/_space.sass +227 -0
  173. data/assets/stylesheets/luda/core/utilities/_text.sass +85 -0
  174. data/assets/stylesheets/luda/core/utilities/_visibility.sass +11 -0
  175. data/assets/stylesheets/luda/core/utilities/_z-index.sass +19 -0
  176. data/assets/stylesheets/luda/default/_banner.sass +7 -0
  177. data/assets/stylesheets/luda/default/_base.sass +6 -0
  178. data/assets/stylesheets/luda/default/_functions.sass +1 -0
  179. data/assets/stylesheets/luda/default/_mixins.sass +10 -0
  180. data/assets/stylesheets/luda/default/_variables.sass +1 -0
  181. data/assets/stylesheets/luda/default/behaviours/_disabled.sass +5 -0
  182. data/assets/stylesheets/luda/default/behaviours/_focus.sass +5 -0
  183. data/assets/stylesheets/luda/default/behaviours/_readonly.sass +5 -0
  184. data/assets/stylesheets/luda/default/behaviours/_toggle.sass +5 -0
  185. data/assets/stylesheets/luda/default/collections/_alert.sass +6 -0
  186. data/assets/stylesheets/luda/default/collections/_avatar.sass +7 -0
  187. data/assets/stylesheets/luda/default/collections/_breadcrumb.sass +6 -0
  188. data/assets/stylesheets/luda/default/collections/_button-group.sass +7 -0
  189. data/assets/stylesheets/luda/default/collections/_button-icon.sass +8 -0
  190. data/assets/stylesheets/luda/default/collections/_carousel.sass +7 -0
  191. data/assets/stylesheets/luda/default/collections/_dropdown.sass +8 -0
  192. data/assets/stylesheets/luda/default/collections/_form-button.sass +9 -0
  193. data/assets/stylesheets/luda/default/collections/_form-dropdown.sass +8 -0
  194. data/assets/stylesheets/luda/default/collections/_form-group.sass +11 -0
  195. data/assets/stylesheets/luda/default/collections/_form-icon.sass +8 -0
  196. data/assets/stylesheets/luda/default/collections/_media.sass +7 -0
  197. data/assets/stylesheets/luda/default/collections/_modal.sass +7 -0
  198. data/assets/stylesheets/luda/default/collections/_nav.sass +10 -0
  199. data/assets/stylesheets/luda/default/collections/_tab.sass +9 -0
  200. data/assets/stylesheets/luda/default/elements/_badge.sass +6 -0
  201. data/assets/stylesheets/luda/default/elements/_baseline.sass +6 -0
  202. data/assets/stylesheets/luda/default/elements/_button.sass +7 -0
  203. data/assets/stylesheets/luda/default/elements/_container.sass +6 -0
  204. data/assets/stylesheets/luda/default/elements/_form.sass +13 -0
  205. data/assets/stylesheets/luda/default/elements/_grid.sass +6 -0
  206. data/assets/stylesheets/luda/default/elements/_icon.sass +6 -0
  207. data/assets/stylesheets/luda/default/elements/_overlay.sass +6 -0
  208. data/assets/stylesheets/luda/default/elements/_progress.sass +6 -0
  209. data/assets/stylesheets/luda/default/elements/_scrollbar.sass +6 -0
  210. data/assets/stylesheets/luda/default/elements/_table.sass +6 -0
  211. data/assets/stylesheets/luda/default/elements/_turbolinks-progress-bar.sass +6 -0
  212. data/assets/stylesheets/luda/default/elements/_typography.sass +12 -0
  213. data/assets/stylesheets/luda/default/elements/form/_form-check-radio.sass +5 -0
  214. data/assets/stylesheets/luda/default/elements/form/_form-element.sass +5 -0
  215. data/assets/stylesheets/luda/default/elements/form/_form-helper.sass +5 -0
  216. data/assets/stylesheets/luda/default/elements/form/_form-label.sass +5 -0
  217. data/assets/stylesheets/luda/default/elements/form/_form-range.sass +5 -0
  218. data/assets/stylesheets/luda/default/elements/form/_form-row.sass +5 -0
  219. data/assets/stylesheets/luda/default/elements/typography/_code.sass +5 -0
  220. data/assets/stylesheets/luda/default/elements/typography/_link.sass +5 -0
  221. data/assets/stylesheets/luda/default/elements/typography/_list.sass +4 -0
  222. data/assets/stylesheets/luda/default/elements/typography/_mark.sass +5 -0
  223. data/assets/stylesheets/luda/default/elements/typography/_quote.sass +5 -0
  224. data/assets/stylesheets/luda/default/elements/typography/_sub-sup.sass +5 -0
  225. data/assets/stylesheets/luda/default/elements/typography/_typography.sass +5 -0
  226. data/assets/stylesheets/luda/default/index.sass +56 -0
  227. data/assets/stylesheets/luda/default/utilities/_align.sass +5 -0
  228. data/assets/stylesheets/luda/default/utilities/_background.sass +5 -0
  229. data/assets/stylesheets/luda/default/utilities/_color.sass +5 -0
  230. data/assets/stylesheets/luda/default/utilities/_display.sass +5 -0
  231. data/assets/stylesheets/luda/default/utilities/_flex.sass +5 -0
  232. data/assets/stylesheets/luda/default/utilities/_float.sass +5 -0
  233. data/assets/stylesheets/luda/default/utilities/_opacity.sass +5 -0
  234. data/assets/stylesheets/luda/default/utilities/_overflow.sass +5 -0
  235. data/assets/stylesheets/luda/default/utilities/_position.sass +5 -0
  236. data/assets/stylesheets/luda/default/utilities/_shape.sass +5 -0
  237. data/assets/stylesheets/luda/default/utilities/_size.sass +5 -0
  238. data/assets/stylesheets/luda/default/utilities/_space.sass +5 -0
  239. data/assets/stylesheets/luda/default/utilities/_text.sass +5 -0
  240. data/assets/stylesheets/luda/default/utilities/_visibility.sass +5 -0
  241. data/assets/stylesheets/luda/default/utilities/_z-index.sass +5 -0
  242. data/lib/luda.rb +72 -0
  243. data/lib/luda/config.rb +3 -0
  244. data/lib/luda/engine.rb +11 -0
  245. data/lib/luda/version.rb +3 -0
  246. metadata +302 -0
@@ -0,0 +1,40 @@
1
+ =_dropdown-absolute($breakpoint: null)
2
+
3
+ $class-fix: if($breakpoint, "-#{$breakpoint}", null)
4
+
5
+ .dropdown-absolute#{$class-fix}.dropdown-active > .dropdown-menu
6
+ display: block
7
+ position: relative
8
+ z-index: $z-index-much-higher
9
+ margin: 0
10
+ overflow: visible
11
+
12
+ .dropdown-absolute#{$class-fix} > .dropdown-menu > .dropdown-items
13
+ position: absolute
14
+ max-height: $dropdown-absolute-max-height-rem
15
+ margin: $dropdown-absolute-drop-gap-rem 0 0
16
+ overflow: auto
17
+ -webkit-overflow-scrolling: touch
18
+ background: $dropdown-absolute-fixed-background
19
+ border-radius: $dropdown-absolute-border-radius
20
+ box-shadow: $dropdown-absolute-box-shadow
21
+
22
+ .dropdown-absolute#{$class-fix}.dropdown-top > .dropdown-menu,
23
+ .dropdown-absolute#{$class-fix}.dropdown-left > .dropdown-menu,
24
+ .dropdown-absolute#{$class-fix}.dropdown-right > .dropdown-menu
25
+ order: -1
26
+
27
+ .dropdown-absolute#{$class-fix}.dropdown-top > .dropdown-menu > .dropdown-items
28
+ bottom: 0
29
+ margin: 0 0 $dropdown-absolute-drop-gap-rem
30
+
31
+ .dropdown-absolute#{$class-fix}.dropdown-align-right > .dropdown-menu > .dropdown-items
32
+ right: 0
33
+
34
+ .dropdown-absolute#{$class-fix}.dropdown-right > .dropdown-menu > .dropdown-items
35
+ left: 100%
36
+ margin: 0 0 0 $dropdown-absolute-drop-gap-rem
37
+
38
+ .dropdown-absolute#{$class-fix}.dropdown-left > .dropdown-menu > .dropdown-items
39
+ right: 100%
40
+ margin: 0 $dropdown-absolute-drop-gap-rem 0 0
@@ -0,0 +1,3 @@
1
+ =_focus
2
+ outline: $focus-outline-style $focus-outline-width-px $focus-outline-color
3
+ outline-offset: $focus-outline-offset-px
@@ -0,0 +1,27 @@
1
+ =form-checkbox-or-radio-background-icon($icon, $icon-color, $background)
2
+ background: url(svg-icon($icon, $icon-color)) center / contain no-repeat, $background
3
+
4
+ =form-row-background-icon($icon, $icon-color, $background)
5
+ background: url(svg-icon($icon, $icon-color)) right $form-element-text-helvertical-padding-em (center / $form-element-icon-size-em) no-repeat, $background
6
+
7
+ =_form-range-track-skin
8
+ background: $form-element-track-background
9
+ border-radius: $form-element-track-border-radius
10
+
11
+ =_form-range-thumb-styles
12
+ width: $form-element-thumb-width-em
13
+ height: $form-element-thumb-height-em
14
+ border: $form-element-border-style $form-element-border-width $form-element-thumb-border-color
15
+ background: $form-element-thumb-background
16
+ border-radius: $form-element-thumb-border-radius
17
+ box-shadow: $form-element-box-shadow
18
+
19
+ =_form-range-focus-thumb-skin
20
+ background: $form-element-focus-thumb-background
21
+ border-color: $form-element-focus-thumb-border-color
22
+ box-shadow: $form-element-focus-box-shadow
23
+
24
+ =_form-range-error-thumb-skin
25
+ background: $form-element-error-thumb-background
26
+ border-color: $form-element-error-thumb-border-color
27
+ box-shadow: $form-element-error-box-shadow
@@ -0,0 +1,7 @@
1
+ $installed-modules: () !default
2
+
3
+ =install($module-name)
4
+ @if index($installed-modules, $module-name) == null
5
+ $installed-modules: append($installed-modules, $module-name) !global
6
+ @at-root
7
+ @content
@@ -0,0 +1,66 @@
1
+ =_media-query($breakpoints, $breakpoint, $query-rule, $down-value: 0)
2
+ $breakpoint-value: map-get($breakpoints, $breakpoint)
3
+ $query-rule-min: null
4
+ $breakpoint-max-value: null
5
+ $query-rule-max: null
6
+
7
+ @if $breakpoint-value > 0
8
+ @if $query-rule == aspect-ratio
9
+ $query-rule-min: "(min-aspect-ratio:#{$breakpoint-value * 10000}/10000)"
10
+ @else
11
+ $query-rule-min: "(min-#{$query-rule}:#{$breakpoint-value})"
12
+
13
+ @if $down-value > 0
14
+ $breakpoints-keys: map-keys($breakpoints)
15
+ $breakpoints-values: map-values($breakpoints)
16
+ $breakpoint-index: index($breakpoints-keys, $breakpoint)
17
+ $breakpoint-max-value: null
18
+ @if $breakpoint-index < length($breakpoints-keys)
19
+ $breakpoint-max-value: nth($breakpoints-values, $breakpoint-index + 1) - $down-value
20
+ @else
21
+ $breakpoint-max-value: null
22
+ @if $breakpoint-max-value and $breakpoint-max-value > 0
23
+ @if $query-rule == aspect-ratio
24
+ $query-rule-max: "(max-aspect-ratio:#{$breakpoint-max-value * 10000}/10000)"
25
+ @else
26
+ $query-rule-max: "(max-#{$query-rule}:#{$breakpoint-max-value})"
27
+
28
+ @if $query-rule-min or $query-rule-max
29
+ @if $query-rule-min
30
+ @media #{$query-rule-min}
31
+ @if $query-rule-max
32
+ @media #{$query-rule-max}
33
+ @content
34
+ @else
35
+ // sass-lint:disable indentation
36
+ @content
37
+ // sass-lint:enable indentation
38
+ @else
39
+ @if $query-rule-max
40
+ @media #{$query-rule-max}
41
+ @content
42
+ @else
43
+ @content
44
+ @else
45
+ @content
46
+
47
+
48
+
49
+ =media-width($breakpoint, $only-breakpoint: false)
50
+ $down-value: if($only-breakpoint, 1, 0)
51
+ +_media-query($breakpoint-width-pxs, $breakpoint, width, $down-value)
52
+ @content
53
+
54
+ =media-resolution($breakpoint, $only-breakpoint: false)
55
+ $down-value: if($only-breakpoint, 9.6, 0)
56
+ +_media-query($breakpoint-resolutions, $breakpoint, resolution, $down-value)
57
+ @content
58
+
59
+ =media-aspect-ratio($breakpoint, $only-breakpoint: false)
60
+ $down-value: if($only-breakpoint, 0.0001, 0)
61
+ +_media-query($breakpoint-aspect-ratios, $breakpoint, aspect-ratio, $down-value)
62
+ @content
63
+
64
+ =media-print
65
+ @media print
66
+ @content
@@ -0,0 +1,14 @@
1
+ =overlay
2
+ display: flex
3
+ position: fixed
4
+ top: 0
5
+ right: 0
6
+ bottom: 0
7
+ left: 0
8
+ z-index: $z-index-highest
9
+ overflow: auto
10
+ -webkit-overflow-scrolling: touch
11
+ background: $overlay-background
12
+
13
+ =overlay-body
14
+ margin: auto
@@ -0,0 +1,3 @@
1
+ // sass-lint:disable no-empty-rulesets
2
+ =_sass-lint-fix-if-else
3
+ // ugly hack to fix sass-lint bug https://github.com/sasstools/sass-lint/issues/1138
@@ -0,0 +1,40 @@
1
+ =typo-level-vertical-padding($type-level, $baseline-offset)
2
+ padding-top: typo-padding-top($type-level, $baseline-offset)
3
+ padding-bottom: typo-padding-bottom($type-level, $baseline-offset)
4
+
5
+ =typo-level($type-level, $baseline-offset)
6
+ +typo-level-vertical-padding($type-level, $baseline-offset)
7
+ font-size: typo-size($type-level)
8
+ line-height: typo-line-height($type-level)
9
+
10
+ =typo-link($class: null, $color: null, $hover-color: null, $active-color: null)
11
+ a.link-#{$class}:not(.btn)
12
+ color: $color
13
+
14
+ a.link-#{$class}:not(.btn):hover
15
+ color: $hover-color
16
+
17
+ a.link-#{$class}:not(.btn):active
18
+ color: $active-color
19
+
20
+ =font-face($family: null, $style: normal, $weight: 400, $locals: null, $urls: null, $unicodes: null)
21
+ $src: null
22
+ @if $locals
23
+ @each $local in $locals
24
+ @if $src
25
+ $src: "#{$src}, local('#{$local}')"
26
+ @else
27
+ $src: "local('#{$local}')"
28
+ @if $urls
29
+ @each $format, $url in $urls
30
+ @if $src
31
+ $src: "#{$src}, url(#{$url}) format('#{$format}')"
32
+ @else
33
+ $src: "url(#{$url}) format('#{$format}')"
34
+ @at-root
35
+ @font-face
36
+ src: unquote($src)
37
+ font-family: $family
38
+ font-style: $style
39
+ font-weight: $weight
40
+ unicode-range: $unicodes
@@ -0,0 +1,19 @@
1
+ +install(shared-utility-align)
2
+
3
+ .va-top
4
+ vertical-align: top !important
5
+
6
+ .va-middle
7
+ vertical-align: middle !important
8
+
9
+ .va-baseline
10
+ vertical-align: baseline !important
11
+
12
+ .va-bottom
13
+ vertical-align: bottom !important
14
+
15
+ .va-text-top
16
+ vertical-align: text-top !important
17
+
18
+ .va-text-bottom
19
+ vertical-align: text-bottom !important
@@ -0,0 +1,88 @@
1
+ +install(shared-utility-background)
2
+
3
+ .bc-primary
4
+ background-color: $background-color-primary !important
5
+
6
+ .bc-secondary
7
+ background-color: $background-color-secondary !important
8
+
9
+ .bc-danger
10
+ background-color: $background-color-danger !important
11
+
12
+ .bc-dark
13
+ background-color: $background-color-dark !important
14
+
15
+ .bc-light
16
+ background-color: $background-color-light !important
17
+
18
+ .bc-transparent
19
+ background-color: transparent !important
20
+
21
+
22
+
23
+ .b-emphasis
24
+ background: $background-emphasis !important
25
+
26
+ .b-main
27
+ background: $background-main !important
28
+
29
+ .b-muted
30
+ background: $background-muted !important
31
+
32
+ .b-inverse-emphasis
33
+ background: $background-inverse-emphasis !important
34
+
35
+ .b-inverse-main
36
+ background: $background-inverse-main !important
37
+
38
+ .b-inverse-muted
39
+ background: $background-inverse-muted !important
40
+
41
+ .b-none
42
+ background: none !important
43
+
44
+
45
+
46
+ .bp-c
47
+ background-position: center !important
48
+
49
+ .bp-rc
50
+ background-position: right center !important
51
+
52
+ .bp-lc
53
+ background-position: left center !important
54
+
55
+ .bp-ct
56
+ background-position: center top !important
57
+
58
+ .bp-cb
59
+ background-position: center bottom !important
60
+
61
+ .bp-lt
62
+ background-position: left top !important
63
+
64
+ .bp-lb
65
+ background-position: left bottom !important
66
+
67
+ .bp-rt
68
+ background-position: right top !important
69
+
70
+ .bp-rb
71
+ background-position: right bottom !important
72
+
73
+
74
+
75
+ .bs-cover
76
+ background-size: cover !important
77
+
78
+ .bs-contain
79
+ background-size: contain !important
80
+
81
+ .bs-auto
82
+ background-size: auto !important
83
+
84
+ .bs-100-auto
85
+ background-size: 100% auto !important
86
+
87
+ .bs-auto-100
88
+ background-size: auto 100% !important
@@ -0,0 +1,36 @@
1
+ +install(shared-utility-color)
2
+
3
+ .c-primary
4
+ color: $color-primary !important
5
+
6
+ .c-secondary
7
+ color: $color-secondary !important
8
+
9
+ .c-danger
10
+ color: $color-danger !important
11
+
12
+ .c-dark
13
+ color: $color-dark !important
14
+
15
+ .c-light
16
+ color: $color-light !important
17
+
18
+ .c-emphasis
19
+ color: $color-emphasis !important
20
+
21
+ .c-main
22
+ color: $color-main !important
23
+
24
+ .c-muted
25
+ color: $color-muted !important
26
+
27
+
28
+
29
+ .c-inverse-emphasis
30
+ color: $color-inverse-emphasis !important
31
+
32
+ .c-inverse-main
33
+ color: $color-inverse-main !important
34
+
35
+ .c-inverse-muted
36
+ color: $color-inverse-muted !important
@@ -0,0 +1,40 @@
1
+ +install(shared-utility-display)
2
+
3
+ @each $breakpoint in map-keys($breakpoint-width-pxs)
4
+
5
+ $class-fix: _responsive-class-fix($breakpoint)
6
+
7
+ +media-width($breakpoint)
8
+
9
+ .dis-inline#{$class-fix}
10
+ display: inline !important
11
+
12
+ .dis-inline-block#{$class-fix}
13
+ display: inline-block !important
14
+
15
+ .dis-block#{$class-fix}
16
+ display: block !important
17
+
18
+ .dis-table#{$class-fix}
19
+ display: table !important
20
+
21
+ .dis-table-cell#{$class-fix}
22
+ display: table-cell !important
23
+
24
+ .dis-table-row#{$class-fix}
25
+ display: table-row !important
26
+
27
+ .dis-flex#{$class-fix}
28
+ display: flex !important
29
+
30
+ .dis-inline-flex#{$class-fix}
31
+ display: inline-flex !important
32
+
33
+ .dis-none#{$class-fix}
34
+ display: none !important
35
+
36
+
37
+
38
+ +media-print
39
+ .dis-none-on-print
40
+ display: none !important
@@ -0,0 +1,114 @@
1
+ +install(shared-utility-flex)
2
+
3
+ @each $breakpoint in map-keys($breakpoint-width-pxs)
4
+
5
+ $class-fix: _responsive-class-fix($breakpoint)
6
+
7
+ +media-width($breakpoint)
8
+
9
+ .fw-wrap#{$class-fix}
10
+ flex-wrap: wrap !important
11
+
12
+ .fw-nowrap#{$class-fix}
13
+ flex-wrap: nowrap !important
14
+
15
+ .fw-wrap-reverse#{$class-fix}
16
+ flex-wrap: wrap-reverse !important
17
+
18
+ .fd-row#{$class-fix}
19
+ flex-direction: row !important
20
+
21
+ .fd-column#{$class-fix}
22
+ flex-direction: column !important
23
+
24
+ .fd-row-reverse#{$class-fix}
25
+ flex-direction: row-reverse !important
26
+
27
+ .fd-column-reverse#{$class-fix}
28
+ flex-direction: column-reverse !important
29
+
30
+ .jc-start#{$class-fix}
31
+ justify-content: flex-start !important
32
+
33
+ .jc-center#{$class-fix}
34
+ justify-content: center !important
35
+
36
+ .jc-end#{$class-fix}
37
+ justify-content: flex-end !important
38
+
39
+ .jc-between#{$class-fix}
40
+ justify-content: space-between !important
41
+
42
+ .jc-around#{$class-fix}
43
+ justify-content: space-around !important
44
+
45
+ .ac-start#{$class-fix}
46
+ align-content: flex-start !important
47
+
48
+ .ac-center#{$class-fix}
49
+ align-content: center !important
50
+
51
+ .ac-end#{$class-fix}
52
+ align-content: flex-end !important
53
+
54
+ .ac-between#{$class-fix}
55
+ align-content: space-between !important
56
+
57
+ .ac-around#{$class-fix}
58
+ align-content: space-around !important
59
+
60
+ .ai-start#{$class-fix}
61
+ align-items: flex-start !important
62
+
63
+ .ai-end#{$class-fix}
64
+ align-items: flex-end !important
65
+
66
+ .ai-center#{$class-fix}
67
+ align-items: center !important
68
+
69
+ .ai-baseline#{$class-fix}
70
+ align-items: baseline !important
71
+
72
+ .ai-stretch#{$class-fix}
73
+ align-items: stretch !important
74
+
75
+ .as-start#{$class-fix}
76
+ align-self: flex-start !important
77
+
78
+ .as-center#{$class-fix}
79
+ align-self: center !important
80
+
81
+ .as-baseline#{$class-fix}
82
+ align-self: baseline !important
83
+
84
+ .as-end#{$class-fix}
85
+ align-self: flex-end !important
86
+
87
+ .as-stretch#{$class-fix}
88
+ align-self: stretch !important
89
+
90
+ .fg-1#{$class-fix}
91
+ flex-grow: 1 !important
92
+
93
+ .fg-0#{$class-fix}
94
+ flex-grow: 0 !important
95
+
96
+ .fs-1#{$class-fix}
97
+ flex-shrink: 1 !important
98
+
99
+ .fs-0#{$class-fix}
100
+ flex-shrink: 0 !important
101
+
102
+ .flex-auto#{$class-fix}
103
+ flex: 1 1 auto !important
104
+
105
+ .od-0#{$class-fix}
106
+ order: 0 !important
107
+
108
+ @for $i from 1 through ceil($grid-columns / 2)
109
+
110
+ .od-#{$i}#{$class-fix}
111
+ order: $i !important
112
+
113
+ .on-#{$i}#{$class-fix}
114
+ order: - $i !important