Refector sass

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura
2021-12-19 10:28:41 +05:30
parent 85c3240b54
commit ce9f140ddf
46 changed files with 407 additions and 703 deletions

View File

@@ -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;
}
}
}