-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e79703a
commit f0ed792
Showing
5 changed files
with
132 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
/* taken from http://danielstern.ca/range.css/#/ */ | ||
|
||
input[type=range] { | ||
margin: 1em .5em 0 .5em; | ||
background-color: transparent; | ||
-webkit-appearance: none; | ||
} | ||
|
||
input[type=range]:focus { | ||
outline: none; | ||
} | ||
|
||
input[type=range]::-webkit-slider-runnable-track { | ||
background: var(--input-background); | ||
border: none; | ||
border-radius: 1.3px; | ||
height: .75em; | ||
cursor: pointer; | ||
} | ||
|
||
input[type=range]::-webkit-slider-thumb { | ||
margin-top: -8px; | ||
width:2em; | ||
height:2em; | ||
background: var(--accent-col); | ||
border: none; | ||
border-radius: 50%; | ||
cursor: pointer; | ||
-webkit-appearance: none; | ||
} | ||
|
||
input[type=range]:focus::-webkit-slider-runnable-track { | ||
background: var(--input-background); | ||
} | ||
|
||
input[type=range]::-moz-range-track { | ||
background: var(--input-background); | ||
border: none; | ||
border-radius: 1.3px; | ||
height: .75em; | ||
cursor: pointer; | ||
} | ||
|
||
input[type=range]::-moz-range-thumb { | ||
width:2em; | ||
height:2em; | ||
background: var(--accent-col); | ||
border: none; | ||
border-radius: 50%; | ||
cursor: pointer; | ||
} | ||
|
||
input[type=range]::-ms-track { | ||
background: transparent; | ||
border-color: transparent; | ||
border-width: 8.7px 0; | ||
color: transparent; | ||
height: .75em; | ||
cursor: pointer; | ||
} | ||
|
||
input[type=range]::-ms-fill-lower { | ||
background: var(--input-background); | ||
border: none; | ||
border-radius: 2.6px; | ||
} | ||
|
||
input[type=range]::-ms-fill-upper { | ||
background: var(--input-background); | ||
border: none; | ||
border-radius: 2.6px; | ||
} | ||
|
||
input[type=range]::-ms-thumb { | ||
width:2em; | ||
height:2em; | ||
background: var(--accent-col); | ||
border: none; | ||
border-radius: 50%; | ||
cursor: pointer; | ||
margin-top: 0; | ||
/*Needed to keep the Edge thumb centred*/ | ||
} | ||
|
||
input[type=range]:focus::-ms-fill-lower { | ||
background: var(--input-background); | ||
} | ||
|
||
input[type=range]:focus::-ms-fill-upper { | ||
background: var(--input-background); | ||
} | ||
|
||
/*TODO: Use one of the selectors from https://stackoverflow.com/a/20541859/7077589 and figure out | ||
how to remove the virtical space around the range input in IE*/ | ||
@supports (-ms-ime-align:auto) { | ||
|
||
/* Pre-Chromium Edge only styles, selector taken from hhttps://stackoverflow.com/a/32202953/7077589 */ | ||
input[type=range] { | ||
margin: 0; | ||
/*Edge starts the margin from the thumb, not the track as other browsers do*/ | ||
} | ||
} |
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