-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Range track and thumb tweaks for Mozilla Firefox.
- Loading branch information
Showing
9 changed files
with
153 additions
and
64 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
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,34 @@ | ||
# Changelog | ||
_Styling Cross-Browser Compatible Range Inputs with Sass / SCSS_ | ||
|
||
## 1.5.2 | ||
- Range track and thumb tweaks for Mozilla Firefox. (thanks [Adam Jagosz](https://github.com/hyvyys)) | ||
|
||
## 1.5.1 | ||
- Correction of input cursor to default. (thanks [pichfl](https://github.com/pichfl)) | ||
|
||
## 1.5.0 | ||
- Added `:disabled` state. (thanks [mpavel](https://github.com/mpavel)) | ||
- Improved normalization across browsers. (thanks [guidezpl](https://github.com/guidezpl) and [GufNZ](https://github.com/GufNZ)) | ||
- Removed Firefox border outline on focus. (thanks [DeanPoulin](https://github.com/DeanPoulin)) | ||
|
||
## 1.4.1 | ||
- Fixing example page. | ||
|
||
## 1.4.0 | ||
- NPM Package. | ||
|
||
## 1.3.0 | ||
- Better default style and example page. | ||
|
||
## 1.2.0 | ||
- Improvement in SCSS lint. (thanks [Dustin McCaffree](https://github.com/dMcCaffree)) | ||
|
||
## 1.1.1 | ||
- Fix track height in IE and thumb margin in Edge. (thanks [danclaydonpm](https://github.com/danclaydonpm) and [jenstornell](https://github.com/jenstornell)) | ||
|
||
## 1.1.0 | ||
- Make all variables as '!default'. (thanks [n0nick](https://github.com/n0nick)) | ||
|
||
## 1.0.1 | ||
- SCSS-Lint fix. (thanks [CookPete](https://github.com/CookPete)) |
This file was deleted.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,100 @@ | ||
[type=range] { | ||
-webkit-appearance: none; | ||
background: transparent; | ||
margin: 12px 0; | ||
width: 100%; | ||
} | ||
[type=range]::-moz-focus-outer { | ||
border: 0; | ||
} | ||
[type=range]:focus { | ||
outline: 0; | ||
} | ||
[type=range]:focus::-webkit-slider-runnable-track { | ||
background: #fbfbfc; | ||
} | ||
[type=range]:focus::-ms-fill-lower { | ||
background: #eceff1; | ||
} | ||
[type=range]:focus::-ms-fill-upper { | ||
background: #fbfbfc; | ||
} | ||
[type=range]::-webkit-slider-runnable-track { | ||
cursor: default; | ||
height: 8px; | ||
transition: all 0.2s ease; | ||
width: 100%; | ||
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2), 0 0 1px rgba(13, 13, 13, 0.2); | ||
background: #eceff1; | ||
border: 2px solid #cfd8dc; | ||
border-radius: 5px; | ||
} | ||
[type=range]::-webkit-slider-thumb { | ||
box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2), 0 0 4px rgba(13, 13, 13, 0.2); | ||
background: #607d8b; | ||
border: 2px solid #eceff1; | ||
border-radius: 12px; | ||
box-sizing: border-box; | ||
cursor: default; | ||
height: 24px; | ||
width: 24px; | ||
-webkit-appearance: none; | ||
margin-top: -10px; | ||
} | ||
[type=range]::-moz-range-track { | ||
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2), 0 0 1px rgba(13, 13, 13, 0.2); | ||
cursor: default; | ||
height: 8px; | ||
transition: all 0.2s ease; | ||
width: 100%; | ||
background: #eceff1; | ||
border: 2px solid #cfd8dc; | ||
border-radius: 5px; | ||
height: 4px; | ||
} | ||
[type=range]::-moz-range-thumb { | ||
box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2), 0 0 4px rgba(13, 13, 13, 0.2); | ||
background: #607d8b; | ||
border: 2px solid #eceff1; | ||
border-radius: 12px; | ||
box-sizing: border-box; | ||
cursor: default; | ||
height: 24px; | ||
width: 24px; | ||
} | ||
[type=range]::-ms-track { | ||
cursor: default; | ||
height: 8px; | ||
transition: all 0.2s ease; | ||
width: 100%; | ||
background: transparent; | ||
border-color: transparent; | ||
border-width: 12px 0; | ||
color: transparent; | ||
} | ||
[type=range]::-ms-fill-lower { | ||
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2), 0 0 1px rgba(13, 13, 13, 0.2); | ||
background: #dde3e6; | ||
border: 2px solid #cfd8dc; | ||
border-radius: 10px; | ||
} | ||
[type=range]::-ms-fill-upper { | ||
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2), 0 0 1px rgba(13, 13, 13, 0.2); | ||
background: #eceff1; | ||
border: 2px solid #cfd8dc; | ||
border-radius: 10px; | ||
} | ||
[type=range]::-ms-thumb { | ||
box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2), 0 0 4px rgba(13, 13, 13, 0.2); | ||
background: #607d8b; | ||
border: 2px solid #eceff1; | ||
border-radius: 12px; | ||
box-sizing: border-box; | ||
cursor: default; | ||
height: 24px; | ||
width: 24px; | ||
margin-top: 2px; | ||
} | ||
[type=range]:disabled::-webkit-slider-thumb, [type=range]:disabled::-moz-range-thumb, [type=range]:disabled::-ms-thumb, [type=range]:disabled::-webkit-slider-runnable-track, [type=range]:disabled::-ms-fill-lower, [type=range]:disabled::-ms-fill-upper { | ||
cursor: not-allowed; | ||
} |
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