1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-31 17:51:46 +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

@@ -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";

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