mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-22 22:02:48 +02:00
feat(icons): add ash icon (#115)
* feat(icons): add ash icon * docs(icons): add ash to storybook
This commit is contained in:
committed by
Abdullah Samman
parent
93a353197d
commit
02e02d50cf
@@ -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',
|
||||
|
@@ -266,6 +266,7 @@
|
||||
<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>
|
||||
|
@@ -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";
|
||||
|
39
scss/pixel-arts/ash.scss
Normal file
39
scss/pixel-arts/ash.scss
Normal file
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user