chore: load svg directly and add classes to paths

This commit is contained in:
Cory Dransfeldt 2024-10-26 20:45:52 -07:00
parent 50640d0590
commit 7ef740f148
No known key found for this signature in database
4 changed files with 19 additions and 20 deletions

View file

@ -20,29 +20,18 @@ theme-toggle {
stroke: var(--accent-color-hover);
}
.sun,
& > .light svg {
stroke: var(--sun);
}
.moon,
& > .dark svg {
stroke: var(--moon);
}
& > .auto svg {
& path:nth-of-type(3) {
stroke: var(--moon);
}
& path:nth-of-type(2),
& path:nth-of-type(4),
& path:nth-of-type(5),
& path:nth-of-type(6) {
stroke: var(--sun);
}
& path:nth-of-type(7) {
stroke: var(--twilight);
}
.twilight {
stroke: var(--twilight);
}
.light,