UNPKG

ng-range-slider

Version:

Multi-handle range slider utilising the native HTML5 input range elements.

89 lines (78 loc) 1.67 kB
* { margin: 0; padding: 0; box-sizing: border-box; } body { padding: 25px; } section.range-slider { overflow: hidden; position: relative; width: 200px; height: 35px; } section.range-slider input { pointer-events: none; position: absolute; overflow: hidden; left: 0; top: 0; width: 200px; outline: none; height: 18px; } section.range-slider input::-webkit-slider-thumb { pointer-events: all; position: relative; z-index: 1; outline: 0; } section.range-slider input::-moz-range-thumb { pointer-events: all; position: relative; z-index: 10; -moz-appearance: none; background: linear-gradient(to bottom, #ededed 0%, #dedede 100%); width: 11px; } section.range-slider input::-moz-range-track { position: relative; z-index: -1; background-color: rgba(0, 0, 0, .15); border: 0; } section.range-slider input:last-of-type::-moz-range-track { -moz-appearance: none; background: none transparent; border: 0; } ul.from-to { display: block; list-style-type: none; margin-top: 10px; font-family: Arial, Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 11px; } ul.from-to li { margin-bottom: 1px; } ul.from-to li label { background-color: rgba(0, 0, 0, .1); height: 24px; line-height: 24px; display: inline-block; width: 60px; padding: 0 10px; float: left; font-size: 9px; color: rgba(0, 0, 0, .25); text-transform: uppercase; } ul.from-to li input { border: 1px solid rgba(0, 0, 0, .1); padding: 0 8px; height: 24px; line-height: 24px; outline: none; }