1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-09-03 11:02:43 +02:00

🎉 ロゴアイコンを追加

This commit is contained in:
BcRikko
2018-11-27 12:13:01 +09:00
parent b5595c5a3c
commit 0b599ed38c
7 changed files with 119 additions and 4 deletions

View File

@@ -1,3 +1,5 @@
@charset "utf-8";
@import "nes-icon.scss";
@import "bcrikko.scss";
@import "octocat.scss";

View File

@@ -0,0 +1,39 @@
.bcrikko {
$px: 4px;
$bcrikko-colors: (#333, #f9f2d7, #c5090c, #fff);
// prettier-ignore
$bcrikko: (
(0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0),
(2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),
(2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),
(2,2,2,2,1,1,2,2,2,2,1,1,2,2,2,2),
(2,2,2,1,1,4,1,2,2,1,1,4,1,2,2,2),
(2,2,2,1,1,1,1,2,2,1,1,1,1,2,2,2),
(2,2,2,1,1,1,1,2,2,1,1,1,1,2,2,2),
(2,2,2,1,1,1,1,2,2,1,1,1,1,2,2,2),
(2,2,2,2,1,1,2,2,2,2,1,1,2,2,2,2),
(2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),
(2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),
(2,2,2,3,2,2,2,2,2,2,2,2,3,2,2,2),
(2,2,2,3,2,2,2,2,2,2,2,2,3,2,2,2),
(2,2,2,2,3,3,3,3,3,3,3,3,2,2,2,2),
(2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2),
(0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0),
);
position: relative;
display: inline-block;
width: $px * 16;
height: $px * 16;
&::before {
position: absolute;
top: $px * -1;
left: $px * -1;
content: "";
background: transparent;
@include pixelize($bcrikko, $bcrikko-colors, $px);
}
}

View File

@@ -0,0 +1,33 @@
.nes-logo {
$px: 3px;
$logo-colors: (#333, #d7d7d7, #7dbb78, #999cf7, #f40500, #f6f504);
// 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),
(0,0,1,1,1,1,1,1,1,1,1,1,1,0,0),
(0,1,2,2,2,2,2,2,2,2,2,2,2,1,0),
(1,2,2,1,2,2,2,2,2,2,2,4,2,2,1),
(1,2,1,1,1,2,2,2,2,2,3,2,5,2,1),
(1,2,2,1,2,2,1,2,1,2,2,6,2,2,1),
(0,1,2,2,2,2,2,2,2,2,2,2,2,1,0),
(0,0,1,1,1,1,1,1,1,1,1,1,1,0,0)
);
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);
}
}