Merge pull request #133 from picocss/clean-role-switch

Clean role=switch
This commit is contained in:
Lucas Larroche 2022-01-16 13:25:09 +07:00 committed by GitHub
commit fff0f20210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 9 additions and 20 deletions

View file

@ -1356,12 +1356,9 @@ label > input, label > select, label > textarea {
background-image: none;
}
[type=checkbox][role=switch]:checked::before {
margin-right: 0;
margin-left: calc(1.125em - var(--border-width));
-webkit-margin-start: calc(1.125em - var(--border-width));
margin-inline-start: calc(1.125em - var(--border-width));
-webkit-margin-end: 0;
margin-inline-end: 0;
}
[type=checkbox][aria-invalid=false],

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1534,12 +1534,9 @@ label > input, label > select, label > textarea {
background-image: none;
}
[type=checkbox][role=switch]:checked::before {
margin-right: 0;
margin-left: calc(1.125em - var(--border-width));
-webkit-margin-start: calc(1.125em - var(--border-width));
margin-inline-start: calc(1.125em - var(--border-width));
-webkit-margin-end: 0;
margin-inline-end: 0;
}
[type=checkbox][aria-invalid=false],

File diff suppressed because one or more lines are too long

View file

@ -1326,12 +1326,9 @@ label > input, label > select, label > textarea {
background-image: none;
}
[type=checkbox][role=switch]:checked::before {
margin-right: 0;
margin-left: calc(1.125em - var(--border-width));
-webkit-margin-start: calc(1.125em - var(--border-width));
margin-inline-start: calc(1.125em - var(--border-width));
-webkit-margin-end: 0;
margin-inline-end: 0;
}
[type=checkbox][aria-invalid=false],

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
css/pico.min.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -114,10 +114,8 @@
background-image: none;
&::before {
margin-right: 0;
margin-left: calc(#{$switch-width * 0.5} - var(--border-width));
margin-inline-start: calc(#{$switch-width * 0.5} - var(--border-width));
margin-inline-end: 0;
}
}
}