Update theme toggle mechanism

This commit is contained in:
kritzl 2025-03-03 16:40:30 +01:00
commit 246417a553
Signed by: kritzl
SSH key fingerprint: SHA256:5BmINP9VjZWaUk5Z+2CTut1KFhwLtd0ZynMekKbtViM
15 changed files with 425 additions and 200 deletions

View file

@ -143,7 +143,7 @@ body {
}
}
> a {
> a, label {
display: flex;
align-items: center;
gap: 0.5rem;
@ -171,7 +171,7 @@ body {
&:focus-within {
background-color: transparent;
a {
a, label {
border: solid 0.1em var(--color-glow-primary);
background-color: transparent;
filter: var(--filter-glow-primary);
@ -199,7 +199,7 @@ body {
}
}
li:not(.toggleTheme) {
li:not(.themeToggle) {
i[data-icon] {
padding-right: 0.5em;
padding-top: 0.2em;
@ -208,11 +208,15 @@ body {
}
}
li.toggleTheme {
li.themeToggle {
font-size: 1.4em;
width: fit-content;
a {
input {
display: none;
}
label {
justify-content: center;
padding: 0.25em;
}