1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-04-21 22:52:42 +02:00

fix(icon-mixin.scss): fix style on firefox

use @supports (-moz-appearance: meterbar) instead of @-moz-document url-prefix()
This commit is contained in:
BcRikko 2019-02-22 22:46:54 +09:00
parent fe70e0c093
commit 34298ab24e

View File

@ -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;
}
}
}
@ -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);
}
}