1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-09-02 18:42:47 +02:00

fix: fix pixelize for form elements

fix #262
This commit is contained in:
BcRikko
2019-01-29 21:15:18 +09:00
parent 377286a5d1
commit 913766ad89
6 changed files with 32 additions and 35 deletions

View File

@@ -1,20 +1,22 @@
.nes-list {
// prettier-ignore
$disc: (
(0, 0, 0, 1, 1, 0, 0, 0),
(0, 0, 1, 1, 1, 1, 0, 0),
(0, 1, 1, 1, 1, 1, 1, 0),
(0, 1, 1, 1, 1, 1, 1, 0),
(0, 0, 1, 1, 1, 1, 0, 0),
(0, 0, 0, 1, 1, 0, 0, 0)
);
(0,0,0,1,1,0,0,0),
(0,0,1,1,1,1,0,0),
(0,1,1,1,1,1,1,0),
(0,1,1,1,1,1,1,0),
(0,0,1,1,1,1,0,0),
(0,0,0,1,1,0,0,0)
);
// prettier-ignore
$circle: (
(0, 0, 0, 1, 1, 0, 0, 0),
(0, 0, 1, 1, 1, 1, 0, 0),
(0, 1, 1, 0, 0, 1, 1, 0),
(0, 1, 1, 0, 0, 1, 1, 0),
(0, 0, 1, 1, 1, 1, 0, 0),
(0, 0, 0, 1, 1, 0, 0, 0)
(0,0,0,1,1,0,0,0),
(0,0,1,1,1,1,0,0),
(0,1,1,0,0,1,1,0),
(0,1,1,0,0,1,1,0),
(0,0,1,1,1,1,0,0),
(0,0,0,1,1,0,0,0)
);
$colors: ($base-color, map-get($default-colors, "shadow"));
@@ -28,19 +30,17 @@
position: absolute;
top: calc(50% - 8px);
left: -22px;
font-size: 2px;
content: "";
@include pixelize($disc, $colors);
@include pixelize(2px, $disc, $colors);
}
&.is-circle li::before {
position: absolute;
top: calc(50% - 8px);
left: -22px;
font-size: 2px;
content: "";
@include pixelize($circle, $colors);
@include pixelize(2px, $circle, $colors);
}
}