Created
March 17, 2013 08:19
-
-
Save oksushi/5180640 to your computer and use it in GitHub Desktop.
Making an ugly range slider (webkit only)
This file contains hidden or 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
/** | |
* Making an ugly range slider (webkit only) | |
*/ | |
input[type="range"] { | |
background: darkgrey; | |
height: 30px; | |
display: block; | |
border-radius: 1em; | |
width: 100%; | |
box-sizing: border-box; | |
} | |
input[type="range"]::-webkit-slider-thumb { | |
background: lightgrey; | |
width: 40px; | |
height: 40px; | |
border-radius: 50%; | |
} | |
input[type="range"], | |
input[type="range"]::-webkit-slider-thumb { | |
-webkit-appearance: none; | |
box-shadow: 0 0 5px rgba(0,0,0,.5); | |
} |
This file contains hidden or 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
<input type="range"> |
This file contains hidden or 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
// alert('Hello world!'); |
This file contains hidden or 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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment