Minor modification to toggle switch styles.

pull/2/head
Daniel Scalzi 2018-06-11 22:45:30 -04:00
parent 1fd69207c0
commit 34e8da2aa2
No known key found for this signature in database
GPG Key ID: 5CA2F145B63535F9
1 changed files with 7 additions and 6 deletions

View File

@ -1091,7 +1091,7 @@ body, button {
display: inline-block;
width: 50px;
height: 25px;
border-radius: 3px;
border-radius: 50px;
box-sizing: border-box;
}
.toggleSwitch input {
@ -1104,9 +1104,9 @@ body, button {
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.25);
background-color: rgba(255, 255, 255, 0.35);
transition: .4s;
border-radius: 3px;
border-radius: 50px;
border: 1px solid rgba(126, 126, 126, 0.57);
}
.toggleSwitchSlider:before {
@ -1116,12 +1116,13 @@ body, button {
width: 21px;
left: 3px;
bottom: 3px;
background-color: rgb(202, 202, 202);
border-radius: 3px;
background-color: white;
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.75);
border-radius: 50px;
transition: .4s;
}
input:checked + .toggleSwitchSlider {
background-color: rgba(36, 255, 0, 0.25);
background-color: rgb(31, 140, 11);
}
input:checked + .toggleSwitchSlider:before {
transform: translateX(21px);