chore: colocate styles

This commit is contained in:
Cory Dransfeldt 2024-02-27 14:08:15 -08:00
parent 0811a699fb
commit 3a09be8d3f
No known key found for this signature in database
6 changed files with 39 additions and 42 deletions

View file

@ -0,0 +1,33 @@
.theme__toggle,
.theme__toggle svg {
cursor: pointer;
}
.theme__toggle:hover,
.theme__toggle svg:hover {
stroke-width: var(--stroke-width-bold);
}
.theme__toggle > .light svg { stroke: var(--sun) !important; }
.theme__toggle > .dark svg { stroke: var(--moon) !important; }
.theme__toggle > .light ,
.theme__toggle > .dark {
display: none;
}
.theme__dark .theme__toggle > .light {
display: inline;
}
.theme__dark .theme__toggle > .dark {
display: none;
}
.theme__light .theme__toggle > .light {
display: none;
}
.theme__light .theme__toggle > .dark {
display: inline;
}