1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Improved toggle size

This commit is contained in:
nobody
2020-05-27 18:27:27 +02:00
parent 1654b4ae07
commit a1cbd8832c

View File

@ -159,6 +159,7 @@ footer {
.button { .button {
-moz-user-select: none; -moz-user-select: none;
user-select: none;
background-color: #f5f5f5; background-color: #f5f5f5;
border-radius: 2px; border-radius: 2px;
border: 1px solid #cfcfcf; border: 1px solid #cfcfcf;
@ -167,7 +168,6 @@ footer {
float: right; float: right;
font-size: 12px; font-size: 12px;
padding: 5px 22px; padding: 5px 22px;
user-select: none;
} }
.button:hover { .button:hover {
@ -228,8 +228,8 @@ footer {
.switch { .switch {
position: relative; position: relative;
display: inline-block; display: inline-block;
width: 26px; width: 40px;
height: 16px; height: 22px;
} }
.switch input { .switch input {
@ -254,8 +254,8 @@ footer {
.slider:before, .slider-disabled:before { .slider:before, .slider-disabled:before {
position: absolute; position: absolute;
content: ""; content: "";
height: 12px; height: 18px;
width: 12px; width: 18px;
left: 2px; left: 2px;
bottom: 2px; bottom: 2px;
background-color: #f9f9fa; background-color: #f9f9fa;
@ -269,9 +269,9 @@ input:checked + .slider {
} }
input:checked + .slider:before { input:checked + .slider:before {
-webkit-transform: translateX(10px); -webkit-transform: translateX(18px);
-ms-transform: translateX(10px); -ms-transform: translateX(18px);
transform: translateX(10px); transform: translateX(18px);
} }
.slider-disabled { .slider-disabled {