Files
lewisdale.dev/src/css/exceptions/color-scheme-picker.css
T
Lewis Dale 99370f516a
Build and copy to prod / build-and-copy (push) Failing after 33s
Update theme, unlist the All Things Must End post
2025-03-31 16:49:41 +01:00

69 lines
1.0 KiB
CSS

.color-scheme {
border: 0;
padding: 0;
display: flex;
gap: var(--space-size-s);
max-width: 25rem;
margin-left: auto;
text-align: right;
legend {
position:absolute;
clip:rect(0 0 0 0);
}
input[name="color-scheme"] {
position:absolute;
clip:rect(0 0 0 0);
}
label {
cursor: pointer;
&:has(:not(:checked)) {
color: var(--color-disabled);
}
&:has(:focus-visible) {
outline: 1px solid var(--color-primary);
outline-offset: 4px;
border-radius: 5%;
}
&::before {
font-family: "font awesome 6 free";
font-style: normal;
font-variant: normal;
text-rendering: auto;
font-weight: 900;
-webkit-font-smoothing: antialiased;
font-size: var(--text-size-s);
}
&:has([value="dark"]) {
&::before {
content: "\f186";
}
}
&:has([value="light"]) {
&::before {
content: "\f185";
}
}
&:has([value="system"]) {
&::before {
content: "\f390";
}
}
&:has(:checked)::before {
text-shadow: var(--color-decoration) 1px 0 10px;
}
}
}