Alfredo Villegas commited on
Commit ·
90bed9a
1
Parent(s): 478a0e6
margin auto switch button
Browse files- static/css/switch.css +4 -2
static/css/switch.css
CHANGED
|
@@ -33,16 +33,17 @@
|
|
| 33 |
left: 4px;
|
| 34 |
bottom: 4px;
|
| 35 |
background: no-repeat center/80% url(https://upload.wikimedia.org/wikipedia/commons/thumb/5/53/Google_%22G%22_Logo.svg/235px-Google_%22G%22_Logo.svg.png);
|
|
|
|
| 36 |
-webkit-transition: .4s;
|
| 37 |
transition: .4s;
|
| 38 |
}
|
| 39 |
|
| 40 |
input:checked+.slider {
|
| 41 |
-
background-color: #
|
| 42 |
}
|
| 43 |
|
| 44 |
input:focus+.slider {
|
| 45 |
-
box-shadow: 0 0 1px #
|
| 46 |
}
|
| 47 |
|
| 48 |
input:checked+.slider:before {
|
|
@@ -60,6 +61,7 @@ input:checked+.slider:before {
|
|
| 60 |
border-radius: 50%;
|
| 61 |
box-shadow: 0 0 3px rgba(0, 0, 0, 5.5);
|
| 62 |
background: no-repeat center/80% url(https://upload.wikimedia.org/wikipedia/commons/thumb/5/53/Google_%22G%22_Logo.svg/235px-Google_%22G%22_Logo.svg.png);
|
|
|
|
| 63 |
}
|
| 64 |
|
| 65 |
.switch:has(input:disabled) {
|
|
|
|
| 33 |
left: 4px;
|
| 34 |
bottom: 4px;
|
| 35 |
background: no-repeat center/80% url(https://upload.wikimedia.org/wikipedia/commons/thumb/5/53/Google_%22G%22_Logo.svg/235px-Google_%22G%22_Logo.svg.png);
|
| 36 |
+
background-color: white;
|
| 37 |
-webkit-transition: .4s;
|
| 38 |
transition: .4s;
|
| 39 |
}
|
| 40 |
|
| 41 |
input:checked+.slider {
|
| 42 |
+
background-color: #46b07b;
|
| 43 |
}
|
| 44 |
|
| 45 |
input:focus+.slider {
|
| 46 |
+
box-shadow: 0 0 1px #46b07b;
|
| 47 |
}
|
| 48 |
|
| 49 |
input:checked+.slider:before {
|
|
|
|
| 61 |
border-radius: 50%;
|
| 62 |
box-shadow: 0 0 3px rgba(0, 0, 0, 5.5);
|
| 63 |
background: no-repeat center/80% url(https://upload.wikimedia.org/wikipedia/commons/thumb/5/53/Google_%22G%22_Logo.svg/235px-Google_%22G%22_Logo.svg.png);
|
| 64 |
+
background-color: white;
|
| 65 |
}
|
| 66 |
|
| 67 |
.switch:has(input:disabled) {
|