fix: switch aspect ratio and border

This commit is contained in:
Lucas Larroche 2024-03-03 22:04:36 +07:00
parent 8d2a880036
commit f943d2a264
241 changed files with 596 additions and 598 deletions

View file

@ -103,7 +103,7 @@
&:before {
display: block;
width: calc(#{$switch-height} - (var(#{$css-var-prefix}border-width) * 2));
aspect-ratio: 1;
height: 100%;
border-radius: 50%;
background-color: var(#{$css-var-prefix}color);
@ -126,9 +126,7 @@
background-image: none;
&::before {
margin-inline-start: calc(
#{$switch-width} - #{$switch-height} / 2 - var(#{$css-var-prefix}border-width) * 3
);
margin-inline-start: calc(#{$switch-width} - #{$switch-height});
}
}