mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-28 08:19:55 +02:00
feat(heart): added new heart reaction state
added the `is-half` and `is-transparent` to the `heart` reaction feat #246
This commit is contained in:
@@ -19,6 +19,46 @@ $icon-heart: (
|
||||
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
|
||||
);
|
||||
|
||||
// prettier-ignore
|
||||
$icon-heart-half: (
|
||||
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
|
||||
(0,0,2,2,2,0,0,0,0,0,2,2,2,0,0,0),
|
||||
(0,2,3,3,3,2,0,0,0,2,0,0,0,2,0,0),
|
||||
(2,3,1,1,3,3,2,0,2,0,0,0,0,0,2,0),
|
||||
(2,3,1,3,3,3,3,2,0,0,0,0,0,0,2,0),
|
||||
(2,3,3,3,3,3,3,3,0,0,0,0,0,0,2,0),
|
||||
(2,3,3,3,3,3,3,3,0,0,0,0,0,0,2,0),
|
||||
(2,3,3,3,3,3,3,3,0,0,0,0,0,0,2,0),
|
||||
(0,2,3,3,3,3,3,3,0,0,0,0,0,2,0,0),
|
||||
(0,0,2,3,3,3,3,3,0,0,0,0,2,0,0,0),
|
||||
(0,0,0,2,3,3,3,3,0,0,0,2,0,0,0,0),
|
||||
(0,0,0,0,2,3,3,3,0,0,2,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,0,2,4,2,0,0,0,0,0,0,0),
|
||||
(0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0),
|
||||
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
|
||||
);
|
||||
|
||||
// prettier-ignore
|
||||
$icon-heart-transparent: (
|
||||
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
|
||||
(0,0,2,2,2,0,0,0,0,0,2,2,2,0,0,0),
|
||||
(0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0),
|
||||
(2,0,0,0,0,0,2,0,2,0,0,0,0,0,2,0),
|
||||
(2,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0),
|
||||
(2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0),
|
||||
(2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0),
|
||||
(2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0),
|
||||
(0,2,0,0,0,0,0,0,0,0,0,0,0,2,0,0),
|
||||
(0,0,2,0,0,0,0,0,0,0,0,0,2,0,0,0),
|
||||
(0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,0),
|
||||
(0,0,0,0,2,0,0,0,0,0,2,0,0,0,0,0),
|
||||
(0,0,0,0,0,2,0,0,0,2,0,0,0,0,0,0),
|
||||
(0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0),
|
||||
(0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0),
|
||||
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
|
||||
);
|
||||
|
||||
$icon-heart-empty-colors: (#adafbb);
|
||||
// prettier-ignore
|
||||
$icon-heart-empty: (
|
||||
|
@@ -70,6 +70,12 @@
|
||||
&.heart::before {
|
||||
@include pixelize($default-size, $icon-heart, $icon-heart-colors);
|
||||
}
|
||||
&.heart.is-half::before {
|
||||
@include pixelize($default-size, $icon-heart-half, $icon-heart-colors);
|
||||
}
|
||||
&.heart.is-transparent::before {
|
||||
@include pixelize($default-size, $icon-heart-transparent, $icon-heart-colors);
|
||||
}
|
||||
&.heart.is-empty::before {
|
||||
@include pixelize($default-size, $icon-heart-empty, $icon-heart-empty-colors);
|
||||
}
|
||||
|
Reference in New Issue
Block a user