Added: small style

This commit is contained in:
Ray 2020-03-25 11:53:27 +00:00
parent 19dc349842
commit 53e4a1e84e

View File

@ -37,7 +37,11 @@
width: 22px; width: 22px;
} }
.switch > input:checked + .switch-slider:before { -ms-transform: translateX(26px); -webkit-transform: translateX(26px); transform: translateX(26px); } .switch > input:checked + .switch-slider:before {
-ms-transform: translateX(26px);
-webkit-transform: translateX(26px);
transform: translateX(26px);
}
.switch.switch-off-primary > input + .switch-slider { background-color: #2196F3; } .switch.switch-off-primary > input + .switch-slider { background-color: #2196F3; }
.switch.switch-off-success > input + .switch-slider { background-color: #5cb85c; } .switch.switch-off-success > input + .switch-slider { background-color: #5cb85c; }
@ -58,3 +62,18 @@
font-weight: bold; font-weight: bold;
padding-top: 5px; padding-top: 5px;
} }
.switch-sm {
height: 26px;
width: 48px;
}
.switch-sm > .switch-slider:before {
height: 18px;
width: 18px;
}
.switch-sm > input:checked + .switch-slider:before {
-ms-transform: translateX(22px);
-webkit-transform: translateX(22px);
transform: translateX(22px);
}