Added: small style

This commit is contained in:
Ray 2020-03-25 11:53:27 +00:00
parent 19dc349842
commit 53e4a1e84e
1 changed files with 21 additions and 2 deletions

View File

@ -37,7 +37,11 @@
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-success > input + .switch-slider { background-color: #5cb85c; }
@ -57,4 +61,19 @@
float: left;
font-weight: bold;
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);
}