Documentation site of NextGraph.org
https://docs.nextgraph.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
670 B
37 lines
670 B
.theme-toggle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25em;
|
|
padding: 0.33em 0.67em;
|
|
border-radius: 99em;
|
|
background-color: var(--theme-code-inline-bg);
|
|
}
|
|
|
|
.theme-toggle > label:focus-within {
|
|
outline: 2px solid transparent;
|
|
box-shadow: 0 0 0 0.08em var(--theme-accent), 0 0 0 0.12em white;
|
|
}
|
|
|
|
.theme-toggle > label {
|
|
color: var(--theme-code-inline-text);
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.theme-toggle .checked {
|
|
color: var(--theme-accent);
|
|
opacity: 1;
|
|
}
|
|
|
|
input[name='theme-toggle'] {
|
|
position: absolute;
|
|
opacity: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: -1;
|
|
}
|
|
|