mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
save: public switch
This commit is contained in:
parent
a1bb4da475
commit
69f23c9e48
6 changed files with 83 additions and 10 deletions
33
src/styles/switch.less
Normal file
33
src/styles/switch.less
Normal file
|
@ -0,0 +1,33 @@
|
|||
.switch {
|
||||
height: 1em;
|
||||
width: 2em;
|
||||
border-radius: 0.5em;
|
||||
box-shadow: inset white 0 0 0 0.1em;
|
||||
display: inline-flex;
|
||||
vertical-align: text-top;
|
||||
position: relative;
|
||||
top: 0.05em;
|
||||
margin-right: 0.5em;
|
||||
transition: all 500ms;
|
||||
|
||||
&::after {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
left: 0.2em;
|
||||
top: 0.2em;
|
||||
width: 0.6em;
|
||||
height: 0.6em;
|
||||
border-radius: 0.3em;
|
||||
background: white;
|
||||
transition: all 500ms;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: white;
|
||||
|
||||
&::after {
|
||||
left: 1.2em;
|
||||
background: #333333;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue