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

shrinking pixels only @ FF

This commit is contained in:
Ernesto Mancebo 2018-11-30 15:14:35 -04:00 committed by GitHub
parent 9461eaa909
commit eba0730728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
@mixin pixelize($matrix, $colors, $size) {
$ret: "";
$moz: $moz + ",";
@for $i from 1 through length($matrix) {
$row: nth($matrix, $i);
@ -14,6 +15,8 @@
$color: nth($colors, $dot);
$ret: $ret + ($j * $size) + " " + ($i * $size) + " " + $color;
$moz: $moz + ($j * $size)+" "+ ($i * $size)+" 0 0.020em " + $color;
}
}
}
@ -21,4 +24,8 @@
width: $size;
height: $size;
box-shadow: unquote($ret);
@-moz-document url-prefix() {
-webkit-box-shadow: unquote($moz);
}
}