Last active
July 15, 2020 15:11
-
-
Save lucasponce/e8297b26940fd655f0592a968c396ee1 to your computer and use it in GitHub Desktop.
input[type='range] style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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