mirror of
https://github.com/picocss/pico.git
synced 2025-04-23 01:46: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
|
@ -1,6 +1,6 @@
|
|||
@charset "UTF-8";
|
||||
/*!
|
||||
* Pico CSS ✨ v2.0.5 (https://picocss.com)
|
||||
* Pico CSS ✨ v2.0.6 (https://picocss.com)
|
||||
* Copyright 2019-2024 - Licensed under MIT
|
||||
*/
|
||||
/**
|
||||
|
@ -1627,7 +1627,7 @@ main {
|
|||
}
|
||||
.pico [type=checkbox][role=switch]:before {
|
||||
display: block;
|
||||
width: calc(1.25em - var(--pico-border-width) * 2);
|
||||
aspect-ratio: 1;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
background-color: var(--pico-color);
|
||||
|
@ -1645,7 +1645,7 @@ main {
|
|||
background-image: none;
|
||||
}
|
||||
.pico [type=checkbox][role=switch]:checked::before {
|
||||
margin-inline-start: calc(2.25em - 1.25em / 2 - var(--pico-border-width) * 3);
|
||||
margin-inline-start: calc(2.25em - 1.25em);
|
||||
}
|
||||
.pico [type=checkbox][role=switch][disabled] {
|
||||
--pico-background-color: var(--pico-border-color);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue