Skip to content

Instantly share code, notes, and snippets.

@brito
Last active August 29, 2015 14:10
Show Gist options
  • Save brito/3f857378e331fb24f678 to your computer and use it in GitHub Desktop.
Save brito/3f857378e331fb24f678 to your computer and use it in GitHub Desktop.
lone ranger
/* lone ranger */
[type=range], datalist { font-size:16px; width:35em }
* { outline: 1px solid #999 }
[type=range],
[type=range]::-webkit-slider-thumb,
[type=range]::-webkit-media-slider-thumb {
appearance:none }
[type=range]{ background:#333;
height:1px; display:block;
margin:4em 0 }
[type=range]::-webkit-slider-thumb {
background:red; width:4em; height:2em;
border-radius:.38em }
datalist { display:flex; background:#eee }
option { flex:auto }
<label> This input styling is:
<input type=range min=0 max=3 value=2 list=score>
<datalist id=score>
<option value=0>lame</option>
<option value=5>not half bad</option>
<option value=10>visionary</option>
</datalist>
</label>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment