1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-04-22 07:03:17 +02:00

refactor(icons): refactored psone controller icons to px from em

This commit is contained in:
Igor Guastalla de Lima 2019-02-05 18:46:09 -02:00
parent 92ba7bbbae
commit e3d33d7132

View File

@ -15,19 +15,20 @@
(0,2,2,0,0,0,0,0,0,0,0,0,0,2,2,0)
);
$size: 4px;
position: relative;
display: inline-block;
width: calc(1em * 16);
height: calc(1em * 11);
font-size: 3px;
width: $size * length(nth($psone, 1));
height: $size * length($psone);
&::before {
position: absolute;
top: -1em;
left: -1em;
top: -$size;
left: -$size;
content: "";
background: transparent;
@include pixelize($psone, $psone-colors);
@include pixelize($size, $psone, $psone-colors);
}
}