1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-30 09:20:02 +02:00

Merge branch 'add-text-and-dialog-to-docs' of github.com:BcRikko/NES.css into add-text-and-dialog-to-docs

This commit is contained in:
BcRikko
2019-02-11 17:32:44 +09:00
4 changed files with 39 additions and 1 deletions

View File

@@ -14,4 +14,5 @@
@import "smartphone.scss";
@import "mario.scss";
@import "kirby.scss";
@import "psone.scss";
@import "octocat.scss";

View File

@@ -0,0 +1,34 @@
.nes-psone {
$psone-colors: (#cbcbcb, #b1b1b2, #2a2a2a);
// prettier-ignore
$psone: (
(0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0),
(0,0,1,1,1,0,0,3,0,0,0,1,1,1,0,0),
(0,1,1,1,1,1,0,0,3,0,1,1,1,1,1,0),
(1,1,1,3,1,1,1,1,1,1,1,1,3,1,1,1),
(1,1,3,1,3,1,1,1,1,1,1,3,1,3,1,1),
(1,1,1,3,1,1,1,1,1,1,1,1,3,1,1,1),
(2,1,1,1,1,1,3,1,1,3,1,1,1,1,1,2),
(2,2,1,1,1,0,0,0,0,0,0,1,1,1,2,2),
(2,2,2,2,0,0,0,0,0,0,0,0,2,2,2,2),
(0,2,2,0,0,0,0,0,0,0,0,0,0,2,2,0)
);
$size: 4px;
position: relative;
display: inline-block;
width: $size * length(nth($psone, 1));
height: $size * length($psone);
&::before {
position: absolute;
top: -$size;
left: -$size;
content: "";
background: transparent;
@include pixelize($size, $psone, $psone-colors);
}
}