Bernardo Martín
UI Developer | CSS & Animation Developer | Frontend Developer
input[type='range'] {-webkit-appearance: none; background: transparent /* quitamos estilos es moz y webkit lo ponemios transparente */
width: 100%; /* En firefox es requerido poner el ancho */ }
input[type='range']::-webkit-slider-runnable-track, input[type='range']::-webkit-slider-thumb{
-webkit-appearance: none; }
input[type=range]:focus { outline: none; /*Elimina el borde azul. Se debería dar estilo de enfoque por razones de accesibilidad */ }
input[type=range]::-ms-track { width: 100%; cursor: pointer; /* Oculta el control deslizante para agregar estilos personalizados */ background: transparent; border-color: transparent; color: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; border: 1px solid #000000; height: 36px; width: 16px; border-radius: 3px; background: #ffffff; cursor: pointer; margin-top: -14px; /* hay que darle valor negativo, solo a este navegador */ box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; }
input[type=range]::-moz-range-thumb { box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; border: 1px solid #000000; height: 36px; width: 16px; border-radius: 3px; background: #ffffff; cursor: pointer; }
input[type=range]::-ms-thumb { box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; border: 1px solid #000000; height: 36px; width: 16px; border-radius: 3px; background: #ffffff; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8.4px; cursor: pointer; box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; background: #3071a9; border-radius: 1.3px; border: 0.2px solid #010101; }
input[type=range]:focus::-webkit-slider-runnable-track { background: #367ebd; }
input[type=range]::-moz-range-track { width: 100%; height: 8.4px; cursor: pointer; box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; background: #3071a9; border-radius: 1.3px; border: 0.2px solid #010101; }
input[type=range]::-ms-track { width: 100%; height: 8.4px; cursor: pointer; background: transparent; border-color: transparent; border-width: 16px 0; color: transparent; }
input[type=range]::-ms-fill-lower { background: #2a6495; border: 0.2px solid #010101; border-radius: 2.6px; box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; }
input[type=range]:focus::-ms-fill-lower { background: #3071a9; }
input[type=range]::-ms-fill-upper { background: #3071a9; border: 0.2px solid #010101; border-radius: 2.6px; box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; }
input[type=range]:focus::-ms-fill-upper { background: #367ebd; }
https://bermartinv.github.io/css/files/taller/menu_taller.html
By Bernardo Martín
UI Developer | CSS & Animation Developer | Frontend Developer