Skip to content

Commit

Permalink
Switch example using checkbox: Remove browser prefixes from CSS and f…
Browse files Browse the repository at this point in the history
…ix stylelint errors (pull #2125)
  • Loading branch information
nschonni committed Nov 13, 2021
1 parent fc85cba commit 7a8a0fc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/switch/css/switch-checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,15 @@ label {
label .label {
display: inline-block;
width: 9em;
-webkit-user-select: none;
user-select: none;
}

label input[role="switch"] {
opacity: 0;
opacity: 0%;
}

label input[role="switch"] ~ .state {
display: inline-block;
-webkit-user-select: none;
user-select: none;
}

Expand All @@ -52,7 +50,7 @@ label input[role="switch"] ~ .state > .container > .position {
width: 14px;
height: 14px;
background: black;
opacity: 0.6;
opacity: 60%;
}

label input[role="switch"]:not(:checked) ~ .state span.on {
Expand All @@ -67,7 +65,7 @@ label input[role="switch"]:checked ~ .state > .container > .position {
left: 20px;
border-color: green;
background: green;
opacity: 1;
opacity: 100%;
}

label.focus,
Expand Down

0 comments on commit 7a8a0fc

Please sign in to comment.