luda 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/README.md +5 -5
  4. data/assets/javascripts/luda-degradation.js +1 -1
  5. data/assets/javascripts/luda-degradation.js.map +1 -1
  6. data/assets/javascripts/luda-degradation.min.js +1 -1
  7. data/assets/javascripts/luda-degradation.min.js.map +1 -1
  8. data/assets/javascripts/luda-sprockets.js +11 -11
  9. data/assets/javascripts/luda.js +1 -1
  10. data/assets/javascripts/luda.js.map +1 -1
  11. data/assets/javascripts/luda.min.js +1 -1
  12. data/assets/javascripts/luda.min.js.map +1 -1
  13. data/assets/javascripts/luda/install.js +1 -1
  14. data/assets/stylesheets/luda/_core/_base.sass +429 -429
  15. data/assets/stylesheets/luda/_core/_functions.sass +239 -239
  16. data/assets/stylesheets/luda/_core/_variables.sass +709 -709
  17. data/assets/stylesheets/luda/_core/behaviours/_disabled.sass +11 -11
  18. data/assets/stylesheets/luda/_core/behaviours/_focus.sass +6 -6
  19. data/assets/stylesheets/luda/_core/behaviours/_readonly.sass +15 -15
  20. data/assets/stylesheets/luda/_core/behaviours/_toggle.sass +3 -3
  21. data/assets/stylesheets/luda/_core/collections/_alert.sass +23 -23
  22. data/assets/stylesheets/luda/_core/collections/_avatar.sass +116 -116
  23. data/assets/stylesheets/luda/_core/collections/_breadcrumb.sass +20 -20
  24. data/assets/stylesheets/luda/_core/collections/_button-group.sass +66 -66
  25. data/assets/stylesheets/luda/_core/collections/_button-icon.sass +45 -45
  26. data/assets/stylesheets/luda/_core/collections/_carousel.sass +131 -131
  27. data/assets/stylesheets/luda/_core/collections/_dropdown.sass +59 -59
  28. data/assets/stylesheets/luda/_core/collections/_form-button.sass +22 -22
  29. data/assets/stylesheets/luda/_core/collections/_form-dropdown.sass +20 -20
  30. data/assets/stylesheets/luda/_core/collections/_form-group.sass +47 -47
  31. data/assets/stylesheets/luda/_core/collections/_form-icon.sass +70 -70
  32. data/assets/stylesheets/luda/_core/collections/_media.sass +54 -54
  33. data/assets/stylesheets/luda/_core/collections/_modal.sass +11 -11
  34. data/assets/stylesheets/luda/_core/collections/_nav.sass +161 -161
  35. data/assets/stylesheets/luda/_core/collections/_tab.sass +17 -17
  36. data/assets/stylesheets/luda/_core/elements/_badge.sass +18 -18
  37. data/assets/stylesheets/luda/_core/elements/_baseline.sass +21 -21
  38. data/assets/stylesheets/luda/_core/elements/_button.sass +135 -135
  39. data/assets/stylesheets/luda/_core/elements/_container.sass +7 -7
  40. data/assets/stylesheets/luda/_core/elements/_grid.sass +54 -54
  41. data/assets/stylesheets/luda/_core/elements/_icon.sass +109 -109
  42. data/assets/stylesheets/luda/_core/elements/_overlay.sass +10 -10
  43. data/assets/stylesheets/luda/_core/elements/_progress.sass +30 -30
  44. data/assets/stylesheets/luda/_core/elements/_scrollbar.sass +20 -20
  45. data/assets/stylesheets/luda/_core/elements/_table.sass +101 -101
  46. data/assets/stylesheets/luda/_core/elements/_turbolinks-progress-bar.sass +4 -4
  47. data/assets/stylesheets/luda/_core/elements/form/_form-check-radio.sass +104 -104
  48. data/assets/stylesheets/luda/_core/elements/form/_form-element.sass +82 -82
  49. data/assets/stylesheets/luda/_core/elements/form/_form-helper.sass +65 -65
  50. data/assets/stylesheets/luda/_core/elements/form/_form-label.sass +19 -19
  51. data/assets/stylesheets/luda/_core/elements/form/_form-range.sass +91 -91
  52. data/assets/stylesheets/luda/_core/elements/form/_form-row.sass +213 -213
  53. data/assets/stylesheets/luda/_core/elements/typography/_code.sass +26 -26
  54. data/assets/stylesheets/luda/_core/elements/typography/_link.sass +14 -14
  55. data/assets/stylesheets/luda/_core/elements/typography/_list.sass +13 -13
  56. data/assets/stylesheets/luda/_core/elements/typography/_mark.sass +6 -6
  57. data/assets/stylesheets/luda/_core/elements/typography/_quote.sass +67 -67
  58. data/assets/stylesheets/luda/_core/elements/typography/_sub-sup.sass +15 -15
  59. data/assets/stylesheets/luda/_core/elements/typography/_typography.sass +51 -51
  60. data/assets/stylesheets/luda/_core/mixins/_browser.sass +14 -14
  61. data/assets/stylesheets/luda/_core/mixins/_button.sass +89 -89
  62. data/assets/stylesheets/luda/_core/mixins/_dropdown.sass +39 -39
  63. data/assets/stylesheets/luda/_core/mixins/_focus.sass +2 -2
  64. data/assets/stylesheets/luda/_core/mixins/_form.sass +26 -26
  65. data/assets/stylesheets/luda/_core/mixins/_install.sass +6 -6
  66. data/assets/stylesheets/luda/_core/mixins/_media-query.sass +65 -65
  67. data/assets/stylesheets/luda/_core/mixins/_overlay.sass +13 -13
  68. data/assets/stylesheets/luda/_core/mixins/_sass-lint-fix.sass +2 -2
  69. data/assets/stylesheets/luda/_core/mixins/_typography.sass +39 -39
  70. data/assets/stylesheets/luda/_core/utilities/_align.sass +18 -18
  71. data/assets/stylesheets/luda/_core/utilities/_background.sass +87 -87
  72. data/assets/stylesheets/luda/_core/utilities/_color.sass +35 -35
  73. data/assets/stylesheets/luda/_core/utilities/_display.sass +39 -39
  74. data/assets/stylesheets/luda/_core/utilities/_flex.sass +113 -113
  75. data/assets/stylesheets/luda/_core/utilities/_float.sass +20 -20
  76. data/assets/stylesheets/luda/_core/utilities/_opacity.sass +18 -18
  77. data/assets/stylesheets/luda/_core/utilities/_overflow.sass +17 -17
  78. data/assets/stylesheets/luda/_core/utilities/_position.sass +47 -47
  79. data/assets/stylesheets/luda/_core/utilities/_shape.sass +61 -61
  80. data/assets/stylesheets/luda/_core/utilities/_size.sass +66 -66
  81. data/assets/stylesheets/luda/_core/utilities/_space.sass +226 -226
  82. data/assets/stylesheets/luda/_core/utilities/_text.sass +84 -84
  83. data/assets/stylesheets/luda/_core/utilities/_visibility.sass +10 -10
  84. data/assets/stylesheets/luda/_core/utilities/_z-index.sass +18 -18
  85. data/assets/stylesheets/luda/_default.sass +51 -51
  86. data/assets/stylesheets/luda/default/_banner.sass +1 -1
  87. data/assets/stylesheets/luda/default/_base.sass +5 -5
  88. data/assets/stylesheets/luda/default/_mixins.sass +9 -9
  89. data/assets/stylesheets/luda/default/behaviours/_disabled.sass +4 -4
  90. data/assets/stylesheets/luda/default/behaviours/_focus.sass +4 -4
  91. data/assets/stylesheets/luda/default/behaviours/_readonly.sass +4 -4
  92. data/assets/stylesheets/luda/default/behaviours/_toggle.sass +4 -4
  93. data/assets/stylesheets/luda/default/collections/_alert.sass +5 -5
  94. data/assets/stylesheets/luda/default/collections/_avatar.sass +6 -6
  95. data/assets/stylesheets/luda/default/collections/_breadcrumb.sass +5 -5
  96. data/assets/stylesheets/luda/default/collections/_button-group.sass +6 -6
  97. data/assets/stylesheets/luda/default/collections/_button-icon.sass +7 -7
  98. data/assets/stylesheets/luda/default/collections/_carousel.sass +6 -6
  99. data/assets/stylesheets/luda/default/collections/_dropdown.sass +7 -7
  100. data/assets/stylesheets/luda/default/collections/_form-button.sass +8 -8
  101. data/assets/stylesheets/luda/default/collections/_form-dropdown.sass +7 -7
  102. data/assets/stylesheets/luda/default/collections/_form-group.sass +10 -10
  103. data/assets/stylesheets/luda/default/collections/_form-icon.sass +7 -7
  104. data/assets/stylesheets/luda/default/collections/_media.sass +6 -6
  105. data/assets/stylesheets/luda/default/collections/_modal.sass +6 -6
  106. data/assets/stylesheets/luda/default/collections/_nav.sass +9 -9
  107. data/assets/stylesheets/luda/default/collections/_tab.sass +8 -8
  108. data/assets/stylesheets/luda/default/elements/_badge.sass +5 -5
  109. data/assets/stylesheets/luda/default/elements/_baseline.sass +5 -5
  110. data/assets/stylesheets/luda/default/elements/_button.sass +6 -6
  111. data/assets/stylesheets/luda/default/elements/_container.sass +5 -5
  112. data/assets/stylesheets/luda/default/elements/_form.sass +12 -12
  113. data/assets/stylesheets/luda/default/elements/_grid.sass +5 -5
  114. data/assets/stylesheets/luda/default/elements/_icon.sass +5 -5
  115. data/assets/stylesheets/luda/default/elements/_overlay.sass +5 -5
  116. data/assets/stylesheets/luda/default/elements/_progress.sass +5 -5
  117. data/assets/stylesheets/luda/default/elements/_scrollbar.sass +5 -5
  118. data/assets/stylesheets/luda/default/elements/_table.sass +5 -5
  119. data/assets/stylesheets/luda/default/elements/_turbolinks-progress-bar.sass +5 -5
  120. data/assets/stylesheets/luda/default/elements/_typography.sass +11 -11
  121. data/assets/stylesheets/luda/default/elements/form/_form-check-radio.sass +4 -4
  122. data/assets/stylesheets/luda/default/elements/form/_form-element.sass +4 -4
  123. data/assets/stylesheets/luda/default/elements/form/_form-helper.sass +4 -4
  124. data/assets/stylesheets/luda/default/elements/form/_form-label.sass +4 -4
  125. data/assets/stylesheets/luda/default/elements/form/_form-range.sass +4 -4
  126. data/assets/stylesheets/luda/default/elements/form/_form-row.sass +4 -4
  127. data/assets/stylesheets/luda/default/elements/typography/_code.sass +4 -4
  128. data/assets/stylesheets/luda/default/elements/typography/_link.sass +4 -4
  129. data/assets/stylesheets/luda/default/elements/typography/_list.sass +3 -3
  130. data/assets/stylesheets/luda/default/elements/typography/_mark.sass +4 -4
  131. data/assets/stylesheets/luda/default/elements/typography/_quote.sass +4 -4
  132. data/assets/stylesheets/luda/default/elements/typography/_sub-sup.sass +4 -4
  133. data/assets/stylesheets/luda/default/elements/typography/_typography.sass +4 -4
  134. data/assets/stylesheets/luda/default/index.sass +55 -55
  135. data/assets/stylesheets/luda/default/utilities/_align.sass +4 -4
  136. data/assets/stylesheets/luda/default/utilities/_background.sass +4 -4
  137. data/assets/stylesheets/luda/default/utilities/_color.sass +4 -4
  138. data/assets/stylesheets/luda/default/utilities/_display.sass +4 -4
  139. data/assets/stylesheets/luda/default/utilities/_flex.sass +4 -4
  140. data/assets/stylesheets/luda/default/utilities/_float.sass +4 -4
  141. data/assets/stylesheets/luda/default/utilities/_opacity.sass +4 -4
  142. data/assets/stylesheets/luda/default/utilities/_overflow.sass +4 -4
  143. data/assets/stylesheets/luda/default/utilities/_position.sass +4 -4
  144. data/assets/stylesheets/luda/default/utilities/_shape.sass +4 -4
  145. data/assets/stylesheets/luda/default/utilities/_size.sass +4 -4
  146. data/assets/stylesheets/luda/default/utilities/_space.sass +4 -4
  147. data/assets/stylesheets/luda/default/utilities/_text.sass +4 -4
  148. data/assets/stylesheets/luda/default/utilities/_visibility.sass +4 -4
  149. data/assets/stylesheets/luda/default/utilities/_z-index.sass +4 -4
  150. data/lib/luda.rb +72 -72
  151. data/lib/luda/engine.rb +11 -11
  152. data/lib/luda/version.rb +1 -1
  153. metadata +3 -74
  154. data/assets/stylesheets/luda/core/_base.sass +0 -430
  155. data/assets/stylesheets/luda/core/_functions.sass +0 -240
  156. data/assets/stylesheets/luda/core/_variables.sass +0 -710
  157. data/assets/stylesheets/luda/core/behaviours/_disabled.sass +0 -12
  158. data/assets/stylesheets/luda/core/behaviours/_focus.sass +0 -7
  159. data/assets/stylesheets/luda/core/behaviours/_readonly.sass +0 -16
  160. data/assets/stylesheets/luda/core/behaviours/_toggle.sass +0 -4
  161. data/assets/stylesheets/luda/core/collections/_alert.sass +0 -24
  162. data/assets/stylesheets/luda/core/collections/_avatar.sass +0 -117
  163. data/assets/stylesheets/luda/core/collections/_breadcrumb.sass +0 -21
  164. data/assets/stylesheets/luda/core/collections/_button-group.sass +0 -67
  165. data/assets/stylesheets/luda/core/collections/_button-icon.sass +0 -46
  166. data/assets/stylesheets/luda/core/collections/_carousel.sass +0 -132
  167. data/assets/stylesheets/luda/core/collections/_dropdown.sass +0 -60
  168. data/assets/stylesheets/luda/core/collections/_form-button.sass +0 -23
  169. data/assets/stylesheets/luda/core/collections/_form-dropdown.sass +0 -21
  170. data/assets/stylesheets/luda/core/collections/_form-group.sass +0 -48
  171. data/assets/stylesheets/luda/core/collections/_form-icon.sass +0 -71
  172. data/assets/stylesheets/luda/core/collections/_media.sass +0 -55
  173. data/assets/stylesheets/luda/core/collections/_modal.sass +0 -12
  174. data/assets/stylesheets/luda/core/collections/_nav.sass +0 -162
  175. data/assets/stylesheets/luda/core/collections/_tab.sass +0 -18
  176. data/assets/stylesheets/luda/core/elements/_badge.sass +0 -19
  177. data/assets/stylesheets/luda/core/elements/_baseline.sass +0 -22
  178. data/assets/stylesheets/luda/core/elements/_button.sass +0 -136
  179. data/assets/stylesheets/luda/core/elements/_container.sass +0 -8
  180. data/assets/stylesheets/luda/core/elements/_grid.sass +0 -55
  181. data/assets/stylesheets/luda/core/elements/_icon.sass +0 -110
  182. data/assets/stylesheets/luda/core/elements/_overlay.sass +0 -11
  183. data/assets/stylesheets/luda/core/elements/_progress.sass +0 -31
  184. data/assets/stylesheets/luda/core/elements/_scrollbar.sass +0 -21
  185. data/assets/stylesheets/luda/core/elements/_table.sass +0 -102
  186. data/assets/stylesheets/luda/core/elements/_turbolinks-progress-bar.sass +0 -5
  187. data/assets/stylesheets/luda/core/elements/form/_form-check-radio.sass +0 -105
  188. data/assets/stylesheets/luda/core/elements/form/_form-element.sass +0 -83
  189. data/assets/stylesheets/luda/core/elements/form/_form-helper.sass +0 -66
  190. data/assets/stylesheets/luda/core/elements/form/_form-label.sass +0 -20
  191. data/assets/stylesheets/luda/core/elements/form/_form-range.sass +0 -92
  192. data/assets/stylesheets/luda/core/elements/form/_form-row.sass +0 -214
  193. data/assets/stylesheets/luda/core/elements/typography/_code.sass +0 -27
  194. data/assets/stylesheets/luda/core/elements/typography/_link.sass +0 -15
  195. data/assets/stylesheets/luda/core/elements/typography/_list.sass +0 -14
  196. data/assets/stylesheets/luda/core/elements/typography/_mark.sass +0 -7
  197. data/assets/stylesheets/luda/core/elements/typography/_quote.sass +0 -68
  198. data/assets/stylesheets/luda/core/elements/typography/_sub-sup.sass +0 -16
  199. data/assets/stylesheets/luda/core/elements/typography/_typography.sass +0 -52
  200. data/assets/stylesheets/luda/core/mixins/_browser.sass +0 -15
  201. data/assets/stylesheets/luda/core/mixins/_button.sass +0 -90
  202. data/assets/stylesheets/luda/core/mixins/_dropdown.sass +0 -40
  203. data/assets/stylesheets/luda/core/mixins/_focus.sass +0 -3
  204. data/assets/stylesheets/luda/core/mixins/_form.sass +0 -27
  205. data/assets/stylesheets/luda/core/mixins/_install.sass +0 -7
  206. data/assets/stylesheets/luda/core/mixins/_media-query.sass +0 -66
  207. data/assets/stylesheets/luda/core/mixins/_overlay.sass +0 -14
  208. data/assets/stylesheets/luda/core/mixins/_sass-lint-fix.sass +0 -3
  209. data/assets/stylesheets/luda/core/mixins/_typography.sass +0 -40
  210. data/assets/stylesheets/luda/core/utilities/_align.sass +0 -19
  211. data/assets/stylesheets/luda/core/utilities/_background.sass +0 -88
  212. data/assets/stylesheets/luda/core/utilities/_color.sass +0 -36
  213. data/assets/stylesheets/luda/core/utilities/_display.sass +0 -40
  214. data/assets/stylesheets/luda/core/utilities/_flex.sass +0 -114
  215. data/assets/stylesheets/luda/core/utilities/_float.sass +0 -21
  216. data/assets/stylesheets/luda/core/utilities/_opacity.sass +0 -19
  217. data/assets/stylesheets/luda/core/utilities/_overflow.sass +0 -18
  218. data/assets/stylesheets/luda/core/utilities/_position.sass +0 -48
  219. data/assets/stylesheets/luda/core/utilities/_shape.sass +0 -62
  220. data/assets/stylesheets/luda/core/utilities/_size.sass +0 -67
  221. data/assets/stylesheets/luda/core/utilities/_space.sass +0 -227
  222. data/assets/stylesheets/luda/core/utilities/_text.sass +0 -85
  223. data/assets/stylesheets/luda/core/utilities/_visibility.sass +0 -11
  224. data/assets/stylesheets/luda/core/utilities/_z-index.sass +0 -19
@@ -1,27 +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
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
27
  border-radius: if($typography-code-border-radius, 0, null)
@@ -1,15 +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
-
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
15
  +typo-link(light, $typography-link-light-color, $typography-link-light-hover-color, $typography-link-light-active-color)
@@ -1,14 +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
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
14
  font-weight: 700
@@ -1,7 +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
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
7
  border-radius: $typography-mark-border-radius
@@ -1,68 +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: ""
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
68
  border-style: solid
@@ -1,16 +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
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
16
  font-feature-settings: "sups" 1
@@ -1,52 +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
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
52
  line-height: 0 !important
@@ -1,15 +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)
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
15
  @content
@@ -1,90 +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
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
90
  text-shadow: $active-text-shadow