Skip to content

Instantly share code, notes, and snippets.

@lucasponce
Last active July 15, 2020 15:11
Show Gist options
  • Save lucasponce/e8297b26940fd655f0592a968c396ee1 to your computer and use it in GitHub Desktop.
Save lucasponce/e8297b26940fd655f0592a968c396ee1 to your computer and use it in GitHub Desktop.
input[type='range] style
.requests-total input[type='range'] {
-webkit-appearance: none;
width: 100%;
height: 25px;
background: #d3d3d3;
outline: none;
opacity: 0.7;
-webkit-transition: .2s;
transition: opacity .2s;
}
.requests-total input[type='range']:hover {
opacity: 1;
}
.requests-total input[type='range']::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 25px;
height: 25px;
cursor: pointer;
background: var(--total-color);
}
.requests-total input[type='range']::-moz-range-thumb {
width: 25px;
height: 25px;
cursor: pointer;
background: var(--total-color);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment