Skip to content

Commit

Permalink
🎉 ロゴアイコンを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
BcRikko committed Nov 27, 2018
1 parent b5595c5 commit 0b599ed
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 4 deletions.
36 changes: 36 additions & 0 deletions css/nes.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion css/nes.css.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions css/nes.min.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion index.html
Expand Up @@ -30,8 +30,9 @@

<body>
<header>
<h1>NES.css</h1>
<h1><i class="nes-logo"></i>NES.css</h1>
<p>NES-style CSS Framework.</p>
<i class="bcrikko"></i>
</header>

<a class="github-link" href="https://github.com/BcRikko/NES.css" target="_blank">
Expand Down
2 changes: 2 additions & 0 deletions scss/pixel-arts/_index.scss
@@ -1,3 +1,5 @@
@charset "utf-8";

@import "nes-icon.scss";
@import "bcrikko.scss";
@import "octocat.scss";
39 changes: 39 additions & 0 deletions scss/pixel-arts/bcrikko.scss
@@ -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);
}
}
33 changes: 33 additions & 0 deletions scss/pixel-arts/nes-icon.scss
@@ -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);
}
}

0 comments on commit 0b599ed

Please sign in to comment.