Skip to content

Commit

Permalink
feat(icons): add charmander icon (#129)
Browse files Browse the repository at this point in the history
* feat(icons): add charmander icon

* docs(icons): add charmander to storybook
  • Loading branch information
guastallaigor authored and abdallahalsamman committed Dec 9, 2018
1 parent 694299a commit a0f2a91
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/icons.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ stories.add('icon', () => {
'icon whatsapp': 'icon whatsapp',
'icon close': 'icon close',
pokeball: 'pokeball',
charmander: 'charmander',
squirtle: 'squirtle',
smartphone: 'smartphone',
phone: 'phone',
Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ <h3 class="title">SNS</h3>
<i class="icon twitch is-medium"></i>
<i class="icon twitch is-large"></i>

<i class="icon reddit is-small"></i>
<i class="icon reddit"></i>
<i class="icon reddit is-medium"></i>
<i class="icon reddit is-large"></i>
Expand Down Expand Up @@ -269,6 +268,8 @@ <h3 class="title">Others</h3>
<i class="mario"></i>
<i class="ash"></i>
<i class="pokeball"></i>

<i class="charmander"></i>
<i class="squirtle"></i>

<i class="smartphone"></i>
Expand Down
1 change: 1 addition & 0 deletions scss/pixel-arts/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@import "octocat.scss";
@import "mario.scss";
@import "pokeball.scss";
@import "charmander.scss";
@import "squirtle.scss";
@import "phone.scss";
@import "smartphone.scss";
42 changes: 42 additions & 0 deletions scss/pixel-arts/charmander.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.charmander {
$px: 6px;
// prettier-ignore
$charmander-colors: (#000202, #f77702, #eb2010,
#fdfcff, #e5d70a, #e7d70e);
// prettier-ignore
$charmander: (
(0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1),
(0,0,0,1,2,2,2,2,1,0,0,0,0,0,0,0,1,3,1),
(0,0,1,2,2,2,2,2,2,1,0,0,0,0,0,0,1,3,3,1),
(0,0,1,2,2,2,2,2,2,1,0,0,0,0,0,0,1,3,3,1),
(0,1,2,2,2,2,2,2,2,2,1,0,0,0,0,1,3,3,2,3,1),
(1,2,2,2,2,4,1,2,2,2,1,0,0,0,0,1,3,2,6,3,1),
(1,2,2,2,2,1,1,2,2,2,2,1,0,0,0,1,3,5,5,3,1),
(1,2,2,2,2,1,1,2,2,2,2,1,0,0,0,0,1,5,1,1),
(0,1,2,2,2,2,2,2,2,2,2,2,1,0,0,0,1,2,1),
(0,0,1,1,2,2,2,2,2,2,2,2,2,1,0,1,2,2,1),
(0,0,0,0,1,1,1,2,2,1,2,2,2,1,1,2,2,1),
(0,0,0,0,0,1,6,5,1,2,2,2,2,2,1,2,2,1),
(0,0,0,0,0,1,5,5,5,1,1,2,2,2,1,2,1),
(0,0,0,0,1,4,1,6,5,5,2,2,2,2,1,1),
(0,0,0,0,0,1,1,1,5,5,2,2,2,1,1),
(0,0,0,0,0,0,0,0,1,1,1,0,1,1),
(0,0,0,0,0,0,0,0,0,1,4,0,4,1),
(0,0,0,0,0,0,0,0,0,0,1,1,1,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($charmander, $charmander-colors, $px);
}
}

0 comments on commit a0f2a91

Please sign in to comment.