This repository has been archived on 2025-03-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coryd.dev-eleventy/src/assets/styles/components/theme-toggle.css
2024-04-28 19:06:48 -07:00

42 lines
No EOL
603 B
CSS

theme-toggle {
width: var(--sizing-svg-base);
height: var(--sizing-svg-base);
display: flex;
}
.theme-toggle {
background: transparent;
padding: 0;
& svg {
cursor: pointer;
}
& > .light svg { stroke: var(--sun) !important; }
& > .dark svg { stroke: var(--moon) !important; }
& > .light ,
& > .dark {
display: none;
}
}
.theme__dark {
& .theme-toggle > .light {
display: inline;
}
& .theme-toggle > .dark {
display: none;
}
}
.theme__light {
& .theme-toggle > .light {
display: none;
}
& .theme-toggle > .dark {
display: inline;
}
}