foundation-rails 6.6.1.0 → 6.9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +2 -0
- data/Appraisals +4 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +199 -146
- data/bower.json +3 -3
- data/foundation-rails.gemspec +4 -4
- data/gemfiles/rails_7.1.gemfile +10 -0
- data/gemfiles/rails_7.1.gemfile.lock +261 -0
- data/lib/foundation/rails/version.rb +1 -1
- data/lib/generators/foundation/templates/_settings.scss +32 -28
- data/vendor/assets/js/foundation.cjs.js +2101 -3230
- data/vendor/assets/js/foundation.cjs.js.map +1 -1
- data/vendor/assets/js/foundation.es6.js +505 -379
- data/vendor/assets/js/foundation.es6.js.map +1 -1
- data/vendor/assets/js/foundation.esm.js +1779 -2911
- data/vendor/assets/js/foundation.esm.js.map +1 -1
- data/vendor/assets/js/foundation.js +2544 -3970
- data/vendor/assets/js/foundation.js.map +1 -1
- data/vendor/assets/js/foundation.min.js +1 -1
- data/vendor/assets/js/foundation.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.abide.js +277 -367
- data/vendor/assets/js/plugins/foundation.abide.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.abide.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.abide.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.js +205 -277
- data/vendor/assets/js/plugins/foundation.accordion.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.accordion.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.js +174 -262
- data/vendor/assets/js/plugins/foundation.accordionMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.accordionMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.core.js +314 -457
- data/vendor/assets/js/plugins/foundation.core.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.core.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.core.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.js +259 -359
- data/vendor/assets/js/plugins/foundation.drilldown.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.drilldown.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.js +291 -462
- data/vendor/assets/js/plugins/foundation.dropdown.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.dropdown.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js +251 -349
- data/vendor/assets/js/plugins/foundation.dropdownMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.js +178 -261
- data/vendor/assets/js/plugins/foundation.equalizer.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.equalizer.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.js +455 -240
- data/vendor/assets/js/plugins/foundation.interchange.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.interchange.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.js +226 -342
- data/vendor/assets/js/plugins/foundation.magellan.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.magellan.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.js +326 -471
- data/vendor/assets/js/plugins/foundation.offcanvas.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.offcanvas.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.js +244 -347
- data/vendor/assets/js/plugins/foundation.orbit.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.orbit.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js +203 -288
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js +205 -255
- data/vendor/assets/js/plugins/foundation.responsiveMenu.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js +170 -226
- data/vendor/assets/js/plugins/foundation.responsiveToggle.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.js +285 -445
- data/vendor/assets/js/plugins/foundation.reveal.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.reveal.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.slider.js +321 -486
- data/vendor/assets/js/plugins/foundation.slider.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.slider.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.slider.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.js +138 -188
- data/vendor/assets/js/plugins/foundation.smoothScroll.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.smoothScroll.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.js +253 -395
- data/vendor/assets/js/plugins/foundation.sticky.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.sticky.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.js +228 -317
- data/vendor/assets/js/plugins/foundation.tabs.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.tabs.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.js +207 -294
- data/vendor/assets/js/plugins/foundation.toggler.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.toggler.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.js +276 -437
- data/vendor/assets/js/plugins/foundation.tooltip.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.tooltip.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.js +176 -234
- data/vendor/assets/js/plugins/foundation.util.box.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.box.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js +110 -150
- data/vendor/assets/js/plugins/foundation.util.imageLoader.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.js +157 -172
- data/vendor/assets/js/plugins/foundation.util.keyboard.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.keyboard.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js +167 -233
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.js +127 -161
- data/vendor/assets/js/plugins/foundation.util.motion.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.motion.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.js +126 -160
- data/vendor/assets/js/plugins/foundation.util.nest.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.nest.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.js +116 -171
- data/vendor/assets/js/plugins/foundation.util.timer.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.timer.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.js +172 -228
- data/vendor/assets/js/plugins/foundation.util.touch.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.touch.min.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.js +158 -222
- data/vendor/assets/js/plugins/foundation.util.triggers.js.map +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js +1 -1
- data/vendor/assets/js/plugins/foundation.util.triggers.min.js.map +1 -1
- data/vendor/assets/scss/_global.scss +20 -7
- data/vendor/assets/scss/components/_accordion-menu.scss +2 -2
- data/vendor/assets/scss/components/_accordion.scss +2 -2
- data/vendor/assets/scss/components/_badge.scss +3 -3
- data/vendor/assets/scss/components/_breadcrumbs.scss +4 -3
- data/vendor/assets/scss/components/_button-group.scss +23 -13
- data/vendor/assets/scss/components/_button.scss +15 -15
- data/vendor/assets/scss/components/_callout.scss +4 -4
- data/vendor/assets/scss/components/_card.scss +2 -2
- data/vendor/assets/scss/components/_close-button.scss +7 -6
- data/vendor/assets/scss/components/_drilldown.scss +2 -2
- data/vendor/assets/scss/components/_dropdown-menu.scss +3 -3
- data/vendor/assets/scss/components/_dropdown.scss +2 -2
- data/vendor/assets/scss/components/_flex.scss +2 -2
- data/vendor/assets/scss/components/_float.scss +2 -2
- data/vendor/assets/scss/components/_label.scss +3 -3
- data/vendor/assets/scss/components/_media-object.scss +2 -2
- data/vendor/assets/scss/components/_menu.scss +56 -21
- data/vendor/assets/scss/components/_off-canvas.scss +20 -18
- data/vendor/assets/scss/components/_orbit.scss +5 -5
- data/vendor/assets/scss/components/_pagination.scss +3 -3
- data/vendor/assets/scss/components/_progress-bar.scss +3 -3
- data/vendor/assets/scss/components/_responsive-embed.scss +3 -3
- data/vendor/assets/scss/components/_reveal.scss +10 -5
- data/vendor/assets/scss/components/_slider.scss +7 -4
- data/vendor/assets/scss/components/_sticky.scss +2 -2
- data/vendor/assets/scss/components/_switch.scss +27 -4
- data/vendor/assets/scss/components/_table.scss +10 -9
- data/vendor/assets/scss/components/_tabs.scss +4 -4
- data/vendor/assets/scss/components/_thumbnail.scss +2 -2
- data/vendor/assets/scss/components/_title-bar.scss +2 -2
- data/vendor/assets/scss/components/_tooltip.scss +2 -2
- data/vendor/assets/scss/components/_top-bar.scss +9 -7
- data/vendor/assets/scss/components/_visibility.scss +48 -5
- data/vendor/assets/scss/forms/_checkbox.scss +2 -2
- data/vendor/assets/scss/forms/_error.scss +2 -2
- data/vendor/assets/scss/forms/_fieldset.scss +2 -2
- data/vendor/assets/scss/forms/_forms.scss +2 -2
- data/vendor/assets/scss/forms/_help-text.scss +2 -2
- data/vendor/assets/scss/forms/_input-group.scss +2 -2
- data/vendor/assets/scss/forms/_label.scss +4 -3
- data/vendor/assets/scss/forms/_meter.scss +2 -2
- data/vendor/assets/scss/forms/_progress.scss +3 -3
- data/vendor/assets/scss/forms/_range.scss +3 -3
- data/vendor/assets/scss/forms/_select.scss +7 -6
- data/vendor/assets/scss/forms/_text.scss +4 -4
- data/vendor/assets/scss/foundation.scss +3 -3
- data/vendor/assets/scss/grid/_classes.scss +3 -3
- data/vendor/assets/scss/grid/_column.scss +5 -4
- data/vendor/assets/scss/grid/_flex-grid.scss +9 -8
- data/vendor/assets/scss/grid/_grid.scss +2 -2
- data/vendor/assets/scss/grid/_gutter.scss +3 -3
- data/vendor/assets/scss/grid/_layout.scss +7 -7
- data/vendor/assets/scss/grid/_position.scss +6 -6
- data/vendor/assets/scss/grid/_row.scss +3 -3
- data/vendor/assets/scss/grid/_size.scss +2 -2
- data/vendor/assets/scss/motion-ui/util/_animation.scss +1 -1
- data/vendor/assets/scss/motion-ui/util/_series.scss +1 -1
- data/vendor/assets/scss/motion-ui/util/_unit.scss +54 -1
- data/vendor/assets/scss/prototype/_arrow.scss +2 -2
- data/vendor/assets/scss/prototype/_border-box.scss +2 -2
- data/vendor/assets/scss/prototype/_border-none.scss +3 -3
- data/vendor/assets/scss/prototype/_bordered.scss +2 -2
- data/vendor/assets/scss/prototype/_box.scss +2 -2
- data/vendor/assets/scss/prototype/_display.scss +2 -2
- data/vendor/assets/scss/prototype/_font-styling.scss +4 -4
- data/vendor/assets/scss/prototype/_list-style-type.scss +2 -2
- data/vendor/assets/scss/prototype/_overflow.scss +11 -2
- data/vendor/assets/scss/prototype/_position.scss +2 -2
- data/vendor/assets/scss/prototype/_prototype.scss +2 -2
- data/vendor/assets/scss/prototype/_rotate.scss +9 -7
- data/vendor/assets/scss/prototype/_rounded.scss +2 -2
- data/vendor/assets/scss/prototype/_separator.scss +7 -7
- data/vendor/assets/scss/prototype/_shadow.scss +3 -4
- data/vendor/assets/scss/prototype/_sizing.scss +2 -2
- data/vendor/assets/scss/prototype/_spacing.scss +35 -35
- data/vendor/assets/scss/prototype/_text-decoration.scss +2 -2
- data/vendor/assets/scss/prototype/_text-transformation.scss +5 -5
- data/vendor/assets/scss/prototype/_text-utilities.scss +2 -2
- data/vendor/assets/scss/settings/_settings.scss +32 -28
- data/vendor/assets/scss/typography/_alignment.scss +2 -2
- data/vendor/assets/scss/typography/_base.scss +8 -8
- data/vendor/assets/scss/typography/_helpers.scss +12 -4
- data/vendor/assets/scss/typography/_print.scss +4 -4
- data/vendor/assets/scss/typography/_typography.scss +2 -2
- data/vendor/assets/scss/util/_breakpoint.scss +24 -21
- data/vendor/assets/scss/util/_color.scss +22 -10
- data/vendor/assets/scss/util/_direction.scss +3 -3
- data/vendor/assets/scss/util/_flex.scss +1 -1
- data/vendor/assets/scss/util/_math.scss +63 -11
- data/vendor/assets/scss/util/_mixins.scss +20 -16
- data/vendor/assets/scss/util/_selector.scss +3 -17
- data/vendor/assets/scss/util/_typography.scss +8 -8
- data/vendor/assets/scss/util/_unit.scss +16 -10
- data/vendor/assets/scss/util/_util.scss +2 -2
- data/vendor/assets/scss/util/_value.scss +5 -20
- data/vendor/assets/scss/vendor/normalize.scss +19 -2
- data/vendor/assets/scss/xy-grid/_cell.scss +18 -7
- data/vendor/assets/scss/xy-grid/_classes.scss +16 -16
- data/vendor/assets/scss/xy-grid/_collapse.scss +2 -2
- data/vendor/assets/scss/xy-grid/_frame.scss +12 -0
- data/vendor/assets/scss/xy-grid/_grid.scss +4 -4
- data/vendor/assets/scss/xy-grid/_gutters.scss +4 -4
- data/vendor/assets/scss/xy-grid/_layout.scss +3 -3
- data/vendor/assets/scss/xy-grid/_position.scss +14 -9
- data/vendor/assets/scss/xy-grid/_xy-grid.scss +4 -4
- metadata +21 -19
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
// sass-lint:disable no-qualifying-elements
|
@@ -8,6 +8,8 @@
|
|
8
8
|
/// @group table
|
9
9
|
////
|
10
10
|
|
11
|
+
@use "sass:color";
|
12
|
+
|
11
13
|
/// Default color for table background.
|
12
14
|
/// @type Color
|
13
15
|
$table-background: $white !default;
|
@@ -30,11 +32,11 @@ $table-hover-scale: 2% !default;
|
|
30
32
|
|
31
33
|
/// Default color of standard rows on hover.
|
32
34
|
/// @type List
|
33
|
-
$table-row-hover:
|
35
|
+
$table-row-hover: color.adjust($table-background, $lightness: -$table-hover-scale) !default;
|
34
36
|
|
35
37
|
/// Default color of striped rows on hover.
|
36
38
|
/// @type List
|
37
|
-
$table-row-stripe-hover:
|
39
|
+
$table-row-stripe-hover: color.adjust($table-background, $lightness: -($table-color-scale + $table-hover-scale)) !default;
|
38
40
|
|
39
41
|
/// If `true`, tables are striped by default and an .unstriped class is created. If `false`, a .striped class is created.
|
40
42
|
/// @type Boolean
|
@@ -50,11 +52,11 @@ $table-stripe: even !default;
|
|
50
52
|
|
51
53
|
/// Default color for header background.
|
52
54
|
/// @type Color
|
53
|
-
$table-head-background: smart-scale($table-background, $table-color-scale
|
55
|
+
$table-head-background: smart-scale($table-background, $table-color-scale * 0.5) !default;
|
54
56
|
|
55
57
|
/// Default color of header rows on hover.
|
56
58
|
/// @type List
|
57
|
-
$table-head-row-hover:
|
59
|
+
$table-head-row-hover: color.adjust($table-head-background, $lightness: -$table-hover-scale) !default;
|
58
60
|
|
59
61
|
/// Default color for footer background.
|
60
62
|
/// @type Color
|
@@ -62,7 +64,7 @@ $table-foot-background: smart-scale($table-background, $table-color-scale) !defa
|
|
62
64
|
|
63
65
|
/// Default color of footer rows on hover.
|
64
66
|
/// @type List
|
65
|
-
$table-foot-row-hover:
|
67
|
+
$table-foot-row-hover: color.adjust($table-foot-background, $lightness: -$table-hover-scale) !default;
|
66
68
|
|
67
69
|
/// Default font color for header.
|
68
70
|
/// @type Color
|
@@ -101,7 +103,6 @@ $table-stack-breakpoint: medium !default;
|
|
101
103
|
|
102
104
|
@mixin -zf-table-unstripe() {
|
103
105
|
tr {
|
104
|
-
border-bottom: 0;
|
105
106
|
border-bottom: $table-border;
|
106
107
|
background-color: $table-background;
|
107
108
|
}
|
@@ -166,8 +167,8 @@ $table-stack-breakpoint: medium !default;
|
|
166
167
|
|
167
168
|
&.unstriped {
|
168
169
|
tbody {
|
169
|
-
@include -zf-table-unstripe();
|
170
170
|
background-color: $table-background;
|
171
|
+
@include -zf-table-unstripe();
|
171
172
|
}
|
172
173
|
}
|
173
174
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -59,11 +59,11 @@ $tab-content-padding: 1rem !default;
|
|
59
59
|
$background: $tab-background,
|
60
60
|
$border-color: $tab-content-border
|
61
61
|
) {
|
62
|
-
@include clearfix;
|
63
62
|
margin: $margin;
|
64
63
|
border: 1px solid $border-color;
|
65
64
|
background: $background;
|
66
65
|
list-style-type: none;
|
66
|
+
@include clearfix;
|
67
67
|
}
|
68
68
|
|
69
69
|
/// Augments a tab container to have vertical tabs. Use this in conjunction with `tabs-container()`.
|
@@ -87,12 +87,12 @@ $tab-content-padding: 1rem !default;
|
|
87
87
|
float: #{$global-left};
|
88
88
|
|
89
89
|
> a {
|
90
|
-
@include disable-mouse-outline;
|
91
90
|
display: block;
|
92
91
|
padding: $padding;
|
93
92
|
font-size: $font-size;
|
94
93
|
line-height: 1;
|
95
94
|
color: $color;
|
95
|
+
@include disable-mouse-outline;
|
96
96
|
|
97
97
|
&:hover {
|
98
98
|
background: $background-hover;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -32,6 +32,8 @@ $topbar-unstack-breakpoint: medium !default;
|
|
32
32
|
|
33
33
|
/// Adds styles for a top bar container.
|
34
34
|
@mixin top-bar-container {
|
35
|
+
padding: $topbar-padding;
|
36
|
+
|
35
37
|
@if $global-flexbox {
|
36
38
|
display: flex;
|
37
39
|
flex-wrap: nowrap;
|
@@ -42,8 +44,6 @@ $topbar-unstack-breakpoint: medium !default;
|
|
42
44
|
@include clearfix;
|
43
45
|
}
|
44
46
|
|
45
|
-
padding: $topbar-padding;
|
46
|
-
|
47
47
|
&,
|
48
48
|
ul {
|
49
49
|
background-color: $topbar-background;
|
@@ -118,13 +118,15 @@ $topbar-unstack-breakpoint: medium !default;
|
|
118
118
|
}
|
119
119
|
|
120
120
|
@mixin foundation-top-bar {
|
121
|
-
// Top bar container
|
122
121
|
.top-bar {
|
123
122
|
@include top-bar-container;
|
124
|
-
|
123
|
+
}
|
124
|
+
.top-bar {
|
125
125
|
// Stack on small screens by default
|
126
126
|
@include top-bar-stacked;
|
127
|
-
|
127
|
+
}
|
128
|
+
// Top bar container
|
129
|
+
.top-bar {
|
128
130
|
@include breakpoint($topbar-unstack-breakpoint) {
|
129
131
|
@include top-bar-unstack;
|
130
132
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
/// Hide an element by default, only displaying it above a certain screen size.
|
@@ -8,8 +8,8 @@
|
|
8
8
|
$size: map-get($breakpoints, $size);
|
9
9
|
// Max value is 0.2px under the next breakpoint (0.02 / 16 = 0.00125).
|
10
10
|
// Use a precision under 1px to support browser zoom, but not to low to avoid rounding.
|
11
|
-
// See https://github.com/
|
12
|
-
$size: -zf-bp-to-em($size) - .00125;
|
11
|
+
// See https://github.com/foundation/foundation-sites/issues/11313
|
12
|
+
$size: -zf-bp-to-em($size) - 0.00125;
|
13
13
|
|
14
14
|
@include breakpoint($size down) {
|
15
15
|
display: none !important;
|
@@ -23,7 +23,7 @@
|
|
23
23
|
$upper-bound-size: -zf-map-next($breakpoints, $size);
|
24
24
|
|
25
25
|
// more often than not this will be correct, just one time round the loop it won't so set in scope here
|
26
|
-
$lower-bound: -zf-bp-to-em($lower-bound-size) - .00125;
|
26
|
+
$lower-bound: -zf-bp-to-em($lower-bound-size) - 0.00125;
|
27
27
|
// test actual lower-bound-size, if 0 set it to 0em
|
28
28
|
@if strip-unit($lower-bound-size) == 0 {
|
29
29
|
$lower-bound: -zf-bp-to-em($lower-bound-size);
|
@@ -69,6 +69,9 @@
|
|
69
69
|
.invisible {
|
70
70
|
visibility: hidden;
|
71
71
|
}
|
72
|
+
.visible {
|
73
|
+
visibility: visible;
|
74
|
+
}
|
72
75
|
|
73
76
|
// Responsive visibility classes
|
74
77
|
@each $size in $breakpoint-classes {
|
@@ -132,4 +135,44 @@
|
|
132
135
|
display: block !important;
|
133
136
|
}
|
134
137
|
}
|
138
|
+
|
139
|
+
// Dark Mode Visibility
|
140
|
+
.show-for-dark-mode {
|
141
|
+
display: none;
|
142
|
+
}
|
143
|
+
.hide-for-dark-mode {
|
144
|
+
display: block;
|
145
|
+
}
|
146
|
+
@media screen and (prefers-color-scheme: dark) {
|
147
|
+
.show-for-dark-mode {
|
148
|
+
display: block !important;
|
149
|
+
}
|
150
|
+
.hide-for-dark-mode {
|
151
|
+
display: none !important;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
// IE10+ Visibility
|
156
|
+
.show-for-ie {
|
157
|
+
display: none;
|
158
|
+
}
|
159
|
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
160
|
+
.show-for-ie {
|
161
|
+
display: block !important;
|
162
|
+
}
|
163
|
+
.hide-for-ie {
|
164
|
+
display: none !important;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
// Sticky Visibility
|
169
|
+
.show-for-sticky {
|
170
|
+
display: none;
|
171
|
+
}
|
172
|
+
.is-stuck .show-for-sticky {
|
173
|
+
display: block;
|
174
|
+
}
|
175
|
+
.is-stuck .hide-for-sticky {
|
176
|
+
display: none;
|
177
|
+
}
|
135
178
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -36,7 +36,8 @@ $form-label-line-height: 1.8 !default;
|
|
36
36
|
$input-border-width: get-border-value($input-border, width);
|
37
37
|
|
38
38
|
margin: 0 0 $form-spacing;
|
39
|
-
|
39
|
+
line-height: $global-lineheight;
|
40
|
+
padding: ($form-spacing * 0.5 + rem-calc($input-border-width)) 0;
|
40
41
|
}
|
41
42
|
|
42
43
|
@mixin foundation-form-label {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -68,7 +68,7 @@ $progress-radius: $global-radius !default;
|
|
68
68
|
}
|
69
69
|
|
70
70
|
@each $name, $color in $foundation-palette {
|
71
|
-
&.#{$name} {
|
71
|
+
&.#{"" + $name} {
|
72
72
|
// Internet Explorer sets the fill with color
|
73
73
|
color: $color;
|
74
74
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -40,7 +40,7 @@ $slider-radius: $global-radius !default;
|
|
40
40
|
|
41
41
|
@mixin foundation-range-input {
|
42
42
|
input[type='range'] { // sass-lint:disable-line no-qualifying-elements
|
43
|
-
$margin: ($slider-handle-height - $slider-height)
|
43
|
+
$margin: ($slider-handle-height - $slider-height) * 0.5;
|
44
44
|
|
45
45
|
display: block;
|
46
46
|
width: 100%;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -36,18 +36,19 @@ $select-radius: $global-radius !default;
|
|
36
36
|
line-height: $input-line-height;
|
37
37
|
color: $input-color;
|
38
38
|
|
39
|
+
@if has-value($input-transition) {
|
40
|
+
transition: $input-transition;
|
41
|
+
}
|
42
|
+
|
39
43
|
@if $select-triangle-color != transparent {
|
40
|
-
@include background-triangle($select-triangle-color);
|
41
44
|
background-origin: content-box;
|
42
45
|
background-position: $global-right (-$form-spacing) center;
|
43
46
|
background-repeat: no-repeat;
|
44
47
|
background-size: 9px 6px;
|
45
48
|
|
46
49
|
padding-#{$global-right}: ($form-spacing * 1.5);
|
47
|
-
}
|
48
50
|
|
49
|
-
|
50
|
-
transition: $input-transition;
|
51
|
+
@include background-triangle($select-triangle-color);
|
51
52
|
}
|
52
53
|
|
53
54
|
// Focus state
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -52,7 +52,7 @@ $input-border-focus: 1px solid $dark-gray !default;
|
|
52
52
|
|
53
53
|
/// Padding of text inputs.
|
54
54
|
/// @type Color
|
55
|
-
$input-padding: $form-spacing
|
55
|
+
$input-padding: $form-spacing * 0.5 !default;
|
56
56
|
|
57
57
|
/// Box shadow inside text inputs when not focused.
|
58
58
|
/// @type Shadow
|
@@ -124,8 +124,8 @@ $form-button-radius: $global-radius !default;
|
|
124
124
|
// Text inputs
|
125
125
|
#{text-inputs()},
|
126
126
|
textarea {
|
127
|
-
@include form-element;
|
128
127
|
appearance: none;
|
128
|
+
@include form-element;
|
129
129
|
}
|
130
130
|
|
131
131
|
// Text areas
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -101,7 +101,7 @@
|
|
101
101
|
@for $i from 1 through $grid-column-count {
|
102
102
|
// Column width
|
103
103
|
.#{$-zf-size}-#{$i} {
|
104
|
-
@include grid-
|
104
|
+
@include grid-column-size($i);
|
105
105
|
}
|
106
106
|
|
107
107
|
// Source ordering
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -27,14 +27,15 @@
|
|
27
27
|
$columns: $grid-column-count,
|
28
28
|
$gutters: $grid-column-gutter
|
29
29
|
) {
|
30
|
-
@include grid-column-size($columns);
|
31
30
|
float: $global-left;
|
32
31
|
|
32
|
+
@include grid-column-size($columns);
|
33
|
+
|
33
34
|
// Gutters
|
34
35
|
@include grid-column-gutter($gutters: $gutters);
|
35
|
-
|
36
36
|
// Position
|
37
37
|
@include grid-col-pos(auto);
|
38
|
+
|
38
39
|
}
|
39
40
|
|
40
41
|
/// Creates a grid column row. This is the equivalent of adding `.row` and `.column` to the same element.
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -78,17 +78,18 @@
|
|
78
78
|
$columns: expand,
|
79
79
|
$gutters: $grid-column-gutter
|
80
80
|
) {
|
81
|
+
// fixes recent Chrome version not limiting child width
|
82
|
+
// https://stackoverflow.com/questions/34934586/white-space-nowrap-and-flexbox-did-not-work-in-chrome
|
83
|
+
@if $columns == expand {
|
84
|
+
min-width: 0;
|
85
|
+
}
|
86
|
+
|
81
87
|
// Base properties
|
82
88
|
@include flex-grid-size($columns);
|
83
89
|
|
84
90
|
// Gutters
|
85
91
|
@include grid-column-gutter($gutters: $gutters);
|
86
92
|
|
87
|
-
// fixes recent Chrome version not limiting child width
|
88
|
-
// https://stackoverflow.com/questions/34934586/white-space-nowrap-and-flexbox-did-not-work-in-chrome
|
89
|
-
@if $columns == expand {
|
90
|
-
min-width: 0;
|
91
|
-
}
|
92
93
|
}
|
93
94
|
|
94
95
|
/// Creates a block grid for a flex grid row.
|
@@ -102,7 +103,7 @@
|
|
102
103
|
flex-wrap: wrap;
|
103
104
|
|
104
105
|
> #{$selector} {
|
105
|
-
$pct: percentage(1
|
106
|
+
$pct: percentage(divide(1, $n));
|
106
107
|
|
107
108
|
flex: 0 0 $pct;
|
108
109
|
max-width: $pct;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -18,7 +18,7 @@
|
|
18
18
|
$gutters: $grid-column-gutter
|
19
19
|
) {
|
20
20
|
@include -zf-breakpoint-value($gutter, $gutters) {
|
21
|
-
$padding: rem-calc($-zf-bp-value)
|
21
|
+
$padding: rem-calc($-zf-bp-value) * 0.5;
|
22
22
|
|
23
23
|
padding-right: $padding;
|
24
24
|
padding-left: $padding;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -21,14 +21,14 @@
|
|
21
21
|
) {
|
22
22
|
& > #{$selector} {
|
23
23
|
float: $global-left;
|
24
|
-
width: percentage(1
|
24
|
+
width: percentage(divide(1, $n));
|
25
25
|
|
26
26
|
// If a $gutter value is passed
|
27
27
|
@if($gutter) {
|
28
28
|
// Gutters
|
29
29
|
@if type-of($gutter) == 'map' {
|
30
30
|
@each $breakpoint, $value in $gutter {
|
31
|
-
$padding: rem-calc($value)
|
31
|
+
$padding: rem-calc($value) * 0.5;
|
32
32
|
|
33
33
|
@include breakpoint($breakpoint) {
|
34
34
|
padding-right: $padding;
|
@@ -37,7 +37,7 @@
|
|
37
37
|
}
|
38
38
|
}
|
39
39
|
@else if type-of($gutter) == 'number' and strip-unit($gutter) > 0 {
|
40
|
-
$padding: rem-calc($gutter)
|
40
|
+
$padding: rem-calc($gutter) * 0.5;
|
41
41
|
padding-right: $padding;
|
42
42
|
padding-left: $padding;
|
43
43
|
}
|
@@ -64,12 +64,12 @@
|
|
64
64
|
@for $i from 1 to $n {
|
65
65
|
@if $i == 1 {
|
66
66
|
&:nth-child(#{$n}n+1):last-child {
|
67
|
-
margin-left: (100 - 100
|
67
|
+
margin-left: (100 - divide(100, $n) * $i) * 0.5 * 1%;
|
68
68
|
}
|
69
69
|
}
|
70
70
|
@else {
|
71
71
|
&:nth-child(#{$n}n+1):nth-last-child(#{$i}) {
|
72
|
-
margin-left: (100 - 100
|
72
|
+
margin-left: (100 - divide(100, $n) * $i) * 0.5 * 1%;
|
73
73
|
}
|
74
74
|
}
|
75
75
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
// Push/pull
|
34
34
|
@else if type-of($position) == 'number' {
|
35
|
-
$offset: percentage($position
|
35
|
+
$offset: percentage(divide($position, $grid-column-count));
|
36
36
|
|
37
37
|
position: relative;
|
38
38
|
#{$global-left}: $offset;
|
@@ -40,12 +40,12 @@
|
|
40
40
|
|
41
41
|
// Center positioning
|
42
42
|
@else if $position == center {
|
43
|
+
margin-left: auto;
|
44
|
+
margin-right: auto;
|
43
45
|
&, &:last-child:not(:first-child) {
|
44
46
|
float: none;
|
45
47
|
clear: both;
|
46
48
|
}
|
47
|
-
margin-right: auto;
|
48
|
-
margin-left: auto;
|
49
49
|
}
|
50
50
|
|
51
51
|
@else {
|
@@ -55,10 +55,10 @@
|
|
55
55
|
|
56
56
|
/// Reset a position definition.
|
57
57
|
@mixin grid-column-unposition {
|
58
|
-
@include grid-column-position(auto);
|
59
58
|
position: static;
|
60
59
|
margin-right: 0;
|
61
60
|
margin-left: 0;
|
61
|
+
@include grid-column-position(auto);
|
62
62
|
}
|
63
63
|
|
64
64
|
/// Offsets a column to the right by `$n` columns.
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// Foundation for Sites
|
2
|
-
// foundation
|
1
|
+
// Foundation for Sites
|
2
|
+
// https://get.foundation
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
5
|
////
|
@@ -80,7 +80,7 @@
|
|
80
80
|
/// @param {Number|Map} $gutters [$grid-column-gutter] - Gutter map or single value to use when inverting margins. Responsive gutter settings by default.
|
81
81
|
@mixin grid-row-nest($gutters: $grid-column-gutter) {
|
82
82
|
@include -zf-each-breakpoint {
|
83
|
-
$margin: rem-calc(-zf-get-bp-val($gutters, $-zf-size))
|
83
|
+
$margin: rem-calc(-zf-get-bp-val($gutters, $-zf-size)) * 0.5 * -1;
|
84
84
|
|
85
85
|
margin-right: $margin;
|
86
86
|
margin-left: $margin;
|