mirror of
https://github.com/lscambo13/ElegantFin.git
synced 2026-10-26 09:39:34 +00:00
New: Added a way to easily switch between IMDb and TMDB star colors (#300)
```
.starIcon{
/* use --imdb for a gold star */
--colors: var(--tmdb);
}
```
This commit is contained in:
1 parent
f916d5a8af
commit
6659e42fe5
1 file changed
+4
-1
@@ -1186,7 +1186,10 @@ select {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.starIcon {
|
.starIcon {
|
||||||
background: linear-gradient(to right, #90cea1, #01b4e4);
|
--tmdb: linear-gradient(to right, #90cea1, #01b4e4);
|
||||||
|
--imdb: linear-gradient(to right, #f2db83, #dba506);
|
||||||
|
--colors: var(---tmdb);
|
||||||
|
background: var(--colors);
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
-webkit-text-fill-color: transparent;
|
-webkit-text-fill-color: transparent;
|
||||||
margin-left: -0.125em;
|
margin-left: -0.125em;
|
||||||
|
|||||||
Reference in new issue
Block a user