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