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:
commit
8439df1751
204
css/nes.css
204
css/nes.css
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
2
css/nes.min.css
vendored
File diff suppressed because one or more lines are too long
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user