1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-31 09:41:47 +02:00

👍 スターアイコンを追加

This commit is contained in:
BcRikko
2018-09-29 11:12:47 +09:00
parent 84ce705ffc
commit 8eebbfef42
6 changed files with 45 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
@import "twitter.scss";
@import "facebook.scss";
@import "heart.scss";
@import "star.scss";
@mixin setup($pixel) {
$size: $pixel * 16;
@@ -27,6 +28,10 @@
&.-heart::before {
@include pixelize($heart, $pixel, #f11416);
}
&.-star::before {
@include pixelize($star, $pixel, #f7de4e);
}
}
.icon {

19
scss/icons/star.scss Normal file
View File

@@ -0,0 +1,19 @@
// prettier-ignore
$star: (
(0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0),
(0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0),
(0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0),
(0,0,0,0,0,1,0,0,1,1,0,0,0,0,0,0),
(1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0),
(1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0),
(0,1,1,1,0,1,1,1,1,1,1,1,1,1,0,0),
(0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0),
(0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0),
(0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0),
(0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0),
(0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0),
(0,1,1,1,1,1,1,0,1,1,1,1,1,1,0,0),
(1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,0),
(1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0)
);