mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-29 08:50:06 +02:00
feat(icons): add new star icons (#147)
This commit is contained in:
@@ -193,6 +193,15 @@
|
||||
<i class="icon star"></i>
|
||||
<i class="icon star is-medium"></i>
|
||||
<i class="icon star is-large"></i>
|
||||
|
||||
<i class="icon star is-half"></i>
|
||||
<i class="icon star is-half is-medium"></i>
|
||||
<i class="icon star is-half is-large"></i>
|
||||
|
||||
<i class="icon star is-transparent"></i>
|
||||
<i class="icon star is-transparent is-medium"></i>
|
||||
<i class="icon star is-transparent is-large"></i>
|
||||
|
||||
<i class="icon star is-empty"></i>
|
||||
|
||||
<i class="icon like is-small"></i>
|
||||
|
@@ -52,6 +52,12 @@
|
||||
&.star.is-empty::before {
|
||||
@include pixelize($icon-star-empty, $icon-star-empty-colors, $px);
|
||||
}
|
||||
&.star.is-half::before {
|
||||
@include pixelize($icon-star-half, $icon-star-colors, $px);
|
||||
}
|
||||
&.star.is-transparent::before {
|
||||
@include pixelize($icon-star-transparent, $icon-star-colors, $px);
|
||||
}
|
||||
|
||||
&.trophy::before {
|
||||
@include pixelize($icon-trophy, $icon-trophy-colors, $px);
|
||||
|
@@ -39,3 +39,41 @@ $icon-star-empty: (
|
||||
(1,0,0,1,1,0,0,0,0,0,1,1,0,0,1,0),
|
||||
(1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0)
|
||||
);
|
||||
|
||||
$icon-star-half: (
|
||||
(0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0),
|
||||
(0, 0, 0, 0, 0, 0, 2, 3, 2, 0, 0, 0, 0, 0, 0, 0),
|
||||
(0, 0, 0, 0, 0, 0, 2, 3, 2, 0, 0, 0, 0, 0, 0, 0),
|
||||
(0, 0, 0, 0, 0, 2, 3, 3, 0, 2, 0, 0, 0, 0, 0, 0),
|
||||
(0, 0, 0, 0, 0, 2, 3, 3, 0, 2, 0, 0, 0, 0, 0, 0),
|
||||
(2, 2, 2, 2, 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