feat: support non-singleton darkmode
This commit is contained in:
parent
23df17233d
commit
dcaf806190
3 changed files with 12 additions and 15 deletions
|
@ -29,19 +29,19 @@
|
|||
}
|
||||
|
||||
:root[saved-theme="dark"] .darkmode {
|
||||
& > #dayIcon {
|
||||
& > .dayIcon {
|
||||
display: none;
|
||||
}
|
||||
& > #nightIcon {
|
||||
& > .nightIcon {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
:root .darkmode {
|
||||
& > #dayIcon {
|
||||
& > .dayIcon {
|
||||
display: inline;
|
||||
}
|
||||
& > #nightIcon {
|
||||
& > .nightIcon {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue