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,14 +1,12 @@
|
|
1
1
|
//
|
2
2
|
// Block Grid Variables
|
3
3
|
//
|
4
|
+
$include-html-grid-classes: $include-html-classes !default;
|
4
5
|
|
5
6
|
// We use this to control the maximum number of block grid elements per row
|
6
7
|
$block-grid-elements: 12 !default;
|
7
8
|
$block-grid-default-spacing: 10px !default;
|
8
9
|
|
9
|
-
// Enables media queries for block-grid classes. Set to false if writing semantic HTML.
|
10
|
-
$block-grid-media-queries: true !default;
|
11
|
-
|
12
10
|
//
|
13
11
|
// Block Grid Mixins
|
14
12
|
//
|
@@ -43,7 +41,7 @@ $block-grid-media-queries: true !default;
|
|
43
41
|
|
44
42
|
}
|
45
43
|
|
46
|
-
@if $
|
44
|
+
@if $include-html-grid-classes {
|
47
45
|
/* Foundation Block Grids for below small breakpoint */
|
48
46
|
@media only screen {
|
49
47
|
[class*="block-grid-"] { @include block-grid; }
|
@@ -1,6 +1,7 @@
|
|
1
1
|
//
|
2
2
|
// Clearing Variables
|
3
3
|
//
|
4
|
+
$include-html-clearing-classes: $include-html-classes !default;
|
4
5
|
|
5
6
|
// We use these to set the background colors for parts of Clearing.
|
6
7
|
$clearing-bg: #111 !default;
|
@@ -26,192 +27,194 @@ $clearing-carousel-height: 150px !default;
|
|
26
27
|
$clearing-carousel-thumb-width: 175px !default;
|
27
28
|
$clearing-carousel-thumb-active-border: 4px solid rgb(255,255,255) !default;
|
28
29
|
|
30
|
+
@if $include-html-clearing-classes {
|
31
|
+
// We decided to not create a mixin for Clearing because it relies
|
32
|
+
// on predefined classes and structure to work properly.
|
33
|
+
// The variables above should give enough control.
|
29
34
|
|
30
|
-
|
31
|
-
|
32
|
-
|
35
|
+
/* Clearing Styles */
|
36
|
+
[data-clearing] {
|
37
|
+
@include clearfix;
|
38
|
+
margin-bottom: 0;
|
39
|
+
list-style: none;
|
33
40
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
list-style: none;
|
39
|
-
|
40
|
-
li {
|
41
|
-
float: $default-float;
|
42
|
-
margin-#{$opposite-direction}: 10px;
|
41
|
+
li {
|
42
|
+
float: $default-float;
|
43
|
+
margin-#{$opposite-direction}: 10px;
|
44
|
+
}
|
43
45
|
}
|
44
|
-
}
|
45
46
|
|
46
|
-
.clearing-blackout {
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
47
|
+
.clearing-blackout {
|
48
|
+
background: $clearing-bg;
|
49
|
+
position: fixed;
|
50
|
+
width: 100%;
|
51
|
+
height: 100%;
|
52
|
+
top: 0;
|
53
|
+
#{$default-float}: 0;
|
54
|
+
z-index: 998;
|
54
55
|
|
55
|
-
|
56
|
-
}
|
56
|
+
.clearing-close { display: block; }
|
57
|
+
}
|
57
58
|
|
58
|
-
.clearing-container {
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
}
|
59
|
+
.clearing-container {
|
60
|
+
position: relative;
|
61
|
+
z-index: 998;
|
62
|
+
height: 100%;
|
63
|
+
overflow: hidden;
|
64
|
+
margin: 0;
|
65
|
+
}
|
65
66
|
|
66
|
-
.visible-img {
|
67
|
-
|
68
|
-
|
67
|
+
.visible-img {
|
68
|
+
height: 95%;
|
69
|
+
position: relative;
|
69
70
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
71
|
+
img {
|
72
|
+
position: absolute;
|
73
|
+
#{$default-float}: 50%;
|
74
|
+
top: 50%;
|
75
|
+
margin-#{$default-float}: -50%;
|
76
|
+
max-height: 100%;
|
77
|
+
max-width: 100%;
|
78
|
+
}
|
77
79
|
}
|
78
|
-
}
|
79
80
|
|
80
|
-
.clearing-caption {
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
}
|
81
|
+
.clearing-caption {
|
82
|
+
color: $clearing-caption-font-color;
|
83
|
+
line-height: 1.3;
|
84
|
+
margin-bottom: 0;
|
85
|
+
text-align: center;
|
86
|
+
bottom: 0;
|
87
|
+
background: $clearing-caption-bg;
|
88
|
+
width: 100%;
|
89
|
+
padding: $clearing-caption-padding;
|
90
|
+
position: absolute;
|
91
|
+
#{$default-float}: 0;
|
92
|
+
}
|
92
93
|
|
93
|
-
.clearing-close {
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
}
|
94
|
+
.clearing-close {
|
95
|
+
z-index: 999;
|
96
|
+
padding-#{$default-float}: 20px;
|
97
|
+
padding-top: 10px;
|
98
|
+
font-size: $clearing-close-size;
|
99
|
+
line-height: 1;
|
100
|
+
color: $clearing-close-color;
|
101
|
+
display: none;
|
102
|
+
|
103
|
+
&:hover,
|
104
|
+
&:focus { color: #ccc; }
|
105
|
+
}
|
105
106
|
|
106
|
-
.clearing-assembled .clearing-container { height: 100%;
|
107
|
-
|
108
|
-
}
|
107
|
+
.clearing-assembled .clearing-container { height: 100%;
|
108
|
+
.carousel > ul { display: none; }
|
109
|
+
}
|
109
110
|
|
110
111
|
|
111
|
-
// Large screen overrides
|
112
|
-
@media #{$small} {
|
113
|
-
|
114
|
-
|
115
|
-
position: absolute;
|
116
|
-
height: 100%;
|
117
|
-
width: 40px;
|
118
|
-
top: 0;
|
119
|
-
& > span {
|
112
|
+
// Large screen overrides
|
113
|
+
@media #{$small} {
|
114
|
+
.clearing-main-prev,
|
115
|
+
.clearing-main-next {
|
120
116
|
position: absolute;
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
117
|
+
height: 100%;
|
118
|
+
width: 40px;
|
119
|
+
top: 0;
|
120
|
+
& > span {
|
121
|
+
position: absolute;
|
122
|
+
top: 50%;
|
123
|
+
display: block;
|
124
|
+
width: 0;
|
125
|
+
height: 0;
|
126
|
+
border: solid $clearing-arrow-size;
|
127
|
+
}
|
126
128
|
}
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
129
|
+
.clearing-main-prev {
|
130
|
+
#{$default-float}: 0;
|
131
|
+
& > span {
|
132
|
+
#{$default-float}: 5px;
|
133
|
+
border-color: transparent;
|
134
|
+
border-#{$opposite-direction}-color: $clearing-arrow-color;
|
135
|
+
}
|
134
136
|
}
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
137
|
+
.clearing-main-next {
|
138
|
+
#{$opposite-direction}: 0;
|
139
|
+
& > span {
|
140
|
+
border-color: transparent;
|
141
|
+
border-#{$default-float}-color: $clearing-arrow-color;
|
142
|
+
}
|
141
143
|
}
|
142
|
-
}
|
143
144
|
|
144
|
-
|
145
|
-
|
145
|
+
.clearing-main-prev.disabled,
|
146
|
+
.clearing-main-next.disabled { opacity: 0.5; }
|
146
147
|
|
147
|
-
|
148
|
-
|
148
|
+
// If you want to show a lightbox, but only have a single image come through as the thumbnail
|
149
|
+
.clearing-feature ~ li { display: none; }
|
149
150
|
|
150
|
-
|
151
|
+
.clearing-assembled .clearing-container {
|
151
152
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
153
|
+
.carousel {
|
154
|
+
background: $clearing-carousel-bg;
|
155
|
+
height: $clearing-carousel-height;
|
156
|
+
margin-top: 5px;
|
156
157
|
|
157
|
-
|
158
|
-
display: block;
|
159
|
-
z-index: 999;
|
160
|
-
width: 200%;
|
161
|
-
height: 100%;
|
162
|
-
margin-#{$default-float}: 0;
|
163
|
-
position: relative;
|
164
|
-
#{$default-float}: 0;
|
165
|
-
|
166
|
-
li {
|
158
|
+
& > ul {
|
167
159
|
display: block;
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
overflow: hidden;
|
173
|
-
margin-#{$opposite-direction}: 1px;
|
160
|
+
z-index: 999;
|
161
|
+
width: 200%;
|
162
|
+
height: 100%;
|
163
|
+
margin-#{$default-float}: 0;
|
174
164
|
position: relative;
|
175
|
-
|
176
|
-
opacity: 0.4;
|
165
|
+
#{$default-float}: 0;
|
177
166
|
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
167
|
+
li {
|
168
|
+
display: block;
|
169
|
+
width: $clearing-carousel-thumb-width;
|
170
|
+
height: inherit;
|
171
|
+
padding: 0;
|
172
|
+
float: $default-float;
|
173
|
+
overflow: hidden;
|
174
|
+
margin-#{$opposite-direction}: 1px;
|
175
|
+
position: relative;
|
176
|
+
cursor: pointer;
|
177
|
+
opacity: 0.4;
|
178
|
+
|
179
|
+
&.fix-height {
|
180
|
+
img {
|
181
|
+
min-height: 100%;
|
182
|
+
height: 100%;
|
183
|
+
max-width: none;
|
184
|
+
}
|
183
185
|
}
|
184
|
-
}
|
185
186
|
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
187
|
+
a.th {
|
188
|
+
border: none;
|
189
|
+
-webkit-box-shadow: none;
|
190
|
+
box-shadow: none;
|
191
|
+
display: block;
|
192
|
+
}
|
192
193
|
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
194
|
+
img {
|
195
|
+
cursor: pointer !important;
|
196
|
+
min-width: 100% !important;
|
197
|
+
}
|
197
198
|
|
198
|
-
|
199
|
+
&.visible { opacity: 1; }
|
200
|
+
}
|
199
201
|
}
|
200
202
|
}
|
203
|
+
|
204
|
+
.visible-img {
|
205
|
+
background: $clearing-img-bg;
|
206
|
+
overflow: hidden;
|
207
|
+
height: $clearing-active-img-height;
|
208
|
+
}
|
201
209
|
}
|
202
210
|
|
203
|
-
.
|
204
|
-
|
205
|
-
|
206
|
-
|
211
|
+
.clearing-close {
|
212
|
+
position: absolute;
|
213
|
+
top: 10px;
|
214
|
+
#{$opposite-direction}: 20px;
|
215
|
+
padding-#{$default-float}: 0;
|
216
|
+
padding-top: 0;
|
207
217
|
}
|
208
218
|
}
|
209
219
|
|
210
|
-
.clearing-close {
|
211
|
-
position: absolute;
|
212
|
-
top: 10px;
|
213
|
-
#{$opposite-direction}: 20px;
|
214
|
-
padding-#{$default-float}: 0;
|
215
|
-
padding-top: 0;
|
216
|
-
}
|
217
220
|
}
|
@@ -1,12 +1,23 @@
|
|
1
|
+
//
|
2
|
+
// FIX THE "X" ON CUSTOM FORMS
|
3
|
+
//
|
4
|
+
|
5
|
+
|
1
6
|
//
|
2
7
|
// Custom Form Variables
|
3
8
|
//
|
9
|
+
$include-html-custom-form-classes: $include-html-classes !default;
|
4
10
|
|
5
11
|
// We use these to control the basic form styles input styles
|
6
12
|
$custom-form-border-color: #ccc !default;
|
13
|
+
$custom-form-border-size: 1px !default;
|
7
14
|
$custom-form-bg: #fff !default;
|
8
15
|
$custom-form-bg-disabled: #ddd !default;
|
16
|
+
$custom-form-input-size: 16px !default;
|
9
17
|
$custom-form-check-color: #222 !default;
|
18
|
+
$custom-form-check-size: 20px !default;
|
19
|
+
$custom-form-radio-size: 8px !default;
|
20
|
+
$custom-form-checkbox-radius: 0px !default;
|
10
21
|
|
11
22
|
// We use these to style the custom select form element.
|
12
23
|
$custom-select-bg: #fff !default;
|
@@ -42,9 +53,13 @@ $custom-dropdown-width-large: 434px !default;
|
|
42
53
|
// We decided not to make a mixin for the custom forms because
|
43
54
|
// they rely on a very specific class naming structure.
|
44
55
|
// We may look at updating this in the future.
|
56
|
+
@mixin custom-form-input($radius:0px, $mark-size:0px) {
|
57
|
+
@include radius($radius);
|
58
|
+
padding: (($custom-form-input-size - $mark-size) / 2) - $custom-form-border-size;
|
59
|
+
}
|
45
60
|
|
46
61
|
// Only include these classes if the variable is true, otherwise they'll be left out.
|
47
|
-
@if $include-html-
|
62
|
+
@if $include-html-custom-form-classes != false {
|
48
63
|
|
49
64
|
/* Custom Checkbox and Radio Inputs */
|
50
65
|
form.custom {
|
@@ -57,28 +72,27 @@ $custom-dropdown-width-large: 434px !default;
|
|
57
72
|
|
58
73
|
.custom {
|
59
74
|
display: inline-block;
|
60
|
-
width:
|
61
|
-
height:
|
75
|
+
width: $custom-form-input-size;
|
76
|
+
height: $custom-form-input-size;
|
62
77
|
position: relative;
|
63
|
-
|
64
|
-
border: solid
|
78
|
+
vertical-align: middle;
|
79
|
+
border: solid $custom-form-border-size $custom-form-border-color;
|
65
80
|
background: $custom-form-bg;
|
66
81
|
|
67
|
-
&.
|
82
|
+
&.checkbox {
|
83
|
+
@include custom-form-input($radius:$custom-form-checkbox-radius, $mark-size:$custom-form-check-size);
|
84
|
+
}
|
85
|
+
|
86
|
+
&.radio {
|
87
|
+
@include custom-form-input($radius:1000px, $mark-size:$custom-form-radio-size);
|
88
|
+
}
|
68
89
|
|
69
90
|
&.checkbox {
|
70
91
|
&:before {
|
71
92
|
content: "";
|
72
93
|
display: block;
|
73
|
-
|
74
|
-
|
75
|
-
width: 14px;
|
76
|
-
text-align: center;
|
77
|
-
position: absolute;
|
78
|
-
top: 0;
|
79
|
-
#{$default-float}: 0;
|
80
|
-
font-size: 14px;
|
81
|
-
color: #fff;
|
94
|
+
font-size: $custom-form-check-size;
|
95
|
+
color: $custom-form-bg;
|
82
96
|
}
|
83
97
|
}
|
84
98
|
|
@@ -86,20 +100,20 @@ $custom-dropdown-width-large: 434px !default;
|
|
86
100
|
&:before {
|
87
101
|
content: "";
|
88
102
|
display: block;
|
89
|
-
width:
|
90
|
-
height:
|
103
|
+
width: $custom-form-radio-size;
|
104
|
+
height: $custom-form-radio-size;
|
91
105
|
@include radius(1000px);
|
92
106
|
background: $custom-form-check-color;
|
93
107
|
position: relative;
|
94
|
-
top: 3px;
|
95
|
-
#{$default-float}: 3px;
|
96
108
|
}
|
97
109
|
}
|
98
110
|
|
99
111
|
&.checkbox.checked {
|
100
112
|
&:before {
|
101
|
-
content: "\
|
113
|
+
content: "\2A2F";
|
102
114
|
color: $custom-form-check-color;
|
115
|
+
margin-top: -8px;
|
116
|
+
margin-left: 2px;
|
103
117
|
}
|
104
118
|
}
|
105
119
|
}
|
@@ -241,6 +255,6 @@ $custom-dropdown-width-large: 434px !default;
|
|
241
255
|
}
|
242
256
|
|
243
257
|
/* Custom input, disabled */
|
244
|
-
.custom.disabled { background
|
258
|
+
.custom.disabled { background: $custom-form-bg-disabled; }
|
245
259
|
}
|
246
260
|
}
|