1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-09-01 18:13:32 +02:00

feat(icons): add squirtle icon (#127)

* feat(icons): add squirtle icon

* docs(icons): add squirtle to storybook
This commit is contained in:
Igor Guastalla
2018-12-09 18:42:34 -02:00
committed by Abdullah Samman
parent a06fe90286
commit 694299a133
4 changed files with 46 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ stories.add('icon', () => {
'icon whatsapp': 'icon whatsapp', 'icon whatsapp': 'icon whatsapp',
'icon close': 'icon close', 'icon close': 'icon close',
pokeball: 'pokeball', pokeball: 'pokeball',
squirtle: 'squirtle',
smartphone: 'smartphone', smartphone: 'smartphone',
phone: 'phone', phone: 'phone',
'octocat animate': 'octocat animate', 'octocat animate': 'octocat animate',

View File

@@ -269,6 +269,8 @@
<i class="mario"></i> <i class="mario"></i>
<i class="ash"></i> <i class="ash"></i>
<i class="pokeball"></i> <i class="pokeball"></i>
<i class="squirtle"></i>
<i class="smartphone"></i> <i class="smartphone"></i>
<i class="phone"></i> <i class="phone"></i>
</div> </div>

View File

@@ -9,5 +9,6 @@
@import "octocat.scss"; @import "octocat.scss";
@import "mario.scss"; @import "mario.scss";
@import "pokeball.scss"; @import "pokeball.scss";
@import "squirtle.scss";
@import "phone.scss"; @import "phone.scss";
@import "smartphone.scss"; @import "smartphone.scss";

View File

@@ -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);
}
}