1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-31 17:51:46 +02:00

👍 ファミコンコントローラを追加

This commit is contained in:
BcRikko
2018-11-29 21:29:07 +09:00
parent 685fd66c64
commit f884610487
6 changed files with 92 additions and 38 deletions

View File

@@ -1,6 +1,7 @@
@charset "utf-8";
@import "snes-icon.scss";
@import "snes-jp-icon.scss";
@import "nes-icon.scss";
@import "bcrikko.scss";
@import "octocat.scss";

View File

@@ -0,0 +1,33 @@
.snes-jp-logo {
$px: 3px;
$logo-colors: (#333, #871f37, #dfd3b9);
// prettier-ignore
$logo: (
(0,0,0,0,0,0,1,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,1,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,1,0,0,0,0,0,0,0),
(2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),
(2,3,3,3,3,3,2,2,2,2,2,2,2,2,2),
(2,3,3,1,3,3,2,2,2,2,2,2,2,2,2),
(2,3,1,1,1,3,3,3,3,3,3,3,3,3,2),
(2,3,3,1,3,3,1,2,1,3,1,3,1,3,2),
(2,3,3,3,3,3,3,3,3,3,3,3,3,3,2),
(2,2,2,2,2,2,2,2,2,2,2,2,2,2,2)
);
position: relative;
display: inline-block;
width: $px * 16;
height: $px * 11;
&::before {
position: absolute;
top: $px * -1;
left: $px * -1;
content: "";
background: transparent;
@include pixelize($logo, $logo-colors, $px);
}
}