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

feat(icons): empty trophy + is-small modifier (#128)

This commit is contained in:
Kartones
2018-12-09 09:05:01 +01:00
committed by Abdullah Samman
parent 35469c4a26
commit e7570989e3
4 changed files with 42 additions and 5 deletions

View File

@@ -55,6 +55,9 @@
&.trophy::before {
@include pixelize($icon-trophy, $icon-trophy-colors, $px);
}
&.trophy.is-empty::before {
@include pixelize($icon-trophy-empty, $icon-trophy-empty-colors, $px);
}
&.like::before {
@include pixelize($icon-like, $icon-like-colors, $px);
@@ -103,6 +106,10 @@
// default
@include setup(2px);
&.is-small {
@include setup(1px);
}
&.is-medium {
@include setup(3px);
}

View File

@@ -16,10 +16,26 @@ $icon-trophy: (
(0,0,0,0,0,0,2,3,2,0,0,0,0,0,0,0),
(0,0,0,0,0,2,2,3,2,2,0,0,0,0,0,0),
(0,0,0,0,2,3,3,3,3,4,2,0,0,0,0,0),
(0,0,0,0,2,2,2,2,2,2,2,0,0,0,0,0),
(0,0,0,0,2,2,2,2,2,2,2,0,0,0,0,0)
);
// 2 black
// 3 yellow
// 1 white
// 4 orange
$icon-trophy-empty-colors: (#adafbb);
// prettier-ignore
$icon-trophy-empty: (
(0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0),
(0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0),
(1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0),
(1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0),
(1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0),
(0,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0),
(0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0),
(0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0),
(0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0),
(0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0),
(0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0),
(0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0),
(0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0),
(0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0),
(0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0),
(0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0)
);