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,18 @@
1
+ +install(shared-collection-tab)
2
+
3
+ .tab-indicators
4
+ overflow: auto
5
+ -webkit-overflow-scrolling: touch
6
+
7
+ .tab-panes
8
+ padding-top: $tab-panes-padding-top-rem
9
+ padding-bottom: $tab-panes-padding-bottom-rem
10
+ overflow: auto
11
+ -webkit-overflow-scrolling: touch
12
+ background: $tab-panes-background
13
+
14
+ .tab-pane
15
+ display: none
16
+
17
+ .tab-pane-active.tab-pane
18
+ display: block
@@ -0,0 +1,19 @@
1
+ +install(shared-element-badge)
2
+
3
+ .badge,
4
+ .badge-baseline
5
+ display: inline-flex
6
+ position: relative
7
+ left: $badge-offset-left-em
8
+ align-items: center
9
+ min-width: $badge-height-em
10
+ height: $badge-height-em
11
+ padding: $badge-padding-em
12
+ font-size: 1em / $typography-size-scale-ratio
13
+ white-space: nowrap
14
+ color: $badge-color
15
+ background: $badge-background
16
+ border-radius: 9999px
17
+
18
+ .badge
19
+ top: $badge-offset-top-em
@@ -0,0 +1,22 @@
1
+ +install(shared-element-baseline)
2
+
3
+ .baseline-overlay
4
+ position: relative
5
+
6
+ $_baseline-gradient: linear-gradient(to bottom, #0ff 0, rgba(255, 255, 255, 0) 1px)
7
+ $_baseline-background: $_baseline-gradient left top / 100% 1rem repeat-y
8
+
9
+ .baseline-overlay::after
10
+ display: block
11
+ position: absolute
12
+ top: 0
13
+ right: 0
14
+ bottom: 0
15
+ left: 0
16
+ z-index: $z-index-highest
17
+ pointer-events: none
18
+ content: ""
19
+ background: $_baseline-background
20
+
21
+ .baseline-background
22
+ background: $_baseline-background
@@ -0,0 +1,136 @@
1
+ +install(shared-element-button)
2
+
3
+ .btn,
4
+ .btn-check,
5
+ .btn-radio,
6
+ .btn-file
7
+ -webkit-appearance: none
8
+ -moz-appearance: none
9
+ appearance: none
10
+ display: inline-flex
11
+ vertical-align: top
12
+ flex: 0 0 auto
13
+ max-width: 100%
14
+ min-width: $button-height-rem
15
+ height: $button-height-rem
16
+ font-size: typo-size($button-typography-size-level)
17
+ line-height: normal
18
+ white-space: nowrap
19
+ cursor: pointer
20
+ -ms-touch-action: manipulation
21
+ touch-action: manipulation
22
+ -webkit-user-select: none
23
+ -moz-user-select: none
24
+ -ms-user-select: none
25
+ user-select: none
26
+ text-decoration: none
27
+ background: none
28
+
29
+ +browser-edge
30
+ input.btn
31
+ display: inline-block
32
+ text-align: center
33
+
34
+ .btn,
35
+ .btn-check label,
36
+ .btn-radio label,
37
+ .btn-file label
38
+ align-items: center
39
+ justify-content: center
40
+ padding: 0 $button-helvertical-padding-em
41
+ border: $button-border-style $button-border-width
42
+ overflow: hidden
43
+ border-radius: existing($button-border-radius, 0)
44
+
45
+ .btn-check label,
46
+ .btn-radio label,
47
+ .btn-file label
48
+ display: flex
49
+ width: 100%
50
+ height: inherit
51
+ // pointer-events: none
52
+
53
+ .btn > *,
54
+ .btn-check label > *,
55
+ .btn-radio label > *,
56
+ .btn-file label > *
57
+ flex: 0 0 auto
58
+
59
+ .btn-check input,
60
+ .btn-radio input,
61
+ .btn-file input
62
+ -webkit-appearance: none
63
+ -moz-appearance: none
64
+ appearance: none
65
+ width: 0.001px
66
+ min-width: 100%
67
+ // height: 0.001px
68
+ height: 100%
69
+ margin-right: -100%
70
+ overflow: hidden
71
+ cursor: pointer
72
+ opacity: 0
73
+
74
+ .btn-check input[disabled],
75
+ .btn-radio input[disabled],
76
+ .btn-file input[disabled]
77
+ opacity: 0
78
+
79
+ // remove webkit file upload button to prevent cursor change when hover
80
+ .btn-file ::-webkit-file-upload-button
81
+ display: none
82
+
83
+ .btn:-moz-focusring
84
+ outline: none
85
+
86
+ .btn.focus,
87
+ .btn-check input.focus ~ label,
88
+ .btn-radio input.focus ~ label,
89
+ .btn-file input.focus ~ label
90
+ +_focus
91
+
92
+
93
+
94
+ .btn-fluid.btn,
95
+ .btn-fluid.btn-check,
96
+ .btn-fluid.btn-radio,
97
+ .btn-fluid.btn-file
98
+ display: flex
99
+ flex: 1 1 auto
100
+ width: 100%
101
+
102
+ .btn-small.btn,
103
+ .btn-small.btn-check,
104
+ .btn-small.btn-radio,
105
+ .btn-small.btn-file
106
+ min-width: $button-small-height-rem
107
+ height: $button-small-height-rem
108
+ font-size: typo-size($button-small-typography-size-level)
109
+
110
+ .btn-large.btn,
111
+ .btn-large.btn-check,
112
+ .btn-large.btn-radio,
113
+ .btn-large.btn-file
114
+ min-width: $button-large-height-rem
115
+ height: $button-large-height-rem
116
+ font-size: typo-size($button-large-typography-size-level)
117
+
118
+
119
+
120
+ +button-solid(primary, $button-primary-color, $button-primary-hover-color, $button-primary-active-color, $button-primary-background, $button-primary-hover-background, $button-primary-active-background, $button-primary-border-color, $button-primary-hover-border-color, $button-primary-active-border-color, $button-primary-box-shadow, $button-primary-hover-box-shadow, $button-primary-active-box-shadow)
121
+ +button-solid(secondary, $button-secondary-color, $button-secondary-hover-color, $button-secondary-active-color, $button-secondary-background, $button-secondary-hover-background, $button-secondary-active-background, $button-secondary-border-color, $button-secondary-hover-border-color, $button-secondary-active-border-color, $button-secondary-box-shadow, $button-secondary-hover-box-shadow, $button-secondary-active-box-shadow)
122
+ +button-solid(danger, $button-danger-color, $button-danger-hover-color, $button-danger-active-color, $button-danger-background, $button-danger-hover-background, $button-danger-active-background, $button-danger-border-color, $button-danger-hover-border-color, $button-danger-active-border-color, $button-danger-box-shadow, $button-danger-hover-box-shadow, $button-danger-active-box-shadow)
123
+ +button-solid(dark, $button-dark-color, $button-dark-hover-color, $button-dark-active-color, $button-dark-background, $button-dark-hover-background, $button-dark-active-background, $button-dark-border-color, $button-dark-hover-border-color, $button-dark-active-border-color, $button-dark-box-shadow, $button-dark-hover-box-shadow, $button-dark-active-box-shadow)
124
+ +button-solid(light, $button-light-color, $button-light-hover-color, $button-light-active-color, $button-light-background, $button-light-hover-background, $button-light-active-background, $button-light-border-color, $button-light-hover-border-color, $button-light-active-border-color, $button-light-box-shadow, $button-light-hover-box-shadow, $button-light-active-box-shadow)
125
+
126
+ +button-hollow(primary, $button-hollow-primary-color, $button-hollow-primary-hover-color, $button-hollow-primary-active-color, $button-hollow-primary-hover-background, $button-hollow-primary-active-background, $button-hollow-primary-border-color, $button-hollow-primary-hover-border-color, $button-hollow-primary-active-border-color, $button-hollow-primary-box-shadow, $button-hollow-primary-hover-box-shadow, $button-hollow-primary-active-box-shadow)
127
+ +button-hollow(secondary, $button-hollow-secondary-color, $button-hollow-secondary-hover-color, $button-hollow-secondary-active-color, $button-hollow-secondary-hover-background, $button-hollow-secondary-active-background, $button-hollow-secondary-border-color, $button-hollow-secondary-hover-border-color, $button-hollow-secondary-active-border-color, $button-hollow-secondary-box-shadow, $button-hollow-secondary-hover-box-shadow, $button-hollow-secondary-active-box-shadow)
128
+ +button-hollow(danger, $button-hollow-danger-color, $button-hollow-danger-hover-color, $button-hollow-danger-active-color, $button-hollow-danger-hover-background, $button-hollow-danger-active-background, $button-hollow-danger-border-color, $button-hollow-danger-hover-border-color, $button-hollow-danger-active-border-color, $button-hollow-danger-box-shadow, $button-hollow-danger-hover-box-shadow, $button-hollow-danger-active-box-shadow)
129
+ +button-hollow(dark, $button-hollow-dark-color, $button-hollow-dark-hover-color, $button-hollow-dark-active-color, $button-hollow-dark-hover-background, $button-hollow-dark-active-background, $button-hollow-dark-border-color, $button-hollow-dark-hover-border-color, $button-hollow-dark-active-border-color, $button-hollow-dark-box-shadow, $button-hollow-dark-hover-box-shadow, $button-hollow-dark-active-box-shadow)
130
+ +button-hollow(light, $button-hollow-light-color, $button-hollow-light-hover-color, $button-hollow-light-active-color, $button-hollow-light-hover-background, $button-hollow-light-active-background, $button-hollow-light-border-color, $button-hollow-light-hover-border-color, $button-hollow-light-active-border-color, $button-hollow-light-box-shadow, $button-hollow-light-hover-box-shadow, $button-hollow-light-active-box-shadow)
131
+
132
+ +button-text(primary, $button-text-primary-color, $button-text-primary-hover-color, $button-text-primary-active-color, $button-text-primary-text-shadow, $button-text-primary-hover-text-shadow, $button-text-primary-active-text-shadow)
133
+ +button-text(secondary, $button-text-secondary-color, $button-text-secondary-hover-color, $button-text-secondary-active-color, $button-text-secondary-text-shadow, $button-text-secondary-hover-text-shadow, $button-text-secondary-active-text-shadow)
134
+ +button-text(danger, $button-text-danger-color, $button-text-danger-hover-color, $button-text-danger-active-color, $button-text-danger-text-shadow, $button-text-danger-hover-text-shadow, $button-text-danger-active-text-shadow)
135
+ +button-text(dark, $button-text-dark-color, $button-text-dark-hover-color, $button-text-dark-active-color, $button-text-dark-text-shadow, $button-text-dark-hover-text-shadow, $button-text-dark-active-text-shadow)
136
+ +button-text(light, $button-text-light-color, $button-text-light-hover-color, $button-text-light-active-color, $button-text-light-text-shadow, $button-text-light-hover-text-shadow, $button-text-light-active-text-shadow)
@@ -0,0 +1,8 @@
1
+ +install(shared-element-container)
2
+
3
+ .container
4
+ max-width: $container-max-width-px
5
+ min-width: 0
6
+ padding: $container-padding-rem
7
+ margin-right: auto
8
+ margin-left: auto
@@ -0,0 +1,55 @@
1
+ +install(shared-element-grid)
2
+
3
+ .grid,
4
+ .grid-edge
5
+ display: flex
6
+ flex-wrap: wrap
7
+ align-items: flex-start
8
+ width: 100%
9
+
10
+ [class*=col-]
11
+ flex-grow: 0
12
+ flex-shrink: 0
13
+
14
+ .col-auto
15
+ flex-basis: 0
16
+ flex-grow: 1
17
+ flex-shrink: 1
18
+ max-width: 100%
19
+ min-width: 1px
20
+
21
+ .grid > [class*=col-]
22
+ padding-right: $grid-gutter-width-rem / 2
23
+ padding-left: $grid-gutter-width-rem / 2
24
+
25
+ .grid [class*=col-] .grid
26
+ width: auto
27
+ margin-right: - $grid-gutter-width-rem / 2
28
+ margin-left: - $grid-gutter-width-rem / 2
29
+
30
+ .grid .grid-edge > [class*=col-] > .grid
31
+ margin-right: 0
32
+ margin-left: 0
33
+
34
+ .grid-edge.container
35
+ padding: 0
36
+
37
+
38
+
39
+ @each $breakpoint in map-keys($breakpoint-width-pxs)
40
+ $class-fix: _responsive-class-fix($breakpoint)
41
+
42
+ +media-width($breakpoint)
43
+
44
+ @for $count from 1 through $grid-columns
45
+ $column-width: $count / $grid-columns * 100%
46
+
47
+ .col-#{$count}#{$class-fix}
48
+ flex-basis: $column-width
49
+ max-width: $column-width
50
+
51
+ @for $count from 1 to $grid-columns
52
+ $margin-left: $count / $grid-columns * 100%
53
+
54
+ .offset-#{$count}#{$class-fix}
55
+ margin-left: $margin-left
@@ -0,0 +1,110 @@
1
+ +install(shared-element-icon)
2
+
3
+ .ico
4
+ display: inline-block
5
+ vertical-align: text-top
6
+ position: relative
7
+ width: 1em
8
+ height: 1em
9
+ font-size: $icon-size-em
10
+ line-height: normal
11
+ overflow: hidden
12
+ -webkit-user-select: none
13
+ -moz-user-select: none
14
+ -ms-user-select: none
15
+ user-select: none
16
+ object-fit: contain
17
+ object-position: center
18
+ font-style: normal
19
+ background-position: center
20
+ background-size: contain
21
+
22
+ +browser-firefox
23
+ .ico
24
+ line-height: $icon-firefox-line-height
25
+
26
+ .ico::before,
27
+ .ico::after
28
+ display: block
29
+ position: absolute
30
+ top: 50%
31
+ left: 50%
32
+ transform: translate(-50%, -50%)
33
+
34
+
35
+
36
+ .ico-left::before,
37
+ .ico-right::before,
38
+ .ico-up::before,
39
+ .ico-down::before
40
+ width: 0.6em
41
+ height: 0.6em
42
+ border: $icon-stroke-width solid
43
+ border-right: none
44
+ border-bottom: none
45
+ content: ''
46
+
47
+ .ico-left::before
48
+ transform: translate(-25%, -50%) rotate(-45deg)
49
+
50
+ .ico-right::before
51
+ transform: translate(-75%, -50%) rotate(135deg)
52
+
53
+ .ico-up::before
54
+ transform: translate(-50%, -25%) rotate(45deg)
55
+
56
+ .ico-down::before
57
+ transform: translate(-50%, -75%) rotate(225deg)
58
+
59
+
60
+
61
+ .ico-plus::before,
62
+ .ico-plus::after,
63
+ .ico-cross::before,
64
+ .ico-cross::after
65
+ content: ''
66
+ background: currentColor
67
+
68
+ .ico-plus::before,
69
+ .ico-cross::before
70
+ width: 0.9em
71
+ height: $icon-stroke-width
72
+
73
+ .ico-plus::after,
74
+ .ico-cross::after
75
+ width: $icon-stroke-width
76
+ height: 0.9em
77
+
78
+ .ico-cross::before,
79
+ .ico-cross::after
80
+ transform: translate(-50%, -50%) rotate(45deg)
81
+
82
+
83
+
84
+ .ico-menu::before
85
+ width: 0.9em
86
+ height: $icon-stroke-width
87
+ content: ''
88
+ background: currentColor
89
+ box-shadow: 0 -0.35em, 0 0.35em
90
+
91
+
92
+
93
+ .ico-search::before
94
+ top: 5%
95
+ left: 5%
96
+ width: 0.75em
97
+ height: 0.75em
98
+ border: $icon-stroke-width solid
99
+ content: ''
100
+ border-radius: 50%
101
+ transform: translate(0, 0) rotate(45deg)
102
+
103
+ .ico-search::after
104
+ top: 80%
105
+ left: 80%
106
+ width: 0.4em
107
+ height: $icon-stroke-width
108
+ content: ''
109
+ background: currentColor
110
+ transform: translate(-50%, -50%) rotate(45deg)
@@ -0,0 +1,11 @@
1
+ +install(shared-element-overlay)
2
+
3
+ html:has(.overlay.toggle-active),
4
+ body:has(.overlay.toggle-active)
5
+ overflow: hidden
6
+
7
+ .overlay
8
+ +overlay
9
+
10
+ .overlay-body
11
+ +overlay-body
@@ -0,0 +1,31 @@
1
+ +install(shared-element-progress)
2
+
3
+ .progress
4
+ display: flex
5
+ height: $progress-height-rem
6
+ background: $progress-background
7
+ border-radius: $progress-border-radius
8
+
9
+ .progress-bar
10
+ display: flex
11
+ align-items: center
12
+ justify-content: flex-end
13
+ min-width: $progress-bar-min-width-em
14
+ height: 100%
15
+ padding: $progress-bar-padding
16
+ font-size: typo-size($progress-bar-typography-size-level)
17
+ white-space: nowrap
18
+ overflow: hidden
19
+ color: $progress-bar-color
20
+ background: $progress-bar-background
21
+ border-radius: $progress-border-radius
22
+
23
+ @if $progress-border-radius and $progress-border-radius != 0
24
+
25
+ .progress-bar:not(:first-child)
26
+ border-top-left-radius: 0
27
+ border-bottom-left-radius: 0
28
+
29
+ .progress-bar:not(:last-child)
30
+ border-top-right-radius: 0
31
+ border-bottom-right-radius: 0
@@ -0,0 +1,21 @@
1
+ +install(shared-element-scrollbar)
2
+
3
+ +media-width($scrollbar-width-breakpoint)
4
+
5
+ html
6
+ -ms-overflow-style: $scrollbar-ie-edge-overflow-style
7
+
8
+ +browser-chrome-and-opera
9
+
10
+ +media-width($scrollbar-width-breakpoint)
11
+
12
+ html
13
+ overflow: overlay
14
+
15
+ ::-webkit-scrollbar
16
+ width: $scrollbar-breakpoint-vertical-width-rem
17
+ height: $scrollbar-breakpoint-horizontal-height-rem
18
+
19
+ ::-webkit-scrollbar-thumb
20
+ background: $scrollbar-thumb-background
21
+ border-radius: $scrollbar-thumb-border-radius