foundation-rails 5.1.1.0 → 5.2.0.0

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.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +52 -7
  3. data/bower.json +2 -2
  4. data/lib/foundation/rails/version.rb +1 -1
  5. data/vendor/assets/javascripts/foundation/foundation.abide.js +3 -6
  6. data/vendor/assets/javascripts/foundation/foundation.accordion.js +5 -4
  7. data/vendor/assets/javascripts/foundation/foundation.alert.js +1 -1
  8. data/vendor/assets/javascripts/foundation/foundation.clearing.js +70 -34
  9. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +121 -28
  10. data/vendor/assets/javascripts/foundation/foundation.equalizer.js +6 -6
  11. data/vendor/assets/javascripts/foundation/foundation.interchange.js +34 -25
  12. data/vendor/assets/javascripts/foundation/foundation.joyride.js +4 -8
  13. data/vendor/assets/javascripts/foundation/foundation.js +94 -78
  14. data/vendor/assets/javascripts/foundation/foundation.magellan.js +3 -4
  15. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +19 -1
  16. data/vendor/assets/javascripts/foundation/foundation.orbit.js +151 -102
  17. data/vendor/assets/javascripts/foundation/foundation.reveal.js +43 -15
  18. data/vendor/assets/javascripts/foundation/foundation.slider.js +187 -0
  19. data/vendor/assets/javascripts/foundation/foundation.tab.js +116 -18
  20. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +112 -60
  21. data/vendor/assets/javascripts/foundation/foundation.topbar.js +47 -14
  22. data/vendor/assets/javascripts/vendor/modernizr.js +3 -3
  23. data/vendor/assets/stylesheets/foundation.scss +7 -0
  24. data/vendor/assets/stylesheets/foundation/_functions.scss +4 -0
  25. data/vendor/assets/stylesheets/foundation/_settings.scss +11 -2
  26. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +5 -1
  27. data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +4 -0
  28. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +44 -12
  29. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +4 -0
  30. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +4 -0
  31. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +7 -5
  32. data/vendor/assets/stylesheets/foundation/components/_clearing.scss +4 -0
  33. data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +4 -0
  34. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +100 -11
  35. data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +4 -0
  36. data/vendor/assets/stylesheets/foundation/components/_forms.scss +25 -21
  37. data/vendor/assets/stylesheets/foundation/components/_global.scss +79 -44
  38. data/vendor/assets/stylesheets/foundation/components/_grid.scss +6 -2
  39. data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +4 -0
  40. data/vendor/assets/stylesheets/foundation/components/_joyride.scss +4 -0
  41. data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +5 -1
  42. data/vendor/assets/stylesheets/foundation/components/_labels.scss +4 -0
  43. data/vendor/assets/stylesheets/foundation/components/_magellan.scss +4 -0
  44. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +51 -59
  45. data/vendor/assets/stylesheets/foundation/components/_orbit.scss +97 -14
  46. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +7 -2
  47. data/vendor/assets/stylesheets/foundation/components/_panels.scss +5 -1
  48. data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +4 -0
  49. data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +4 -0
  50. data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +148 -0
  51. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +36 -7
  52. data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +8 -3
  53. data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +4 -0
  54. data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +6 -2
  55. data/vendor/assets/stylesheets/foundation/components/_switch.scss +4 -0
  56. data/vendor/assets/stylesheets/foundation/components/_tables.scss +4 -0
  57. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +12 -6
  58. data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +4 -0
  59. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +9 -0
  60. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +52 -25
  61. data/vendor/assets/stylesheets/foundation/components/_type.scss +132 -75
  62. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +198 -538
  63. data/vendor/assets/stylesheets/normalize.scss +179 -166
  64. metadata +4 -2
@@ -1,568 +1,228 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
1
5
  @import "global";
2
6
 
3
7
  //
4
8
  // Foundation Visibility Classes
5
9
  //
6
10
  $include-html-visibility-classes: $include-html-classes !default;
7
-
8
- @if $include-html-visibility-classes != false {
11
+ $include-table-visibility-classes: true !default;
12
+ $include-legacy-visibility-classes: true !default;
9
13
 
10
14
  //
11
15
  // Media Class Names
12
16
  //
17
+ // Visibility Breakpoints
18
+ $visibility-breakpoint-sizes:
19
+ small,
20
+ medium,
21
+ large,
22
+ xlarge,
23
+ xxlarge;
13
24
 
14
- /* Foundation Visibility HTML Classes */
15
- .show-for-small,
16
- .show-for-small-only,
17
- .show-for-medium-down,
18
- .show-for-large-down,
19
- .hide-for-medium,
20
- .hide-for-medium-up,
21
- .hide-for-medium-only,
22
- .hide-for-large,
23
- .hide-for-large-up,
24
- .hide-for-large-only,
25
- .hide-for-xlarge,
26
- .hide-for-xlarge-up,
27
- .hide-for-xlarge-only,
28
- .hide-for-xxlarge-up,
29
- .hide-for-xxlarge-only { display: inherit !important; }
25
+ $visibility-breakpoint-queries:
26
+ unquote($small-up),
27
+ unquote($medium-up),
28
+ unquote($large-up),
29
+ unquote($xlarge-up),
30
+ unquote($xxlarge-up);
30
31
 
31
- .hide-for-small,
32
- .hide-for-small-only,
33
- .hide-for-medium-down,
34
- .show-for-medium,
35
- .show-for-medium-up,
36
- .show-for-medium-only,
37
- .hide-for-large-down,
38
- .show-for-large,
39
- .show-for-large-up,
40
- .show-for-large-only,
41
- .show-for-xlarge,
42
- .show-for-xlarge-up,
43
- .show-for-xlarge-only,
44
- .show-for-xxlarge-up,
45
- .show-for-xxlarge-only { display: none !important; }
32
+ @mixin visibility-loop {
33
+ @each $current-visibility-breakpoint in $visibility-breakpoint-sizes {
34
+ $visibility-inherit-list: ();
35
+ $visibility-none-list: ();
46
36
 
47
- /* Specific visibility for tables */
48
- table {
49
- &.show-for-small,
50
- &.show-for-small-only,
51
- &.show-for-medium-down,
52
- &.show-for-large-down,
53
- &.hide-for-medium,
54
- &.hide-for-medium-up,
55
- &.hide-for-medium-only,
56
- &.hide-for-large,
57
- &.hide-for-large-up,
58
- &.hide-for-large-only,
59
- &.hide-for-xlarge,
60
- &.hide-for-xlarge-up,
61
- &.hide-for-xlarge-only,
62
- &.hide-for-xxlarge-up,
63
- &.hide-for-xxlarge-only { display: table; }
64
- }
65
- thead {
66
- &.show-for-small,
67
- &.show-for-small-only,
68
- &.show-for-medium-down,
69
- &.show-for-large-down,
70
- &.hide-for-medium,
71
- &.hide-for-medium-up,
72
- &.hide-for-medium-only,
73
- &.hide-for-large,
74
- &.hide-for-large-up,
75
- &.hide-for-large-only,
76
- &.hide-for-xlarge,
77
- &.hide-for-xlarge-up,
78
- &.hide-for-xlarge-only,
79
- &.hide-for-xxlarge-up,
80
- &.hide-for-xxlarge-only { display: table-header-group !important; }
81
- }
82
- tbody {
83
- &.show-for-small,
84
- &.show-for-small-only,
85
- &.show-for-medium-down,
86
- &.show-for-large-down,
87
- &.hide-for-medium,
88
- &.hide-for-medium-up,
89
- &.hide-for-medium-only,
90
- &.hide-for-large,
91
- &.hide-for-large-up,
92
- &.hide-for-large-only,
93
- &.hide-for-xlarge,
94
- &.hide-for-xlarge-up,
95
- &.hide-for-xlarge-only,
96
- &.hide-for-xxlarge-up,
97
- &.hide-for-xxlarge-only { display: table-row-group !important; }
98
- }
99
- tr {
100
- &.show-for-small,
101
- &.show-for-small-only,
102
- &.show-for-medium-down,
103
- &.show-for-large-down,
104
- &.hide-for-medium,
105
- &.hide-for-medium-up,
106
- &.hide-for-medium-only,
107
- &.hide-for-large,
108
- &.hide-for-large-up,
109
- &.hide-for-large-only,
110
- &.hide-for-xlarge,
111
- &.hide-for-xlarge-up,
112
- &.hide-for-xlarge-only,
113
- &.hide-for-xxlarge-up,
114
- &.hide-for-xxlarge-only { display: table-row !important; }
115
- }
116
- td,
117
- th {
118
- &.show-for-small,
119
- &.show-for-small-only,
120
- &.show-for-medium-down,
121
- &.show-for-large-down,
122
- &.hide-for-medium,
123
- &.hide-for-medium-up,
124
- &.hide-for-large,
125
- &.hide-for-large-up,
126
- &.hide-for-xlarge,
127
- &.hide-for-xlarge-up,
128
- &.hide-for-xxlarge-up { display: table-cell !important; }
129
- }
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: ();
130
42
 
131
- /* Medium Displays: 641px and up */
132
- @media #{$medium-up} {
133
- .hide-for-small,
134
- .hide-for-small-only,
135
- .show-for-medium,
136
- .show-for-medium-down,
137
- .show-for-medium-up,
138
- .show-for-medium-only,
139
- .hide-for-large,
140
- .hide-for-large-up,
141
- .hide-for-large-only,
142
- .hide-for-xlarge,
143
- .hide-for-xlarge-up,
144
- .hide-for-xlarge-only,
145
- .hide-for-xxlarge-up,
146
- .hide-for-xxlarge-only { display: inherit !important; }
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
147
46
 
148
- .show-for-small,
149
- .show-for-small-only,
150
- .hide-for-medium,
151
- .hide-for-medium-down,
152
- .hide-for-medium-up,
153
- .hide-for-medium-only,
154
- .hide-for-large-down,
155
- .show-for-large,
156
- .show-for-large-up,
157
- .show-for-large-only,
158
- .show-for-xlarge,
159
- .show-for-xlarge-up,
160
- .show-for-xlarge-only,
161
- .show-for-xxlarge-up,
162
- .show-for-xxlarge-only { display: none !important; }
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);
163
68
 
164
- /* Specific visibility for tables */
165
- table {
166
- &.hide-for-small,
167
- &.hide-for-small-only,
168
- &.show-for-medium,
169
- &.show-for-medium-down,
170
- &.show-for-medium-up,
171
- &.show-for-medium-only,
172
- &.hide-for-large,
173
- &.hide-for-large-up,
174
- &.hide-for-large-only,
175
- &.hide-for-xlarge,
176
- &.hide-for-xlarge-up,
177
- &.hide-for-xlarge-only,
178
- &.hide-for-xxlarge-up,
179
- &.hide-for-xxlarge-only { display: table; }
180
- }
181
- thead {
182
- &.hide-for-small,
183
- &.hide-for-small-only,
184
- &.show-for-medium,
185
- &.show-for-medium-down,
186
- &.show-for-medium-up,
187
- &.show-for-medium-only,
188
- &.hide-for-large,
189
- &.hide-for-large-up,
190
- &.hide-for-large-only,
191
- &.hide-for-xlarge,
192
- &.hide-for-xlarge-up,
193
- &.hide-for-xlarge-only,
194
- &.hide-for-xxlarge-up,
195
- &.hide-for-xxlarge-only { display: table-header-group !important; }
196
- }
197
- tbody {
198
- &.hide-for-small,
199
- &.hide-for-small-only,
200
- &.show-for-medium,
201
- &.show-for-medium-down,
202
- &.show-for-medium-up,
203
- &.show-for-medium-only,
204
- &.hide-for-large,
205
- &.hide-for-large-up,
206
- &.hide-for-large-only,
207
- &.hide-for-xlarge,
208
- &.hide-for-xlarge-up,
209
- &.hide-for-xlarge-only,
210
- &.hide-for-xxlarge-up,
211
- &.hide-for-xxlarge-only { display: table-row-group !important; }
212
- }
213
- tr {
214
- &.hide-for-small,
215
- &.hide-for-small-only,
216
- &.show-for-medium,
217
- &.show-for-medium-down,
218
- &.show-for-medium-up,
219
- &.show-for-medium-only,
220
- &.hide-for-large,
221
- &.hide-for-large-up,
222
- &.hide-for-large-only,
223
- &.hide-for-xlarge,
224
- &.hide-for-xlarge-up,
225
- &.hide-for-xlarge-only,
226
- &.hide-for-xxlarge-up,
227
- &.hide-for-xxlarge-only { display: table-row !important; }
228
- }
229
- td,
230
- th {
231
- &.hide-for-small,
232
- &.hide-for-small-only,
233
- &.show-for-medium,
234
- &.show-for-medium-down,
235
- &.show-for-medium-up,
236
- &.show-for-medium-only,
237
- &.hide-for-large,
238
- &.hide-for-large-up,
239
- &.hide-for-large-only,
240
- &.hide-for-xlarge,
241
- &.hide-for-xlarge-up,
242
- &.hide-for-xlarge-only,
243
- &.hide-for-xxlarge-up,
244
- &.hide-for-xxlarge-only { display: table-cell !important; }
245
- }
246
- }
69
+ @if $include-legacy-visibility-classes {
70
+ $visibility-inherit-list: append($visibility-inherit-list, unquote(
71
+ '.hide-for-#{$visibility-comparison-breakpoint}, .hide-for-#{$visibility-comparison-breakpoint}-down'
72
+ ), comma);
73
+ $visibility-none-list: append($visibility-none-list, unquote(
74
+ '.show-for-#{$visibility-comparison-breakpoint}, .show-for-#{$visibility-comparison-breakpoint}-down'
75
+ ), comma);
76
+ $visibility-table-list: append($visibility-table-list, unquote(
77
+ 'table.hide-for-#{$visibility-comparison-breakpoint}, table.hide-for-#{$visibility-comparison-breakpoint}-down'
78
+ ), comma);
79
+ $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
80
+ 'thead.hide-for-#{$visibility-comparison-breakpoint}, thead.hide-for-#{$visibility-comparison-breakpoint}-down'
81
+ ), comma);
82
+ $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
83
+ 'tbody.hide-for-#{$visibility-comparison-breakpoint}, tbody.hide-for-#{$visibility-comparison-breakpoint}-down'
84
+ ), comma);
85
+ $visibility-table-row-list: append($visibility-table-row-list, unquote(
86
+ 'tr.hide-for-#{$visibility-comparison-breakpoint}, tr.hide-for-#{$visibility-comparison-breakpoint}-down'
87
+ ), comma);
88
+ $visibility-table-cell-list: append($visibility-table-cell-list, unquote(
89
+ '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'
90
+ ), comma);
91
+ }
247
92
 
248
- /* Large Displays: 1024px and up */
249
- @media #{$large-up} {
250
- .hide-for-small,
251
- .hide-for-small-only,
252
- .hide-for-medium,
253
- .hide-for-medium-down,
254
- .hide-for-medium-only,
255
- .show-for-medium-up,
256
- .show-for-large,
257
- .show-for-large-up,
258
- .show-for-large-only,
259
- .hide-for-xlarge,
260
- .hide-for-xlarge-up,
261
- .hide-for-xlarge-only,
262
- .hide-for-xxlarge-up,
263
- .hide-for-xxlarge-only { display: inherit !important; }
93
+ } @else if index($visibility-breakpoint-sizes, $visibility-comparison-breakpoint) > index($visibility-breakpoint-sizes, $current-visibility-breakpoint) {
94
+ // larger than current breakpoint
264
95
 
265
- .show-for-small-only,
266
- .show-for-medium,
267
- .show-for-medium-down,
268
- .show-for-medium-only,
269
- .hide-for-large,
270
- .hide-for-large-up,
271
- .hide-for-large-only,
272
- .show-for-xlarge,
273
- .show-for-xlarge-up,
274
- .show-for-xlarge-only,
275
- .show-for-xxlarge-up,
276
- .show-for-xxlarge-only { display: none !important; }
96
+ $visibility-inherit-list: append($visibility-inherit-list, unquote(
97
+ '.hide-for-#{$visibility-comparison-breakpoint}-only, .hide-for-#{$visibility-comparison-breakpoint}-up'
98
+ ), comma);
99
+ $visibility-none-list: append($visibility-none-list, unquote(
100
+ '.show-for-#{$visibility-comparison-breakpoint}-only, .show-for-#{$visibility-comparison-breakpoint}-up'
101
+ ), comma);
102
+ $visibility-table-list: append($visibility-table-list, unquote(
103
+ 'table.hide-for-#{$visibility-comparison-breakpoint}-only, table.hide-for-#{$visibility-comparison-breakpoint}-up'
104
+ ), comma);
105
+ $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
106
+ 'thead.hide-for-#{$visibility-comparison-breakpoint}-only, thead.hide-for-#{$visibility-comparison-breakpoint}-up'
107
+ ), comma);
108
+ $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
109
+ 'tbody.hide-for-#{$visibility-comparison-breakpoint}-only, tbody.hide-for-#{$visibility-comparison-breakpoint}-up'
110
+ ), comma);
111
+ $visibility-table-row-list: append($visibility-table-row-list, unquote(
112
+ 'tr.hide-for-#{$visibility-comparison-breakpoint}-only, tr.hide-for-#{$visibility-comparison-breakpoint}-up'
113
+ ), comma);
114
+ $visibility-table-cell-list: append($visibility-table-cell-list, unquote(
115
+ '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'
116
+ ), comma);
277
117
 
278
- /* Specific visibility for tables */
279
- table {
280
- &.hide-for-small,
281
- &.hide-for-small-only,
282
- &.hide-for-medium,
283
- &.hide-for-medium-down,
284
- &.hide-for-medium-only,
285
- &.show-for-medium-up,
286
- &.show-for-large,
287
- &.show-for-large-up,
288
- &.show-for-large-only,
289
- &.hide-for-xlarge,
290
- &.hide-for-xlarge-up,
291
- &.hide-for-xlarge-only,
292
- &.hide-for-xxlarge-up,
293
- &.hide-for-xxlarge-only { display: table; }
294
- }
295
- thead {
296
- &.hide-for-small,
297
- &.hide-for-small-only,
298
- &.hide-for-medium,
299
- &.hide-for-medium-down,
300
- &.hide-for-medium-only,
301
- &.show-for-medium-up,
302
- &.show-for-large,
303
- &.show-for-large-up,
304
- &.show-for-large-only,
305
- &.hide-for-xlarge,
306
- &.hide-for-xlarge-up,
307
- &.hide-for-xlarge-only,
308
- &.hide-for-xxlarge-up,
309
- &.hide-for-xxlarge-only { display: table-header-group !important; }
310
- }
311
- tbody {
312
- &.hide-for-small,
313
- &.hide-for-small-only,
314
- &.hide-for-medium,
315
- &.hide-for-medium-down,
316
- &.hide-for-medium-only,
317
- &.show-for-medium-up,
318
- &.show-for-large,
319
- &.show-for-large-up,
320
- &.show-for-large-only,
321
- &.hide-for-xlarge,
322
- &.hide-for-xlarge-up,
323
- &.hide-for-xlarge-only,
324
- &.hide-for-xxlarge-up,
325
- &.hide-for-xxlarge-only { display: table-row-group !important; }
326
- }
327
- tr {
328
- &.hide-for-small,
329
- &.hide-for-small-only,
330
- &.hide-for-medium,
331
- &.hide-for-medium-down,
332
- &.hide-for-medium-only,
333
- &.show-for-medium-up,
334
- &.show-for-large,
335
- &.show-for-large-up,
336
- &.show-for-large-only,
337
- &.hide-for-xlarge,
338
- &.hide-for-xlarge-up,
339
- &.hide-for-xlarge-only,
340
- &.hide-for-xxlarge-up,
341
- &.hide-for-xxlarge-only { display: table-row !important; }
342
- }
343
- td,
344
- th {
345
- &.hide-for-small,
346
- &.hide-for-small-only,
347
- &.hide-for-medium,
348
- &.hide-for-medium-down,
349
- &.hide-for-medium-only,
350
- &.show-for-medium-up,
351
- &.show-for-large,
352
- &.show-for-large-up,
353
- &.show-for-large-only,
354
- &.hide-for-xlarge,
355
- &.hide-for-xlarge-up,
356
- &.hide-for-xlarge-only,
357
- &.hide-for-xxlarge-up,
358
- &.hide-for-xxlarge-only { display: table-cell !important; }
359
- }
360
- }
118
+ @if $include-legacy-visibility-classes {
119
+ $visibility-inherit-list: append($visibility-inherit-list, unquote(
120
+ '.hide-for-#{$visibility-comparison-breakpoint}, .show-for-#{$visibility-comparison-breakpoint}-down'
121
+ ), comma);
122
+ $visibility-none-list: append($visibility-none-list, unquote(
123
+ '.show-for-#{$visibility-comparison-breakpoint}, .hide-for-#{$visibility-comparison-breakpoint}-down'
124
+ ), comma);
125
+ $visibility-table-list: append($visibility-table-list, unquote(
126
+ 'table.hide-for-#{$visibility-comparison-breakpoint}, table.show-for-#{$visibility-comparison-breakpoint}-down'
127
+ ), comma);
128
+ $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
129
+ 'thead.hide-for-#{$visibility-comparison-breakpoint}, thead.show-for-#{$visibility-comparison-breakpoint}-down'
130
+ ), comma);
131
+ $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
132
+ 'tbody.hide-for-#{$visibility-comparison-breakpoint}, tbody.show-for-#{$visibility-comparison-breakpoint}-down'
133
+ ), comma);
134
+ $visibility-table-row-list: append($visibility-table-row-list, unquote(
135
+ 'tr.hide-for-#{$visibility-comparison-breakpoint}, tr.show-for-#{$visibility-comparison-breakpoint}-down'
136
+ ), comma);
137
+ $visibility-table-cell-list: append($visibility-table-cell-list, unquote(
138
+ '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'
139
+ ), comma);
140
+ }
361
141
 
362
- /* X-Large Displays: 1441 and up */
363
- @media #{$xlarge-up} {
364
- .hide-for-small,
365
- .hide-for-small-only,
366
- .hide-for-medium,
367
- .hide-for-medium-down,
368
- .hide-for-medium-only,
369
- .show-for-medium-up,
370
- .show-for-large-up,
371
- .hide-for-large-only,
372
- .show-for-xlarge,
373
- .show-for-xlarge-up,
374
- .show-for-xlarge-only,
375
- .hide-for-xxlarge-up,
376
- .hide-for-xxlarge-only { display: inherit !important; }
142
+ } @else {
143
+ // current breakpoint
377
144
 
378
- .show-for-small-only,
379
- .show-for-medium,
380
- .show-for-medium-down,
381
- .show-for-medium-only,
382
- .show-for-large,
383
- .show-for-large-only,
384
- .show-for-large-down,
385
- .hide-for-xlarge,
386
- .hide-for-xlarge-up,
387
- .hide-for-xlarge-only,
388
- .show-for-xxlarge-up,
389
- .show-for-xxlarge-only { display: none !important; }
145
+ $visibility-inherit-list: append($visibility-inherit-list, unquote(
146
+ '.show-for-#{$visibility-comparison-breakpoint}-only, .show-for-#{$visibility-comparison-breakpoint}-up'
147
+ ), comma);
148
+ $visibility-none-list: append($visibility-none-list, unquote(
149
+ '.hide-for-#{$visibility-comparison-breakpoint}-only, .hide-for-#{$visibility-comparison-breakpoint}-up'
150
+ ), comma);
151
+ $visibility-table-list: append($visibility-table-list, unquote(
152
+ 'table.show-for-#{$visibility-comparison-breakpoint}-only, table.show-for-#{$visibility-comparison-breakpoint}-up'
153
+ ), comma);
154
+ $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
155
+ 'thead.show-for-#{$visibility-comparison-breakpoint}-only, thead.show-for-#{$visibility-comparison-breakpoint}-up'
156
+ ), comma);
157
+ $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
158
+ 'tbody.show-for-#{$visibility-comparison-breakpoint}-only, tbody.show-for-#{$visibility-comparison-breakpoint}-up'
159
+ ), comma);
160
+ $visibility-table-row-list: append($visibility-table-row-list, unquote(
161
+ 'tr.show-for-#{$visibility-comparison-breakpoint}-only, tr.show-for-#{$visibility-comparison-breakpoint}-up'
162
+ ), comma);
163
+ $visibility-table-cell-list: append($visibility-table-cell-list, unquote(
164
+ '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'
165
+ ), comma);
390
166
 
391
- /* Specific visibility for tables */
392
- table {
393
- &.hide-for-small,
394
- &.hide-for-small-only,
395
- &.hide-for-medium,
396
- &.hide-for-medium-down,
397
- &.hide-for-medium-only,
398
- &.show-for-medium-up,
399
- &.show-for-large-up,
400
- &.hide-for-large-only,
401
- &.show-for-xlarge,
402
- &.show-for-xlarge-up,
403
- &.show-for-xlarge-only,
404
- &.hide-for-xxlarge-up,
405
- &.hide-for-xxlarge-only { display: table; }
167
+ @if $include-legacy-visibility-classes {
168
+ $visibility-inherit-list: append($visibility-inherit-list, unquote(
169
+ '.show-for-#{$visibility-comparison-breakpoint}, .show-for-#{$visibility-comparison-breakpoint}-down'
170
+ ), comma);
171
+ $visibility-none-list: append($visibility-none-list, unquote(
172
+ '.hide-for-#{$visibility-comparison-breakpoint}, .hide-for-#{$visibility-comparison-breakpoint}-down'
173
+ ), comma);
174
+ $visibility-table-list: append($visibility-table-list, unquote(
175
+ 'table.show-for-#{$visibility-comparison-breakpoint}, table.show-for-#{$visibility-comparison-breakpoint}-down'
176
+ ), comma);
177
+ $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote(
178
+ 'thead.show-for-#{$visibility-comparison-breakpoint}, thead.show-for-#{$visibility-comparison-breakpoint}-down'
179
+ ), comma);
180
+ $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote(
181
+ 'tbody.show-for-#{$visibility-comparison-breakpoint}, tbody.show-for-#{$visibility-comparison-breakpoint}-down'
182
+ ), comma);
183
+ $visibility-table-row-list: append($visibility-table-row-list, unquote(
184
+ 'tr.show-for-#{$visibility-comparison-breakpoint}, tr.show-for-#{$visibility-comparison-breakpoint}-down'
185
+ ), comma);
186
+ $visibility-table-cell-list: append($visibility-table-cell-list, unquote(
187
+ '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'
188
+ ), comma);
189
+ }
190
+ }
406
191
  }
407
- thead {
408
- &.hide-for-small,
409
- &.hide-for-small-only,
410
- &.hide-for-medium,
411
- &.hide-for-medium-down,
412
- &.hide-for-medium-only,
413
- &.show-for-medium-up,
414
- &.show-for-large-up,
415
- &.hide-for-large-only,
416
- &.show-for-xlarge,
417
- &.show-for-xlarge-up,
418
- &.show-for-xlarge-only,
419
- &.hide-for-xxlarge-up,
420
- &.hide-for-xxlarge-only { display: table-header-group !important; }
421
- }
422
- tbody {
423
- &.hide-for-small,
424
- &.hide-for-small-only,
425
- &.hide-for-medium,
426
- &.hide-for-medium-down,
427
- &.hide-for-medium-only,
428
- &.show-for-medium-up,
429
- &.show-for-large-up,
430
- &.hide-for-large-only,
431
- &.show-for-xlarge,
432
- &.show-for-xlarge-up,
433
- &.show-for-xlarge-only,
434
- &.hide-for-xxlarge-up,
435
- &.hide-for-xxlarge-only { display: table-row-group !important; }
436
- }
437
- tr {
438
- &.hide-for-small,
439
- &.hide-for-small-only,
440
- &.hide-for-medium,
441
- &.hide-for-medium-down,
442
- &.hide-for-medium-only,
443
- &.show-for-medium-up,
444
- &.show-for-large-up,
445
- &.hide-for-large-only,
446
- &.show-for-xlarge,
447
- &.show-for-xlarge-up,
448
- &.show-for-xlarge-only,
449
- &.hide-for-xxlarge-up,
450
- &.hide-for-xxlarge-only { display: table-row !important; }
451
- }
452
- td,
453
- th {
454
- &.hide-for-small,
455
- &.hide-for-small-only,
456
- &.hide-for-medium,
457
- &.hide-for-medium-down,
458
- &.hide-for-medium-only,
459
- &.show-for-medium-up,
460
- &.show-for-large-up,
461
- &.hide-for-large-only,
462
- &.show-for-xlarge,
463
- &.show-for-xlarge-up,
464
- &.show-for-xlarge-only,
465
- &.hide-for-xxlarge-up,
466
- &.hide-for-xxlarge-only { display: table-cell !important; }
192
+
193
+ /* #{$current-visibility-breakpoint} displays */
194
+ @media #{nth($visibility-breakpoint-queries, index($visibility-breakpoint-sizes, $current-visibility-breakpoint))} {
195
+ #{$visibility-inherit-list} {
196
+ display: inherit !important;
197
+ }
198
+ #{$visibility-none-list} {
199
+ display: none !important;
200
+ }
201
+ @if $include-table-visibility-classes != false {
202
+ #{$visibility-table-list} {
203
+ display: table;
204
+ }
205
+ #{$visibility-table-header-group-list} {
206
+ display: table-header-group !important;
207
+ }
208
+ #{$visibility-table-row-group-list} {
209
+ display: table-row-group !important;
210
+ }
211
+ #{$visibility-table-row-list} {
212
+ display: table-row !important;
213
+ }
214
+ #{$visibility-table-cell-list} {
215
+ display: table-cell !important;
216
+ }
217
+ }
467
218
  }
468
219
  }
220
+ }
469
221
 
470
- /* XX-Large Displays: 1920 and up */
471
- @media #{$xxlarge-up} {
472
- .hide-for-small,
473
- .hide-for-small-only,
474
- .hide-for-medium,
475
- .hide-for-medium-down,
476
- .hide-for-medium-only,
477
- .show-for-medium-up,
478
- .show-for-large-up,
479
- .hide-for-large-only,
480
- .hide-for-xlarge-only,
481
- .show-for-xlarge-up,
482
- .show-for-xxlarge-up,
483
- .show-for-xxlarge-only { display: inherit !important; }
484
-
485
- .show-for-small-only,
486
- .show-for-medium,
487
- .show-for-medium-down,
488
- .show-for-medium-only,
489
- .show-for-large,
490
- .show-for-large-only,
491
- .show-for-large-down,
492
- .hide-for-xlarge,
493
- .show-for-xlarge-only,
494
- .hide-for-xxlarge-up,
495
- .hide-for-xxlarge-only { display: none !important; }
496
222
 
497
- /* Specific visibility for tables */
498
- table {
499
- &.hide-for-small,
500
- &.hide-for-small-only,
501
- &.hide-for-medium,
502
- &.hide-for-medium-down,
503
- &.hide-for-medium-only,
504
- &.show-for-medium-up,
505
- &.show-for-large-up,
506
- &.hide-for-xlarge-only,
507
- &.show-for-xlarge-up,
508
- &.show-for-xxlarge-up,
509
- &.show-for-xxlarge-only { display: table; }
510
- }
511
- thead {
512
- &.hide-for-small,
513
- &.hide-for-small-only,
514
- &.hide-for-medium,
515
- &.hide-for-medium-down,
516
- &.hide-for-medium-only,
517
- &.show-for-medium-up,
518
- &.show-for-large-up,
519
- &.hide-for-xlarge-only,
520
- &.show-for-xlarge-up,
521
- &.show-for-xxlarge-up,
522
- &.show-for-xxlarge-only { display: table-header-group !important; }
523
- }
524
- tbody {
525
- &.hide-for-small,
526
- &.hide-for-small-only,
527
- &.hide-for-medium,
528
- &.hide-for-medium-down,
529
- &.hide-for-medium-only,
530
- &.show-for-medium-up,
531
- &.show-for-large-up,
532
- &.hide-for-xlarge-only,
533
- &.show-for-xlarge-up,
534
- &.show-for-xxlarge-up,
535
- &.show-for-xxlarge-only { display: table-row-group !important; }
536
- }
537
- tr {
538
- &.hide-for-small,
539
- &.hide-for-small-only,
540
- &.hide-for-medium,
541
- &.hide-for-medium-down,
542
- &.hide-for-medium-only,
543
- &.show-for-medium-up,
544
- &.show-for-large-up,
545
- &.hide-for-xlarge-only,
546
- &.show-for-xlarge-up,
547
- &.show-for-xxlarge-up,
548
- &.show-for-xxlarge-only { display: table-row !important; }
549
- }
550
- td,
551
- th {
552
- &.hide-for-small,
553
- &.hide-for-small-only,
554
- &.hide-for-medium,
555
- &.hide-for-medium-down,
556
- &.hide-for-medium-only,
557
- &.show-for-medium-up,
558
- &.show-for-large-up,
559
- &.hide-for-xlarge-only,
560
- &.show-for-xlarge-up,
561
- &.show-for-xxlarge-up,
562
- &.show-for-xxlarge-only { display: table-cell !important; }
563
- }
564
- }
223
+ @if $include-html-visibility-classes != false {
565
224
 
225
+ @include visibility-loop;
566
226
 
567
227
  /* Orientation targeting */
568
228
  .show-for-landscape,
@@ -673,4 +333,4 @@ $include-html-visibility-classes: $include-html-classes !default;
673
333
  th.hide-for-touch { display: table-cell !important; }
674
334
  .touch th.show-for-touch { display: table-cell !important; }
675
335
 
676
- }
336
+ }