Skip to content

Commit

Permalink
👍 ファミコンコントローラを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
BcRikko committed Nov 29, 2018
1 parent 685fd66 commit f884610
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 38 deletions.
18 changes: 18 additions & 0 deletions css/nes.css

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

75 changes: 38 additions & 37 deletions css/nes.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/nes.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ <h3 class="title">Controllers</h3>
<div>
<i class="nes-logo"></i>
<i class="snes-logo"></i>
<i class="snes-jp-logo"></i>
</div>
</section>
</section>
Expand Down
1 change: 1 addition & 0 deletions scss/pixel-arts/_index.scss
Original file line number Diff line number Diff line change
@@ -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";
33 changes: 33 additions & 0 deletions scss/pixel-arts/snes-jp-icon.scss
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit f884610

Please sign in to comment.