mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 18:56:15 -04:00
fix: inconsistent enabled switch state
Fixes the switch state by making it offset correctly instead of ballpark with the wrong units
This commit is contained in:
parent
f714a51d9e
commit
760a7b02f7
1 changed files with 3 additions and 1 deletions
|
@ -126,7 +126,9 @@
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
margin-inline-start: calc(#{$switch-width * 0.5} - var(#{$css-var-prefix}border-width));
|
margin-inline-start: calc(
|
||||||
|
#{$switch-width} - #{$switch-height} / 2 - var(#{$css-var-prefix}border-width) * 3
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue