Skip to content

Commit

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

* docs(icons): add ash to storybook
  • Loading branch information
guastallaigor authored and abdallahalsamman committed Dec 9, 2018
1 parent 93a3531 commit 02e02d5
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/icons.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ stories.add('icon', () => {
smartphone: 'smartphone',
phone: 'phone',
'octocat animate': 'octocat animate',
ash: 'ash',
'icon trophy': 'icon trophy',
'nes-logo': 'nes-logo',
'nes-jp-logo': 'nes-jp-logo',
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ <h3 class="title">Others</h3>
<i class="icon trophy is-medium"></i>
<i class="icon trophy is-large"></i>

<i class="ash"></i>
<i class="pokeball"></i>
<i class="smartphone"></i>
<i class="phone"></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 @@ -5,6 +5,7 @@
@import "snes-icon.scss";
@import "snes-jp-icon.scss";
@import "bcrikko.scss";
@import "ash.scss";
@import "octocat.scss";
@import "pokeball.scss";
@import "phone.scss";
Expand Down
39 changes: 39 additions & 0 deletions scss/pixel-arts/ash.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.ash {
$px: 6px;
// prettier-ignore
$ash-colors: (#f8f8ff, #ff614e, #007f7f,
#181818, #ffe3c5, #426adb, #4169e1);
// prettier-ignore
$ash: (
(0,0,0,0,4,4,4,4,4,4,0,0,0,0),
(0,0,0,4,2,2,2,1,1,3,4,0,0,0),
(0,0,4,2,2,2,2,1,1,1,1,4,1,0),
(0,0,4,2,2,2,2,1,1,3,3,4,4,0),
(0,4,4,4,2,2,2,2,2,2,2,2,2,4),
(0,4,4,4,4,4,4,4,2,2,2,4,4,1),
(4,4,4,4,4,4,4,5,5,4,5,4,1,1),
(0,4,4,5,5,5,4,5,5,4,5,4,1,1),
(0,0,4,5,5,5,5,5,5,5,5,4,0,0),
(0,4,7,4,4,5,5,5,5,5,4,0,0,0),
(0,4,7,4,4,4,4,4,4,4,0,0,0,0),
(0,4,4,5,5,4,7,7,4,4,4,0,0,0),
(4,3,4,5,5,4,7,4,4,3,3,4,0,0),
(4,3,3,4,4,4,4,4,3,3,4,0,0,0),
(0,4,4,0,0,0,0,0,4,4,0,0,0,0)
);

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

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

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

0 comments on commit 02e02d5

Please sign in to comment.