Skip to content

Commit

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

* docs(icons): add bulbasaur to storybook
  • Loading branch information
guastallaigor authored and abdallahalsamman committed Dec 9, 2018
1 parent a0f2a91 commit 9c9e891
Show file tree
Hide file tree
Showing 4 changed files with 45 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',
bulbasaur: 'bulbasaur',
charmander: 'charmander',
squirtle: 'squirtle',
smartphone: 'smartphone',
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ <h3 class="title">Others</h3>
<i class="ash"></i>
<i class="pokeball"></i>

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

Expand Down
3 changes: 2 additions & 1 deletion scss/pixel-arts/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
@import "octocat.scss";
@import "mario.scss";
@import "pokeball.scss";
@import "bulbasaur.scss";
@import "charmander.scss";
@import "squirtle.scss";
@import "phone.scss";
@import "smartphone.scss";
@import "smartphone.scss";
41 changes: 41 additions & 0 deletions scss/pixel-arts/bulbasaur.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.bulbasaur {
$px: 6px;
// prettier-ignore
$bulbasaur-colors: (#000, #8beb46, #2d8d22, #5ceee1,
#3fc3b5, #fdfdf5, #ca242a);
// prettier-ignore
$bulbasaur: (
(0,0,0,0,0,0,0,0,0,0,0,0,1,1,1),
(0,0,0,0,0,0,0,0,0,0,0,1,2,2,2,1),
(0,0,0,0,0,0,0,0,0,1,1,1,2,2,2,1),
(0,0,0,0,0,0,0,1,1,2,2,3,2,2,3,2,1,1),
(0,0,0,1,1,0,1,2,2,2,3,3,2,2,3,2,2,2,1),
(0,0,1,4,4,1,1,2,2,3,2,3,2,2,2,3,2,2,2,1),
(0,0,1,4,4,4,1,1,3,2,3,2,2,2,2,2,3,2,2,1),
(0,0,1,4,4,4,4,5,1,2,3,2,2,2,2,2,3,2,2,1),
(0,1,4,4,5,4,5,5,4,1,1,1,2,2,2,2,3,2,1),
(1,1,5,4,4,4,4,4,4,4,4,1,2,2,2,1,1,1,1),
(1,1,5,4,4,4,5,4,4,4,1,5,1,1,1,5,5,5,1),
(1,4,4,4,4,5,4,1,1,4,5,5,5,5,5,1,5,6,1),
(1,5,4,4,4,4,1,7,6,6,5,5,1,5,5,1,1,1),
(0,1,5,4,4,4,1,7,6,4,5,1,5,5,1),
(0,0,1,1,5,5,5,5,5,5,1,5,5,5,1),
(0,0,0,0,1,1,1,1,1,1,1,6,5,6,1),
(0,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($bulbasaur, $bulbasaur-colors, $px);
}
}

0 comments on commit 9c9e891

Please sign in to comment.