bedrock_sass 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/_normalize.scss +3 -0
  3. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  4. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  5. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  6. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  7. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
  8. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  9. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  10. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  11. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  12. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  13. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  14. data/assets/_vendor/foundation/scss/_global.scss +249 -0
  15. data/assets/_vendor/foundation/scss/components/_accordion-menu.scss +171 -0
  16. data/assets/_vendor/foundation/scss/components/_accordion.scss +155 -0
  17. data/assets/_vendor/foundation/scss/components/_badge.scss +63 -0
  18. data/assets/_vendor/foundation/scss/components/_breadcrumbs.scss +117 -0
  19. data/assets/_vendor/foundation/scss/components/_button-group.scss +253 -0
  20. data/assets/_vendor/foundation/scss/components/_button.scss +385 -0
  21. data/assets/_vendor/foundation/scss/components/_callout.scss +106 -0
  22. data/assets/_vendor/foundation/scss/components/_card.scss +129 -0
  23. data/assets/_vendor/foundation/scss/components/_close-button.scss +102 -0
  24. data/assets/_vendor/foundation/scss/components/_drilldown.scss +142 -0
  25. data/assets/_vendor/foundation/scss/components/_dropdown-menu.scss +274 -0
  26. data/assets/_vendor/foundation/scss/components/_dropdown.scss +79 -0
  27. data/assets/_vendor/foundation/scss/components/_flex-video.scss +1 -0
  28. data/assets/_vendor/foundation/scss/components/_flex.scss +117 -0
  29. data/assets/_vendor/foundation/scss/components/_float.scss +27 -0
  30. data/assets/_vendor/foundation/scss/components/_label.scss +64 -0
  31. data/assets/_vendor/foundation/scss/components/_media-object.scss +114 -0
  32. data/assets/_vendor/foundation/scss/components/_menu-icon.scss +9 -0
  33. data/assets/_vendor/foundation/scss/components/_menu.scss +495 -0
  34. data/assets/_vendor/foundation/scss/components/_off-canvas.scss +506 -0
  35. data/assets/_vendor/foundation/scss/components/_orbit.scss +196 -0
  36. data/assets/_vendor/foundation/scss/components/_pagination.scss +193 -0
  37. data/assets/_vendor/foundation/scss/components/_progress-bar.scss +64 -0
  38. data/assets/_vendor/foundation/scss/components/_responsive-embed.scss +70 -0
  39. data/assets/_vendor/foundation/scss/components/_reveal.scss +180 -0
  40. data/assets/_vendor/foundation/scss/components/_slider.scss +137 -0
  41. data/assets/_vendor/foundation/scss/components/_sticky.scss +39 -0
  42. data/assets/_vendor/foundation/scss/components/_switch.scss +247 -0
  43. data/assets/_vendor/foundation/scss/components/_table.scss +330 -0
  44. data/assets/_vendor/foundation/scss/components/_tabs.scss +196 -0
  45. data/assets/_vendor/foundation/scss/components/_thumbnail.scss +67 -0
  46. data/assets/_vendor/foundation/scss/components/_title-bar.scss +84 -0
  47. data/assets/_vendor/foundation/scss/components/_tooltip.scss +160 -0
  48. data/assets/_vendor/foundation/scss/components/_top-bar.scss +175 -0
  49. data/assets/_vendor/foundation/scss/components/_visibility.scss +132 -0
  50. data/assets/_vendor/foundation/scss/forms/_checkbox.scss +41 -0
  51. data/assets/_vendor/foundation/scss/forms/_error.scss +88 -0
  52. data/assets/_vendor/foundation/scss/forms/_fieldset.scss +53 -0
  53. data/assets/_vendor/foundation/scss/forms/_forms.scss +34 -0
  54. data/assets/_vendor/foundation/scss/forms/_help-text.scss +30 -0
  55. data/assets/_vendor/foundation/scss/forms/_input-group.scss +142 -0
  56. data/assets/_vendor/foundation/scss/forms/_label.scss +50 -0
  57. data/assets/_vendor/foundation/scss/forms/_meter.scss +116 -0
  58. data/assets/_vendor/foundation/scss/forms/_progress.scss +94 -0
  59. data/assets/_vendor/foundation/scss/forms/_range.scss +149 -0
  60. data/assets/_vendor/foundation/scss/forms/_select.scss +86 -0
  61. data/assets/_vendor/foundation/scss/forms/_text.scss +179 -0
  62. data/assets/_vendor/foundation/scss/foundation.scss +133 -0
  63. data/assets/_vendor/foundation/scss/grid/_classes.scss +176 -0
  64. data/assets/_vendor/foundation/scss/grid/_column.scss +112 -0
  65. data/assets/_vendor/foundation/scss/grid/_flex-grid.scss +259 -0
  66. data/assets/_vendor/foundation/scss/grid/_grid.scss +48 -0
  67. data/assets/_vendor/foundation/scss/grid/_gutter.scss +82 -0
  68. data/assets/_vendor/foundation/scss/grid/_layout.scss +76 -0
  69. data/assets/_vendor/foundation/scss/grid/_position.scss +76 -0
  70. data/assets/_vendor/foundation/scss/grid/_row.scss +99 -0
  71. data/assets/_vendor/foundation/scss/grid/_size.scss +24 -0
  72. data/assets/_vendor/foundation/scss/prototype/_arrow.scss +36 -0
  73. data/assets/_vendor/foundation/scss/prototype/_border-box.scss +35 -0
  74. data/assets/_vendor/foundation/scss/prototype/_border-none.scss +35 -0
  75. data/assets/_vendor/foundation/scss/prototype/_bordered.scss +54 -0
  76. data/assets/_vendor/foundation/scss/prototype/_box.scss +23 -0
  77. data/assets/_vendor/foundation/scss/prototype/_display.scss +50 -0
  78. data/assets/_vendor/foundation/scss/prototype/_font-styling.scss +95 -0
  79. data/assets/_vendor/foundation/scss/prototype/_list-style-type.scss +95 -0
  80. data/assets/_vendor/foundation/scss/prototype/_overflow.scss +72 -0
  81. data/assets/_vendor/foundation/scss/prototype/_position.scss +114 -0
  82. data/assets/_vendor/foundation/scss/prototype/_prototype.scss +87 -0
  83. data/assets/_vendor/foundation/scss/prototype/_relation.scss +157 -0
  84. data/assets/_vendor/foundation/scss/prototype/_rotate.scss +31 -0
  85. data/assets/_vendor/foundation/scss/prototype/_rounded.scss +54 -0
  86. data/assets/_vendor/foundation/scss/prototype/_separator.scss +96 -0
  87. data/assets/_vendor/foundation/scss/prototype/_shadow.scss +43 -0
  88. data/assets/_vendor/foundation/scss/prototype/_sizing.scss +73 -0
  89. data/assets/_vendor/foundation/scss/prototype/_spacing.scss +204 -0
  90. data/assets/_vendor/foundation/scss/prototype/_text-decoration.scss +48 -0
  91. data/assets/_vendor/foundation/scss/prototype/_text-transformation.scss +48 -0
  92. data/assets/_vendor/foundation/scss/prototype/_text-utilities.scss +88 -0
  93. data/assets/_vendor/foundation/scss/settings/_settings.scss +869 -0
  94. data/assets/_vendor/foundation/scss/typography/_alignment.scss +22 -0
  95. data/assets/_vendor/foundation/scss/typography/_base.scss +509 -0
  96. data/assets/_vendor/foundation/scss/typography/_helpers.scss +80 -0
  97. data/assets/_vendor/foundation/scss/typography/_print.scss +86 -0
  98. data/assets/_vendor/foundation/scss/typography/_typography.scss +26 -0
  99. data/assets/_vendor/foundation/scss/util/_breakpoint.scss +348 -0
  100. data/assets/_vendor/foundation/scss/util/_color.scss +129 -0
  101. data/assets/_vendor/foundation/scss/util/_direction.scss +31 -0
  102. data/assets/_vendor/foundation/scss/util/_flex.scss +85 -0
  103. data/assets/_vendor/foundation/scss/util/_math.scss +72 -0
  104. data/assets/_vendor/foundation/scss/util/_mixins.scss +313 -0
  105. data/assets/_vendor/foundation/scss/util/_selector.scss +41 -0
  106. data/assets/_vendor/foundation/scss/util/_typography.scss +26 -0
  107. data/assets/_vendor/foundation/scss/util/_unit.scss +152 -0
  108. data/assets/_vendor/foundation/scss/util/_util.scss +14 -0
  109. data/assets/_vendor/foundation/scss/util/_value.scss +160 -0
  110. data/assets/_vendor/foundation/scss/xy-grid/_cell.scss +169 -0
  111. data/assets/_vendor/foundation/scss/xy-grid/_classes.scss +476 -0
  112. data/assets/_vendor/foundation/scss/xy-grid/_collapse.scss +74 -0
  113. data/assets/_vendor/foundation/scss/xy-grid/_frame.scss +85 -0
  114. data/assets/_vendor/foundation/scss/xy-grid/_grid.scss +35 -0
  115. data/assets/_vendor/foundation/scss/xy-grid/_gutters.scss +45 -0
  116. data/assets/_vendor/foundation/scss/xy-grid/_layout.scss +33 -0
  117. data/assets/_vendor/foundation/scss/xy-grid/_position.scss +28 -0
  118. data/assets/_vendor/foundation/scss/xy-grid/_xy-grid.scss +51 -0
  119. data/assets/_vendor/motion-ui/_classes.scss +109 -0
  120. data/assets/_vendor/motion-ui/_settings.scss +61 -0
  121. data/assets/_vendor/motion-ui/effects/_fade.scss +32 -0
  122. data/assets/_vendor/motion-ui/effects/_hinge.scss +65 -0
  123. data/assets/_vendor/motion-ui/effects/_shake.scss +15 -0
  124. data/assets/_vendor/motion-ui/effects/_slide.scss +41 -0
  125. data/assets/_vendor/motion-ui/effects/_spin.scss +28 -0
  126. data/assets/_vendor/motion-ui/effects/_wiggle.scss +13 -0
  127. data/assets/_vendor/motion-ui/effects/_zoom.scss +15 -0
  128. data/assets/_vendor/motion-ui/motion-ui.scss +29 -0
  129. data/assets/_vendor/motion-ui/transitions/_fade.scss +28 -0
  130. data/assets/_vendor/motion-ui/transitions/_hinge.scss +43 -0
  131. data/assets/_vendor/motion-ui/transitions/_slide.scss +42 -0
  132. data/assets/_vendor/motion-ui/transitions/_spin.scss +39 -0
  133. data/assets/_vendor/motion-ui/transitions/_zoom.scss +39 -0
  134. data/assets/_vendor/motion-ui/util/_animation.scss +7 -0
  135. data/assets/_vendor/motion-ui/util/_args.scss +15 -0
  136. data/assets/_vendor/motion-ui/util/_keyframe.scss +136 -0
  137. data/assets/_vendor/motion-ui/util/_selector.scss +23 -0
  138. data/assets/_vendor/motion-ui/util/_series.scss +54 -0
  139. data/assets/_vendor/motion-ui/util/_transition.scss +45 -0
  140. data/assets/_vendor/motion-ui/util/_unit.scss +7 -0
  141. data/assets/bedrock/js/bedrock.js +22993 -0
  142. data/assets/bedrock/scss/_bedrock-components.scss +15 -0
  143. data/assets/bedrock/scss/_bedrock-settings.scss +45 -0
  144. data/assets/bedrock/scss/_foundation-components.scss +50 -0
  145. data/assets/bedrock/scss/_foundation-settings.scss +869 -0
  146. data/assets/bedrock/scss/bedrock.scss +7 -0
  147. data/assets/bedrock/scss/components/global.scss +55 -0
  148. data/assets/bedrock/scss/components/header.scss +60 -0
  149. data/assets/bedrock/scss/components/helper-classes.scss +53 -0
  150. data/assets/bedrock/scss/components/logo-bar.scss +45 -0
  151. data/assets/bedrock/scss/components/off-canvas-menu.scss +359 -0
  152. data/assets/bedrock/scss/components/panel.scss +121 -0
  153. data/assets/bedrock/scss/components/tiny-mce-editor.scss +74 -0
  154. data/lib/bedrock_sass/version.rb +1 -1
  155. metadata +153 -2
@@ -0,0 +1,22 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @mixin foundation-text-alignment {
6
+ @each $size in $breakpoint-classes {
7
+ @include breakpoint($size) {
8
+ @each $align in (left, right, center, justify) {
9
+ @if $size != $-zf-zero-breakpoint {
10
+ .#{$size}-text-#{$align} {
11
+ text-align: $align;
12
+ }
13
+ }
14
+ @else {
15
+ .text-#{$align} {
16
+ text-align: $align;
17
+ }
18
+ }
19
+ }
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,509 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group typography-base
7
+ ////
8
+
9
+ // Base Typography
10
+ // - - - - - - - - - - - - - - -
11
+ // These are styles applied to basic HTML tags, including:
12
+ // - Paragraphs <p>
13
+ // - Bold/italics <b> <strong> <i> <em>
14
+ // - Small text <small>
15
+ // - Headings <h1>-<h6>
16
+ // - Anchors <a>
17
+ // - Dividers <hr>
18
+ // - Lists <ul> <ol> <dl>
19
+ // - Blockquotes <blockquote>
20
+ // - Code blocks <code>
21
+ // - Abbreviations <abbr>
22
+ // - Citations <cite>
23
+ // - Keystrokes <kbd>
24
+
25
+ /// Font family for header elements.
26
+ /// @type String | List
27
+ $header-font-family: $body-font-family !default;
28
+
29
+ /// Font weight of headers.
30
+ /// @type String
31
+ $header-font-weight: $global-weight-normal !default;
32
+
33
+ /// Font style (e.g. italicized) of headers.
34
+ /// @type String
35
+ $header-font-style: normal !default;
36
+
37
+ /// Font stack used for elements that use monospaced type, such as code samples
38
+ /// @type String | List
39
+ $font-family-monospace: Consolas, 'Liberation Mono', Courier, monospace !default;
40
+
41
+ /// Color of headers.
42
+ /// @type Color
43
+ $header-color: inherit !default;
44
+
45
+ /// Line height of headers.
46
+ /// @type Number
47
+ $header-lineheight: 1.4 !default;
48
+
49
+ /// Bottom margin of headers.
50
+ /// @type Number
51
+ $header-margin-bottom: 0.5rem !default;
52
+
53
+ /// Styles for headings at various screen sizes. Each key is a breakpoint, and each value is a map of heading styles.
54
+ /// @type Map
55
+ $header-styles: (
56
+ small: (
57
+ 'h1': ('font-size': 24),
58
+ 'h2': ('font-size': 20),
59
+ 'h3': ('font-size': 19),
60
+ 'h4': ('font-size': 18),
61
+ 'h5': ('font-size': 17),
62
+ 'h6': ('font-size': 16),
63
+ ),
64
+ medium: (
65
+ 'h1': ('font-size': 48),
66
+ 'h2': ('font-size': 40),
67
+ 'h3': ('font-size': 31),
68
+ 'h4': ('font-size': 25),
69
+ 'h5': ('font-size': 20),
70
+ 'h6': ('font-size': 16),
71
+ ),
72
+ ) !default;
73
+
74
+ // $header-styles map is built from $header-sizes in order to ensure downward compatibility
75
+ // when $header-sizes is depreciated, $header-styles needs to get !default values like settings.scss
76
+ @function build_from_header-sizes($header-sizes) {
77
+ @warn 'Note, that $header-sizes has been replaced with $header-styles. $header-sizes still works, but it is going to be depreciated.';
78
+ $header-styles: ();
79
+ @each $size, $headers in $header-sizes {
80
+ $header-map: ();
81
+ @each $header, $font-size in $headers {
82
+ $header-map: map-merge($header-map, ($header: ('font-size': $font-size)));
83
+ }
84
+ $header-styles: map-merge($header-styles, ($size: $header-map));
85
+ }
86
+ @return $header-styles;
87
+ }
88
+
89
+ // If it exists $headers-sizes is used to build $header-styles. See the documentation.
90
+ @if variable-exists(header-sizes) {
91
+ $header-styles: build_from_header-sizes($header-sizes);
92
+ }
93
+
94
+ /// Text rendering method of headers.
95
+ /// @type String
96
+ $header-text-rendering: optimizeLegibility !default;
97
+
98
+ /// Font size of `<small>` elements.
99
+ /// @type Number
100
+ $small-font-size: 80% !default;
101
+
102
+ /// Color of `<small>` elements when placed inside headers.
103
+ /// @type Color
104
+ $header-small-font-color: $medium-gray !default;
105
+
106
+ /// Line height of text inside `<p>` elements.
107
+ /// @type Number
108
+ $paragraph-lineheight: 1.6 !default;
109
+
110
+ /// Bottom margin of paragraphs.
111
+ /// @type Number
112
+ $paragraph-margin-bottom: 1rem !default;
113
+
114
+ /// Text rendering method for paragraph text.
115
+ /// @type String
116
+ $paragraph-text-rendering: optimizeLegibility !default;
117
+
118
+ /// Text color of code samples.
119
+ /// @type Color
120
+ $code-color: $black !default;
121
+
122
+ /// Font family of code samples.
123
+ /// @type String | List
124
+ $code-font-family: $font-family-monospace !default;
125
+
126
+ /// Font weight of text in code samples.
127
+ /// @type String
128
+ $code-font-weight: $global-weight-normal !default;
129
+
130
+ /// Background color of code samples.
131
+ /// @type Color
132
+ $code-background: $light-gray !default;
133
+
134
+ /// Border around code samples.
135
+ /// @type List
136
+ $code-border: 1px solid $medium-gray !default;
137
+
138
+ /// Padding around text of code samples.
139
+ /// @type Number | List
140
+ $code-padding: rem-calc(2 5 1) !default;
141
+
142
+ /// Default color for links.
143
+ /// @type Color
144
+ $anchor-color: $primary-color !default;
145
+
146
+ /// Default color for links on hover.
147
+ /// @type Color
148
+ $anchor-color-hover: scale-color($anchor-color, $lightness: -14%) !default;
149
+
150
+ /// Default text decoration for links.
151
+ /// @type String
152
+ $anchor-text-decoration: none !default;
153
+
154
+ /// Default text decoration for links on hover.
155
+ /// @type String
156
+ $anchor-text-decoration-hover: none !default;
157
+
158
+ /// Maximum width of a divider.
159
+ /// @type Number
160
+ $hr-width: $global-width !default;
161
+
162
+ /// Default border for a divider.
163
+ /// @type List
164
+ $hr-border: 1px solid $medium-gray !default;
165
+
166
+ /// Default margin for a divider.
167
+ /// @type Number | List
168
+ $hr-margin: rem-calc(20) auto !default;
169
+
170
+ /// Line height for items in a list.
171
+ /// @type Number
172
+ $list-lineheight: $paragraph-lineheight !default;
173
+
174
+ /// Bottom margin for items in a list.
175
+ /// @type Number
176
+ $list-margin-bottom: $paragraph-margin-bottom !default;
177
+
178
+ /// Bullet type to use for unordered lists (e.g., `square`, `circle`, `disc`).
179
+ /// @type String
180
+ $list-style-type: disc !default;
181
+
182
+ /// Positioning for bullets on unordered list items.
183
+ /// @type String
184
+ $list-style-position: outside !default;
185
+
186
+ /// Left (or right) margin for lists.
187
+ /// @type Number
188
+ $list-side-margin: 1.25rem !default;
189
+
190
+ /// Left (or right) margin for a list inside a list.
191
+ /// @type Number
192
+ $list-nested-side-margin: 1.25rem !default;
193
+
194
+ /// Bottom margin for `<dl>` elements.
195
+ /// @type Number
196
+ $defnlist-margin-bottom: 1rem !default;
197
+
198
+ /// Font weight for `<dt>` elements.
199
+ /// @type String
200
+ $defnlist-term-weight: $global-weight-bold !default;
201
+
202
+ /// Spacing between `<dt>` and `<dd>` elements.
203
+ /// @type Number
204
+ $defnlist-term-margin-bottom: 0.3rem !default;
205
+
206
+ /// Text color of `<blockquote>` elements.
207
+ /// @type Color
208
+ $blockquote-color: $dark-gray !default;
209
+
210
+ /// Padding inside a `<blockquote>` element.
211
+ /// @type Number | List
212
+ $blockquote-padding: rem-calc(9 20 0 19) !default;
213
+
214
+ /// Side border for `<blockquote>` elements.
215
+ /// @type List
216
+ $blockquote-border: 1px solid $medium-gray !default;
217
+
218
+ /// Font size for `<cite>` elements.
219
+ /// @type Number
220
+ $cite-font-size: rem-calc(13) !default;
221
+
222
+ /// Text color for `<cite>` elements.
223
+ /// @type Color
224
+ $cite-color: $dark-gray !default;
225
+
226
+ /// Pseudo content for `<cite>` elements.
227
+ /// @type String
228
+ $cite-pseudo-content: '\2014 \0020' !default;
229
+
230
+ /// Font family for `<kbd>` elements.
231
+ /// @type String | List
232
+ $keystroke-font: $font-family-monospace !default;
233
+
234
+ /// Text color for `<kbd>` elements.
235
+ /// @type Color
236
+ $keystroke-color: $black !default;
237
+
238
+ /// Background color for `<kbd>` elements.
239
+ /// @type Color
240
+ $keystroke-background: $light-gray !default;
241
+
242
+ /// Padding for `<kbd>` elements.
243
+ /// @type Number | List
244
+ $keystroke-padding: rem-calc(2 4 0) !default;
245
+
246
+ /// Border radius for `<kbd>` elements.
247
+ /// @type Number | List
248
+ $keystroke-radius: $global-radius !default;
249
+
250
+ /// Bottom border style for `<abbr>` elements.
251
+ /// @type List
252
+ $abbr-underline: 1px dotted $black !default;
253
+
254
+ @mixin foundation-typography-base {
255
+ // Typography resets
256
+ div,
257
+ dl,
258
+ dt,
259
+ dd,
260
+ ul,
261
+ ol,
262
+ li,
263
+ h1,
264
+ h2,
265
+ h3,
266
+ h4,
267
+ h5,
268
+ h6,
269
+ pre,
270
+ form,
271
+ p,
272
+ blockquote,
273
+ th,
274
+ td {
275
+ margin: 0;
276
+ padding: 0;
277
+ }
278
+
279
+ // Paragraphs
280
+ p {
281
+ margin-bottom: $paragraph-margin-bottom;
282
+
283
+ font-size: inherit;
284
+ line-height: $paragraph-lineheight;
285
+ text-rendering: $paragraph-text-rendering;
286
+ }
287
+
288
+ // Emphasized text
289
+ em,
290
+ i {
291
+ font-style: italic;
292
+ line-height: inherit;
293
+ }
294
+
295
+ // Strong text
296
+ strong,
297
+ b {
298
+ font-weight: $global-weight-bold;
299
+ line-height: inherit;
300
+ }
301
+
302
+ // Small text
303
+ small {
304
+ font-size: $small-font-size;
305
+ line-height: inherit;
306
+ }
307
+
308
+ // Headings
309
+ h1, .h1,
310
+ h2, .h2,
311
+ h3, .h3,
312
+ h4, .h4,
313
+ h5, .h5,
314
+ h6, .h6 {
315
+ font-family: $header-font-family;
316
+ font-style: $header-font-style;
317
+ font-weight: $header-font-weight;
318
+ color: $header-color;
319
+ text-rendering: $header-text-rendering;
320
+
321
+ small {
322
+ line-height: 0;
323
+ color: $header-small-font-color;
324
+ }
325
+ }
326
+
327
+ // Heading styles
328
+ @each $size, $headers in $header-styles {
329
+ @include breakpoint($size) {
330
+ @each $header, $header-defs in $headers {
331
+ $font-size-temp: 1rem;
332
+ #{$header}, .#{$header} {
333
+
334
+ @if map-has-key($header-defs, font-size) {
335
+ $font-size-temp: rem-calc(map-get($header-defs, font-size));
336
+ font-size: $font-size-temp;
337
+ } @else if map-has-key($header-defs, fs) {
338
+ $font-size-temp: rem-calc(map-get($header-defs, fs));
339
+ font-size: $font-size-temp;
340
+ } @else if $size == $-zf-zero-breakpoint {
341
+ font-size: $font-size-temp;
342
+ }
343
+ @if map-has-key($header-defs, line-height) {
344
+ line-height: unitless-calc(map-get($header-defs, line-height), $font-size-temp);
345
+ } @else if map-has-key($header-defs, lh) {
346
+ line-height: unitless-calc(map-get($header-defs, lh), $font-size-temp);
347
+ } @else if $size == $-zf-zero-breakpoint {
348
+ line-height: unitless-calc($header-lineheight, $font-size-temp);
349
+ }
350
+
351
+ @if map-has-key($header-defs, margin-top) {
352
+ margin-top: rem-calc(map-get($header-defs, margin-top));
353
+ } @else if map-has-key($header-defs, mt) {
354
+ margin-top: rem-calc(map-get($header-defs, mt));
355
+ } @else if $size == $-zf-zero-breakpoint {
356
+ margin-top: 0;
357
+ }
358
+ @if map-has-key($header-defs, margin-bottom) {
359
+ margin-bottom: rem-calc(map-get($header-defs, margin-bottom));
360
+ } @else if map-has-key($header-defs, mb) {
361
+ margin-bottom: rem-calc(map-get($header-defs, mb));
362
+ } @else if $size == $-zf-zero-breakpoint {
363
+ margin-bottom: rem-calc($header-margin-bottom);
364
+ }
365
+ }
366
+ }
367
+ }
368
+ }
369
+
370
+ // Links
371
+ a {
372
+ line-height: inherit;
373
+ color: $anchor-color;
374
+ text-decoration: $anchor-text-decoration;
375
+
376
+ cursor: pointer;
377
+
378
+ &:hover,
379
+ &:focus {
380
+ color: $anchor-color-hover;
381
+ @if $anchor-text-decoration-hover != $anchor-text-decoration {
382
+ text-decoration: $anchor-text-decoration-hover;
383
+ }
384
+ }
385
+
386
+ img {
387
+ border: 0;
388
+ }
389
+ }
390
+
391
+ // Horizontal rule
392
+ hr {
393
+ clear: both;
394
+
395
+ max-width: $hr-width;
396
+ height: 0;
397
+ margin: $hr-margin;
398
+
399
+ border-top: 0;
400
+ border-right: 0;
401
+ border-bottom: $hr-border;
402
+ border-left: 0;
403
+ }
404
+
405
+ // Lists
406
+ ul,
407
+ ol,
408
+ dl {
409
+ margin-bottom: $list-margin-bottom;
410
+ list-style-position: $list-style-position;
411
+ line-height: $list-lineheight;
412
+ }
413
+
414
+ // List items
415
+ li {
416
+ font-size: inherit;
417
+ }
418
+
419
+ // Unordered lists
420
+ ul {
421
+ margin-#{$global-left}: $list-side-margin;
422
+ list-style-type: $list-style-type;
423
+ }
424
+
425
+ // Ordered lists
426
+ ol {
427
+ margin-#{$global-left}: $list-side-margin;
428
+ }
429
+
430
+ // Nested unordered/ordered lists
431
+ ul, ol {
432
+ & & {
433
+ margin-#{$global-left}: $list-nested-side-margin;
434
+ margin-bottom: 0;
435
+ }
436
+ }
437
+
438
+ // Definition lists
439
+ dl {
440
+ margin-bottom: $defnlist-margin-bottom;
441
+
442
+ dt {
443
+ margin-bottom: $defnlist-term-margin-bottom;
444
+ font-weight: $defnlist-term-weight;
445
+ }
446
+ }
447
+
448
+ // Blockquotes
449
+ blockquote {
450
+ margin: 0 0 $paragraph-margin-bottom;
451
+ padding: $blockquote-padding;
452
+ border-#{$global-left}: $blockquote-border;
453
+
454
+ &, p {
455
+ line-height: $paragraph-lineheight;
456
+ color: $blockquote-color;
457
+ }
458
+ }
459
+
460
+ // Citations
461
+ cite {
462
+ display: block;
463
+ font-size: $cite-font-size;
464
+ color: $cite-color;
465
+
466
+ &:before {
467
+ content: $cite-pseudo-content;
468
+ }
469
+ }
470
+
471
+ // Abbreviations
472
+ abbr, abbr[title] {
473
+ border-bottom: $abbr-underline;
474
+ cursor: help;
475
+ text-decoration: none;
476
+ }
477
+
478
+ // Figures
479
+ figure {
480
+ margin: 0;
481
+ }
482
+
483
+ // Code
484
+ code {
485
+ padding: $code-padding;
486
+
487
+ border: $code-border;
488
+ background-color: $code-background;
489
+
490
+ font-family: $code-font-family;
491
+ font-weight: $code-font-weight;
492
+ color: $code-color;
493
+ }
494
+
495
+ // Keystrokes
496
+ kbd {
497
+ margin: 0;
498
+ padding: $keystroke-padding;
499
+
500
+ background-color: $keystroke-background;
501
+
502
+ font-family: $keystroke-font;
503
+ color: $keystroke-color;
504
+
505
+ @if has-value($keystroke-radius) {
506
+ border-radius: $keystroke-radius;
507
+ }
508
+ }
509
+ }
@@ -0,0 +1,80 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group typography-helpers
7
+ ////
8
+
9
+ /// Default font size for lead paragraphs.
10
+ /// @type Number
11
+ $lead-font-size: $global-font-size * 1.25 !default;
12
+
13
+ /// Default line height for lead paragraphs.
14
+ /// @type String
15
+ $lead-lineheight: 1.6 !default;
16
+
17
+ /// Default line height for subheaders.
18
+ /// @type Number
19
+ $subheader-lineheight: 1.4 !default;
20
+
21
+ /// Default font color for subheaders.
22
+ /// @type Color
23
+ $subheader-color: $dark-gray !default;
24
+
25
+ /// Default font weight for subheaders.
26
+ /// @type String
27
+ $subheader-font-weight: $global-weight-normal !default;
28
+
29
+ /// Default top margin for subhheaders.
30
+ /// @type Number
31
+ $subheader-margin-top: 0.2rem !default;
32
+
33
+ /// Default bottom margin for subheaders.
34
+ /// @type Number
35
+ $subheader-margin-bottom: 0.5rem !default;
36
+
37
+ /// Default font size for statistic numbers.
38
+ /// @type Number
39
+ $stat-font-size: 2.5rem !default;
40
+
41
+ @mixin foundation-typography-helpers {
42
+ // Use to create a subheading under a main header
43
+ // Make sure you pair the two elements in a <header> element, like this:
44
+ // <header>
45
+ // <h1>Heading</h1>
46
+ // <h2>Subheading</h2>
47
+ // </header>
48
+ .subheader {
49
+ margin-top: $subheader-margin-top;
50
+ margin-bottom: $subheader-margin-bottom;
51
+
52
+ font-weight: $subheader-font-weight;
53
+ line-height: $subheader-lineheight;
54
+ color: $subheader-color;
55
+ }
56
+
57
+ // Use to style an introductory lead, deck, blurb, etc.
58
+ .lead {
59
+ font-size: $lead-font-size;
60
+ line-height: $lead-lineheight;
61
+ }
62
+
63
+ // Use to style a large number to display a statistic
64
+ .stat {
65
+ font-size: $stat-font-size;
66
+ line-height: 1;
67
+
68
+ p + & {
69
+ margin-top: -1rem;
70
+ }
71
+ }
72
+
73
+ ul, ol {
74
+ // Use to remove numbers from ordered list & bullets from unordered list
75
+ &.no-bullet {
76
+ margin-#{$global-left}: 0;
77
+ list-style: none;
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,86 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ /// If `true`, all elements will have transparent backgrounds when printed, to save on ink.
6
+ /// @type Boolean
7
+ /// @group global
8
+ $print-transparent-backgrounds: true !default;
9
+ $print-hrefs: true !default;
10
+
11
+ // sass-lint:disable-all
12
+
13
+ @mixin foundation-print-styles {
14
+ .show-for-print { display: none !important; }
15
+
16
+ @media print {
17
+ * {
18
+ @if $print-transparent-backgrounds {
19
+ background: transparent !important;
20
+ }
21
+
22
+ box-shadow: none !important;
23
+
24
+ color: black !important; // Black prints faster: h5bp.com/s
25
+ text-shadow: none !important;
26
+ }
27
+
28
+ .show-for-print { display: block !important; }
29
+ .hide-for-print { display: none !important; }
30
+
31
+ table.show-for-print { display: table !important; }
32
+ thead.show-for-print { display: table-header-group !important; }
33
+ tbody.show-for-print { display: table-row-group !important; }
34
+ tr.show-for-print { display: table-row !important; }
35
+ td.show-for-print { display: table-cell !important; }
36
+ th.show-for-print { display: table-cell !important; }
37
+
38
+ // Display the URL of a link after the text
39
+ a,
40
+ a:visited { text-decoration: underline;}
41
+ @if $print-hrefs {
42
+ a[href]:after { content: ' (' attr(href) ')'; }
43
+ }
44
+
45
+ // Don't display the URL for images or JavaScript/internal links
46
+ .ir a:after,
47
+ a[href^='javascript:']:after,
48
+ a[href^='#']:after { content: ''; }
49
+
50
+ // Display what an abbreviation stands for after the text
51
+ abbr[title]:after { content: ' (' attr(title) ')'; }
52
+
53
+ // Prevent page breaks in the middle of a blockquote or preformatted text block
54
+ pre,
55
+ blockquote {
56
+ border: 1px solid $dark-gray;
57
+ page-break-inside: avoid;
58
+ }
59
+
60
+ // h5bp.com/t
61
+ thead { display: table-header-group; }
62
+
63
+ tr,
64
+ img { page-break-inside: avoid; }
65
+
66
+ img { max-width: 100% !important; }
67
+
68
+ @page { margin: 0.5cm; }
69
+
70
+ p,
71
+ h2,
72
+ h3 {
73
+ orphans: 3;
74
+ widows: 3;
75
+ }
76
+
77
+ // Avoid page breaks after a heading
78
+ h2,
79
+ h3 { page-break-after: avoid; }
80
+
81
+ // Helper to re-allow page breaks in the middle of certain elements (e.g. pre, blockquote, tr)
82
+ .print-break-inside {
83
+ page-break-inside: auto;
84
+ }
85
+ }
86
+ }