This is a sass snippet to style the beloved input type="range" a little easier.
When it comes to styling an input[type="range"] the fix is not to vendor-prefix the properties but to vendor-prefix the selectors.
This snippet should provide an easier approach.
@include the range.sass in your project.
Adjust the variables to match your project.
use the mixin "input-type-range" on your input[type=range]
You need node & npm for this, if you don't have it just follow the steps here
$ npm install
$ gulp demo
http://localhost:8000 is the place to go after that.
Issues and pull requests are absolutely welcome!
When you like this please give Daniel Stern a follow as he has done awesome things to improve range-css styling:
The MIT License
Copyright (c) 2015 Jimdo GmbH http://jimdo.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.