zurb-foundation 4.1.2 → 4.1.5
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/CONTRIBUTING.md +2 -2
- data/Gemfile.lock +1 -1
- data/README.md +11 -7
- data/docs/CHANGELOG.md +22 -3
- data/docs/_sidebar-components.html.erb +3 -1
- data/docs/_sidebar.html.erb +3 -1
- data/docs/components/breadcrumbs.html.erb +9 -1
- data/docs/components/forms.html.erb +12 -6
- data/docs/components/grid.html.erb +3 -3
- data/docs/components/kitchen-sink.html.erb +7 -1
- data/docs/components/labels.html.erb +3 -1
- data/docs/components/section.html.erb +99 -10
- data/docs/components/top-bar.html.erb +2 -2
- data/docs/components/type.html.erb +31 -2
- data/docs/css/docs.scss +0 -5
- data/docs/index.html.erb +2 -0
- data/docs/javascript.html.erb +8 -5
- data/docs/sass.html.erb +1005 -127
- data/js/foundation/foundation.clearing.js +8 -4
- data/js/foundation/foundation.dropdown.js +43 -23
- data/js/foundation/foundation.forms.js +5 -3
- data/js/foundation/foundation.joyride.js +2 -6
- data/js/foundation/foundation.js +70 -47
- data/js/foundation/foundation.orbit.js +10 -4
- data/js/foundation/foundation.reveal.js +8 -3
- data/js/foundation/foundation.section.js +188 -72
- data/js/foundation/foundation.tooltips.js +4 -3
- data/js/foundation/foundation.topbar.js +4 -1
- data/lib/foundation/generators/install_generator.rb +2 -2
- data/lib/foundation/version.rb +1 -1
- data/scss/foundation.scss +1 -1
- data/{templates/project/scss/_settings.scss → scss/foundation/_variables.scss} +347 -173
- data/scss/foundation/components/_alert-boxes.scss +1 -1
- data/scss/foundation/components/_block-grid.scss +6 -2
- data/scss/foundation/components/_breadcrumbs.scss +20 -13
- data/scss/foundation/components/_button-groups.scss +18 -6
- data/scss/foundation/components/_buttons.scss +18 -11
- data/scss/foundation/components/_clearing.scss +6 -0
- data/scss/foundation/components/_custom-forms.scss +29 -23
- data/scss/foundation/components/_dropdown-buttons.scss +1 -1
- data/scss/foundation/components/_dropdown.scss +7 -3
- data/scss/foundation/components/_flex-video.scss +1 -1
- data/scss/foundation/components/_forms.scss +49 -25
- data/scss/foundation/components/_global.scss +222 -3
- data/scss/foundation/components/_grid.scss +40 -24
- data/scss/foundation/components/_inline-lists.scss +1 -1
- data/scss/foundation/components/_joyride.scss +4 -6
- data/scss/foundation/components/_keystrokes.scss +1 -1
- data/scss/foundation/components/_labels.scss +5 -3
- data/scss/foundation/components/_magellan.scss +1 -1
- data/scss/foundation/components/_orbit.scss +13 -8
- 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 +1 -1
- data/scss/foundation/components/_reveal.scss +7 -7
- data/scss/foundation/components/_section.scss +75 -21
- data/scss/foundation/components/_side-nav.scss +1 -1
- data/scss/foundation/components/_split-buttons.scss +10 -3
- data/scss/foundation/components/_sub-nav.scss +1 -1
- data/scss/foundation/components/_switch.scss +1 -1
- data/scss/foundation/components/_thumbs.scss +3 -1
- data/scss/foundation/components/_top-bar.scss +8 -6
- data/scss/foundation/components/_visibility.scss +1 -1
- data/scss/normalize.scss +13 -7
- data/templates/project/manifest.rb +2 -11
- data/templates/project/scss/app.scss +0 -1
- metadata +5 -7
- data/scss/foundation/_foundation-global.scss +0 -198
- data/templates/project/scss/normalize.scss +0 -396
@@ -73,23 +73,23 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
|
|
73
73
|
#{$default-float}: $joyride-tip-position-offset;
|
74
74
|
width: 0;
|
75
75
|
height: 0;
|
76
|
-
border:
|
76
|
+
border: inset $joyride-tip-nub-size;
|
77
77
|
|
78
78
|
&.top {
|
79
|
+
border-top-style: solid;
|
79
80
|
border-color: $joyride-tip-bg;
|
80
81
|
border-top-color: transparent !important;
|
81
82
|
border-#{$default-float}-color: transparent !important;
|
82
83
|
border-#{$opposite-direction}-color: transparent !important;
|
83
84
|
top: -($joyride-tip-nub-size*2);
|
84
|
-
bottom: none;
|
85
85
|
}
|
86
86
|
&.bottom {
|
87
|
+
border-bottom-style: solid;
|
87
88
|
border-color: $joyride-tip-bg !important;
|
88
89
|
border-bottom-color: transparent !important;
|
89
90
|
border-#{$default-float}-color: transparent !important;
|
90
91
|
border-#{$opposite-direction}-color: transparent !important;
|
91
92
|
bottom: -($joyride-tip-nub-size*2);
|
92
|
-
bottom: none;
|
93
93
|
}
|
94
94
|
|
95
95
|
&.right { right: -($joyride-tip-nub-size*2); }
|
@@ -187,14 +187,12 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
|
|
187
187
|
border-#{$default-float}-color: transparent !important;
|
188
188
|
border-#{$opposite-direction}-color: transparent !important;
|
189
189
|
bottom: -($joyride-tip-nub-size*2);
|
190
|
-
bottom: none;
|
191
190
|
}
|
192
191
|
&.right {
|
193
192
|
border-color: $joyride-tip-bg !important;
|
194
193
|
border-top-color: transparent !important;
|
195
194
|
border-right-color: transparent !important; border-bottom-color: transparent !important;
|
196
195
|
top: $joyride-tip-position-offset;
|
197
|
-
bottom: none;
|
198
196
|
left: auto;
|
199
197
|
right: -($joyride-tip-nub-size*2);
|
200
198
|
}
|
@@ -205,7 +203,7 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
|
|
205
203
|
border-bottom-color: transparent !important;
|
206
204
|
top: $joyride-tip-position-offset;
|
207
205
|
left: -($joyride-tip-nub-size*2);
|
208
|
-
right: auto;
|
206
|
+
right: auto;
|
209
207
|
}
|
210
208
|
}
|
211
209
|
}
|
@@ -9,6 +9,8 @@ $label-radius: $global-radius !default;
|
|
9
9
|
// We use these to style the label text
|
10
10
|
$label-font-sizing: emCalc(14px) !default;
|
11
11
|
$label-font-weight: bold !default;
|
12
|
+
$label-font-color: #333 !default;
|
13
|
+
$label-font-color-alt: #fff !default;
|
12
14
|
|
13
15
|
//
|
14
16
|
// Label Mixins
|
@@ -43,8 +45,8 @@ $label-font-weight: bold !default;
|
|
43
45
|
background-color: $bg;
|
44
46
|
|
45
47
|
// We control the text color for you based on the background color.
|
46
|
-
@if $bg-lightness < 70% { color:
|
47
|
-
@else { color:
|
48
|
+
@if $bg-lightness < 70% { color: $label-font-color-alt; }
|
49
|
+
@else { color: $label-font-color; }
|
48
50
|
}
|
49
51
|
|
50
52
|
// We use this to control the radius on labels.
|
@@ -62,7 +64,7 @@ $label-font-weight: bold !default;
|
|
62
64
|
}
|
63
65
|
|
64
66
|
|
65
|
-
@if $include-html-label-classes {
|
67
|
+
@if $include-html-label-classes != false {
|
66
68
|
|
67
69
|
/* Labels */
|
68
70
|
.label {
|
@@ -20,7 +20,7 @@ $orbit-bullet-nav-color: #999 !default;
|
|
20
20
|
$orbit-bullet-nav-color-active: #222 !default;
|
21
21
|
|
22
22
|
// We use thes to controls the style of slide numbers
|
23
|
-
$orbit-slide-number-bg:
|
23
|
+
$orbit-slide-number-bg: rgba(0,0,0,0) !default;
|
24
24
|
$orbit-slide-number-font-color: #fff !default;
|
25
25
|
$orbit-slide-number-padding: emCalc(5px) !default;
|
26
26
|
|
@@ -67,7 +67,9 @@ $stack-on-small-margin-bottom: emCalc(20px) !default;
|
|
67
67
|
top: 10px;
|
68
68
|
#{$default-float}: 10px;
|
69
69
|
font-size: 12px;
|
70
|
-
span { font-weight: 700; }
|
70
|
+
span { font-weight: 700; padding: $orbit-slide-number-padding;}
|
71
|
+
color: $orbit-slide-number-font-color;
|
72
|
+
background: $orbit-slide-number-bg;
|
71
73
|
}
|
72
74
|
|
73
75
|
.orbit-timer {
|
@@ -102,7 +104,8 @@ $stack-on-small-margin-bottom: emCalc(20px) !default;
|
|
102
104
|
top: 9px;
|
103
105
|
width: 11px;
|
104
106
|
height: 14px;
|
105
|
-
border:
|
107
|
+
border: inset 8px;
|
108
|
+
border-right-style: solid;
|
106
109
|
border-color: transparent transparent transparent #000;
|
107
110
|
}
|
108
111
|
}
|
@@ -131,11 +134,12 @@ $stack-on-small-margin-bottom: emCalc(20px) !default;
|
|
131
134
|
display: block;
|
132
135
|
width: 0;
|
133
136
|
height: 0;
|
134
|
-
border:
|
137
|
+
border: inset 16px;
|
135
138
|
}
|
136
139
|
}
|
137
140
|
.orbit-prev { #{$default-float}: 0;
|
138
|
-
& > span {
|
141
|
+
& > span {
|
142
|
+
border-#{$opposite-direction}-style: solid;
|
139
143
|
border-color: transparent;
|
140
144
|
border-#{$opposite-direction}-color: #fff;
|
141
145
|
}
|
@@ -146,6 +150,7 @@ $stack-on-small-margin-bottom: emCalc(20px) !default;
|
|
146
150
|
.orbit-next { #{$opposite-direction}: 0;
|
147
151
|
& > span {
|
148
152
|
border-color: transparent;
|
153
|
+
border-#{$default-float}-style: solid;
|
149
154
|
border-#{$default-float}-color: #fff;
|
150
155
|
#{$default-float}: 50%;
|
151
156
|
margin-#{$default-float}: -8px;
|
@@ -166,14 +171,14 @@ $stack-on-small-margin-bottom: emCalc(20px) !default;
|
|
166
171
|
display: block;
|
167
172
|
width: 18px;
|
168
173
|
height: 18px;
|
169
|
-
background:
|
174
|
+
background: $orbit-bullet-nav-color;
|
170
175
|
float: $default-float;
|
171
176
|
margin-#{$opposite-direction}: 6px;
|
172
|
-
border: solid 2px
|
177
|
+
border: solid 2px $orbit-bullet-nav-color-active;
|
173
178
|
@include radius(1000px);
|
174
179
|
|
175
180
|
&.active {
|
176
|
-
background:
|
181
|
+
background: $orbit-bullet-nav-color-active;
|
177
182
|
}
|
178
183
|
|
179
184
|
&:last-child { margin-#{$opposite-direction}: 0; }
|
@@ -99,7 +99,7 @@ $reveal-border-color: #666 !default;
|
|
99
99
|
cursor: pointer;
|
100
100
|
}
|
101
101
|
|
102
|
-
@if $include-html-reveal-classes {
|
102
|
+
@if $include-html-reveal-classes != false {
|
103
103
|
// Reveal Modals
|
104
104
|
.reveal-modal-bg { @include reveal-bg; }
|
105
105
|
|
@@ -116,11 +116,11 @@ $reveal-border-color: #666 !default;
|
|
116
116
|
.reveal-modal {
|
117
117
|
@include reveal-modal-style(false, emCalc(30px), false, $box-shadow: false, $top-offset: emCalc(100px));
|
118
118
|
|
119
|
-
&.
|
120
|
-
&.
|
121
|
-
&.
|
122
|
-
&.
|
123
|
-
&.
|
119
|
+
&.tiny { @include reveal-modal-base(false, 30%); }
|
120
|
+
&.small { @include reveal-modal-base(false, 40%); }
|
121
|
+
&.medium { @include reveal-modal-base(false, 60%); }
|
122
|
+
&.large { @include reveal-modal-base(false, 70%); }
|
123
|
+
&.xlarge { @include reveal-modal-base(false, 95%); }
|
124
124
|
}
|
125
125
|
}
|
126
126
|
|
@@ -128,4 +128,4 @@ $reveal-border-color: #666 !default;
|
|
128
128
|
@media print {
|
129
129
|
div:not(.reveal-modal) { display: none; }
|
130
130
|
}
|
131
|
-
}
|
131
|
+
}
|
@@ -18,9 +18,10 @@ $section-border-style: solid !default;
|
|
18
18
|
$section-border-color: #ccc !default;
|
19
19
|
|
20
20
|
// Control the color of the background and some size options
|
21
|
-
$section-content-bg:
|
22
|
-
$section-vertical-nav-min-width:
|
23
|
-
$section-
|
21
|
+
$section-content-bg: #fff !default;
|
22
|
+
$section-vertical-nav-min-width: emCalc(200px) !default;
|
23
|
+
$section-vertical-tabs-title-width: emCalc(200px) !default;
|
24
|
+
$section-bottom-margin: emCalc(20px) !default;
|
24
25
|
|
25
26
|
|
26
27
|
//
|
@@ -49,6 +50,12 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
49
50
|
position: relative;
|
50
51
|
}
|
51
52
|
|
53
|
+
// Vertical Tabs container border styles
|
54
|
+
@else if $section-type == vertical-tabs {
|
55
|
+
border: $section-border-size $section-border-style $section-border-color;
|
56
|
+
position: relative;
|
57
|
+
}
|
58
|
+
|
52
59
|
// Vertical Nav container border styles
|
53
60
|
@else if $section-type == vertical-nav {
|
54
61
|
|
@@ -101,8 +108,8 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
101
108
|
|
102
109
|
|
103
110
|
&.active {
|
104
|
-
.content { display: block; }
|
105
|
-
.title { background: $section-title-bg-active; }
|
111
|
+
& > .content { display: block; }
|
112
|
+
& > .title { background: $section-title-bg-active; }
|
106
113
|
}
|
107
114
|
|
108
115
|
|
@@ -135,12 +142,52 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
135
142
|
|
136
143
|
&.active {
|
137
144
|
|
138
|
-
.title {
|
145
|
+
& > .title {
|
139
146
|
background-color: $section-title-bg-active-tabs;
|
140
147
|
z-index: 11;
|
141
148
|
border-bottom: 0;
|
142
149
|
}
|
143
|
-
.content { position: relative; }
|
150
|
+
& > .content { position: relative; }
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
@else if $section-type == vertical-tabs {
|
155
|
+
padding-top: 0 !important;
|
156
|
+
border: 0;
|
157
|
+
position: static;
|
158
|
+
background-color: $section-title-bg;
|
159
|
+
|
160
|
+
.title {
|
161
|
+
position: absolute;
|
162
|
+
border-top: $section-border-size $section-border-style $section-border-color;
|
163
|
+
width: $section-vertical-tabs-title-width;
|
164
|
+
}
|
165
|
+
|
166
|
+
&:first-child .title { border-top: 0; }
|
167
|
+
|
168
|
+
.content {
|
169
|
+
// Display all content blocks to account for the scrollbar
|
170
|
+
// in the outerWidth measurements. JavaScript will toggle the active tabs.
|
171
|
+
display: block;
|
172
|
+
|
173
|
+
position: relative;
|
174
|
+
left: $section-vertical-tabs-title-width;
|
175
|
+
border-left: $section-border-size $section-border-style $section-border-color;
|
176
|
+
z-index: 10;
|
177
|
+
}
|
178
|
+
|
179
|
+
&.active {
|
180
|
+
|
181
|
+
& > .title {
|
182
|
+
background-color: $section-title-bg-active-tabs;
|
183
|
+
width: $section-vertical-tabs-title-width + emCalc(2px); // Cover the content's left border
|
184
|
+
border-right: 0;
|
185
|
+
z-index: 11; // Put active title on top of the content
|
186
|
+
}
|
187
|
+
|
188
|
+
&:last-child .title {
|
189
|
+
border-bottom: $section-border-size $section-border-style $section-border-color;
|
190
|
+
}
|
144
191
|
}
|
145
192
|
}
|
146
193
|
|
@@ -154,7 +201,7 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
154
201
|
.content { display: none; }
|
155
202
|
|
156
203
|
&.active {
|
157
|
-
.content {
|
204
|
+
& > .content {
|
158
205
|
display: block;
|
159
206
|
position: absolute;
|
160
207
|
#{$default-float}: 100%;
|
@@ -186,7 +233,7 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
186
233
|
.content { display: none; }
|
187
234
|
|
188
235
|
&.active {
|
189
|
-
.content {
|
236
|
+
& > .content {
|
190
237
|
display: block;
|
191
238
|
position: absolute;
|
192
239
|
z-index: 999;
|
@@ -200,14 +247,14 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
200
247
|
}
|
201
248
|
|
202
249
|
|
203
|
-
@if $include-html-section-classes {
|
250
|
+
@if $include-html-section-classes != false {
|
204
251
|
|
205
252
|
/* Sections */
|
206
253
|
.section-container, .section-container.auto {
|
207
254
|
@include section-container;
|
208
255
|
|
209
|
-
section,
|
210
|
-
|
256
|
+
&>section,
|
257
|
+
&>.section {
|
211
258
|
@include section;
|
212
259
|
}
|
213
260
|
}
|
@@ -215,8 +262,8 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
215
262
|
.section-container.tabs {
|
216
263
|
@include section-container(false, tabs);
|
217
264
|
|
218
|
-
section,
|
219
|
-
|
265
|
+
&>section,
|
266
|
+
&>.section { @include section(tabs); }
|
220
267
|
}
|
221
268
|
|
222
269
|
@media #{$small} {
|
@@ -224,26 +271,33 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
224
271
|
.section-container.auto {
|
225
272
|
@include section-container(false, tabs);
|
226
273
|
|
227
|
-
section,
|
228
|
-
|
274
|
+
&>section,
|
275
|
+
&>.section { @include section(tabs); }
|
229
276
|
}
|
230
277
|
.section-container.accordion .section {
|
231
278
|
padding-top: 0 !important;
|
232
279
|
}
|
233
280
|
|
281
|
+
.section-container.vertical-tabs {
|
282
|
+
@include section-container(false, vertical-tabs);
|
283
|
+
|
284
|
+
section,
|
285
|
+
.section { @include section(vertical-tabs); }
|
286
|
+
}
|
287
|
+
|
234
288
|
.section-container.vertical-nav {
|
235
289
|
@include section-container(false);
|
236
290
|
|
237
|
-
section,
|
238
|
-
|
291
|
+
&>section,
|
292
|
+
&>.section { @include section(vertical-nav); }
|
239
293
|
}
|
240
294
|
|
241
295
|
.section-container.horizontal-nav {
|
242
296
|
@include section-container(false, horizontal-nav);
|
243
297
|
|
244
|
-
section,
|
245
|
-
|
298
|
+
&>section,
|
299
|
+
&>.section { @include section(horizontal-nav); }
|
246
300
|
}
|
247
301
|
}
|
248
302
|
|
249
|
-
}
|
303
|
+
}
|
@@ -64,7 +64,7 @@ $split-button-pip-default-float-lrg: emCalc(-9px) !default;
|
|
64
64
|
width: 0;
|
65
65
|
height: 0;
|
66
66
|
display: block;
|
67
|
-
border-style:
|
67
|
+
border-style: inset;
|
68
68
|
|
69
69
|
#{$default-float}: 50%;
|
70
70
|
}
|
@@ -75,7 +75,9 @@ $split-button-pip-default-float-lrg: emCalc(-9px) !default;
|
|
75
75
|
|
76
76
|
// Control the border color for the span area of the split button
|
77
77
|
@if $span-border {
|
78
|
-
span {
|
78
|
+
span {
|
79
|
+
border-#{$default-float}-color: darken($span-border, $split-button-function-factor);
|
80
|
+
}
|
79
81
|
}
|
80
82
|
|
81
83
|
// Style of the button and clickable area for tiny sizes
|
@@ -84,6 +86,7 @@ $split-button-pip-default-float-lrg: emCalc(-9px) !default;
|
|
84
86
|
|
85
87
|
span { width: $split-button-span-width-tny;
|
86
88
|
&:before {
|
89
|
+
border-top-style: solid;
|
87
90
|
border-width: $split-button-pip-size-tny;
|
88
91
|
top: $split-button-pip-top-tny;
|
89
92
|
margin-#{$default-float}: $split-button-pip-default-float-tny;
|
@@ -97,6 +100,7 @@ $split-button-pip-default-float-lrg: emCalc(-9px) !default;
|
|
97
100
|
|
98
101
|
span { width: $split-button-span-width-sml;
|
99
102
|
&:before {
|
103
|
+
border-top-style: solid;
|
100
104
|
border-width: $split-button-pip-size-sml;
|
101
105
|
top: $split-button-pip-top-sml;
|
102
106
|
margin-#{$default-float}: $split-button-pip-default-float-sml;
|
@@ -110,6 +114,7 @@ $split-button-pip-default-float-lrg: emCalc(-9px) !default;
|
|
110
114
|
|
111
115
|
span { width: $split-button-span-width-med;
|
112
116
|
&:before {
|
117
|
+
border-top-style: solid;
|
113
118
|
border-width: $split-button-pip-size-med;
|
114
119
|
top: $split-button-pip-top-med;
|
115
120
|
margin-#{$default-float}: $split-button-pip-default-float-med;
|
@@ -123,6 +128,7 @@ $split-button-pip-default-float-lrg: emCalc(-9px) !default;
|
|
123
128
|
|
124
129
|
span { width: $split-button-span-width-lrg;
|
125
130
|
&:before {
|
131
|
+
border-top-style: solid;
|
126
132
|
border-width: $split-button-pip-size-lrg;
|
127
133
|
top: $split-button-pip-top-lrg;
|
128
134
|
margin-#{$default-float}: $split-button-pip-default-float-lrg;
|
@@ -137,7 +143,7 @@ $split-button-pip-default-float-lrg: emCalc(-9px) !default;
|
|
137
143
|
}
|
138
144
|
|
139
145
|
|
140
|
-
@if $include-html-button-classes {
|
146
|
+
@if $include-html-button-classes != false {
|
141
147
|
|
142
148
|
/* Split Buttons */
|
143
149
|
.split.button { @include split-button;
|
@@ -149,6 +155,7 @@ $split-button-pip-default-float-lrg: emCalc(-9px) !default;
|
|
149
155
|
&.tiny { @include split-button(tiny, false, false, false); }
|
150
156
|
&.small { @include split-button(small, false, false, false); }
|
151
157
|
&.large { @include split-button(large, false, false, false); }
|
158
|
+
&.expand { padding-left: 2em; }
|
152
159
|
|
153
160
|
&.secondary { @include split-button(false, $split-button-pip-color-alt, false, false); }
|
154
161
|
|