-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* range slider * fix slider style * cleanup * Support chrome * debounce onRangeChange callback --------- Co-authored-by: Johannes Wolf <janno42@posteo.de> Co-authored-by: Richard Ebeling <dev@richardebeling.de>
- Loading branch information
1 parent
ae448e7
commit 2da6090
Showing
7 changed files
with
227 additions
and
26 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<section class="range-slider"> | ||
<div class="row mt-3"> | ||
<span class="col-4 text-start text-secondary"></span> | ||
<span class="col-4 range-values"></span> | ||
<span class="col-4 text-end text-secondary"></span> | ||
</div> | ||
<input class="form-range" name="low" value="" min="" max="" step="1" type="range"> | ||
<input class="form-range" name="high" value="" min="" max="" step="1" type="range"> | ||
</section> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
section.range-slider { | ||
position: relative; | ||
height: 45px; | ||
text-align: center; | ||
} | ||
|
||
section.range-slider input { | ||
pointer-events: none; | ||
position: absolute; | ||
left: 0; | ||
top: 20px; | ||
} | ||
|
||
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; | ||
} | ||
|
||
section.range-slider input::-webkit-slider-runnable-track { | ||
background-color: $light-gray; | ||
} | ||
|
||
section.range-slider input::-moz-range-track { | ||
position: relative; | ||
z-index: -1; | ||
background-color: $light-gray; | ||
border: 0; | ||
} | ||
|
||
section.range-slider input:last-of-type::-moz-range-track { | ||
-moz-appearance: none; | ||
background: none transparent; | ||
border: 0; | ||
} | ||
|
||
section.range-slider input[type=range]::-moz-focus-outer { | ||
border: 0; | ||
} |
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
Oops, something went wrong.