Closes https://github.com/zurb/foundation-sites/issues/10818
Note: this also remove some useless logic in `@mixin breakpoint`
}
}
- @if $old-zf-size != null {
- // Restore the old breakpoint size
- $-zf-size: $old-zf-size !global;
- } @else {
- $-zf-size: null !global;
- }
+ $-zf-size: $old-zf-size !global;
}
/// Convers the breakpoints map to a URL-encoded string, like this: `key1=value1&key2=value2`. The value is then dropped into the CSS for a special `<meta>` tag, which is read by the Foundation JavaScript. This is how we transfer values from Sass to JavaScript, so they can be defined in one place.
////
/// Creates an inner box-shadow for only one side
-///
+///
/// @param {Keyword} $side - Side the shadow is supposed to appear. Can be `top`, `left`, `right` or `bottom`.
/// @param {Number} $size - Width for the target side.
/// @param {Color} $color - Color of the shadow.
}
@each $name in $list {
+ $old-zf-size: null;
+ @if global-variable-exists(-zf-size) {
+ $old-zf-size: $-zf-size;
+ }
$-zf-size: $name !global;
@if $auto-insert-breakpoints {
@else {
@content;
}
+
+ $-zf-size: $old-zf-size !global;
}
}