zurb-foundation-5 5.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.bowerrc +3 -0
- data/.editorconfig +9 -0
- data/.gitignore +46 -0
- data/.travis.yml +34 -0
- data/CONTRIBUTING.md +55 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +16 -0
- data/Gruntfile.js +222 -0
- data/LICENSE +22 -0
- data/README.md +44 -0
- data/bower.json +20 -0
- data/composer.json +9 -0
- data/foundation.gemspec +21 -0
- data/humans.txt +8 -0
- data/js/foundation/foundation.abide.js +299 -0
- data/js/foundation/foundation.accordion.js +54 -0
- data/js/foundation/foundation.alert.js +43 -0
- data/js/foundation/foundation.clearing.js +531 -0
- data/js/foundation/foundation.dropdown.js +306 -0
- data/js/foundation/foundation.equalizer.js +68 -0
- data/js/foundation/foundation.interchange.js +331 -0
- data/js/foundation/foundation.joyride.js +849 -0
- data/js/foundation/foundation.js +609 -0
- data/js/foundation/foundation.magellan.js +173 -0
- data/js/foundation/foundation.offcanvas.js +50 -0
- data/js/foundation/foundation.orbit.js +606 -0
- data/js/foundation/foundation.reveal.js +427 -0
- data/js/foundation/foundation.slider.js +200 -0
- data/js/foundation/foundation.tab.js +168 -0
- data/js/foundation/foundation.tooltip.js +272 -0
- data/js/foundation/foundation.topbar.js +422 -0
- data/karma.conf.js +114 -0
- data/lib/foundation/engine.rb +20 -0
- data/lib/foundation/generators/USAGE +15 -0
- data/lib/foundation/generators/install_generator.rb +54 -0
- data/lib/foundation/generators/templates/application.html.erb +47 -0
- data/lib/foundation/generators/templates/application.html.haml +31 -0
- data/lib/foundation/generators/templates/application.html.slim +35 -0
- data/lib/foundation/sprockets.rb +4 -0
- data/lib/foundation/version.rb +3 -0
- data/lib/scss.js +114 -0
- data/lib/zurb-foundation.rb +33 -0
- data/package.json +48 -0
- data/robots.txt +4 -0
- data/run-tests.sh +83 -0
- data/sache.json +5 -0
- data/scss/foundation.scss +45 -0
- data/scss/foundation/_functions.scss +101 -0
- data/scss/foundation/_settings.scss +1279 -0
- data/scss/foundation/components/_accordion.scss +52 -0
- data/scss/foundation/components/_alert-boxes.scss +126 -0
- data/scss/foundation/components/_block-grid.scss +132 -0
- data/scss/foundation/components/_breadcrumbs.scss +127 -0
- data/scss/foundation/components/_button-groups.scss +108 -0
- data/scss/foundation/components/_buttons.scss +222 -0
- data/scss/foundation/components/_clearing.scss +247 -0
- data/scss/foundation/components/_dropdown-buttons.scss +129 -0
- data/scss/foundation/components/_dropdown.scss +248 -0
- data/scss/foundation/components/_flex-video.scss +51 -0
- data/scss/foundation/components/_forms.scss +496 -0
- data/scss/foundation/components/_global.scss +365 -0
- data/scss/foundation/components/_grid.scss +261 -0
- data/scss/foundation/components/_inline-lists.scss +56 -0
- data/scss/foundation/components/_joyride.scss +220 -0
- data/scss/foundation/components/_keystrokes.scss +61 -0
- data/scss/foundation/components/_labels.scss +104 -0
- data/scss/foundation/components/_magellan.scss +34 -0
- data/scss/foundation/components/_offcanvas.scss +381 -0
- data/scss/foundation/components/_orbit.scss +415 -0
- data/scss/foundation/components/_pagination.scss +150 -0
- data/scss/foundation/components/_panels.scss +91 -0
- data/scss/foundation/components/_pricing-tables.scss +150 -0
- data/scss/foundation/components/_progress-bars.scss +79 -0
- data/scss/foundation/components/_range-slider.scss +148 -0
- data/scss/foundation/components/_reveal-new.scss +0 -0
- data/scss/foundation/components/_reveal.scss +216 -0
- data/scss/foundation/components/_side-nav.scss +93 -0
- data/scss/foundation/components/_split-buttons.scss +191 -0
- data/scss/foundation/components/_sub-nav.scss +125 -0
- data/scss/foundation/components/_switch.scss +294 -0
- data/scss/foundation/components/_tables.scss +97 -0
- data/scss/foundation/components/_tabs.scss +105 -0
- data/scss/foundation/components/_thumbs.scss +68 -0
- data/scss/foundation/components/_tooltips.scss +140 -0
- data/scss/foundation/components/_top-bar.scss +640 -0
- data/scss/foundation/components/_type.scss +493 -0
- data/scss/foundation/components/_visibility.scss +345 -0
- data/scss/foundation/test.html +0 -0
- data/scss/normalize.scss +423 -0
- data/spec/abide/abide.js +173 -0
- data/spec/abide/advanced.html +22 -0
- data/spec/abide/basic.html +13 -0
- data/spec/accordion/accordion.js +94 -0
- data/spec/accordion/basic.html +39 -0
- data/spec/accordion/grid.html +44 -0
- data/spec/accordion/multiexpand.html +20 -0
- data/spec/alert/alert.js +35 -0
- data/spec/alert/basic.html +4 -0
- data/spec/clearing/222.gif +0 -0
- data/spec/clearing/777.gif +0 -0
- data/spec/clearing/basic.html +5 -0
- data/spec/clearing/ccc.gif +0 -0
- data/spec/clearing/clearing.js +55 -0
- data/spec/dropdown/basic.html +10 -0
- data/spec/dropdown/dropdown.js +65 -0
- data/spec/equalizer/basic.html +24 -0
- data/spec/equalizer/equalizer.js +30 -0
- data/spec/framework/framework.js +14 -0
- data/spec/helpers.js +37 -0
- data/spec/interchange/basic.html +3 -0
- data/spec/interchange/interchange.js +60 -0
- data/spec/joyride/joyride.js +14 -0
- data/spec/magellan/magellan.js +14 -0
- data/spec/offcanvas/offcanvas.js +14 -0
- data/spec/orbit/orbit.js +14 -0
- data/spec/reveal/reveal.js +14 -0
- data/spec/tab/tab.js +14 -0
- data/spec/tooltip/tooltip.js +14 -0
- data/spec/topbar/multidropdown.html +60 -0
- data/spec/topbar/sticky.html +31 -0
- data/spec/topbar/topbar.js +96 -0
- metadata +238 -0
@@ -0,0 +1,345 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
//
|
8
|
+
// Foundation Visibility Classes
|
9
|
+
//
|
10
|
+
$include-html-visibility-classes: $include-html-classes !default;
|
11
|
+
$include-table-visibility-classes: true !default;
|
12
|
+
$include-legacy-visibility-classes: true !default;
|
13
|
+
|
14
|
+
//
|
15
|
+
// Media Class Names
|
16
|
+
//
|
17
|
+
// Visibility Breakpoints
|
18
|
+
$visibility-breakpoint-sizes:
|
19
|
+
small,
|
20
|
+
medium,
|
21
|
+
large,
|
22
|
+
xlarge,
|
23
|
+
xxlarge;
|
24
|
+
|
25
|
+
$visibility-breakpoint-queries:
|
26
|
+
unquote($small-up),
|
27
|
+
unquote($medium-up),
|
28
|
+
unquote($large-up),
|
29
|
+
unquote($xlarge-up),
|
30
|
+
unquote($xxlarge-up);
|
31
|
+
|
32
|
+
@mixin visibility-loop {
|
33
|
+
@each $current-visibility-breakpoint in $visibility-breakpoint-sizes {
|
34
|
+
$visibility-inherit-list: ();
|
35
|
+
$visibility-none-list: ();
|
36
|
+
|
37
|
+
$visibility-table-list: ();
|
38
|
+
$visibility-table-header-group-list: ();
|
39
|
+
$visibility-table-row-group-list: ();
|
40
|
+
$visibility-table-row-list: ();
|
41
|
+
$visibility-table-cell-list: ();
|
42
|
+
|
43
|
+
@each $visibility-comparison-breakpoint in $visibility-breakpoint-sizes {
|
44
|
+
@if index($visibility-breakpoint-sizes, $visibility-comparison-breakpoint) < index($visibility-breakpoint-sizes, $current-visibility-breakpoint) {
|
45
|
+
// Smaller than current breakpoint
|
46
|
+
|
47
|
+
$visibility-inherit-list: append($visibility-inherit-list, unquote(
|
48
|
+
'.hide-for-#{$visibility-comparison-breakpoint}-only, .show-for-#{$visibility-comparison-breakpoint}-up'
|
49
|
+
), comma);
|
50
|
+
$visibility-none-list: append($visibility-none-list, unquote(
|
51
|
+
'.show-for-#{$visibility-comparison-breakpoint}-only, .hide-for-#{$visibility-comparison-breakpoint}-up'
|
52
|
+
), comma);
|
53
|
+
$visibility-table-list: append($visibility-table-list, unquote(
|
54
|
+
'table.hide-for-#{$visibility-comparison-breakpoint}-only, table.show-for-#{$visibility-comparison-breakpoint}-up'
|
55
|
+
), comma);
|
56
|
+
$visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
|
57
|
+
'thead.hide-for-#{$visibility-comparison-breakpoint}-only, thead.show-for-#{$visibility-comparison-breakpoint}-up'
|
58
|
+
), comma);
|
59
|
+
$visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
|
60
|
+
'tbody.hide-for-#{$visibility-comparison-breakpoint}-only, tbody.show-for-#{$visibility-comparison-breakpoint}-up'
|
61
|
+
), comma);
|
62
|
+
$visibility-table-row-list: append($visibility-table-row-list, unquote(
|
63
|
+
'tr.hide-for-#{$visibility-comparison-breakpoint}-only, tr.show-for-#{$visibility-comparison-breakpoint}-up'
|
64
|
+
), comma);
|
65
|
+
$visibility-table-cell-list: append($visibility-table-cell-list, unquote(
|
66
|
+
'th.hide-for-#{$visibility-comparison-breakpoint}-only, td.hide-for-#{$visibility-comparison-breakpoint}-only, th.show-for-#{$visibility-comparison-breakpoint}-up, td.show-for-#{$visibility-comparison-breakpoint}-up'
|
67
|
+
), comma);
|
68
|
+
|
69
|
+
// Foundation 4 compatibility:
|
70
|
+
// Include .show/hide-for-[size] and .show/hide-for-[size]-down classes
|
71
|
+
// for small, medium, and large breakpoints only
|
72
|
+
@if $include-legacy-visibility-classes and index((small, medium, large), $visibility-comparison-breakpoint) != false {
|
73
|
+
$visibility-inherit-list: append($visibility-inherit-list, unquote(
|
74
|
+
'.hide-for-#{$visibility-comparison-breakpoint}, .hide-for-#{$visibility-comparison-breakpoint}-down'
|
75
|
+
), comma);
|
76
|
+
$visibility-none-list: append($visibility-none-list, unquote(
|
77
|
+
'.show-for-#{$visibility-comparison-breakpoint}, .show-for-#{$visibility-comparison-breakpoint}-down'
|
78
|
+
), comma);
|
79
|
+
$visibility-table-list: append($visibility-table-list, unquote(
|
80
|
+
'table.hide-for-#{$visibility-comparison-breakpoint}, table.hide-for-#{$visibility-comparison-breakpoint}-down'
|
81
|
+
), comma);
|
82
|
+
$visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
|
83
|
+
'thead.hide-for-#{$visibility-comparison-breakpoint}, thead.hide-for-#{$visibility-comparison-breakpoint}-down'
|
84
|
+
), comma);
|
85
|
+
$visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
|
86
|
+
'tbody.hide-for-#{$visibility-comparison-breakpoint}, tbody.hide-for-#{$visibility-comparison-breakpoint}-down'
|
87
|
+
), comma);
|
88
|
+
$visibility-table-row-list: append($visibility-table-row-list, unquote(
|
89
|
+
'tr.hide-for-#{$visibility-comparison-breakpoint}, tr.hide-for-#{$visibility-comparison-breakpoint}-down'
|
90
|
+
), comma);
|
91
|
+
$visibility-table-cell-list: append($visibility-table-cell-list, unquote(
|
92
|
+
'th.hide-for-#{$visibility-comparison-breakpoint}, td.hide-for-#{$visibility-comparison-breakpoint}, th.hide-for-#{$visibility-comparison-breakpoint}-down, td.hide-for-#{$visibility-comparison-breakpoint}-down'
|
93
|
+
), comma);
|
94
|
+
}
|
95
|
+
|
96
|
+
} @else if index($visibility-breakpoint-sizes, $visibility-comparison-breakpoint) > index($visibility-breakpoint-sizes, $current-visibility-breakpoint) {
|
97
|
+
// Larger than current breakpoint
|
98
|
+
|
99
|
+
$visibility-inherit-list: append($visibility-inherit-list, unquote(
|
100
|
+
'.hide-for-#{$visibility-comparison-breakpoint}-only, .hide-for-#{$visibility-comparison-breakpoint}-up'
|
101
|
+
), comma);
|
102
|
+
$visibility-none-list: append($visibility-none-list, unquote(
|
103
|
+
'.show-for-#{$visibility-comparison-breakpoint}-only, .show-for-#{$visibility-comparison-breakpoint}-up'
|
104
|
+
), comma);
|
105
|
+
$visibility-table-list: append($visibility-table-list, unquote(
|
106
|
+
'table.hide-for-#{$visibility-comparison-breakpoint}-only, table.hide-for-#{$visibility-comparison-breakpoint}-up'
|
107
|
+
), comma);
|
108
|
+
$visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
|
109
|
+
'thead.hide-for-#{$visibility-comparison-breakpoint}-only, thead.hide-for-#{$visibility-comparison-breakpoint}-up'
|
110
|
+
), comma);
|
111
|
+
$visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
|
112
|
+
'tbody.hide-for-#{$visibility-comparison-breakpoint}-only, tbody.hide-for-#{$visibility-comparison-breakpoint}-up'
|
113
|
+
), comma);
|
114
|
+
$visibility-table-row-list: append($visibility-table-row-list, unquote(
|
115
|
+
'tr.hide-for-#{$visibility-comparison-breakpoint}-only, tr.hide-for-#{$visibility-comparison-breakpoint}-up'
|
116
|
+
), comma);
|
117
|
+
$visibility-table-cell-list: append($visibility-table-cell-list, unquote(
|
118
|
+
'th.hide-for-#{$visibility-comparison-breakpoint}-only, td.hide-for-#{$visibility-comparison-breakpoint}-only, th.hide-for-#{$visibility-comparison-breakpoint}-up, td.hide-for-#{$visibility-comparison-breakpoint}-up'
|
119
|
+
), comma);
|
120
|
+
|
121
|
+
// Foundation 4 compatibility:
|
122
|
+
// Include .show/hide-for-[size] and .show/hide-for-[size]-down classes
|
123
|
+
// for small, medium, and large breakpoints only
|
124
|
+
@if $include-legacy-visibility-classes and index((small, medium, large), $visibility-comparison-breakpoint) != false {
|
125
|
+
$visibility-inherit-list: append($visibility-inherit-list, unquote(
|
126
|
+
'.hide-for-#{$visibility-comparison-breakpoint}, .show-for-#{$visibility-comparison-breakpoint}-down'
|
127
|
+
), comma);
|
128
|
+
$visibility-none-list: append($visibility-none-list, unquote(
|
129
|
+
'.show-for-#{$visibility-comparison-breakpoint}, .hide-for-#{$visibility-comparison-breakpoint}-down'
|
130
|
+
), comma);
|
131
|
+
$visibility-table-list: append($visibility-table-list, unquote(
|
132
|
+
'table.hide-for-#{$visibility-comparison-breakpoint}, table.show-for-#{$visibility-comparison-breakpoint}-down'
|
133
|
+
), comma);
|
134
|
+
$visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
|
135
|
+
'thead.hide-for-#{$visibility-comparison-breakpoint}, thead.show-for-#{$visibility-comparison-breakpoint}-down'
|
136
|
+
), comma);
|
137
|
+
$visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
|
138
|
+
'tbody.hide-for-#{$visibility-comparison-breakpoint}, tbody.show-for-#{$visibility-comparison-breakpoint}-down'
|
139
|
+
), comma);
|
140
|
+
$visibility-table-row-list: append($visibility-table-row-list, unquote(
|
141
|
+
'tr.hide-for-#{$visibility-comparison-breakpoint}, tr.show-for-#{$visibility-comparison-breakpoint}-down'
|
142
|
+
), comma);
|
143
|
+
$visibility-table-cell-list: append($visibility-table-cell-list, unquote(
|
144
|
+
'th.hide-for-#{$visibility-comparison-breakpoint}, td.hide-for-#{$visibility-comparison-breakpoint}, th.show-for-#{$visibility-comparison-breakpoint}-down, td.show-for-#{$visibility-comparison-breakpoint}-down'
|
145
|
+
), comma);
|
146
|
+
}
|
147
|
+
|
148
|
+
} @else {
|
149
|
+
// Current breakpoint
|
150
|
+
|
151
|
+
$visibility-inherit-list: append($visibility-inherit-list, unquote(
|
152
|
+
'.show-for-#{$visibility-comparison-breakpoint}-only, .show-for-#{$visibility-comparison-breakpoint}-up'
|
153
|
+
), comma);
|
154
|
+
$visibility-none-list: append($visibility-none-list, unquote(
|
155
|
+
'.hide-for-#{$visibility-comparison-breakpoint}-only, .hide-for-#{$visibility-comparison-breakpoint}-up'
|
156
|
+
), comma);
|
157
|
+
$visibility-table-list: append($visibility-table-list, unquote(
|
158
|
+
'table.show-for-#{$visibility-comparison-breakpoint}-only, table.show-for-#{$visibility-comparison-breakpoint}-up'
|
159
|
+
), comma);
|
160
|
+
$visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
|
161
|
+
'thead.show-for-#{$visibility-comparison-breakpoint}-only, thead.show-for-#{$visibility-comparison-breakpoint}-up'
|
162
|
+
), comma);
|
163
|
+
$visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
|
164
|
+
'tbody.show-for-#{$visibility-comparison-breakpoint}-only, tbody.show-for-#{$visibility-comparison-breakpoint}-up'
|
165
|
+
), comma);
|
166
|
+
$visibility-table-row-list: append($visibility-table-row-list, unquote(
|
167
|
+
'tr.show-for-#{$visibility-comparison-breakpoint}-only, tr.show-for-#{$visibility-comparison-breakpoint}-up'
|
168
|
+
), comma);
|
169
|
+
$visibility-table-cell-list: append($visibility-table-cell-list, unquote(
|
170
|
+
'th.show-for-#{$visibility-comparison-breakpoint}-only, td.show-for-#{$visibility-comparison-breakpoint}-only, th.show-for-#{$visibility-comparison-breakpoint}-up, td.show-for-#{$visibility-comparison-breakpoint}-up'
|
171
|
+
), comma);
|
172
|
+
|
173
|
+
// Foundation 4 compatibility:
|
174
|
+
// Include .show/hide-for-[size] and .show/hide-for-[size]-down classes
|
175
|
+
// for small, medium, and large breakpoints only
|
176
|
+
@if $include-legacy-visibility-classes and index((small, medium, large), $visibility-comparison-breakpoint) != false {
|
177
|
+
$visibility-inherit-list: append($visibility-inherit-list, unquote(
|
178
|
+
'.show-for-#{$visibility-comparison-breakpoint}, .show-for-#{$visibility-comparison-breakpoint}-down'
|
179
|
+
), comma);
|
180
|
+
$visibility-none-list: append($visibility-none-list, unquote(
|
181
|
+
'.hide-for-#{$visibility-comparison-breakpoint}, .hide-for-#{$visibility-comparison-breakpoint}-down'
|
182
|
+
), comma);
|
183
|
+
$visibility-table-list: append($visibility-table-list, unquote(
|
184
|
+
'table.show-for-#{$visibility-comparison-breakpoint}, table.show-for-#{$visibility-comparison-breakpoint}-down'
|
185
|
+
), comma);
|
186
|
+
$visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
|
187
|
+
'thead.show-for-#{$visibility-comparison-breakpoint}, thead.show-for-#{$visibility-comparison-breakpoint}-down'
|
188
|
+
), comma);
|
189
|
+
$visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
|
190
|
+
'tbody.show-for-#{$visibility-comparison-breakpoint}, tbody.show-for-#{$visibility-comparison-breakpoint}-down'
|
191
|
+
), comma);
|
192
|
+
$visibility-table-row-list: append($visibility-table-row-list, unquote(
|
193
|
+
'tr.show-for-#{$visibility-comparison-breakpoint}, tr.show-for-#{$visibility-comparison-breakpoint}-down'
|
194
|
+
), comma);
|
195
|
+
$visibility-table-cell-list: append($visibility-table-cell-list, unquote(
|
196
|
+
'th.show-for-#{$visibility-comparison-breakpoint}, td.show-for-#{$visibility-comparison-breakpoint}, th.show-for-#{$visibility-comparison-breakpoint}-down, td.show-for-#{$visibility-comparison-breakpoint}-down'
|
197
|
+
), comma);
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
/* #{$current-visibility-breakpoint} displays */
|
203
|
+
@media #{nth($visibility-breakpoint-queries, index($visibility-breakpoint-sizes, $current-visibility-breakpoint))} {
|
204
|
+
#{$visibility-inherit-list} {
|
205
|
+
display: inherit !important;
|
206
|
+
}
|
207
|
+
#{$visibility-none-list} {
|
208
|
+
display: none !important;
|
209
|
+
}
|
210
|
+
@if $include-table-visibility-classes != false {
|
211
|
+
#{$visibility-table-list} {
|
212
|
+
display: table;
|
213
|
+
}
|
214
|
+
#{$visibility-table-header-group-list} {
|
215
|
+
display: table-header-group !important;
|
216
|
+
}
|
217
|
+
#{$visibility-table-row-group-list} {
|
218
|
+
display: table-row-group !important;
|
219
|
+
}
|
220
|
+
#{$visibility-table-row-list} {
|
221
|
+
display: table-row !important;
|
222
|
+
}
|
223
|
+
#{$visibility-table-cell-list} {
|
224
|
+
display: table-cell !important;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
|
232
|
+
@if $include-html-visibility-classes != false {
|
233
|
+
|
234
|
+
@include visibility-loop;
|
235
|
+
|
236
|
+
/* Orientation targeting */
|
237
|
+
.show-for-landscape,
|
238
|
+
.hide-for-portrait { display: inherit !important; }
|
239
|
+
.hide-for-landscape,
|
240
|
+
.show-for-portrait { display: none !important; }
|
241
|
+
|
242
|
+
/* Specific visibility for tables */
|
243
|
+
table {
|
244
|
+
&.hide-for-landscape,
|
245
|
+
&.show-for-portrait { display: table; }
|
246
|
+
}
|
247
|
+
thead {
|
248
|
+
&.hide-for-landscape,
|
249
|
+
&.show-for-portrait { display: table-header-group !important; }
|
250
|
+
}
|
251
|
+
tbody {
|
252
|
+
&.hide-for-landscape,
|
253
|
+
&.show-for-portrait { display: table-row-group !important; }
|
254
|
+
}
|
255
|
+
tr {
|
256
|
+
&.hide-for-landscape,
|
257
|
+
&.show-for-portrait { display: table-row !important; }
|
258
|
+
}
|
259
|
+
td,
|
260
|
+
th {
|
261
|
+
&.hide-for-landscape,
|
262
|
+
&.show-for-portrait { display: table-cell !important; }
|
263
|
+
}
|
264
|
+
|
265
|
+
@media #{$landscape} {
|
266
|
+
.show-for-landscape,
|
267
|
+
.hide-for-portrait { display: inherit !important; }
|
268
|
+
.hide-for-landscape,
|
269
|
+
.show-for-portrait { display: none !important; }
|
270
|
+
|
271
|
+
/* Specific visibility for tables */
|
272
|
+
table {
|
273
|
+
&.show-for-landscape,
|
274
|
+
&.hide-for-portrait { display: table; }
|
275
|
+
}
|
276
|
+
thead {
|
277
|
+
&.show-for-landscape,
|
278
|
+
&.hide-for-portrait { display: table-header-group !important; }
|
279
|
+
}
|
280
|
+
tbody {
|
281
|
+
&.show-for-landscape,
|
282
|
+
&.hide-for-portrait { display: table-row-group !important; }
|
283
|
+
}
|
284
|
+
tr {
|
285
|
+
&.show-for-landscape,
|
286
|
+
&.hide-for-portrait { display: table-row !important; }
|
287
|
+
}
|
288
|
+
td,
|
289
|
+
th {
|
290
|
+
&.show-for-landscape,
|
291
|
+
&.hide-for-portrait { display: table-cell !important; }
|
292
|
+
}
|
293
|
+
}
|
294
|
+
|
295
|
+
@media #{$portrait} {
|
296
|
+
.show-for-portrait,
|
297
|
+
.hide-for-landscape { display: inherit !important; }
|
298
|
+
.hide-for-portrait,
|
299
|
+
.show-for-landscape { display: none !important; }
|
300
|
+
|
301
|
+
/* Specific visibility for tables */
|
302
|
+
table {
|
303
|
+
&.show-for-portrait,
|
304
|
+
&.hide-for-landscape { display: table; }
|
305
|
+
}
|
306
|
+
thead {
|
307
|
+
&.show-for-portrait,
|
308
|
+
&.hide-for-landscape { display: table-header-group !important; }
|
309
|
+
}
|
310
|
+
tbody {
|
311
|
+
&.show-for-portrait,
|
312
|
+
&.hide-for-landscape { display: table-row-group !important; }
|
313
|
+
}
|
314
|
+
tr {
|
315
|
+
&.show-for-portrait,
|
316
|
+
&.hide-for-landscape { display: table-row !important; }
|
317
|
+
}
|
318
|
+
td,
|
319
|
+
th {
|
320
|
+
&.show-for-portrait,
|
321
|
+
&.hide-for-landscape { display: table-cell !important; }
|
322
|
+
}
|
323
|
+
}
|
324
|
+
|
325
|
+
/* Touch-enabled device targeting */
|
326
|
+
.show-for-touch { display: none !important; }
|
327
|
+
.hide-for-touch { display: inherit !important; }
|
328
|
+
.touch .show-for-touch { display: inherit !important; }
|
329
|
+
.touch .hide-for-touch { display: none !important; }
|
330
|
+
|
331
|
+
/* Specific visibility for tables */
|
332
|
+
table.hide-for-touch { display: table; }
|
333
|
+
.touch table.show-for-touch { display: table; }
|
334
|
+
thead.hide-for-touch { display: table-header-group !important; }
|
335
|
+
.touch thead.show-for-touch { display: table-header-group !important; }
|
336
|
+
tbody.hide-for-touch { display: table-row-group !important; }
|
337
|
+
.touch tbody.show-for-touch { display: table-row-group !important; }
|
338
|
+
tr.hide-for-touch { display: table-row !important; }
|
339
|
+
.touch tr.show-for-touch { display: table-row !important; }
|
340
|
+
td.hide-for-touch { display: table-cell !important; }
|
341
|
+
.touch td.show-for-touch { display: table-cell !important; }
|
342
|
+
th.hide-for-touch { display: table-cell !important; }
|
343
|
+
.touch th.show-for-touch { display: table-cell !important; }
|
344
|
+
|
345
|
+
}
|
File without changes
|
data/scss/normalize.scss
ADDED
@@ -0,0 +1,423 @@
|
|
1
|
+
/*! normalize.css v3.0.0 | MIT License | git.io/normalize */
|
2
|
+
|
3
|
+
/**
|
4
|
+
* 1. Set default font family to sans-serif.
|
5
|
+
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
6
|
+
* user zoom.
|
7
|
+
*/
|
8
|
+
|
9
|
+
html {
|
10
|
+
font-family: sans-serif; /* 1 */
|
11
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
12
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
13
|
+
}
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Remove default margin.
|
17
|
+
*/
|
18
|
+
|
19
|
+
body {
|
20
|
+
margin: 0;
|
21
|
+
}
|
22
|
+
|
23
|
+
/* HTML5 display definitions
|
24
|
+
========================================================================== */
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Correct `block` display not defined in IE 8/9.
|
28
|
+
*/
|
29
|
+
|
30
|
+
article,
|
31
|
+
aside,
|
32
|
+
details,
|
33
|
+
figcaption,
|
34
|
+
figure,
|
35
|
+
footer,
|
36
|
+
header,
|
37
|
+
hgroup,
|
38
|
+
main,
|
39
|
+
nav,
|
40
|
+
section,
|
41
|
+
summary {
|
42
|
+
display: block;
|
43
|
+
}
|
44
|
+
|
45
|
+
/**
|
46
|
+
* 1. Correct `inline-block` display not defined in IE 8/9.
|
47
|
+
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
48
|
+
*/
|
49
|
+
|
50
|
+
audio,
|
51
|
+
canvas,
|
52
|
+
progress,
|
53
|
+
video {
|
54
|
+
display: inline-block; /* 1 */
|
55
|
+
vertical-align: baseline; /* 2 */
|
56
|
+
}
|
57
|
+
|
58
|
+
/**
|
59
|
+
* Prevent modern browsers from displaying `audio` without controls.
|
60
|
+
* Remove excess height in iOS 5 devices.
|
61
|
+
*/
|
62
|
+
|
63
|
+
audio:not([controls]) {
|
64
|
+
display: none;
|
65
|
+
height: 0;
|
66
|
+
}
|
67
|
+
|
68
|
+
/**
|
69
|
+
* Address `[hidden]` styling not present in IE 8/9.
|
70
|
+
* Hide the `template` element in IE, Safari, and Firefox < 22.
|
71
|
+
*/
|
72
|
+
|
73
|
+
[hidden],
|
74
|
+
template {
|
75
|
+
display: none;
|
76
|
+
}
|
77
|
+
|
78
|
+
/* Links
|
79
|
+
========================================================================== */
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Remove the gray background color from active links in IE 10.
|
83
|
+
*/
|
84
|
+
|
85
|
+
a {
|
86
|
+
background: transparent;
|
87
|
+
}
|
88
|
+
|
89
|
+
/**
|
90
|
+
* Improve readability when focused and also mouse hovered in all browsers.
|
91
|
+
*/
|
92
|
+
|
93
|
+
a:active,
|
94
|
+
a:hover {
|
95
|
+
outline: 0;
|
96
|
+
}
|
97
|
+
|
98
|
+
/* Text-level semantics
|
99
|
+
========================================================================== */
|
100
|
+
|
101
|
+
/**
|
102
|
+
* Address styling not present in IE 8/9, Safari 5, and Chrome.
|
103
|
+
*/
|
104
|
+
|
105
|
+
abbr[title] {
|
106
|
+
border-bottom: 1px dotted;
|
107
|
+
}
|
108
|
+
|
109
|
+
/**
|
110
|
+
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
111
|
+
*/
|
112
|
+
|
113
|
+
b,
|
114
|
+
strong {
|
115
|
+
font-weight: bold;
|
116
|
+
}
|
117
|
+
|
118
|
+
/**
|
119
|
+
* Address styling not present in Safari 5 and Chrome.
|
120
|
+
*/
|
121
|
+
|
122
|
+
dfn {
|
123
|
+
font-style: italic;
|
124
|
+
}
|
125
|
+
|
126
|
+
/**
|
127
|
+
* Address variable `h1` font-size and margin within `section` and `article`
|
128
|
+
* contexts in Firefox 4+, Safari 5, and Chrome.
|
129
|
+
*/
|
130
|
+
|
131
|
+
h1 {
|
132
|
+
font-size: 2em;
|
133
|
+
margin: 0.67em 0;
|
134
|
+
}
|
135
|
+
|
136
|
+
/**
|
137
|
+
* Address styling not present in IE 8/9.
|
138
|
+
*/
|
139
|
+
|
140
|
+
mark {
|
141
|
+
background: #ff0;
|
142
|
+
color: #000;
|
143
|
+
}
|
144
|
+
|
145
|
+
/**
|
146
|
+
* Address inconsistent and variable font size in all browsers.
|
147
|
+
*/
|
148
|
+
|
149
|
+
small {
|
150
|
+
font-size: 80%;
|
151
|
+
}
|
152
|
+
|
153
|
+
/**
|
154
|
+
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
155
|
+
*/
|
156
|
+
|
157
|
+
sub,
|
158
|
+
sup {
|
159
|
+
font-size: 75%;
|
160
|
+
line-height: 0;
|
161
|
+
position: relative;
|
162
|
+
vertical-align: baseline;
|
163
|
+
}
|
164
|
+
|
165
|
+
sup {
|
166
|
+
top: -0.5em;
|
167
|
+
}
|
168
|
+
|
169
|
+
sub {
|
170
|
+
bottom: -0.25em;
|
171
|
+
}
|
172
|
+
|
173
|
+
/* Embedded content
|
174
|
+
========================================================================== */
|
175
|
+
|
176
|
+
/**
|
177
|
+
* Remove border when inside `a` element in IE 8/9.
|
178
|
+
*/
|
179
|
+
|
180
|
+
img {
|
181
|
+
border: 0;
|
182
|
+
}
|
183
|
+
|
184
|
+
/**
|
185
|
+
* Correct overflow displayed oddly in IE 9.
|
186
|
+
*/
|
187
|
+
|
188
|
+
svg:not(:root) {
|
189
|
+
overflow: hidden;
|
190
|
+
}
|
191
|
+
|
192
|
+
/* Grouping content
|
193
|
+
========================================================================== */
|
194
|
+
|
195
|
+
/**
|
196
|
+
* Address margin not present in IE 8/9 and Safari 5.
|
197
|
+
*/
|
198
|
+
|
199
|
+
figure {
|
200
|
+
margin: 1em 40px;
|
201
|
+
}
|
202
|
+
|
203
|
+
/**
|
204
|
+
* Address differences between Firefox and other browsers.
|
205
|
+
*/
|
206
|
+
|
207
|
+
hr {
|
208
|
+
-moz-box-sizing: content-box;
|
209
|
+
box-sizing: content-box;
|
210
|
+
height: 0;
|
211
|
+
}
|
212
|
+
|
213
|
+
/**
|
214
|
+
* Contain overflow in all browsers.
|
215
|
+
*/
|
216
|
+
|
217
|
+
pre {
|
218
|
+
overflow: auto;
|
219
|
+
}
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Address odd `em`-unit font size rendering in all browsers.
|
223
|
+
*/
|
224
|
+
|
225
|
+
code,
|
226
|
+
kbd,
|
227
|
+
pre,
|
228
|
+
samp {
|
229
|
+
font-family: monospace, monospace;
|
230
|
+
font-size: 1em;
|
231
|
+
}
|
232
|
+
|
233
|
+
/* Forms
|
234
|
+
========================================================================== */
|
235
|
+
|
236
|
+
/**
|
237
|
+
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
238
|
+
* styling of `select`, unless a `border` property is set.
|
239
|
+
*/
|
240
|
+
|
241
|
+
/**
|
242
|
+
* 1. Correct color not being inherited.
|
243
|
+
* Known issue: affects color of disabled elements.
|
244
|
+
* 2. Correct font properties not being inherited.
|
245
|
+
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
246
|
+
*/
|
247
|
+
|
248
|
+
button,
|
249
|
+
input,
|
250
|
+
optgroup,
|
251
|
+
select,
|
252
|
+
textarea {
|
253
|
+
color: inherit; /* 1 */
|
254
|
+
font: inherit; /* 2 */
|
255
|
+
margin: 0; /* 3 */
|
256
|
+
}
|
257
|
+
|
258
|
+
/**
|
259
|
+
* Address `overflow` set to `hidden` in IE 8/9/10.
|
260
|
+
*/
|
261
|
+
|
262
|
+
button {
|
263
|
+
overflow: visible;
|
264
|
+
}
|
265
|
+
|
266
|
+
/**
|
267
|
+
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
268
|
+
* All other form control elements do not inherit `text-transform` values.
|
269
|
+
* Correct `button` style inheritance in Firefox, IE 8+, and Opera
|
270
|
+
* Correct `select` style inheritance in Firefox.
|
271
|
+
*/
|
272
|
+
|
273
|
+
button,
|
274
|
+
select {
|
275
|
+
text-transform: none;
|
276
|
+
}
|
277
|
+
|
278
|
+
/**
|
279
|
+
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
280
|
+
* and `video` controls.
|
281
|
+
* 2. Correct inability to style clickable `input` types in iOS.
|
282
|
+
* 3. Improve usability and consistency of cursor style between image-type
|
283
|
+
* `input` and others.
|
284
|
+
*/
|
285
|
+
|
286
|
+
button,
|
287
|
+
html input[type="button"], /* 1 */
|
288
|
+
input[type="reset"],
|
289
|
+
input[type="submit"] {
|
290
|
+
-webkit-appearance: button; /* 2 */
|
291
|
+
cursor: pointer; /* 3 */
|
292
|
+
}
|
293
|
+
|
294
|
+
/**
|
295
|
+
* Re-set default cursor for disabled elements.
|
296
|
+
*/
|
297
|
+
|
298
|
+
button[disabled],
|
299
|
+
html input[disabled] {
|
300
|
+
cursor: default;
|
301
|
+
}
|
302
|
+
|
303
|
+
/**
|
304
|
+
* Remove inner padding and border in Firefox 4+.
|
305
|
+
*/
|
306
|
+
|
307
|
+
button::-moz-focus-inner,
|
308
|
+
input::-moz-focus-inner {
|
309
|
+
border: 0;
|
310
|
+
padding: 0;
|
311
|
+
}
|
312
|
+
|
313
|
+
/**
|
314
|
+
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
315
|
+
* the UA stylesheet.
|
316
|
+
*/
|
317
|
+
|
318
|
+
input {
|
319
|
+
line-height: normal;
|
320
|
+
}
|
321
|
+
|
322
|
+
/**
|
323
|
+
* It's recommended that you don't attempt to style these elements.
|
324
|
+
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
325
|
+
*
|
326
|
+
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
327
|
+
* 2. Remove excess padding in IE 8/9/10.
|
328
|
+
*/
|
329
|
+
|
330
|
+
input[type="checkbox"],
|
331
|
+
input[type="radio"] {
|
332
|
+
box-sizing: border-box; /* 1 */
|
333
|
+
padding: 0; /* 2 */
|
334
|
+
}
|
335
|
+
|
336
|
+
/**
|
337
|
+
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
338
|
+
* `font-size` values of the `input`, it causes the cursor style of the
|
339
|
+
* decrement button to change from `default` to `text`.
|
340
|
+
*/
|
341
|
+
|
342
|
+
input[type="number"]::-webkit-inner-spin-button,
|
343
|
+
input[type="number"]::-webkit-outer-spin-button {
|
344
|
+
height: auto;
|
345
|
+
}
|
346
|
+
|
347
|
+
/**
|
348
|
+
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
349
|
+
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
350
|
+
* (include `-moz` to future-proof).
|
351
|
+
*/
|
352
|
+
|
353
|
+
input[type="search"] {
|
354
|
+
-webkit-appearance: textfield; /* 1 */
|
355
|
+
-moz-box-sizing: content-box;
|
356
|
+
-webkit-box-sizing: content-box; /* 2 */
|
357
|
+
box-sizing: content-box;
|
358
|
+
}
|
359
|
+
|
360
|
+
/**
|
361
|
+
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
362
|
+
* Safari (but not Chrome) clips the cancel button when the search input has
|
363
|
+
* padding (and `textfield` appearance).
|
364
|
+
*/
|
365
|
+
|
366
|
+
input[type="search"]::-webkit-search-cancel-button,
|
367
|
+
input[type="search"]::-webkit-search-decoration {
|
368
|
+
-webkit-appearance: none;
|
369
|
+
}
|
370
|
+
|
371
|
+
/**
|
372
|
+
* Define consistent border, margin, and padding.
|
373
|
+
*/
|
374
|
+
|
375
|
+
fieldset {
|
376
|
+
border: 1px solid #c0c0c0;
|
377
|
+
margin: 0 2px;
|
378
|
+
padding: 0.35em 0.625em 0.75em;
|
379
|
+
}
|
380
|
+
|
381
|
+
/**
|
382
|
+
* 1. Correct `color` not being inherited in IE 8/9.
|
383
|
+
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
384
|
+
*/
|
385
|
+
|
386
|
+
legend {
|
387
|
+
border: 0; /* 1 */
|
388
|
+
padding: 0; /* 2 */
|
389
|
+
}
|
390
|
+
|
391
|
+
/**
|
392
|
+
* Remove default vertical scrollbar in IE 8/9.
|
393
|
+
*/
|
394
|
+
|
395
|
+
textarea {
|
396
|
+
overflow: auto;
|
397
|
+
}
|
398
|
+
|
399
|
+
/**
|
400
|
+
* Don't inherit the `font-weight` (applied by a rule above).
|
401
|
+
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
402
|
+
*/
|
403
|
+
|
404
|
+
optgroup {
|
405
|
+
font-weight: bold;
|
406
|
+
}
|
407
|
+
|
408
|
+
/* Tables
|
409
|
+
========================================================================== */
|
410
|
+
|
411
|
+
/**
|
412
|
+
* Remove most spacing between table cells.
|
413
|
+
*/
|
414
|
+
|
415
|
+
table {
|
416
|
+
border-collapse: collapse;
|
417
|
+
border-spacing: 0;
|
418
|
+
}
|
419
|
+
|
420
|
+
td,
|
421
|
+
th {
|
422
|
+
padding: 0;
|
423
|
+
}
|