1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-02-24 09:23:50 +01:00

Merge pull request #45 from ernestomancebo/joining-pixels-ff

shrinking pixels only @ FF
This commit is contained in:
ダーシノ 2018-12-01 12:03:44 +09:00 committed by GitHub
commit 8439df1751
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 212 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
css/nes.min.css vendored

File diff suppressed because one or more lines are too long

View File

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