Skip to content

Commit

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

* docs(icons): add squirtle to storybook
  • Loading branch information
guastallaigor authored and abdallahalsamman committed Dec 9, 2018
1 parent a06fe90 commit 694299a
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',
squirtle: 'squirtle',
smartphone: 'smartphone',
phone: 'phone',
'octocat animate': 'octocat animate',
Expand Down
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ <h3 class="title">Others</h3>
<i class="mario"></i>
<i class="ash"></i>
<i class="pokeball"></i>
<i class="squirtle"></i>

<i class="smartphone"></i>
<i class="phone"></i>
</div>
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,5 +9,6 @@
@import "octocat.scss";
@import "mario.scss";
@import "pokeball.scss";
@import "squirtle.scss";
@import "phone.scss";
@import "smartphone.scss";
@import "smartphone.scss";
41 changes: 41 additions & 0 deletions scss/pixel-arts/squirtle.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.squirtle {
$px: 6px;
// prettier-ignore
$squirtle-colors: (#000, #9cf, #cb6633,
#9fa1a1, #fff, #f89934, #ff3);
// prettier-ignore
$squirtle: (
(0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1),
(0,0,1,2,2,2,2,1,1,0,0,0,0,0,0,1,2,2,2,1),
(0,1,2,2,2,2,2,2,2,1,1,0,0,0,1,2,2,2,2,2,1),
(0,1,2,2,2,2,2,2,2,1,6,1,1,0,1,2,2,2,1,2,1),
(1,3,2,2,2,2,2,2,2,2,6,6,6,1,2,2,2,1,2,2,1),
(1,2,2,2,2,5,1,2,2,2,5,6,6,6,1,2,2,1,2,1),
(1,2,2,2,2,1,3,2,2,2,5,6,6,6,1,2,1,1,1),
(0,1,2,2,2,1,3,2,2,2,1,5,6,6,6,1,1),
(0,0,1,1,2,2,2,2,1,1,2,2,5,6,6,1),
(0,0,1,2,1,1,1,1,2,2,2,2,5,6,6,1),
(0,0,0,1,1,7,7,1,2,2,2,1,5,6,6,1),
(0,0,0,0,0,1,7,7,1,1,1,1,5,6,6,1),
(0,0,0,0,1,2,1,7,7,7,7,7,1,5,1,0),
(0,0,0,0,0,1,1,1,1,7,7,2,1,5,1,0),
(0,0,0,0,0,0,0,0,1,1,1,2,1,1),
(0,0,0,0,0,0,0,0,0,1,2,2,2,1),
(0,0,0,0,0,0,0,0,0,0,1,1,1,0),
);

position: relative;
display: inline-block;
width: $px * 14;
height: $px * 14;

&::before {
position: absolute;
top: $px * -1;
left: $px * -1;
content: "";
background: transparent;

@include pixelize($squirtle, $squirtle-colors, $px);
}
}

0 comments on commit 694299a

Please sign in to comment.