zurb-foundation 4.0.5 → 4.0.7
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/.gitignore +1 -0
- data/Gemfile.lock +2 -2
- data/README.md +1 -0
- data/{CHANGELOG.md → docs/CHANGELOG.md} +63 -3
- data/docs/Gemfile +1 -0
- data/docs/Gemfile.lock +2 -0
- data/docs/_sidebar-components.html.erb +1 -0
- data/docs/_sidebar.html.erb +1 -0
- data/docs/changelog.html.erb +1 -205
- data/docs/components/alert-boxes.html.erb +1 -1
- data/docs/components/block-grid.html.erb +1 -1
- data/docs/components/breadcrumbs.html.erb +3 -3
- data/docs/components/button-groups.html.erb +1 -1
- data/docs/components/buttons.html.erb +1 -1
- data/docs/components/dropdown-buttons.html.erb +1 -1
- data/docs/components/dropdown.html.erb +1 -1
- data/docs/components/flex-video.html.erb +1 -1
- data/docs/components/forms.html.erb +1 -1
- data/docs/components/global.html.erb +92 -0
- data/docs/components/inline-lists.html.erb +1 -1
- data/docs/components/keystrokes.html.erb +2 -2
- data/docs/components/labels.html.erb +2 -2
- data/docs/components/orbit.html.erb +10 -2
- data/docs/components/pagination.html.erb +1 -1
- data/docs/components/panels.html.erb +1 -1
- data/docs/components/pricing-tables.html.erb +1 -1
- data/docs/components/progress-bars.html.erb +2 -2
- data/docs/components/section.html.erb +18 -0
- data/docs/components/side-nav.html.erb +1 -1
- data/docs/components/split-buttons.html.erb +1 -1
- data/docs/components/sub-nav.html.erb +1 -1
- data/docs/components/switch.html.erb +1 -1
- data/docs/components/thumbnails.html.erb +1 -1
- data/docs/components/top-bar.html.erb +5 -5
- data/docs/css/docs.scss +0 -1
- data/docs/layout.html.erb +2 -3
- data/docs/sass.html.erb +21 -14
- data/js/foundation/foundation.clearing.js +2 -0
- data/js/foundation/foundation.dropdown.js +10 -10
- data/js/foundation/foundation.joyride.js +9 -12
- data/js/foundation/foundation.js +28 -2
- data/js/foundation/foundation.orbit.js +17 -9
- data/js/foundation/foundation.reveal.js +6 -2
- data/js/foundation/foundation.section.js +30 -18
- data/js/foundation/foundation.topbar.js +18 -8
- data/lib/foundation/generators/USAGE +6 -5
- data/lib/foundation/generators/install_generator.rb +9 -9
- data/lib/foundation/generators/templates/application.html.erb +40 -37
- data/lib/foundation/generators/templates/application.html.haml +5 -2
- data/lib/foundation/generators/templates/application.html.slim +6 -5
- data/lib/foundation/version.rb +1 -1
- data/scss/foundation/_foundation-global.scss +19 -4
- data/scss/foundation/components/_alert-boxes.scss +1 -1
- data/scss/foundation/components/_breadcrumbs.scss +4 -4
- data/scss/foundation/components/_button-groups.scss +8 -8
- data/scss/foundation/components/_buttons.scss +4 -3
- data/scss/foundation/components/_custom-forms.scss +175 -171
- data/scss/foundation/components/_dropdown-buttons.scss +1 -1
- data/scss/foundation/components/_dropdown.scss +1 -1
- data/scss/foundation/components/_flex-video.scss +1 -1
- data/scss/foundation/components/_forms.scss +91 -89
- data/scss/foundation/components/_global.scss +7 -2
- data/scss/foundation/components/_grid.scss +3 -3
- data/scss/foundation/components/_inline-lists.scss +1 -1
- data/scss/foundation/components/_keystrokes.scss +2 -2
- data/scss/foundation/components/_labels.scss +3 -3
- data/scss/foundation/components/_magellan.scss +1 -1
- data/scss/foundation/components/_pagination.scss +1 -1
- data/scss/foundation/components/_panels.scss +1 -1
- data/scss/foundation/components/_pricing-tables.scss +1 -1
- data/scss/foundation/components/_progress-bars.scss +2 -2
- data/scss/foundation/components/_reveal.scss +1 -1
- data/scss/foundation/components/_section.scss +1 -1
- data/scss/foundation/components/_side-nav.scss +1 -1
- data/scss/foundation/components/_split-buttons.scss +1 -1
- data/scss/foundation/components/_sub-nav.scss +1 -1
- data/scss/foundation/components/_switch.scss +3 -3
- data/scss/foundation/components/_thumbs.scss +1 -1
- data/scss/foundation/components/_top-bar.scss +4 -1
- data/scss/foundation/components/_visibility.scss +273 -274
- data/templates/project/scss/_settings.scss +4 -4
- data/templates/project/scss/app.scss +8 -8
- data/templates/upgrade/manifest.rb +7 -12
- metadata +6 -6
- data/index.html +0 -113
@@ -241,96 +241,98 @@ $input-error-message-font-color-alt: #333 !default;
|
|
241
241
|
@else { color: $input-error-message-font-color-alt; }
|
242
242
|
}
|
243
243
|
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
form .row
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
}
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
.
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
.
|
265
|
-
.prefix.button
|
266
|
-
.
|
267
|
-
.
|
268
|
-
.
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
}
|
274
|
-
|
275
|
-
|
276
|
-
}
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
244
|
+
// Only include these classes if the variable is true, otherwise they'll be left out.
|
245
|
+
@if $include-html-form-classes {
|
246
|
+
/* Standard Forms */
|
247
|
+
form { margin: 0 0 $form-spacing; }
|
248
|
+
|
249
|
+
/* Using forms within rows, we need to set some defaults */
|
250
|
+
form .row { @include form-row-base; }
|
251
|
+
form .row .row { margin: 0; }
|
252
|
+
|
253
|
+
/* Label Styles */
|
254
|
+
label { @include form-label;
|
255
|
+
&.right { @include form-label(right,false); }
|
256
|
+
&.inline { @include form-label(inline,false); }
|
257
|
+
}
|
258
|
+
|
259
|
+
/* Attach elements to the beginning or end of an input */
|
260
|
+
.prefix,
|
261
|
+
.postfix { @include prefix-postfix-base; }
|
262
|
+
|
263
|
+
/* Adjust padding, alignment and radius if pre/post element is a button */
|
264
|
+
.postfix.button { @include button-size(false,false,false); @include postfix(false,true); }
|
265
|
+
.prefix.button { @include button-size(false,false,false); @include prefix(false,true); }
|
266
|
+
.prefix.button.radius { @include side-radius(left, $global-radius); }
|
267
|
+
.postfix.button.radius { @include side-radius(right, $global-radius); }
|
268
|
+
.prefix.button.round { @include side-radius(left, 1000px); }
|
269
|
+
.postfix.button.round { @include side-radius(right, 1000px); }
|
270
|
+
|
271
|
+
/* Separate prefix and postfix styles when on span so buttons keep their own */
|
272
|
+
span.prefix { @include prefix();
|
273
|
+
&.radius { @include side-radius(left, $global-radius); }
|
274
|
+
}
|
275
|
+
span.postfix { @include postfix();
|
276
|
+
&.radius { @include side-radius(right, $global-radius); }
|
277
|
+
}
|
278
|
+
|
279
|
+
/* Input groups will automatically style first and last elements of the group */
|
280
|
+
.input-group {
|
281
|
+
&.radius {
|
282
|
+
&>*:first-child, &>*:first-child * {
|
283
|
+
@include side-radius(left, $global-radius);
|
284
|
+
}
|
285
|
+
&>*:last-child, &>*:last-child * {
|
286
|
+
@include side-radius(right, $global-radius);
|
287
|
+
}
|
283
288
|
}
|
284
|
-
|
285
|
-
|
289
|
+
&.round {
|
290
|
+
&>*:first-child, &>*:first-child * {
|
291
|
+
@include side-radius(left, $button-round);
|
292
|
+
}
|
293
|
+
&>*:last-child, &>*:last-child * {
|
294
|
+
@include side-radius(right, $button-round);
|
295
|
+
}
|
286
296
|
}
|
287
297
|
}
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
298
|
+
|
299
|
+
/* We use this to get basic styling on all basic form elements */
|
300
|
+
input[type="text"],
|
301
|
+
input[type="password"],
|
302
|
+
input[type="date"],
|
303
|
+
input[type="datetime"],
|
304
|
+
input[type="datetime-local"],
|
305
|
+
input[type="month"],
|
306
|
+
input[type="week"],
|
307
|
+
input[type="email"],
|
308
|
+
input[type="number"],
|
309
|
+
input[type="search"],
|
310
|
+
input[type="tel"],
|
311
|
+
input[type="time"],
|
312
|
+
input[type="url"],
|
313
|
+
textarea {
|
314
|
+
@include form-element;
|
315
|
+
@include single-transition(all, 0.15s, linear);
|
295
316
|
}
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
input
|
304
|
-
input
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
fieldset {
|
319
|
-
@include fieldset;
|
320
|
-
}
|
321
|
-
|
322
|
-
/* Error Handling */
|
323
|
-
.error input,
|
324
|
-
input.error,
|
325
|
-
.error textarea,
|
326
|
-
textarea.error {
|
327
|
-
@include form-error-color;
|
328
|
-
}
|
329
|
-
|
330
|
-
.error label,
|
331
|
-
label.error { @include form-label-error-color; }
|
332
|
-
|
333
|
-
.error small,
|
334
|
-
small.error {
|
335
|
-
@include form-error-message;
|
336
|
-
}
|
317
|
+
|
318
|
+
/* We add basic fieldset styling */
|
319
|
+
fieldset {
|
320
|
+
@include fieldset;
|
321
|
+
}
|
322
|
+
|
323
|
+
/* Error Handling */
|
324
|
+
.error input,
|
325
|
+
input.error,
|
326
|
+
.error textarea,
|
327
|
+
textarea.error {
|
328
|
+
@include form-error-color;
|
329
|
+
}
|
330
|
+
|
331
|
+
.error label,
|
332
|
+
label.error { @include form-label-error-color; }
|
333
|
+
|
334
|
+
.error small,
|
335
|
+
small.error {
|
336
|
+
@include form-error-message;
|
337
|
+
}
|
338
|
+
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
}
|
7
7
|
|
8
8
|
html,
|
9
|
-
body { font-size: $
|
9
|
+
body { font-size: $base-font-size; }
|
10
10
|
|
11
11
|
// Default body styles
|
12
12
|
body {
|
@@ -19,7 +19,6 @@ body {
|
|
19
19
|
font-style: $body-font-style;
|
20
20
|
line-height: 1;
|
21
21
|
position: relative;
|
22
|
-
-webkit-font-smoothing: $font-smoothing;
|
23
22
|
}
|
24
23
|
|
25
24
|
// Override outline from normalize, we don't like it
|
@@ -51,6 +50,12 @@ img { -ms-interpolation-mode: bicubic; }
|
|
51
50
|
.text-justify { text-align: justify !important; }
|
52
51
|
.hide { display: none; }
|
53
52
|
|
53
|
+
// Font smoothing
|
54
|
+
// Antialiased font smoothing works best for light text on a dark background.
|
55
|
+
// Apply to single elements instead of globally to body.
|
56
|
+
// Note this only applies to webkit-based desktop browsers on the Mac.
|
57
|
+
.antialiased { -webkit-font-smoothing: antialiased; }
|
58
|
+
|
54
59
|
// Get rid of gap under images by making them display: inline-block; by default
|
55
60
|
img { display: inline-block; }
|
56
61
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
//
|
2
2
|
// Grid Variables
|
3
3
|
//
|
4
|
-
$row-width:
|
5
|
-
$column-gutter:
|
4
|
+
$row-width: emCalc(1000px) !default;
|
5
|
+
$column-gutter: emCalc(30px) !default;
|
6
6
|
$total-columns: 12 !default;
|
7
7
|
|
8
8
|
//
|
@@ -100,7 +100,7 @@ $total-columns: 12 !default;
|
|
100
100
|
|
101
101
|
|
102
102
|
/* Grid HTML Classes */
|
103
|
-
@if $include-html-classes {
|
103
|
+
@if $include-html-grid-classes {
|
104
104
|
|
105
105
|
.row {
|
106
106
|
@include grid-row;
|
@@ -17,7 +17,7 @@ $keystroke-bg: darken(#fff, $keystroke-function-factor) !default;
|
|
17
17
|
$keystroke-border-style: solid !default;
|
18
18
|
$keystroke-border-width: 1px !default;
|
19
19
|
$keystroke-border-color: darken($keystroke-bg, $keystroke-function-factor) !default;
|
20
|
-
$keystroke-radius: $
|
20
|
+
$keystroke-radius: $global-radius !default;
|
21
21
|
|
22
22
|
//
|
23
23
|
// Keystroke Mixins
|
@@ -44,7 +44,7 @@ $keystroke-radius: $button-radius !default;
|
|
44
44
|
}
|
45
45
|
|
46
46
|
|
47
|
-
@if $include-html-classes {
|
47
|
+
@if $include-html-media-classes {
|
48
48
|
|
49
49
|
/* Keystroke Characters */
|
50
50
|
.keystroke,
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
// We use these to style the labels
|
6
6
|
$label-padding: emCalc(3px) emCalc(10px) emCalc(4px) !default;
|
7
|
-
$label-radius: $
|
7
|
+
$label-radius: $global-radius !default;
|
8
8
|
|
9
9
|
// We use these to style the label text
|
10
10
|
$label-font-size: emCalc(14px) !default;
|
@@ -21,7 +21,7 @@ $label-font-weight: bold !default;
|
|
21
21
|
text-decoration: none;
|
22
22
|
line-height: 1;
|
23
23
|
white-space: nowrap;
|
24
|
-
display: inline;
|
24
|
+
display: inline-block;
|
25
25
|
position: relative;
|
26
26
|
}
|
27
27
|
|
@@ -61,7 +61,7 @@ $label-font-weight: bold !default;
|
|
61
61
|
}
|
62
62
|
|
63
63
|
|
64
|
-
@if $include-html-classes {
|
64
|
+
@if $include-html-label-classes {
|
65
65
|
|
66
66
|
/* Labels */
|
67
67
|
.label {
|
@@ -10,7 +10,7 @@ $progress-bar-color: transparent !default;
|
|
10
10
|
$progress-bar-border-color: darken(#fff, 20%) !default;
|
11
11
|
$progress-bar-border-size: 1px !default;
|
12
12
|
$progress-bar-border-style: solid !default;
|
13
|
-
$progress-bar-border-radius: $
|
13
|
+
$progress-bar-border-radius: $global-radius !default;
|
14
14
|
|
15
15
|
// We use these to control the margin & padding
|
16
16
|
$progress-bar-pad: emCalc(2px) !default;
|
@@ -43,7 +43,7 @@ $progress-meter-alert-color: $alert-color !default;
|
|
43
43
|
}
|
44
44
|
|
45
45
|
|
46
|
-
@if $include-html-classes {
|
46
|
+
@if $include-html-media-classes {
|
47
47
|
|
48
48
|
/* Progress Bar */
|
49
49
|
.progress {
|
@@ -213,13 +213,13 @@ $switch-label-outline: 1px dotted #888 !default;
|
|
213
213
|
@include switch-style($paddle-bg, $positive-color, $negative-color, $radius, $base-style);
|
214
214
|
}
|
215
215
|
|
216
|
-
@if $include-html-classes {
|
216
|
+
@if $include-html-button-classes {
|
217
217
|
|
218
218
|
/* Foundation Switches */
|
219
219
|
@media only screen {
|
220
220
|
|
221
221
|
// Containing element for the radio switch
|
222
|
-
.switch {
|
222
|
+
div.switch {
|
223
223
|
@include switch;
|
224
224
|
|
225
225
|
// Large radio switches
|
@@ -247,4 +247,4 @@ $switch-label-outline: 1px dotted #888 !default;
|
|
247
247
|
@-webkit-keyframes webkitSiblingBugfix { from { position: relative; } to { position: relative; } }
|
248
248
|
|
249
249
|
}
|
250
|
-
}
|
250
|
+
}
|