mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-30 01:12:39 +00:00
Refine theme toggle icons for light and dark modes
This commit is contained in:
1 parent
aab54c08ac
commit
e5ae3771d5
3 files changed
+53
-16
No files matched your search
+28
-2
@@ -162,11 +162,37 @@
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.header-icon-toggle__icon {
|
||||
.header-icon-toggle__icon-wrapper {
|
||||
@apply inline-flex items-center justify-center;
|
||||
inline-size: var(--icon-size-md);
|
||||
block-size: var(--icon-size-md);
|
||||
}
|
||||
|
||||
.header-icon-toggle__icon {
|
||||
inline-size: 100%;
|
||||
block-size: 100%;
|
||||
display: none;
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
.header-icon-toggle__icon-wrapper:not([data-theme-icon-state]),
|
||||
.header-icon-toggle__icon-wrapper[data-theme-icon-state="light"] {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.header-icon-toggle__icon-wrapper[data-theme-icon-state="light"]
|
||||
.header-icon-toggle__icon--dark {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.header-icon-toggle__icon-wrapper[data-theme-icon-state="dark"]
|
||||
.header-icon-toggle__icon--light {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.header-icon-toggle__icon-wrapper:not([data-theme-icon-state])
|
||||
.header-icon-toggle__icon--dark {
|
||||
display: block;
|
||||
vector-effect: non-scaling-stroke;
|
||||
}
|
||||
|
||||
.header-icon-toggle[data-theme-state="light"]:hover,
|
||||
|
||||
Reference in new issue
Block a user