mirror of
https://seed.radicle.dev/rad:z371PVmDHdjJucejRoRYJcDEvD5pp.git
synced 2026-10-18 19:10:34 +08:00
theme: Clean up CSS
This commit is contained in:
+16
-37
@@ -55,25 +55,27 @@ body, html {
|
||||
|
||||
#theme {
|
||||
position: fixed;
|
||||
bottom: 0.5rem;
|
||||
right: 0.5rem;
|
||||
bottom: 0;
|
||||
margin-bottom: 0.5rem;
|
||||
right: 0;
|
||||
margin-right: 0.5rem;
|
||||
z-index: 99;
|
||||
border: none;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
#toggle-theme {
|
||||
border: none;
|
||||
color: var(--color-fg-contrast);
|
||||
#theme label, #theme input {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
#theme input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#theme label:hover {
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
background-size: contain;
|
||||
width: 1.75rem;
|
||||
height: 1.75rem;
|
||||
margin-top: 0.25rem;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@@ -112,26 +114,3 @@ body, html {
|
||||
:root:has(#light:checked) #light-label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#theme {
|
||||
gap: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 1px solid var(--color-fg-default);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#theme label:first-child {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
#theme label {
|
||||
width: auto;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#theme input {
|
||||
display: none;
|
||||
}
|
||||
Reference in New Issue
Block a user