rebuild style for settings section
This commit is contained in:
parent
8bf7afddd2
commit
bd828e697c
11 changed files with 562 additions and 418 deletions
38
public/assets/css/src/_toggle-setting.scss
Normal file
38
public/assets/css/src/_toggle-setting.scss
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue