Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

Commit

Permalink
Update range sliders to support IE10/11, fixes #191
Browse files Browse the repository at this point in the history
  • Loading branch information
gakimball committed Feb 27, 2015
1 parent 4c1c1bf commit 444bd84
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions scss/components/_forms.scss
Expand Up @@ -240,12 +240,12 @@ input[type="range"] {
@include no-appearance;
display: block;
width: 100%;
height: $slider-height;
background: $slider-background;
height: auto;
cursor: pointer;
overflow: visible;
margin-top: $margin;
margin-bottom: $margin;
border: 0;
line-height: 1;

@if hasvalue($slider-radius) {
border-radius: $slider-radius;
Expand All @@ -256,47 +256,58 @@ input[type="range"] {
}

// Chrome/Safari
&::-webkit-slider-runnable-track {
height: $slider-height;
background: $slider-background;
}
&::-webkit-slider-thumb {
-webkit-appearance: none;
background: $slider-thumb-color;
width: $slider-thumb-height;
height: $slider-thumb-height;
margin-top: -$margin;
@if hasvalue($slider-thumb-radius) {
border-radius: $slider-thumb-radius;
}
}
// Firefox
&::-moz-range-track {
-moz-appearance: none;
max-width: 300px;
height: 4px;
height: $slider-height;
background: #ccc;
cursor: pointer;
}
&::-moz-range-thumb {
-moz-appearance: none;
background: $slider-thumb-color;
width: $slider-thumb-height;
height: $slider-thumb-height;
margin-top: -$margin;
@if hasvalue($slider-thumb-radius) {
border-radius: $slider-thumb-radius;
}
}
// Internet Explorer
&::-ms-track {
max-width: 300px;
height: 4px;
background: #ccc;
cursor: pointer;
height: $slider-height;
background: $slider-background;
color: transparent;
border: 0;
overflow: visible;
border-top: $margin solid $body-background;
border-bottom: $margin solid $body-background;
}
&::-ms-thumb {
background: $slider-thumb-color;
width: $slider-thumb-height;
height: $slider-thumb-height;
border: 0;
@if hasvalue($slider-thumb-radius) {
border-radius: $slider-thumb-radius;
}
}
&::-ms-fill-lower, &::-ms-fill-upper {
background: $slider-background;
}
}
output {
line-height: $slider-thumb-height;
Expand Down

0 comments on commit 444bd84

Please sign in to comment.