Refector sass
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
85c3240b54
commit
ce9f140ddf
46 changed files with 406 additions and 702 deletions
|
|
@ -1,3 +1,5 @@
|
|||
@use '../../partials/dir';
|
||||
|
||||
.toggle {
|
||||
width: 44px;
|
||||
height: 24px;
|
||||
|
|
@ -27,13 +29,13 @@
|
|||
background-color: var(--bg-positive);
|
||||
|
||||
&::before {
|
||||
background-color: white;
|
||||
transform: translateX(calc(125%));
|
||||
opacity: 1;
|
||||
--ltr: translateX(calc(125%));
|
||||
--rtl: translateX(calc(-125%));
|
||||
@include dir.prop(transform, var(--ltr), var(--rtl));
|
||||
|
||||
[dir=rtl] & {
|
||||
transform: translateX(calc(-125%));
|
||||
}
|
||||
transform: translateX(calc(125%));
|
||||
background-color: white;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue