Try the following code - various vendor-specific classes, use depending on your requirement needs:
.custom-range::-webkit-slider-thumb {
background: gray;
}
.custom-range::-moz-range-thumb {
background: gray;
}
.custom-range::-ms-thumb {
background: gray;
}
Per comments by Astariul and aliawadh980, change the shadow that occurs when the thumb is clicked like this:
-webkit-slider-thumb:active {
background-color: red;
}
-webkit-slider-thumb,
.custom-range:focus::-webkit-slider-thumb,
.custom-range:focus::-moz-range-thumb,
.custom-range:focus::-ms-thumb {
box-shadow: red;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…