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,214 @@
1
+ +install(shared-element-form-row)
2
+
3
+ .fm-text input,
4
+ .fm-search input,
5
+ .fm-select input,
6
+ .fm-file input,
7
+ .fm-text textarea,
8
+ .fm-select select
9
+ width: 100%
10
+ border: $form-element-border-style $form-element-border-width $form-element-border-color
11
+ border-radius: $form-element-border-radius
12
+ box-shadow: $form-element-box-shadow
13
+
14
+ .fm-text input,
15
+ .fm-search input,
16
+ .fm-select input,
17
+ .fm-file input,
18
+ .fm-select select:not([multiple])
19
+ height: $form-element-textfield-height-rem
20
+ line-height: normal // fix safari blinking cursor not in input center
21
+
22
+ .fm-text input,
23
+ .fm-select select:not([multiple])
24
+ padding: 0 $form-element-text-helvertical-padding-em
25
+ background: $form-element-background
26
+
27
+ .fm-search input,
28
+ .fm-select input,
29
+ .fm-file input
30
+ $padding-right: $form-element-icon-size-em + $form-element-text-helvertical-padding-em * 2
31
+ padding: 0 $padding-right 0 $form-element-text-helvertical-padding-em
32
+
33
+ .fm-search input
34
+ +form-row-background-icon($form-element-search-icon, $form-element-icon-color, $form-element-background)
35
+
36
+ .fm-select input
37
+ +form-row-background-icon($form-element-select-icon, $form-element-icon-color, $form-element-background)
38
+
39
+ .fm-file input
40
+ +form-row-background-icon($form-element-add-icon, $form-element-icon-color, $form-element-background)
41
+
42
+ .fm-text textarea,
43
+ .fm-select select[multiple]
44
+ $padding-top: typo-padding-top($form-element-typography-size-level, $typography-main-baseline-offset-ratio)
45
+ $padding-bottom: typo-padding-bottom($form-element-typography-size-level, $typography-main-baseline-offset-ratio)
46
+ height: $form-element-textarea-height-rem
47
+ min-height: $form-element-textarea-height-rem
48
+ padding: $padding-top $form-element-text-helvertical-padding-em $padding-bottom
49
+ line-height: typo-line-height($form-element-typography-size-level)
50
+ overflow: auto
51
+ -webkit-overflow-scrolling: touch
52
+ background: $form-element-background
53
+
54
+ .fm-text[data-error] input,
55
+ .fm-search[data-error] input,
56
+ .fm-select[data-error] input,
57
+ .fm-file[data-error] input,
58
+ .fm-text[data-error] textarea,
59
+ .fm-select[data-error] select[multiple]
60
+ color: $form-element-error-color
61
+ border-color: $form-element-error-border-color
62
+ box-shadow: $form-element-error-box-shadow
63
+
64
+ .fm-text[data-error] input,
65
+ .fm-text[data-error] textarea,
66
+ .fm-select[data-error] select[multiple]
67
+ background: $form-element-error-background
68
+
69
+ @if $form-element-error-background or $form-element-error-icon-color
70
+ $icon-color: form-error-icon-color
71
+ $background: form-error-background
72
+
73
+ .fm-search[data-error] input
74
+ +form-row-background-icon($form-element-search-icon, $icon-color, $background)
75
+
76
+ .fm-select[data-error] input
77
+ +form-row-background-icon($form-element-select-icon, $icon-color, $background)
78
+
79
+ .fm-file[data-error] input
80
+ +form-row-background-icon($form-element-add-icon, $icon-color, $background)
81
+ +_sass-lint-fix-if-else
82
+
83
+ .fm.fm-text input.focus,
84
+ .fm.fm-search input.focus,
85
+ .fm.fm-select .focus ~ input,
86
+ .fm.fm-select input.focus,
87
+ .fm.fm-file .focus ~ input,
88
+ .fm.fm-text textarea.focus,
89
+ .fm.fm-select select[multiple].focus
90
+ color: $form-element-focus-color
91
+ border-color: $form-element-focus-border-color
92
+ box-shadow: $form-element-focus-box-shadow
93
+
94
+ .fm.fm-text input.focus,
95
+ .fm.fm-text textarea.focus,
96
+ .fm.fm-select select[multiple].focus
97
+ background: $form-element-focus-background
98
+
99
+ @if $form-element-focus-background or $form-element-focus-icon-color
100
+ $icon-color: form-focus-icon-color
101
+ $background: form-focus-background
102
+
103
+ .fm.fm-search input.focus
104
+ +form-row-background-icon($form-element-search-icon, $icon-color, $background)
105
+
106
+ .fm.fm-select .focus ~ input,
107
+ .fm.fm-select input.focus
108
+ +form-row-background-icon($form-element-select-icon, $icon-color, $background)
109
+
110
+ .fm.fm-file .focus ~ input
111
+ +form-row-background-icon($form-element-add-icon, $icon-color, $background)
112
+
113
+ @if $form-element-error-background or $form-element-error-icon-color
114
+ $focus-icon-color: form-error-focus-icon-color
115
+ $focus-background: form-error-focus-background
116
+
117
+ .fm.fm-search[data-error] input.focus
118
+ +form-row-background-icon($form-element-search-icon, $focus-icon-color, $focus-background)
119
+
120
+ .fm.fm-select[data-error] .focus ~ input,
121
+ .fm.fm-select[data-error] input.focus
122
+ +form-row-background-icon($form-element-select-icon, $focus-icon-color, $focus-background)
123
+
124
+ .fm.fm-file[data-error] .focus ~ input
125
+ +form-row-background-icon($form-element-add-icon, $focus-icon-color, $focus-background)
126
+ +_sass-lint-fix-if-else
127
+
128
+
129
+
130
+ .fm-small.fm-text input,
131
+ .fm-small.fm-search input,
132
+ .fm-small.fm-select input,
133
+ .fm-small.fm-file input,
134
+ .fm-small.fm-select select:not([multiple])
135
+ height: $form-element-small-textfield-height-rem
136
+
137
+ .fm-small.fm-text textarea,
138
+ .fm-small.fm-select select[multiple]
139
+ height: $form-element-small-textarea-height-rem
140
+ min-height: $form-element-small-textarea-height-rem
141
+ padding-top: typo-padding-top($form-element-small-typography-size-level, $typography-main-baseline-offset-ratio)
142
+ padding-bottom: typo-padding-bottom($form-element-small-typography-size-level, $typography-main-baseline-offset-ratio)
143
+ line-height: typo-line-height($form-element-small-typography-size-level)
144
+
145
+ .fm-large.fm-text input,
146
+ .fm-large.fm-search input,
147
+ .fm-large.fm-select input,
148
+ .fm-large.fm-file input,
149
+ .fm-large.fm-select select:not([multiple])
150
+ height: $form-element-large-textfield-height-rem
151
+
152
+ .fm-large.fm-text textarea,
153
+ .fm-large.fm-select select[multiple]
154
+ height: $form-element-large-textarea-height-rem
155
+ min-height: $form-element-large-textarea-height-rem
156
+ padding-top: typo-padding-top($form-element-large-typography-size-level, $typography-main-baseline-offset-ratio)
157
+ padding-bottom: typo-padding-bottom($form-element-large-typography-size-level, $typography-main-baseline-offset-ratio)
158
+ line-height: typo-line-height($form-element-large-typography-size-level)
159
+
160
+
161
+
162
+ .fm-select select:not([multiple]),
163
+ .fm-file [type=file]
164
+ width: 100%
165
+ margin-bottom: - $form-element-textfield-height-rem
166
+ // opacity: 0
167
+
168
+ .fm.fm-select select:not([multiple]),
169
+ .fm.fm-file [type=file]
170
+ opacity: 0
171
+
172
+ .fm-file [type=file]
173
+ overflow: hidden
174
+
175
+
176
+
177
+ .fm-small.fm-select select:not([multiple]),
178
+ .fm-small.fm-file [type=file]
179
+ margin-bottom: - $form-element-small-textfield-height-rem
180
+
181
+ .fm-large.fm-select select:not([multiple]),
182
+ .fm-large.fm-file [type=file]
183
+ margin-bottom: - $form-element-large-textfield-height-rem
184
+
185
+
186
+
187
+ .fm-select select[multiple] option
188
+ display: flex
189
+ align-items: center
190
+ height: typo-line-height($form-element-typography-size-level)
191
+ min-height: 0
192
+ padding: 0
193
+
194
+
195
+
196
+ .fm-small.fm-select select[multiple] option
197
+ height: if($form-element-small-typography-size-level, typo-line-height($form-element-small-typography-size-level), null)
198
+
199
+ .fm-large.fm-select select[multiple] option
200
+ height: if($form-element-large-typography-size-level, typo-line-height($form-element-large-typography-size-level), null)
201
+
202
+
203
+
204
+ .fm-select select[multiple] option.fm-select-multiple-placeholder:disabled
205
+ overflow: hidden
206
+ opacity: 1
207
+ color: $form-element-placeholder-color
208
+ text-overflow: ellipsis
209
+
210
+ .fm-select[data-error] select[multiple] option.fm-select-multiple-placeholder:disabled
211
+ color: $form-element-error-placeholder-color
212
+
213
+ .fm.fm-select select[multiple].focus option.fm-select-multiple-placeholder:disabled
214
+ color: $form-element-focus-placeholder-color
@@ -0,0 +1,27 @@
1
+ +install(shared-element-typography-code)
2
+
3
+ code,
4
+ kbd,
5
+ samp
6
+ padding: $typography-code-padding-em
7
+ line-height: 0
8
+ color: $typography-code-color
9
+ font-family: $typography-code
10
+ background: $typography-code-background
11
+ border-radius: $typography-code-border-radius
12
+
13
+ .code
14
+ padding: $typography-code-block-padding-rem
15
+ background: $typography-code-background
16
+ border-radius: $typography-code-border-radius
17
+
18
+ .code code,
19
+ .code samp,
20
+ .code kbd
21
+ $baseline-offset: existing($typography-code-baseline-offset-ratio, $typography-main-baseline-offset-ratio)
22
+ +typo-level($typography-block-code-size-level, $baseline-offset)
23
+ display: block
24
+ padding-right: 0
25
+ padding-left: 0
26
+ background: none
27
+ border-radius: if($typography-code-border-radius, 0, null)
@@ -0,0 +1,15 @@
1
+ +install(shared-element-typography-link)
2
+
3
+ a:not(.btn)
4
+ color: $typography-link-color
5
+ text-decoration: $typography-link-text-decoration
6
+
7
+ a:not(.btn):hover
8
+ color: $typography-link-hover-color
9
+ text-decoration: $typography-link-hover-text-decoration
10
+
11
+ a:not(.btn):active
12
+ color: $typography-link-active-color
13
+ text-decoration: $typography-link-active-text-decoration
14
+
15
+ +typo-link(light, $typography-link-light-color, $typography-link-light-hover-color, $typography-link-light-active-color)
@@ -0,0 +1,14 @@
1
+ +install(shared-element-typography-list)
2
+
3
+ ul,
4
+ ol
5
+ list-style-position: outside
6
+
7
+ ul ul,
8
+ ul ol,
9
+ ol ul,
10
+ ol ol
11
+ padding: $typography-list-nested-padding-em
12
+
13
+ dt
14
+ font-weight: 700
@@ -0,0 +1,7 @@
1
+ +install(shared-element-typography-mark)
2
+
3
+ mark
4
+ padding: $typography-mark-padding-em
5
+ color: $typography-mark-color
6
+ background: $typography-mark-background
7
+ border-radius: $typography-mark-border-radius
@@ -0,0 +1,68 @@
1
+ +install(shared-element-typography-quote)
2
+
3
+ q,
4
+ .quote p
5
+ font-family: $typography-quote
6
+ font-style: italic
7
+
8
+ q
9
+ line-height: 0
10
+
11
+ q::before
12
+ padding: 0 0.3em
13
+ content: '"'
14
+
15
+ q::after
16
+ padding: 0 0.3em 0 0.2em
17
+ content: '"'
18
+
19
+ q q::before
20
+ content: "'"
21
+
22
+ q q::after
23
+ content: "'"
24
+
25
+ cite
26
+ color: $typography-cite-color
27
+ font-style: italic
28
+ font-weight: 700
29
+
30
+ .quote
31
+ padding: $typography-quote-block-padding-rem
32
+
33
+ .quote p
34
+ $offset-diff: $typography-quote-baseline-offset-ratio != $typography-main-baseline-offset-ratio
35
+ $size-diff: $typography-block-quote-size-level != $typography-main-size-level
36
+ @if $typography-quote-baseline-offset-ratio and $offset-diff or $size-diff
37
+ $baseline-offset-ratio: existing($typography-quote-baseline-offset-ratio, $typography-main-baseline-offset-ratio)
38
+ +typo-level($typography-block-quote-size-level, $baseline-offset-ratio)
39
+ margin: $typography-quote-block-p-margin-rem
40
+
41
+ .quote p:first-child
42
+ position: relative
43
+
44
+ .quote p:first-child::before
45
+ display: block
46
+ position: absolute
47
+ top: 0
48
+ left: - mirror-nth($typography-quote-block-padding-rem, 4)
49
+ width: mirror-nth($typography-quote-block-padding-rem, 4)
50
+ font-size: 3em
51
+ text-align: center
52
+ content: '"'
53
+ color: $typography-cite-color
54
+
55
+ .quote p:last-of-type
56
+ margin-bottom: 0
57
+
58
+ .quote footer
59
+ color: $typography-cite-color
60
+
61
+ .quote footer::before
62
+ display: inline-block
63
+ vertical-align: middle
64
+ width: 2em
65
+ margin-right: 1em
66
+ border-width: $typography-quote-block-cite-lead-height 0 0
67
+ content: ""
68
+ border-style: solid
@@ -0,0 +1,16 @@
1
+ +install(shared-element-typography-sub-sup)
2
+
3
+ sub,
4
+ sup
5
+ vertical-align: baseline
6
+ position: relative
7
+ font-size: $typography-sub-sup-size
8
+ line-height: 0
9
+
10
+ sub
11
+ bottom: $typography-sub-bottom-offset-em
12
+ font-feature-settings: "subs" 1
13
+
14
+ sup
15
+ top: $typography-sup-top-offset-em
16
+ font-feature-settings: "sups" 1
@@ -0,0 +1,52 @@
1
+ +install(shared-element-typography-typography)
2
+
3
+ @for $type-level from 1 through 6
4
+
5
+ $is-default-typo-level: $type-level == $typography-main-size-level
6
+ $paragraph-selector: if($is-default-typo-level, "p,.p#{$type-level}", ".p#{$type-level}")
7
+ $lead-selector: "h#{$type-level},.h#{$type-level}"
8
+ $baseline-offset-ratio-changed: $typography-lead-baseline-offset-ratio != $typography-main-baseline-offset-ratio
9
+
10
+ @if $typography-lead-baseline-offset-ratio and $baseline-offset-ratio-changed
11
+
12
+ #{$lead-selector}
13
+ +typo-level($type-level, $typography-lead-baseline-offset-ratio)
14
+ display: block
15
+
16
+ #{$paragraph-selector}
17
+ +typo-level($type-level, $typography-main-baseline-offset-ratio)
18
+ display: block
19
+
20
+ @else
21
+
22
+ #{$lead-selector},
23
+ #{$paragraph-selector}
24
+ +typo-level($type-level, $typography-main-baseline-offset-ratio)
25
+ display: block
26
+
27
+ +_sass-lint-fix-if-else
28
+
29
+
30
+
31
+ h1,
32
+ h2,
33
+ h3,
34
+ h4,
35
+ h5,
36
+ h6,
37
+ .h1,
38
+ .h2,
39
+ .h3,
40
+ .h4,
41
+ .h5,
42
+ .h6
43
+ color: $typography-lead-color
44
+ font-family: $typography-lead
45
+ font-weight: $typography-lead-font-weight
46
+
47
+
48
+
49
+ .typo-inline
50
+ display: inline !important
51
+ padding: 0 !important
52
+ line-height: 0 !important
@@ -0,0 +1,15 @@
1
+ =browser-firefox
2
+ @-moz-document url-prefix()
3
+ @content
4
+
5
+ =browser-ios-safari
6
+ @supports (-webkit-overflow-scrolling: touch)
7
+ @content
8
+
9
+ =browser-edge
10
+ @supports (-ms-ime-align: auto)
11
+ @content
12
+
13
+ =browser-chrome-and-opera
14
+ @media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm)
15
+ @content
@@ -0,0 +1,90 @@
1
+ =button-solid($name: null, $color: null, $hover-color: null, $active-color: null, $background: null, $hover-background: null, $active-background: null, $border-color: null, $hover-border-color: null, $active-border-color: null, $box-shadow: null, $hover-box-shadow: null, $active-box-shadow: null)
2
+
3
+ .btn.btn-#{$name},
4
+ .btn-check.btn-#{$name} label,
5
+ .btn-radio.btn-#{$name} label,
6
+ .btn-file.btn-#{$name} label
7
+ color: $color
8
+ background: $background
9
+ border-color: existing($border-color, transparent)
10
+ box-shadow: $box-shadow
11
+
12
+ .btn.btn-#{$name}:hover,
13
+ .btn-file.btn-#{$name} input:hover ~ label
14
+ color: $hover-color
15
+ background: $hover-background
16
+ border-color: $hover-border-color
17
+ box-shadow: $hover-box-shadow
18
+
19
+ .btn.btn-#{$name}:active,
20
+ .btn.btn-#{$name}.btn-active,
21
+ .btn-file.btn-#{$name} input:active ~ label,
22
+ .btn-check.btn-#{$name} input:checked ~ label,
23
+ .btn-radio.btn-#{$name} input:checked ~ label,
24
+ .btn-check.btn-#{$name}.btn-active input ~ label,
25
+ .btn-radio.btn-#{$name}.btn-active input ~ label,
26
+ .btn-file.btn-#{$name}.btn-active input ~ label
27
+ color: $active-color
28
+ background: $active-background
29
+ border-color: $active-border-color
30
+ box-shadow: $active-box-shadow
31
+
32
+
33
+
34
+ =button-hollow($name: null, $color: null, $hover-color: null, $active-color: null, $hover-background: null, $active-background: null, $border-color: null, $hover-border-color: null, $active-border-color: null, $box-shadow: null, $hover-box-shadow: null, $active-box-shadow: null)
35
+
36
+ .btn.btn-hollow-#{$name},
37
+ .btn-check.btn-hollow-#{$name} label,
38
+ .btn-radio.btn-hollow-#{$name} label,
39
+ .btn-file.btn-hollow-#{$name} label
40
+ color: $color
41
+ border-color: existing($border-color, $color)
42
+ box-shadow: $box-shadow
43
+
44
+ .btn.btn-hollow-#{$name}:hover,
45
+ .btn-file.btn-hollow-#{$name} input:hover ~ label
46
+ color: $hover-color
47
+ background: $hover-background
48
+ border-color: $hover-border-color
49
+ box-shadow: $hover-box-shadow
50
+
51
+ .btn.btn-hollow-#{$name}:active,
52
+ .btn.btn-hollow-#{$name}.btn-active,
53
+ .btn-file.btn-hollow-#{$name} input:active ~ label,
54
+ .btn-check.btn-hollow-#{$name} input:checked ~ label,
55
+ .btn-radio.btn-hollow-#{$name} input:checked ~ label,
56
+ .btn-check.btn-hollow-#{$name}.btn-active input ~ label,
57
+ .btn-radio.btn-hollow-#{$name}.btn-active input ~ label,
58
+ .btn-file.btn-hollow-#{$name}.btn-active input ~ label
59
+ color: $active-color
60
+ background: $active-background
61
+ border-color: $active-border-color
62
+ box-shadow: $active-box-shadow
63
+
64
+
65
+
66
+ =button-text($name: null, $color: null, $hover-color: null, $active-color: null, $text-shadow: null, $hover-text-shadow: null, $active-text-shadow: null)
67
+
68
+ .btn.btn-text-#{$name},
69
+ .btn-check.btn-text-#{$name},
70
+ .btn-radio.btn-text-#{$name},
71
+ .btn-file.btn-text-#{$name}
72
+ color: $color
73
+ text-shadow: $text-shadow
74
+ border-color: transparent
75
+
76
+ .btn.btn-text-#{$name}:hover,
77
+ .btn-file.btn-text-#{$name} input:hover ~ label
78
+ color: $hover-color
79
+ text-shadow: $hover-text-shadow
80
+
81
+ .btn.btn-text-#{$name}:active,
82
+ .btn.btn-text-#{$name}.btn-active,
83
+ .btn-file.btn-text-#{$name} input:active ~ label,
84
+ .btn-check.btn-text-#{$name} input:checked ~ label,
85
+ .btn-radio.btn-text-#{$name} input:checked ~ label,
86
+ .btn-check.btn-text-#{$name}.btn-active input ~ label,
87
+ .btn-radio.btn-text-#{$name}.btn-active input ~ label,
88
+ .btn-file.btn-text-#{$name}.btn-active input ~ label
89
+ color: $active-color
90
+ text-shadow: $active-text-shadow