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,78 @@
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
+ // Use to remove the bullets from an unordered list
74
+ .no-bullet {
75
+ margin-#{$global-left}: 0;
76
+ list-style: none;
77
+ }
78
+ }
@@ -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
+ }
@@ -0,0 +1,26 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group typography
7
+ ////
8
+
9
+ // Base typography styles (tags only)
10
+ @import 'base';
11
+
12
+ // Typography helper classes (classes only)
13
+ @import 'helpers';
14
+
15
+ // Text alignment classes
16
+ @import 'alignment';
17
+
18
+ // Print styles
19
+ @import 'print';
20
+
21
+ @mixin foundation-typography {
22
+ @include foundation-typography-base;
23
+ @include foundation-typography-helpers;
24
+ @include foundation-text-alignment;
25
+ @include foundation-print-styles;
26
+ }
@@ -0,0 +1,281 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group breakpoints
7
+ ////
8
+
9
+ /// A list of named breakpoints. You can use these with the `breakpoint()` mixin to quickly create media queries.
10
+ /// @type Map
11
+ $breakpoints: (
12
+ small: 0,
13
+ medium: 640px,
14
+ large: 1024px,
15
+ xlarge: 1200px,
16
+ xxlarge: 1440px,
17
+ ) !default;
18
+
19
+ /// The largest named breakpoint in which to include print as a media type
20
+ /// @type Keyword
21
+ $print-breakpoint: large !default;
22
+
23
+ $-zf-zero-breakpoint: small !default;
24
+
25
+ $-zf-breakpoints-keys: map-to-list($breakpoints, 'keys');
26
+
27
+ @if nth(map-values($breakpoints), 1) != 0 {
28
+ @error 'Your smallest breakpoint (defined in $breakpoints) must be set to "0".';
29
+ }
30
+ @else {
31
+ $-zf-zero-breakpoint: nth(map-keys($breakpoints), 1);
32
+ }
33
+
34
+ /// All of the names in this list will be output as classes in your CSS, like `.small-12`, `.medium-6`, and so on. Each value in this list must also be in the `$breakpoints` map.
35
+ /// @type List
36
+ $breakpoint-classes: (small medium large) !default;
37
+
38
+ /// Generates a media query string matching the input value. Refer to the documentation for the `breakpoint()` mixin to see what the possible inputs are.
39
+ ///
40
+ /// @param {Keyword|Number} $val [small] - Breakpoint name, or px, rem, or em value to process.
41
+ @function breakpoint($val: $-zf-zero-breakpoint) {
42
+ // Size or keyword
43
+ $bp: nth($val, 1);
44
+ // Value for max-width media queries
45
+ $bp-max: 0;
46
+ // Direction of media query (up, down, or only)
47
+ $dir: if(length($val) > 1, nth($val, 2), up);
48
+ // Eventual output
49
+ $str: '';
50
+ // Is it a named media query?
51
+ $named: false;
52
+
53
+ // Orientation media queries have a unique syntax
54
+ @if $bp == 'landscape' or $bp == 'portrait' {
55
+ @return '(orientation: #{$bp})';
56
+ }
57
+ @else if $bp == 'retina' {
58
+ @return '(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)';
59
+ }
60
+
61
+ // Try to pull a named breakpoint out of the $breakpoints map
62
+ @if type-of($bp) == 'string' {
63
+ @if map-has-key($breakpoints, $bp) {
64
+ @if $dir == 'only' or $dir == 'down' {
65
+ $bp-max: -zf-map-next($breakpoints, $bp);
66
+ }
67
+
68
+ $bp: map-get($breakpoints, $bp);
69
+ $named: true;
70
+ }
71
+ @else {
72
+ $bp: 0;
73
+ @warn 'breakpoint(): "#{$val}" is not defined in your $breakpoints setting.';
74
+ }
75
+ }
76
+
77
+ // Convert any pixel, rem, or unitless value to em
78
+ $bp: -zf-bp-to-em($bp);
79
+ @if $bp-max {
80
+ $bp-max: -zf-bp-to-em($bp-max) - (1/16);
81
+ }
82
+
83
+ // Conditions to skip media query creation
84
+ // - It's a named breakpoint that resolved to "0 down" or "0 up"
85
+ // - It's a numeric breakpoint that resolved to "0 " + anything
86
+ @if $bp > 0em or $dir == 'only' or $dir == 'down' {
87
+ // `only` ranges use the format `(min-width: n) and (max-width: n)`
88
+ @if $dir == 'only' {
89
+ // Only named media queries can have an "only" range
90
+ @if $named == true {
91
+ // Only use "min-width" if the floor is greater than 0
92
+ @if $bp > 0em {
93
+ $str: $str + '(min-width: #{$bp})';
94
+
95
+ // Only add "and" to the media query if there's a ceiling
96
+ @if $bp-max != null {
97
+ $str: $str + ' and ';
98
+ }
99
+ }
100
+
101
+ // Only use "max-width" if there's a ceiling
102
+ @if $bp-max != null {
103
+ $str: $str + '(max-width: #{$bp-max})';
104
+ }
105
+ }
106
+ @else {
107
+ @warn 'breakpoint(): Only named media queries can have an `only` range.';
108
+ }
109
+ }
110
+
111
+ // `down` ranges use the format `(max-width: n)`
112
+ @else if $dir == 'down' {
113
+ $max: if($named, $bp-max, $bp);
114
+
115
+ // Skip media query creation if input value is exactly "0 down",
116
+ // unless the function was called as "small down", in which case it's just "small only"
117
+ @if $named or $bp > 0em {
118
+ @if $max != null {
119
+ $str: $str + '(max-width: #{$max})';
120
+ }
121
+ }
122
+ }
123
+
124
+ // `up` ranges use the format `(min-width: n)`
125
+ @else if $bp > 0em {
126
+ $str: $str + '(min-width: #{$bp})';
127
+ }
128
+ }
129
+
130
+ @return $str;
131
+ }
132
+
133
+ /// Wraps a media query around the content you put inside the mixin. This mixin accepts a number of values:
134
+ /// - If a string is passed, the mixin will look for it in the `$breakpoints` map, and use a media query there.
135
+ /// - If a pixel value is passed, it will be converted to an em value using `$global-font-size` as the base.
136
+ /// - If a rem value is passed, the unit will be changed to em.
137
+ /// - If an em value is passed, the value will be used as-is.
138
+ ///
139
+ /// @param {Keyword|Number} $value - Breakpoint name, or px, rem, or em value to process.
140
+ ///
141
+ /// @output If the breakpoint is "0px and larger", outputs the content as-is. Otherwise, outputs the content wrapped in a media query.
142
+ @mixin breakpoint($value) {
143
+ $str: breakpoint($value);
144
+ $bp: index($-zf-breakpoints-keys, $value);
145
+ $pbp: index($-zf-breakpoints-keys, $print-breakpoint);
146
+
147
+ // If $str is still an empty string, no media query is needed
148
+ @if $str == '' {
149
+ @content;
150
+ }
151
+
152
+ // Otherwise, wrap the content in a media query
153
+ @else {
154
+ // For named breakpoints less than or equal to $print-breakpoint, add print to the media types
155
+ @if $bp != null and $bp <= $pbp {
156
+ @media print, screen and #{$str} {
157
+ @content;
158
+ }
159
+ }
160
+ @else {
161
+ @media screen and #{$str} {
162
+ @content;
163
+ }
164
+ }
165
+ }
166
+ }
167
+
168
+ /// Convers the breakpoints map to a URL-encoded string, like this: `key1=value1&key2=value2`. The value is then dropped into the CSS for a special `<meta>` tag, which is read by the Foundation JavaScript. This is how we transfer values from Sass to JavaScript, so they can be defined in one place.
169
+ /// @access private
170
+ ///
171
+ /// @param {Map} $map - Map to convert.
172
+ ///
173
+ /// @returns {String} A string containing the map's contents.
174
+ @function -zf-bp-serialize($map) {
175
+ $str: '';
176
+ @each $key, $value in $map {
177
+ $str: $str + $key + '=' + -zf-bp-to-em($value) + '&';
178
+ }
179
+ $str: str-slice($str, 1, -2);
180
+
181
+ @return $str;
182
+ }
183
+
184
+ /// Find the next key in a map.
185
+ /// @access private
186
+ ///
187
+ /// @param {Map} $map - Map to traverse.
188
+ /// @param {Mixed} $key - Key to use as a starting point.
189
+ ///
190
+ /// @returns {Mixed} The value for the key after `$key`, if `$key` was found. If `$key` was not found, or `$key` was the last value in the map, returns `null`.
191
+ @function -zf-map-next($map, $key) {
192
+
193
+ // Store the keys of the map as a list
194
+ $values: map-keys($map);
195
+
196
+ $i: 0;
197
+
198
+ // If the Key Exists, Get the index of the key within the map and add 1 to it for the next breakpoint in the map
199
+ @if (map-has-key($map, $key)) {
200
+ $i: index($values, $key) + 1;
201
+ }
202
+
203
+ // If the key doesn't exist, or it's the last key in the map, return null
204
+ @if ($i > length($map) or $i == 0) {
205
+ @return null;
206
+ }
207
+ // Otherwise, return the value
208
+ @else {
209
+ @return map-get($map, nth($values, $i));
210
+ }
211
+
212
+ }
213
+
214
+ /// Get a value for a breakpoint from a responsive config map or single value.
215
+ /// - If the config is a single value, return it regardless of `$value`.
216
+ /// - If the config is a map and has the key `$value`, the exact breakpoint value is returned.
217
+ /// - If the config is a map and does *not* have the breakpoint, the value matching the next lowest breakpoint in the config map is returned.
218
+ /// @access private
219
+ ///
220
+ /// @param {Number|Map} $map - Responsive config map or single value.
221
+ /// @param {Keyword} $value - Breakpoint name to use.
222
+ ///
223
+ /// @return {Mixed} The corresponding breakpoint value.
224
+ @function -zf-get-bp-val($map, $value) {
225
+ // If the given map is a single value, return it
226
+ @if type-of($map) == 'number' {
227
+ @return $map;
228
+ }
229
+
230
+ // Check if the breakpoint name exists globally
231
+ @if not map-has-key($breakpoints, $value) {
232
+ @return null;
233
+ }
234
+ // Check if the breakpoint name exists in the local config map
235
+ @else if map-has-key($map, $value) {
236
+ // If it does, just return the value
237
+ @return map-get($map, $value);
238
+ }
239
+ // Otherwise, find the next lowest breakpoint and return that value
240
+ @else {
241
+ $anchor: null;
242
+ $found: false;
243
+
244
+ @each $key, $val in $breakpoints {
245
+ @if not $found {
246
+ @if map-has-key($map, $key) {
247
+ $anchor: $key;
248
+ }
249
+ @if $key == $value {
250
+ $found: true;
251
+ }
252
+ }
253
+ }
254
+
255
+ @return map-get($map, $anchor);
256
+ }
257
+ }
258
+
259
+ @if map-has-key($breakpoints, small) {
260
+ $small-up: screen;
261
+ $small-only: unquote('screen and #{breakpoint(small only)}');
262
+ }
263
+
264
+ @if map-has-key($breakpoints, medium) {
265
+ $medium-up: unquote('screen and #{breakpoint(medium)}');
266
+ $medium-only: unquote('screen and #{breakpoint(medium only)}');
267
+ }
268
+
269
+ @if map-has-key($breakpoints, large) {
270
+ $large-up: unquote('screen and #{breakpoint(large)}');
271
+ $large-only: unquote('screen and #{breakpoint(large only)}');
272
+ }
273
+
274
+ @if map-has-key($breakpoints, xlarge) {
275
+ $xlarge-up: unquote('screen and #{breakpoint(xlarge)}');
276
+ $xlarge-only: unquote('screen and #{breakpoint(xlarge only)}');
277
+ }
278
+
279
+ @if map-has-key($breakpoints, xxlarge) {
280
+ $xxlarge-up: unquote('screen and #{breakpoint(xxlarge)}');
281
+ }