Minor modification to toggle switch styles.

This commit is contained in:
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

View File

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