rebuild style for settings section

This commit is contained in:
Julie Blanc 2026-03-07 18:51:08 +01:00
parent 8bf7afddd2
commit bd828e697c
11 changed files with 562 additions and 418 deletions

View file

@ -0,0 +1,38 @@
.toggle-setting {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.toggle-setting + label {
position: relative;
display: inline-block;
width: 24px;
height: 14px;
background: #ccc;
border-radius: 18px;
transition: background 0.2s ease;
cursor: pointer;
&::after {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 10px;
height: 10px;
background: white;
border-radius: 50%;
transition: transform 0.2s ease;
}
}
.toggle-setting:checked + label{
background: var(--color-purple);
&::after {
transform: translateX(10px);
}
}