0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

Narrow down checkbox transitions to background and left

This commit is contained in:
Emil Tholin 2019-04-30 00:25:07 +02:00 committed by Conduitry
parent 60e73c41dc
commit d419274afd

View File

@ -469,7 +469,6 @@ input[type="checkbox"]::before {
top: 0;
left: 0;
background: var(--second);
-webkit-transition: .25s ease-out;
/* box-sizing: border-box; */
box-sizing: content-box;
}
@ -489,7 +488,7 @@ input[type="checkbox"]::after {
border-radius: 1em;
background: white;
box-shadow: 0 0px 1px rgba(0,0,0,.4), 0 4px 2px rgba(0,0,0,.1);
-webkit-transition: .2s ease-out;
-webkit-transition: background .2s ease-out, left .2s ease-out;
}
input[type="checkbox"]:checked::after {