File size: 1,507 Bytes
9f6a741 325d2d4 55acd52 a582ff4 964f1a2 325d2d4 c5dec12 325d2d4 a582ff4 325d2d4 478a0e6 90bed9a 325d2d4 0c72e78 325d2d4 0c72e78 325d2d4 a582ff4 6f17a91 325d2d4 6f17a91 478a0e6 90bed9a c5dec12 29e2598 974fdf3 55acd52 c5dec12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | /* Estilos del botón para google*/
.switch {
position: relative;
display: inline-block;
min-width: 54px;
max-width: 54px;
height: 30px;
margin: auto;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #a1a1a1;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 23px;
width: 23px;
left: 4px;
bottom: 4px;
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);
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked+.slider {
background-color: #3BBD96;
}
input:focus+.slider {
box-shadow: 0 0 1px #3BBD96;
}
input:checked+.slider:before {
-webkit-transform: translateX(23px);
-ms-transform: translateX(23px);
transform: translateX(23px);
box-shadow: 0 0 3px rgba(0, 0, 0, 5.5);
}
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
box-shadow: 0 0 3px rgba(0, 0, 0, 5.5);
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);
background-color: white;
}
.switch:has(input:disabled) {
background: #8b8b8b;
filter: contrast(0.5);
}
|