mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-09-01 18:13:32 +02:00
Merge pull request #151 from guastallaigor/add-kirby-icon
feat(icons): add kirby icon
This commit is contained in:
@@ -20,6 +20,7 @@ stories.add('icon', () => {
|
|||||||
'nes-charmander': 'nes-charmander',
|
'nes-charmander': 'nes-charmander',
|
||||||
'nes-squirtle': 'nes-squirtle',
|
'nes-squirtle': 'nes-squirtle',
|
||||||
'nes-smartphone': 'nes-smartphone',
|
'nes-smartphone': 'nes-smartphone',
|
||||||
|
'nes-kirby': 'nes-kirby',
|
||||||
'nes-phone': 'nes-phone',
|
'nes-phone': 'nes-phone',
|
||||||
'nes-octocat animate': 'nes-octocat animate',
|
'nes-octocat animate': 'nes-octocat animate',
|
||||||
'nes-ash': 'nes-ash',
|
'nes-ash': 'nes-ash',
|
||||||
|
@@ -308,6 +308,7 @@
|
|||||||
|
|
||||||
<i class="nes-smartphone"></i>
|
<i class="nes-smartphone"></i>
|
||||||
<i class="nes-phone"></i>
|
<i class="nes-phone"></i>
|
||||||
|
<i class="nes-kirby"></i>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@@ -14,3 +14,4 @@
|
|||||||
@import "squirtle.scss";
|
@import "squirtle.scss";
|
||||||
@import "phone.scss";
|
@import "phone.scss";
|
||||||
@import "smartphone.scss";
|
@import "smartphone.scss";
|
||||||
|
@import "kirby.scss";
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: $px * 15;
|
width: $px * 14;
|
||||||
height: $px * 15;
|
height: $px * 15;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
|
38
scss/pixel-arts/kirby.scss
Normal file
38
scss/pixel-arts/kirby.scss
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
.nes-kirby {
|
||||||
|
$px: 6px;
|
||||||
|
$kirby-colors: (#000, #ffaccc, #ff5478);
|
||||||
|
// prettier-ignore
|
||||||
|
$kirby: (
|
||||||
|
(0,0,1,1,0,1,1,1,1,1,0,0,0,0),
|
||||||
|
(0,1,2,2,1,2,2,2,2,2,1,1,0,0),
|
||||||
|
(1,2,2,1,2,2,2,2,2,2,2,2,1,0),
|
||||||
|
(1,2,2,2,2,2,1,2,1,2,2,2,2,1),
|
||||||
|
(1,2,2,2,2,2,1,2,1,2,2,2,2,1,),
|
||||||
|
(1,2,2,2,2,2,1,2,1,2,2,2,2,2,1),
|
||||||
|
(1,2,2,2,3,3,2,2,2,3,3,2,2,2,2,1),
|
||||||
|
(1,2,2,2,2,2,2,1,2,2,2,2,2,2,2,1),
|
||||||
|
(0,1,2,2,2,2,2,1,2,2,2,2,2,2,2,1),
|
||||||
|
(0,1,2,2,2,2,2,2,2,2,2,2,1,1,1,0),
|
||||||
|
(0,1,2,2,2,2,2,2,2,2,2,1,3,3,3,1),
|
||||||
|
(0,0,1,2,2,2,2,2,2,2,1,3,3,3,3,1),
|
||||||
|
(0,0,1,1,2,2,2,2,2,2,1,3,3,3,3,1),
|
||||||
|
(0,1,3,3,1,1,2,2,2,1,3,3,3,3,1),
|
||||||
|
(1,3,3,3,3,3,1,1,1,1,1,3,3,1),
|
||||||
|
(0,1,1,1,1,1,1,0,0,0,1,1,1,0)
|
||||||
|
);
|
||||||
|
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
width: $px * 16;
|
||||||
|
height: $px * 16;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
position: absolute;
|
||||||
|
top: $px * -1;
|
||||||
|
left: $px * -1;
|
||||||
|
content: "";
|
||||||
|
background: transparent;
|
||||||
|
|
||||||
|
@include pixelize($kirby, $kirby-colors, $px);
|
||||||
|
}
|
||||||
|
}
|
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: $px * 16;
|
width: $px * 14;
|
||||||
height: $px * 16;
|
height: $px * 16;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
|
Reference in New Issue
Block a user