Skip to content

Commit

Permalink
fix(icon-mixin.scss): fix style on firefox
Browse files Browse the repository at this point in the history
use @supports (-moz-appearance: meterbar) instead of @-moz-document url-prefix()
  • Loading branch information
BcRikko committed Feb 22, 2019
1 parent fe70e0c commit 34298ab
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scss/utilities/icon-mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
$color: nth($colors, $dot);
@if $color == $default-color {
$ret: $ret + ($j * $size) + " " + ($i * $size);
$moz: $moz + ($j * $size) + " " + ($i * $size) + "0 0.020px";
$moz: $moz + ($j * $size) + " " + ($i * $size) + " 0 0.020em";
} @else {
$ret: $ret + ($j * $size) + " " + ($i * $size) + "" + $color;
$moz: $moz + ($j * $size) + " " + ($i * $size) + "0 0.020px " + $color;
$ret: $ret + ($j * $size) + " " + ($i * $size) + " " + $color;
$moz: $moz + ($j * $size) + " " + ($i * $size) + " 0 0.020em " + $color;
}
}
}
Expand All @@ -51,7 +51,9 @@
height: $size;
color: $default-color;
box-shadow: unquote($ret);
@-moz-document url-prefix() {
-webkit-box-shadow: unquote($moz);

// firefox only style
@supports (-moz-appearance: meterbar) {
box-shadow: unquote($moz);
}
}

0 comments on commit 34298ab

Please sign in to comment.