Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scss/util/_breakpoint.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
/// @group breakpoints
////

@use "sass:list";

/// Patch to fix issue #12080
$-zf-size: null;

Expand Down Expand Up @@ -274,7 +276,7 @@ $breakpoint-classes: (small medium large) !default;
$found-key: true;
}
@if not $found-key {
$list: append($list, $name);
$list: list.append($list, $name);
}
}
@return $list;
Expand Down
3 changes: 2 additions & 1 deletion scss/util/_color.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Licensed under MIT Open Source

@use "sass:color";
@use "sass:list";
@import 'math';

$contrast-warnings: true !default;
Expand Down Expand Up @@ -39,7 +40,7 @@ $success-color: null !default;

$rgb: if($rgb < 0.03928, divide($rgb, 12.92), pow(divide($rgb + 0.055, 1.055), 2.4));

$rgba2: append($rgba2, $rgb);
$rgba2: list.append($rgba2, $rgb);
}

@return 0.2126 * nth($rgba2, 1) + 0.7152 * nth($rgba2, 2) + 0.0722 * nth($rgba2, 3);
Expand Down
5 changes: 3 additions & 2 deletions scss/util/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
////

@use "sass:color";
@use "sass:list";

// Patch to fix issue #12080
$-zf-bp-value: null;
Expand Down Expand Up @@ -101,7 +102,7 @@ $-zf-bp-value: null;

@for $i from 2 through $bars {
$offset: ($weight + $spacing) * ($i - 1);
$shadow: append($shadow, 0 $offset 0 $color, comma);
$shadow: list.append($shadow, 0 $offset 0 $color, comma);
}

// Icon container
Expand Down Expand Up @@ -133,7 +134,7 @@ $-zf-bp-value: null;
// Generate CSS
@for $i from 2 through $bars {
$offset: ($weight + $spacing) * ($i - 1);
$hover-shadow: append($hover-shadow, 0 $offset 0 $color-hover, comma);
$hover-shadow: list.append($hover-shadow, 0 $offset 0 $color-hover, comma);
}

&:hover::after {
Expand Down
4 changes: 3 additions & 1 deletion scss/util/_selector.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
/// @group functions
////

@use "sass:list";

/// Generates a selector with every text input type. You can also filter the list to only output a subset of those selectors.
///
/// @param {List|Keyword} $types [()] - A list of text input types to use. Leave blank to use all of them.
Expand All @@ -20,7 +22,7 @@
}

@each $type in $types {
$return: append($return, unquote('[type=\'#{$type}\']#{$modifier}'), comma);
$return: list.append($return, unquote('[type=\'#{$type}\']#{$modifier}'), comma);
}

@return $return;
Expand Down
3 changes: 2 additions & 1 deletion scss/util/_unit.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// https://get.foundation
// Licensed under MIT Open Source

@use "sass:list";
@import 'math';

$unit-warnings: true !default;
Expand Down Expand Up @@ -52,7 +53,7 @@ $global-font-size: 100% !default;
}

@for $i from 1 through $count {
$rem-values: append($rem-values, -zf-to-rem(nth($values, $i), $base));
$rem-values: list.append($rem-values, -zf-to-rem(nth($values, $i), $base));
}

@return $rem-values;
Expand Down
6 changes: 4 additions & 2 deletions scss/util/_value.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// https://get.foundation
// Licensed under MIT Open Source

@use "sass:list";

////
/// @group functions
////
Expand Down Expand Up @@ -105,8 +107,8 @@
$values: ();

@each $key, $val in $map {
$keys: append($keys, $key);
$values: append($values, $val);
$keys: list.append($keys, $key);
$values: list.append($values, $val);
}

@if $keep == 'keys' {
Expand Down