mirror of
https://github.com/picocss/pico.git
synced 2025-04-23 18:06:14 -04:00
fix: switch aspect ratio and border
This commit is contained in:
parent
8d2a880036
commit
f943d2a264
241 changed files with 596 additions and 598 deletions
|
@ -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});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue