foundation-scss 6.3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/_vendor/normalize-scss/sass/_normalize.scss +3 -0
  3. data/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  4. data/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  5. data/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  6. data/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  7. data/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  8. data/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  9. data/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  10. data/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  11. data/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  12. data/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  13. data/foundation-scss.gemspec +9 -0
  14. data/lib/foundation/scss/in/sass_path.rb +6 -0
  15. data/scss/_global.scss +219 -0
  16. data/scss/components/_accordion-menu.scss +36 -0
  17. data/scss/components/_accordion.scss +150 -0
  18. data/scss/components/_badge.scss +63 -0
  19. data/scss/components/_breadcrumbs.scss +100 -0
  20. data/scss/components/_button-group.scss +253 -0
  21. data/scss/components/_button.scss +332 -0
  22. data/scss/components/_callout.scss +106 -0
  23. data/scss/components/_card.scss +121 -0
  24. data/scss/components/_close-button.scss +102 -0
  25. data/scss/components/_drilldown.scss +93 -0
  26. data/scss/components/_dropdown-menu.scss +226 -0
  27. data/scss/components/_dropdown.scss +72 -0
  28. data/scss/components/_flex-video.scss +1 -0
  29. data/scss/components/_flex.scss +34 -0
  30. data/scss/components/_float.scss +27 -0
  31. data/scss/components/_label.scss +64 -0
  32. data/scss/components/_media-object.scss +114 -0
  33. data/scss/components/_menu-icon.scss +9 -0
  34. data/scss/components/_menu.scss +376 -0
  35. data/scss/components/_off-canvas.scss +329 -0
  36. data/scss/components/_orbit.scss +196 -0
  37. data/scss/components/_pagination.scss +193 -0
  38. data/scss/components/_progress-bar.scss +64 -0
  39. data/scss/components/_responsive-embed.scss +70 -0
  40. data/scss/components/_reveal.scss +178 -0
  41. data/scss/components/_slider.scss +138 -0
  42. data/scss/components/_sticky.scss +38 -0
  43. data/scss/components/_switch.scss +247 -0
  44. data/scss/components/_table.scss +329 -0
  45. data/scss/components/_tabs.scss +196 -0
  46. data/scss/components/_thumbnail.scss +67 -0
  47. data/scss/components/_title-bar.scss +84 -0
  48. data/scss/components/_tooltip.scss +107 -0
  49. data/scss/components/_top-bar.scss +173 -0
  50. data/scss/components/_visibility.scss +132 -0
  51. data/scss/forms/_checkbox.scss +41 -0
  52. data/scss/forms/_error.scss +88 -0
  53. data/scss/forms/_fieldset.scss +54 -0
  54. data/scss/forms/_forms.scss +34 -0
  55. data/scss/forms/_help-text.scss +30 -0
  56. data/scss/forms/_input-group.scss +135 -0
  57. data/scss/forms/_label.scss +50 -0
  58. data/scss/forms/_meter.scss +110 -0
  59. data/scss/forms/_progress.scss +94 -0
  60. data/scss/forms/_range.scss +149 -0
  61. data/scss/forms/_select.scss +85 -0
  62. data/scss/forms/_text.scss +170 -0
  63. data/scss/foundation.scss +118 -0
  64. data/scss/grid/_classes.scss +176 -0
  65. data/scss/grid/_column.scss +112 -0
  66. data/scss/grid/_flex-grid.scss +312 -0
  67. data/scss/grid/_grid.scss +48 -0
  68. data/scss/grid/_gutter.scss +82 -0
  69. data/scss/grid/_layout.scss +76 -0
  70. data/scss/grid/_position.scss +76 -0
  71. data/scss/grid/_row.scss +99 -0
  72. data/scss/grid/_size.scss +24 -0
  73. data/scss/settings/_settings.scss +620 -0
  74. data/scss/typography/_alignment.scss +22 -0
  75. data/scss/typography/_base.scss +509 -0
  76. data/scss/typography/_helpers.scss +78 -0
  77. data/scss/typography/_print.scss +86 -0
  78. data/scss/typography/_typography.scss +26 -0
  79. data/scss/util/_breakpoint.scss +281 -0
  80. data/scss/util/_color.scss +126 -0
  81. data/scss/util/_direction.scss +31 -0
  82. data/scss/util/_flex.scss +85 -0
  83. data/scss/util/_math.scss +72 -0
  84. data/scss/util/_mixins.scss +276 -0
  85. data/scss/util/_selector.scss +41 -0
  86. data/scss/util/_typography.scss +26 -0
  87. data/scss/util/_unit.scss +152 -0
  88. data/scss/util/_util.scss +14 -0
  89. data/scss/util/_value.scss +160 -0
  90. metadata +144 -0
@@ -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 deocration 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,
310
+ h2,
311
+ h3,
312
+ h4,
313
+ h5,
314
+ 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} {
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 {
473
+ border-bottom: $abbr-underline;
474
+ color: $body-font-color;
475
+ cursor: help;
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
+ }