zurb-foundation 4.1.5 → 4.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/README.md +4 -0
- data/docs/CHANGELOG.md +10 -0
- data/docs/components/block-grid.html.erb +1 -1
- data/docs/components/grid.html.erb +4 -4
- data/docs/components/inline-lists.html.erb +2 -2
- data/docs/components/panels.html.erb +2 -2
- data/docs/components/pricing-tables.html.erb +1 -1
- data/docs/components/progress-bars.html.erb +1 -1
- data/docs/components/reveal.html.erb +1 -1
- data/docs/components/section.html.erb +546 -19
- data/docs/components/split-buttons.html.erb +2 -2
- data/docs/components/thumbnails.html.erb +2 -2
- data/docs/components/top-bar.html.erb +2 -3
- data/docs/components/type.html.erb +5 -5
- data/docs/components/visibility.html.erb +1 -1
- data/docs/css/docs.scss +54 -0
- data/docs/sass.html.erb +3 -1
- data/js/foundation/foundation.forms.js +311 -227
- data/js/foundation/foundation.joyride.js +10 -8
- data/js/foundation/foundation.js +1 -1
- data/js/foundation/foundation.section.js +4 -4
- data/lib/foundation/version.rb +1 -1
- data/scss/foundation/_variables.scss +185 -171
- data/scss/foundation/components/_alert-boxes.scss +1 -0
- data/scss/foundation/components/_block-grid.scss +2 -4
- data/scss/foundation/components/_breadcrumbs.scss +1 -0
- data/scss/foundation/components/_button-groups.scss +1 -0
- data/scss/foundation/components/_buttons.scss +1 -0
- data/scss/foundation/components/_clearing.scss +154 -151
- data/scss/foundation/components/_custom-forms.scss +35 -21
- data/scss/foundation/components/_dropdown-buttons.scss +2 -1
- data/scss/foundation/components/_dropdown.scss +2 -1
- data/scss/foundation/components/_flex-video.scss +1 -0
- data/scss/foundation/components/_forms.scss +1 -0
- data/scss/foundation/components/_global.scss +75 -84
- data/scss/foundation/components/_grid.scss +9 -8
- data/scss/foundation/components/_inline-lists.scss +2 -1
- data/scss/foundation/components/_joyride.scss +165 -160
- data/scss/foundation/components/_keystrokes.scss +2 -1
- data/scss/foundation/components/_labels.scss +1 -0
- data/scss/foundation/components/_magellan.scss +2 -0
- data/scss/foundation/components/_orbit.scss +158 -154
- data/scss/foundation/components/_pagination.scss +1 -0
- data/scss/foundation/components/_panels.scss +1 -0
- data/scss/foundation/components/_pricing-tables.scss +1 -0
- data/scss/foundation/components/_progress-bars.scss +1 -0
- data/scss/foundation/components/_reveal.scss +2 -1
- data/scss/foundation/components/_section.scss +108 -93
- data/scss/foundation/components/_side-nav.scss +2 -1
- data/scss/foundation/components/_split-buttons.scss +1 -0
- data/scss/foundation/components/_sub-nav.scss +1 -0
- data/scss/foundation/components/_switch.scss +4 -2
- data/scss/foundation/components/_tables.scss +7 -3
- data/scss/foundation/components/_thumbs.scss +1 -0
- data/scss/foundation/components/_tooltips.scss +85 -81
- data/scss/foundation/components/_top-bar.scss +323 -318
- data/scss/foundation/components/_type.scss +290 -286
- data/scss/foundation/components/_visibility.scss +2 -0
- data/templates/project/index.html +0 -1
- data/templates/project/manifest.rb +0 -1
- data/templates/project/scss/app.scss +3 -0
- metadata +4 -4
@@ -1,6 +1,7 @@
|
|
1
1
|
//
|
2
2
|
// Typography Variables
|
3
3
|
//
|
4
|
+
$include-html-type-classes: $include-html-classes !default;
|
4
5
|
|
5
6
|
// We use these to control header font styles
|
6
7
|
$header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
|
@@ -116,307 +117,310 @@ $microformat-abbr-font-decoration: none !default;
|
|
116
117
|
margin-bottom: $subheader-bottom-margin;
|
117
118
|
}
|
118
119
|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
/* Default Link Styles */
|
146
|
-
a {
|
147
|
-
color: $anchor-font-color;
|
148
|
-
text-decoration: $anchor-text-decoration;
|
149
|
-
line-height: inherit;
|
150
|
-
|
151
|
-
&:hover,
|
152
|
-
&:focus { color: $anchor-font-color-hover; }
|
153
|
-
|
154
|
-
img { border:none; }
|
155
|
-
}
|
156
|
-
|
157
|
-
/* Default paragraph styles */
|
158
|
-
p {
|
159
|
-
font-family: $paragraph-font-family;
|
160
|
-
font-weight: $paragraph-font-weight;
|
161
|
-
font-size: $paragraph-font-size;
|
162
|
-
line-height: $paragraph-line-height;
|
163
|
-
margin-bottom: $paragraph-margin-bottom;
|
164
|
-
text-rendering: $paragraph-text-rendering;
|
165
|
-
|
166
|
-
&.lead { @extend %lead; }
|
167
|
-
|
168
|
-
& aside {
|
169
|
-
font-size: $paragraph-aside-font-size;
|
170
|
-
line-height: $paragraph-aside-line-height;
|
171
|
-
font-style: $paragraph-aside-font-style;
|
120
|
+
@if $include-html-type-classes != false {
|
121
|
+
|
122
|
+
/* Typography resets */
|
123
|
+
div,
|
124
|
+
dl,
|
125
|
+
dt,
|
126
|
+
dd,
|
127
|
+
ul,
|
128
|
+
ol,
|
129
|
+
li,
|
130
|
+
h1,
|
131
|
+
h2,
|
132
|
+
h3,
|
133
|
+
h4,
|
134
|
+
h5,
|
135
|
+
h6,
|
136
|
+
pre,
|
137
|
+
form,
|
138
|
+
p,
|
139
|
+
blockquote,
|
140
|
+
th,
|
141
|
+
td {
|
142
|
+
margin:0;
|
143
|
+
padding:0;
|
144
|
+
direction: $text-direction;
|
172
145
|
}
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
line-height: $header-line-height - emCalc(3px);
|
185
|
-
|
186
|
-
small {
|
187
|
-
font-size: $small-font-size;
|
188
|
-
color: $small-font-color;
|
189
|
-
line-height: 0;
|
146
|
+
|
147
|
+
/* Default Link Styles */
|
148
|
+
a {
|
149
|
+
color: $anchor-font-color;
|
150
|
+
text-decoration: $anchor-text-decoration;
|
151
|
+
line-height: inherit;
|
152
|
+
|
153
|
+
&:hover,
|
154
|
+
&:focus { color: $anchor-font-color-hover; }
|
155
|
+
|
156
|
+
img { border:none; }
|
190
157
|
}
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
height: 0;
|
208
|
-
}
|
209
|
-
|
210
|
-
/* Helpful Typography Defaults */
|
211
|
-
em,
|
212
|
-
i {
|
213
|
-
font-style: italic;
|
214
|
-
line-height: inherit;
|
215
|
-
}
|
216
|
-
|
217
|
-
strong,
|
218
|
-
b {
|
219
|
-
font-weight: bold;
|
220
|
-
line-height: inherit;
|
221
|
-
}
|
222
|
-
|
223
|
-
small {
|
224
|
-
font-size: $small-font-size;
|
225
|
-
line-height: inherit;
|
226
|
-
}
|
227
|
-
|
228
|
-
code {
|
229
|
-
font-family: $code-font-family;
|
230
|
-
font-weight: $code-font-weight;
|
231
|
-
color: $code-color;
|
232
|
-
}
|
233
|
-
|
234
|
-
/* Lists */
|
235
|
-
ul,
|
236
|
-
ol,
|
237
|
-
dl {
|
238
|
-
font-size: $paragraph-font-size;
|
239
|
-
line-height: $paragraph-line-height;
|
240
|
-
margin-bottom: $paragraph-margin-bottom;
|
241
|
-
list-style-position: $list-style-position;
|
242
|
-
font-family: $paragraph-font-family;
|
243
|
-
}
|
244
|
-
|
245
|
-
/* Unordered Lists */
|
246
|
-
ul {
|
247
|
-
li {
|
248
|
-
ul,
|
249
|
-
ol {
|
250
|
-
margin-#{$default-float}: $list-side-margin;
|
251
|
-
margin-bottom: 0;
|
252
|
-
font-size: 1em; /* Override nested font-size change */
|
158
|
+
|
159
|
+
/* Default paragraph styles */
|
160
|
+
p {
|
161
|
+
font-family: $paragraph-font-family;
|
162
|
+
font-weight: $paragraph-font-weight;
|
163
|
+
font-size: $paragraph-font-size;
|
164
|
+
line-height: $paragraph-line-height;
|
165
|
+
margin-bottom: $paragraph-margin-bottom;
|
166
|
+
text-rendering: $paragraph-text-rendering;
|
167
|
+
|
168
|
+
&.lead { @extend %lead; }
|
169
|
+
|
170
|
+
& aside {
|
171
|
+
font-size: $paragraph-aside-font-size;
|
172
|
+
line-height: $paragraph-aside-line-height;
|
173
|
+
font-style: $paragraph-aside-font-style;
|
253
174
|
}
|
254
175
|
}
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
ol {
|
272
|
-
margin-#{$default-float}: $list-side-margin;
|
273
|
-
margin-bottom: 0;
|
176
|
+
|
177
|
+
/* Default header styles */
|
178
|
+
h1, h2, h3, h4, h5, h6 {
|
179
|
+
font-family: $header-font-family;
|
180
|
+
font-weight: $header-font-weight;
|
181
|
+
font-style: $header-font-style;
|
182
|
+
color: $header-font-color;
|
183
|
+
text-rendering: $header-text-rendering;
|
184
|
+
margin-top: $header-top-margin;
|
185
|
+
margin-bottom: $header-bottom-margin;
|
186
|
+
line-height: $header-line-height - emCalc(3px);
|
187
|
+
|
188
|
+
small {
|
189
|
+
font-size: $small-font-size;
|
190
|
+
color: $small-font-color;
|
191
|
+
line-height: 0;
|
274
192
|
}
|
275
193
|
}
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
194
|
+
|
195
|
+
h1 { font-size: $h1-font-size - emCalc(10px); }
|
196
|
+
h2 { font-size: $h2-font-size - emCalc(10px); }
|
197
|
+
h3 { font-size: $h3-font-size - emCalc(5px); }
|
198
|
+
h4 { font-size: $h4-font-size - emCalc(5px); }
|
199
|
+
h5 { font-size: $h5-font-size; }
|
200
|
+
h6 { font-size: $h6-font-size; }
|
201
|
+
|
202
|
+
.subheader { @extend %subheader; }
|
203
|
+
|
204
|
+
hr {
|
205
|
+
border: $hr-border-style $hr-border-color;
|
206
|
+
border-width: $hr-border-width 0 0;
|
207
|
+
clear: both;
|
208
|
+
margin: $hr-margin 0 ($hr-margin - emCalc(1px));
|
209
|
+
height: 0;
|
283
210
|
}
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
211
|
+
|
212
|
+
/* Helpful Typography Defaults */
|
213
|
+
em,
|
214
|
+
i {
|
215
|
+
font-style: italic;
|
216
|
+
line-height: inherit;
|
217
|
+
}
|
218
|
+
|
219
|
+
strong,
|
220
|
+
b {
|
221
|
+
font-weight: bold;
|
222
|
+
line-height: inherit;
|
223
|
+
}
|
224
|
+
|
225
|
+
small {
|
226
|
+
font-size: $small-font-size;
|
227
|
+
line-height: inherit;
|
228
|
+
}
|
229
|
+
|
230
|
+
code {
|
231
|
+
font-family: $code-font-family;
|
232
|
+
font-weight: $code-font-weight;
|
233
|
+
color: $code-color;
|
234
|
+
}
|
235
|
+
|
236
|
+
/* Lists */
|
237
|
+
ul,
|
238
|
+
ol,
|
239
|
+
dl {
|
240
|
+
font-size: $paragraph-font-size;
|
241
|
+
line-height: $paragraph-line-height;
|
242
|
+
margin-bottom: $paragraph-margin-bottom;
|
243
|
+
list-style-position: $list-style-position;
|
244
|
+
font-family: $paragraph-font-family;
|
245
|
+
}
|
246
|
+
|
247
|
+
/* Unordered Lists */
|
248
|
+
ul {
|
249
|
+
li {
|
250
|
+
ul,
|
251
|
+
ol {
|
252
|
+
margin-#{$default-float}: $list-side-margin;
|
253
|
+
margin-bottom: 0;
|
254
|
+
font-size: 1em; /* Override nested font-size change */
|
255
|
+
}
|
312
256
|
}
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
257
|
+
&.square,
|
258
|
+
&.circle,
|
259
|
+
&.disc {
|
260
|
+
li ul { list-style: inherit; }
|
317
261
|
}
|
262
|
+
|
263
|
+
&.square { list-style-type: square; }
|
264
|
+
&.circle { list-style-type: circle; }
|
265
|
+
&.disc { list-style-type: disc; }
|
266
|
+
&.no-bullet { list-style: none; }
|
318
267
|
}
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
margin: $microformat-margin;
|
330
|
-
border: $microformat-border-width $microformat-border-style $microformat-border-color;
|
331
|
-
padding: $microformat-padding;
|
332
|
-
|
333
|
-
li {
|
334
|
-
margin: 0;
|
335
|
-
display: block;
|
268
|
+
|
269
|
+
/* Ordered Lists */
|
270
|
+
ol {
|
271
|
+
li {
|
272
|
+
ul,
|
273
|
+
ol {
|
274
|
+
margin-#{$default-float}: $list-side-margin;
|
275
|
+
margin-bottom: 0;
|
276
|
+
}
|
277
|
+
}
|
336
278
|
}
|
337
|
-
|
338
|
-
|
339
|
-
|
279
|
+
|
280
|
+
/* Definition Lists */
|
281
|
+
dl {
|
282
|
+
dt {
|
283
|
+
margin-bottom: $definition-list-header-margin-bottom;
|
284
|
+
font-weight: $definition-list-header-weight;
|
285
|
+
}
|
286
|
+
dd { margin-bottom: $definition-list-margin-bottom; }
|
287
|
+
}
|
288
|
+
|
289
|
+
/* Abbreviations */
|
290
|
+
abbr,
|
291
|
+
acronym {
|
292
|
+
text-transform: uppercase;
|
293
|
+
font-size: 90%;
|
294
|
+
color: $body-font-color;
|
295
|
+
border-bottom: $acronym-underline;
|
296
|
+
cursor: help;
|
340
297
|
}
|
341
|
-
}
|
342
|
-
|
343
|
-
.vevent {
|
344
|
-
.summary { font-weight: $microformat-summary-font-weight; }
|
345
|
-
|
346
298
|
abbr {
|
347
|
-
|
348
|
-
text-decoration: $microformat-abbr-font-decoration;
|
349
|
-
font-weight: $microformat-abbr-font-weight;
|
350
|
-
border: none;
|
351
|
-
padding: $microformat-abbr-padding;
|
299
|
+
text-transform: none;
|
352
300
|
}
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
.print-only { display: none !important; }
|
373
|
-
@media print {
|
374
|
-
* {
|
375
|
-
background: transparent !important;
|
376
|
-
color: #000 !important; /* Black prints faster: h5bp.com/s */
|
377
|
-
box-shadow: none !important;
|
378
|
-
text-shadow: none !important;
|
301
|
+
|
302
|
+
/* Blockquotes */
|
303
|
+
blockquote {
|
304
|
+
margin: 0 0 $paragraph-margin-bottom;
|
305
|
+
padding: $blockquote-padding;
|
306
|
+
border-#{$default-float}: $blockquote-border;
|
307
|
+
|
308
|
+
cite {
|
309
|
+
display: block;
|
310
|
+
font-size: $blockquote-cite-font-size;
|
311
|
+
color: $blockquote-cite-font-color;
|
312
|
+
&:before {
|
313
|
+
content: "\2014 \0020";
|
314
|
+
}
|
315
|
+
|
316
|
+
a,
|
317
|
+
a:visited {
|
318
|
+
color: $blockquote-cite-link-color;
|
319
|
+
}
|
379
320
|
}
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
321
|
+
}
|
322
|
+
blockquote,
|
323
|
+
blockquote p {
|
324
|
+
line-height: $paragraph-line-height;
|
325
|
+
color: $blockquote-font-color;
|
326
|
+
}
|
327
|
+
|
328
|
+
/* Microformats */
|
329
|
+
.vcard {
|
330
|
+
display: inline-block;
|
331
|
+
margin: $microformat-margin;
|
332
|
+
border: $microformat-border-width $microformat-border-style $microformat-border-color;
|
333
|
+
padding: $microformat-padding;
|
334
|
+
|
335
|
+
li {
|
336
|
+
margin: 0;
|
337
|
+
display: block;
|
396
338
|
}
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
tr,
|
401
|
-
img { page-break-inside: avoid; }
|
402
|
-
|
403
|
-
img { max-width: 100% !important; }
|
404
|
-
|
405
|
-
@page { margin: 0.5cm; }
|
406
|
-
|
407
|
-
p,
|
408
|
-
h2,
|
409
|
-
h3 {
|
410
|
-
orphans: 3;
|
411
|
-
widows: 3;
|
339
|
+
.fn {
|
340
|
+
font-weight: $microformat-fullname-font-weight;
|
341
|
+
font-size: $microformat-fullname-font-size;
|
412
342
|
}
|
413
|
-
|
414
|
-
h2,
|
415
|
-
h3 { page-break-after: avoid; }
|
416
|
-
|
417
|
-
.hide-on-print { display: none !important; }
|
418
|
-
.print-only { display: block !important; }
|
419
|
-
.hide-for-print { display: none !important; }
|
420
|
-
.show-for-print { display: inherit !important; }
|
421
343
|
}
|
422
|
-
|
344
|
+
|
345
|
+
.vevent {
|
346
|
+
.summary { font-weight: $microformat-summary-font-weight; }
|
347
|
+
|
348
|
+
abbr {
|
349
|
+
cursor: default;
|
350
|
+
text-decoration: $microformat-abbr-font-decoration;
|
351
|
+
font-weight: $microformat-abbr-font-weight;
|
352
|
+
border: none;
|
353
|
+
padding: $microformat-abbr-padding;
|
354
|
+
}
|
355
|
+
}
|
356
|
+
|
357
|
+
|
358
|
+
@media #{$small} {
|
359
|
+
h1,h2,h3,h4,h5,h6 { line-height: $header-line-height; }
|
360
|
+
h1 { font-size: $h1-font-size; }
|
361
|
+
h2 { font-size: $h2-font-size; }
|
362
|
+
h3 { font-size: $h3-font-size; }
|
363
|
+
h4 { font-size: $h4-font-size; }
|
364
|
+
}
|
365
|
+
|
366
|
+
// Only include these styles if you want them.
|
367
|
+
@if $include-print-styles {
|
368
|
+
/*
|
369
|
+
* Print styles.
|
370
|
+
*
|
371
|
+
* Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
|
372
|
+
* Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com)
|
373
|
+
*/
|
374
|
+
.print-only { display: none !important; }
|
375
|
+
@media print {
|
376
|
+
* {
|
377
|
+
background: transparent !important;
|
378
|
+
color: #000 !important; /* Black prints faster: h5bp.com/s */
|
379
|
+
box-shadow: none !important;
|
380
|
+
text-shadow: none !important;
|
381
|
+
}
|
382
|
+
|
383
|
+
a,
|
384
|
+
a:visited { text-decoration: underline;}
|
385
|
+
a[href]:after { content: " (" attr(href) ")"; }
|
386
|
+
|
387
|
+
abbr[title]:after { content: " (" attr(title) ")"; }
|
388
|
+
|
389
|
+
// Don't show links for images, or javascript/internal links
|
390
|
+
.ir a:after,
|
391
|
+
a[href^="javascript:"]:after,
|
392
|
+
a[href^="#"]:after { content: ""; }
|
393
|
+
|
394
|
+
pre,
|
395
|
+
blockquote {
|
396
|
+
border: 1px solid #999;
|
397
|
+
page-break-inside: avoid;
|
398
|
+
}
|
399
|
+
|
400
|
+
thead { display: table-header-group; /* h5bp.com/t */ }
|
401
|
+
|
402
|
+
tr,
|
403
|
+
img { page-break-inside: avoid; }
|
404
|
+
|
405
|
+
img { max-width: 100% !important; }
|
406
|
+
|
407
|
+
@page { margin: 0.5cm; }
|
408
|
+
|
409
|
+
p,
|
410
|
+
h2,
|
411
|
+
h3 {
|
412
|
+
orphans: 3;
|
413
|
+
widows: 3;
|
414
|
+
}
|
415
|
+
|
416
|
+
h2,
|
417
|
+
h3 { page-break-after: avoid; }
|
418
|
+
|
419
|
+
.hide-on-print { display: none !important; }
|
420
|
+
.print-only { display: block !important; }
|
421
|
+
.hide-for-print { display: none !important; }
|
422
|
+
.show-for-print { display: inherit !important; }
|
423
|
+
}
|
424
|
+
}
|
425
|
+
|
426
|
+
}
|