refactor: formatting

This commit is contained in:
moanos [he/him] 2025-01-01 23:52:54 +01:00
parent d05bd45cf4
commit 5197875431

View File

@ -232,9 +232,11 @@ a.btn, a.btn2, a.nav-link {
vertical-align: middle;
transition: background 0.25s;
}
.toggle-switch:before, .toggle-switch:after {
content: "";
}
.toggle-switch:before {
display: block;
background: linear-gradient(to bottom, #fff 0%, #eee 100%);
@ -247,13 +249,16 @@ a.btn, a.btn2, a.nav-link {
left: 4px;
transition: left 0.25s;
}
.toggle:hover .toggle-switch:before {
background: linear-gradient(to bottom, #fff 0%, #fff 100%);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.checked + .toggle-switch {
background: #56c080;
}
.checked + .toggle-switch:before {
left: 30px;
}