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
|
////
|
@@ -85,8 +85,8 @@ $callout-link-tint: 30% !default;
|
|
85
85
|
/// Adds styles for a callout.
|
86
86
|
/// @param {Color} $color [$callout-background] - Color to use.
|
87
87
|
@mixin callout($color: $callout-background) {
|
88
|
-
@include callout-base;
|
89
88
|
@include callout-style($color);
|
89
|
+
@include callout-base;
|
90
90
|
}
|
91
91
|
|
92
92
|
@mixin foundation-callout {
|
@@ -94,7 +94,7 @@ $callout-link-tint: 30% !default;
|
|
94
94
|
@include callout;
|
95
95
|
|
96
96
|
@each $name, $color in $foundation-palette {
|
97
|
-
&.#{$name} {
|
97
|
+
&.#{"" + $name} {
|
98
98
|
@include callout-style($color);
|
99
99
|
}
|
100
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
|
////
|
@@ -92,12 +92,13 @@ $closebutton-color-hover: $black !default;
|
|
92
92
|
$x: nth($closebutton-position, 1);
|
93
93
|
$y: nth($closebutton-position, 2);
|
94
94
|
|
95
|
-
@include disable-mouse-outline;
|
96
95
|
position: absolute;
|
97
96
|
z-index: $closebutton-z-index;
|
98
97
|
color: $closebutton-color;
|
99
98
|
cursor: pointer;
|
100
99
|
|
100
|
+
@include disable-mouse-outline;
|
101
|
+
|
101
102
|
&:hover,
|
102
103
|
&:focus {
|
103
104
|
color: $closebutton-color-hover;
|
@@ -106,6 +107,9 @@ $closebutton-color-hover: $black !default;
|
|
106
107
|
|
107
108
|
@mixin foundation-close-button {
|
108
109
|
.close-button {
|
110
|
+
// Use by default the placeholder of the default size
|
111
|
+
@extend %zf-close-button--#{$closebutton-default-size};
|
112
|
+
|
109
113
|
@include close-button;
|
110
114
|
|
111
115
|
// Generate a placeholder and a class for each size
|
@@ -120,8 +124,5 @@ $closebutton-color-hover: $black !default;
|
|
120
124
|
@extend %zf-close-button--#{$name};
|
121
125
|
}
|
122
126
|
}
|
123
|
-
|
124
|
-
// Use by default the placeholder of the default size
|
125
|
-
@extend %zf-close-button--#{$closebutton-default-size};
|
126
127
|
}
|
127
128
|
}
|
@@ -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
|
////
|
@@ -107,7 +107,7 @@ $dropdown-menu-item-background-active: transparent !default;
|
|
107
107
|
@include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, down);
|
108
108
|
#{$global-right}: 5px;
|
109
109
|
#{$global-left}: auto;
|
110
|
-
margin-top: -1 * ($dropdownmenu-arrow-size
|
110
|
+
margin-top: -1 * ($dropdownmenu-arrow-size * 0.5);
|
111
111
|
}
|
112
112
|
}
|
113
113
|
}
|
@@ -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
|
////
|
@@ -55,7 +55,7 @@ $label-radius: $global-radius !default;
|
|
55
55
|
color: $label-color;
|
56
56
|
|
57
57
|
@each $name, $color in $label-palette {
|
58
|
-
&.#{$name} {
|
58
|
+
&.#{"" + $name} {
|
59
59
|
background: $color;
|
60
60
|
color: color-pick-contrast($color, ($label-color, $label-color-alt));
|
61
61
|
}
|
@@ -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
|
////
|
@@ -38,12 +38,12 @@ $menu-item-background-active: get-color(primary) !default;
|
|
38
38
|
/// @type Number
|
39
39
|
$menu-icon-spacing: 0.25rem !default;
|
40
40
|
|
41
|
-
/// Backward compatibility for menu state. If true, this duplicate `active` with `is-active`.
|
41
|
+
/// Backward compatibility for menu state. If true, this duplicate `active` with `is-active`.
|
42
42
|
/// But please note that `active` will be removed in upcoming versions.
|
43
43
|
/// @type Boolean
|
44
44
|
$menu-state-back-compat: true !default;
|
45
45
|
|
46
|
-
/// Backward compatibility for menu centered. If true, this duplicate `.menu-centered > .menu` with `.menu.align-center`.
|
46
|
+
/// Backward compatibility for menu centered. If true, this duplicate `.menu-centered > .menu` with `.menu.align-center`.
|
47
47
|
/// But please note that `menu-centered` will be removed in upcoming versions.
|
48
48
|
/// @type Boolean
|
49
49
|
$menu-centered-back-compat: true !default;
|
@@ -258,6 +258,33 @@ $menu-icons-back-compat: true !default;
|
|
258
258
|
}
|
259
259
|
}
|
260
260
|
|
261
|
+
/// Align top/bottom icons within a menu.
|
262
|
+
/// @param {Keyword} $alignment [center] - Alignment of the icon
|
263
|
+
@mixin menu-icon-alignment($alignment: center) {
|
264
|
+
@if $global-flexbox {
|
265
|
+
&.icon-top,
|
266
|
+
&.icon-bottom {
|
267
|
+
li a {
|
268
|
+
img,
|
269
|
+
i,
|
270
|
+
svg {
|
271
|
+
@if $alignment == left {
|
272
|
+
text-align: left;
|
273
|
+
}
|
274
|
+
|
275
|
+
@else if $alignment == right {
|
276
|
+
text-align: right;
|
277
|
+
}
|
278
|
+
|
279
|
+
@else {
|
280
|
+
text-align: center;
|
281
|
+
}
|
282
|
+
}
|
283
|
+
}
|
284
|
+
}
|
285
|
+
}
|
286
|
+
}
|
287
|
+
|
261
288
|
/// Adds position classes for icons within a menu.
|
262
289
|
@mixin menu-icon-position($position: left, $spacing: $menu-icon-spacing) {
|
263
290
|
@if $position == left {
|
@@ -369,11 +396,13 @@ $menu-icons-back-compat: true !default;
|
|
369
396
|
// Vertical orientation modifier
|
370
397
|
&.vertical {
|
371
398
|
@include menu-direction(vertical);
|
399
|
+
@include menu-icon-alignment(left);
|
372
400
|
}
|
373
401
|
|
374
402
|
// Even-width modifier for horizontal orientation
|
375
403
|
&.expanded {
|
376
404
|
@include menu-expand;
|
405
|
+
@include menu-icon-alignment(left);
|
377
406
|
}
|
378
407
|
|
379
408
|
// Simple
|
@@ -420,31 +449,36 @@ $menu-icons-back-compat: true !default;
|
|
420
449
|
}
|
421
450
|
}
|
422
451
|
|
423
|
-
//
|
424
|
-
|
425
|
-
|
426
|
-
|
452
|
+
// Menu icon position
|
453
|
+
// Includes specificity to nested icons with a different position
|
454
|
+
&,
|
455
|
+
&.nested {
|
456
|
+
// Icon Left
|
457
|
+
&.icon-left {
|
458
|
+
@include menu-icon-position(left);
|
459
|
+
}
|
427
460
|
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
461
|
+
// Icon Right
|
462
|
+
&.icon-right {
|
463
|
+
@include menu-icon-position(right);
|
464
|
+
}
|
432
465
|
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
466
|
+
// Icon Top
|
467
|
+
&.icon-top {
|
468
|
+
@include menu-icon-position(top);
|
469
|
+
}
|
437
470
|
|
438
|
-
|
439
|
-
|
440
|
-
|
471
|
+
// Icon Bottom
|
472
|
+
&.icon-bottom {
|
473
|
+
@include menu-icon-position(bottom);
|
474
|
+
}
|
441
475
|
}
|
442
476
|
|
443
477
|
// Active state
|
444
478
|
.is-active > a {
|
445
479
|
@include menu-state-active;
|
446
480
|
}
|
447
|
-
|
481
|
+
|
448
482
|
// Backward Compatibility for active state
|
449
483
|
@if $menu-state-back-compat {
|
450
484
|
.active > a {
|
@@ -460,6 +494,7 @@ $menu-icons-back-compat: true !default;
|
|
460
494
|
// Align right
|
461
495
|
&.align-#{$global-right} {
|
462
496
|
@include menu-align(right);
|
497
|
+
@include menu-icon-alignment(right);
|
463
498
|
|
464
499
|
.nested {
|
465
500
|
@include menu-nested($nested-alignment: right);
|
@@ -482,7 +517,7 @@ $menu-icons-back-compat: true !default;
|
|
482
517
|
@if $global-flexbox {
|
483
518
|
justify-content: center;
|
484
519
|
}
|
485
|
-
|
520
|
+
|
486
521
|
@include menu-align(center);
|
487
522
|
}
|
488
523
|
}
|
@@ -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
|
////
|
@@ -143,7 +143,11 @@ $maincontent-class: 'off-canvas-content' !default;
|
|
143
143
|
$transition: $offcanvas-transition-length $offcanvas-transition-timing,
|
144
144
|
$fixed: true
|
145
145
|
) {
|
146
|
-
|
146
|
+
// Set the off-canvas z-index.
|
147
|
+
z-index: $offcanvas-push-zindex;
|
148
|
+
transition: transform $transition;
|
149
|
+
backface-visibility: hidden;
|
150
|
+
background: $background;
|
147
151
|
|
148
152
|
@if $fixed == true {
|
149
153
|
position: fixed;
|
@@ -152,19 +156,13 @@ $maincontent-class: 'off-canvas-content' !default;
|
|
152
156
|
position: absolute;
|
153
157
|
}
|
154
158
|
|
155
|
-
|
156
|
-
z-index: $offcanvas-push-zindex;
|
159
|
+
@include disable-mouse-outline;
|
157
160
|
|
158
161
|
// Increase CSS specificity
|
159
162
|
&.is-transition-push {
|
160
163
|
z-index: $offcanvas-push-zindex;
|
161
164
|
}
|
162
165
|
|
163
|
-
transition: transform $transition;
|
164
|
-
backface-visibility: hidden;
|
165
|
-
|
166
|
-
background: $background;
|
167
|
-
|
168
166
|
// Hide inactive off-canvas within the content that have the same position
|
169
167
|
&.is-closed {
|
170
168
|
visibility: hidden;
|
@@ -196,6 +194,7 @@ $maincontent-class: 'off-canvas-content' !default;
|
|
196
194
|
left: 0;
|
197
195
|
height: 100%;
|
198
196
|
overflow-y: auto;
|
197
|
+
-webkit-overflow-scrolling: touch;
|
199
198
|
|
200
199
|
@each $name, $size in $sizes {
|
201
200
|
@include breakpoint($name) {
|
@@ -233,6 +232,7 @@ $maincontent-class: 'off-canvas-content' !default;
|
|
233
232
|
right: 0;
|
234
233
|
height: 100%;
|
235
234
|
overflow-y: auto;
|
235
|
+
-webkit-overflow-scrolling: touch;
|
236
236
|
|
237
237
|
@each $name, $size in $sizes {
|
238
238
|
@include breakpoint($name) {
|
@@ -270,6 +270,7 @@ $maincontent-class: 'off-canvas-content' !default;
|
|
270
270
|
left: 0;
|
271
271
|
width: 100%;
|
272
272
|
overflow-x: auto;
|
273
|
+
-webkit-overflow-scrolling: touch;
|
273
274
|
|
274
275
|
@each $name, $size in $sizes {
|
275
276
|
@include breakpoint($name) {
|
@@ -306,6 +307,7 @@ $maincontent-class: 'off-canvas-content' !default;
|
|
306
307
|
left: 0;
|
307
308
|
width: 100%;
|
308
309
|
overflow-x: auto;
|
310
|
+
-webkit-overflow-scrolling: touch;
|
309
311
|
|
310
312
|
@each $name, $size in $sizes {
|
311
313
|
@include breakpoint($name) {
|
@@ -383,10 +385,10 @@ $maincontent-class: 'off-canvas-content' !default;
|
|
383
385
|
|
384
386
|
/// Adds styles that reveal an off-canvas panel.
|
385
387
|
@mixin off-canvas-reveal(
|
386
|
-
$position: left,
|
387
|
-
$zindex: $offcanvas-reveal-zindex,
|
388
|
-
$content: $maincontent-class,
|
389
|
-
$breakpoint: small
|
388
|
+
$position: left,
|
389
|
+
$zindex: $offcanvas-reveal-zindex,
|
390
|
+
$content: $maincontent-class,
|
391
|
+
$breakpoint: small
|
390
392
|
) {
|
391
393
|
transform: none;
|
392
394
|
z-index: $zindex;
|
@@ -453,10 +455,10 @@ $breakpoint: small
|
|
453
455
|
@include off-canvas-base;
|
454
456
|
|
455
457
|
// Force position absolute for nested off-canvas because fixed doesn't work for push transition within the transform scope.
|
456
|
-
@at-root .#{$maincontent-class} & {
|
457
|
-
|
458
|
-
|
459
|
-
}
|
458
|
+
// @at-root .#{$maincontent-class} & {
|
459
|
+
// // NOTE: since overlap transition is currently forced if nested, there's no need to force position absolute until nested push transition is supported.
|
460
|
+
// position: absolute;
|
461
|
+
// }
|
460
462
|
}
|
461
463
|
|
462
464
|
// Off-canvas container with absolute position
|
@@ -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
|
////
|
@@ -102,11 +102,11 @@ $orbit-control-zindex: 10 !default;
|
|
102
102
|
|
103
103
|
/// Adds base styles for the next/previous buttons in an Orbit slider. These styles are shared between the `.orbit-next` and `.orbit-previous` classes in the default CSS.
|
104
104
|
@mixin orbit-control {
|
105
|
-
@include disable-mouse-outline;
|
106
|
-
@include vertical-center;
|
107
105
|
z-index: $orbit-control-zindex;
|
108
106
|
padding: $orbit-control-padding;
|
109
107
|
color: $white;
|
108
|
+
@include vertical-center;
|
109
|
+
@include disable-mouse-outline;
|
110
110
|
|
111
111
|
&:hover,
|
112
112
|
&:active,
|
@@ -128,11 +128,11 @@ $orbit-control-zindex: 10 !default;
|
|
128
128
|
|
129
129
|
/// Adds styles for a container of Orbit bullets. /// Adds styles for the Orbit previous button. These styles are used on the `.orbit-bullets` class.
|
130
130
|
@mixin orbit-bullets {
|
131
|
-
@include disable-mouse-outline;
|
132
131
|
position: relative;
|
133
132
|
margin-top: $orbit-bullet-margin-top;
|
134
133
|
margin-bottom: $orbit-bullet-margin-bottom;
|
135
134
|
text-align: center;
|
135
|
+
@include disable-mouse-outline;
|
136
136
|
|
137
137
|
button {
|
138
138
|
width: $orbit-bullet-diameter;
|
@@ -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
|
////
|
@@ -83,9 +83,9 @@ $pagination-arrow-next: '\00BB' !default;
|
|
83
83
|
$padding: $pagination-item-padding,
|
84
84
|
$background-hover: $pagination-item-background-hover
|
85
85
|
) {
|
86
|
-
@include clearfix;
|
87
86
|
margin-#{$global-left}: 0;
|
88
87
|
margin-bottom: $margin-bottom;
|
88
|
+
@include clearfix;
|
89
89
|
|
90
90
|
// List item
|
91
91
|
li {
|
@@ -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
|
/// Adds styles for a progress bar container.
|
@@ -43,7 +43,7 @@
|
|
43
43
|
@include progress-container;
|
44
44
|
|
45
45
|
@each $name, $color in $foundation-palette {
|
46
|
-
&.#{$name} {
|
46
|
+
&.#{"" + $name} {
|
47
47
|
.progress-meter {
|
48
48
|
background-color: $color;
|
49
49
|
}
|
@@ -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
|
////
|
@@ -46,7 +46,7 @@ $responsive-embed-ratios: (
|
|
46
46
|
.flex-video {
|
47
47
|
@include responsive-embed($ratio: default);
|
48
48
|
|
49
|
-
$ratios: map-remove($responsive-embed-ratios,default);
|
49
|
+
$ratios: map-remove($responsive-embed-ratios, default);
|
50
50
|
|
51
51
|
@each $name, $ratio in $ratios {
|
52
52
|
&.#{$name} {
|
@@ -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
|
////
|
@@ -64,11 +64,11 @@ $reveal-overlay-background: rgba($black, 0.45) !default;
|
|
64
64
|
display: none;
|
65
65
|
background-color: $background;
|
66
66
|
overflow-y: auto;
|
67
|
+
-webkit-overflow-scrolling: touch;
|
67
68
|
}
|
68
69
|
|
69
70
|
/// Adds base styles for a modal.
|
70
71
|
@mixin reveal-modal-base {
|
71
|
-
@include disable-mouse-outline;
|
72
72
|
z-index: $reveal-zindex + 1;
|
73
73
|
// Workaround android browser z-index bug
|
74
74
|
backface-visibility: hidden;
|
@@ -80,6 +80,8 @@ $reveal-overlay-background: rgba($black, 0.45) !default;
|
|
80
80
|
border-radius: $reveal-radius;
|
81
81
|
background-color: $reveal-background;
|
82
82
|
|
83
|
+
@include disable-mouse-outline;
|
84
|
+
|
83
85
|
@include breakpoint(medium) {
|
84
86
|
min-height: 0;
|
85
87
|
}
|
@@ -137,6 +139,7 @@ $reveal-overlay-background: rgba($black, 0.45) !default;
|
|
137
139
|
|
138
140
|
&.zf-has-scroll {
|
139
141
|
overflow-y: scroll;
|
142
|
+
-webkit-overflow-scrolling: touch;
|
140
143
|
}
|
141
144
|
|
142
145
|
body { // sass-lint:disable-line no-qualifying-elements
|
@@ -151,13 +154,15 @@ $reveal-overlay-background: rgba($black, 0.45) !default;
|
|
151
154
|
|
152
155
|
// Modal container
|
153
156
|
.reveal {
|
154
|
-
@include reveal-modal-base;
|
155
|
-
@include reveal-modal-width($reveal-width);
|
156
157
|
position: relative;
|
157
158
|
top: 100px;
|
158
159
|
margin-right: auto;
|
159
160
|
margin-left: auto;
|
160
161
|
overflow-y: auto;
|
162
|
+
-webkit-overflow-scrolling: touch;
|
163
|
+
|
164
|
+
@include reveal-modal-base;
|
165
|
+
@include reveal-modal-width($reveal-width);
|
161
166
|
|
162
167
|
// Remove padding
|
163
168
|
&.collapse {
|
@@ -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
|
// [TODO] Check how plugin confirms disabled or vertical status
|
@@ -50,10 +50,9 @@ $slider-transition: all 0.2s ease-in-out !default;
|
|
50
50
|
|
51
51
|
/// Adds the general styles for the slider handles.
|
52
52
|
@mixin slider-handle {
|
53
|
-
@include disable-mouse-outline;
|
54
|
-
@include vertical-center;
|
55
53
|
left: 0;
|
56
54
|
z-index: 1;
|
55
|
+
cursor: grab;
|
57
56
|
|
58
57
|
display: inline-block;
|
59
58
|
width: $slider-handle-width;
|
@@ -64,12 +63,16 @@ $slider-transition: all 0.2s ease-in-out !default;
|
|
64
63
|
transition: $slider-transition;
|
65
64
|
touch-action: manipulation;
|
66
65
|
|
66
|
+
@include vertical-center;
|
67
|
+
@include disable-mouse-outline;
|
68
|
+
|
67
69
|
&:hover {
|
68
70
|
background-color: scale-color($slider-handle-background, $lightness: -15%);
|
69
71
|
}
|
70
72
|
|
71
73
|
&.is-dragging {
|
72
74
|
transition: all 0s linear;
|
75
|
+
cursor: grabbing;
|
73
76
|
}
|
74
77
|
}
|
75
78
|
|
@@ -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
|
////
|
@@ -10,10 +10,18 @@
|
|
10
10
|
/// @type Color
|
11
11
|
$switch-background: $medium-gray !default;
|
12
12
|
|
13
|
+
/// Background color of a switch on focus.
|
14
|
+
/// @type Color
|
15
|
+
$switch-background-focus: scale-color($switch-background, $lightness: -10%) !default;
|
16
|
+
|
13
17
|
/// Background active color of a switch.
|
14
18
|
/// @type Color
|
15
19
|
$switch-background-active: $primary-color !default;
|
16
20
|
|
21
|
+
/// Background active color of a switch on focus.
|
22
|
+
/// @type Color
|
23
|
+
$switch-background-active-focus: scale-color($switch-background-active, $lightness: -15%) !default;
|
24
|
+
|
17
25
|
/// Height of a switch, with no class applied.
|
18
26
|
/// @type Number
|
19
27
|
$switch-height: 2rem !default;
|
@@ -56,7 +64,7 @@ $switch-paddle-transition: all 0.25s ease-out !default;
|
|
56
64
|
|
57
65
|
/// Opacity of a disabled switch.
|
58
66
|
/// @type Number
|
59
|
-
$switch-opacity-disabled: .5 !default;
|
67
|
+
$switch-opacity-disabled: 0.5 !default;
|
60
68
|
|
61
69
|
/// Cursor for a disabled switch.
|
62
70
|
/// @type Cursor
|
@@ -140,6 +148,21 @@ $switch-cursor-disabled: not-allowed !default;
|
|
140
148
|
}
|
141
149
|
}
|
142
150
|
|
151
|
+
|
152
|
+
// Change the visual style when the switch is focused
|
153
|
+
input:focus-visible ~ & {
|
154
|
+
background: $switch-background-focus;
|
155
|
+
|
156
|
+
&::after {
|
157
|
+
background: $switch-paddle-background;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
input:checked:focus-visible ~ & {
|
162
|
+
background: $switch-background-active-focus;
|
163
|
+
}
|
164
|
+
|
165
|
+
|
143
166
|
// indicate a disabled switch
|
144
167
|
input:disabled ~ & {
|
145
168
|
cursor: $switch-cursor-disabled;
|
@@ -215,8 +238,8 @@ $switch-cursor-disabled: not-allowed !default;
|
|
215
238
|
@mixin foundation-switch {
|
216
239
|
// Container class
|
217
240
|
.switch {
|
218
|
-
height: $switch-height;
|
219
241
|
@include switch-container;
|
242
|
+
height: $switch-height;
|
220
243
|
}
|
221
244
|
|
222
245
|
// <input> element
|