return(
<div className={`form-group ${styles.slider}`}>
- {this.props.gas && <span>{normalizeBTMAmountUnit(btmID, fieldProps.value* this.props.gas, this.props.btmAmountUnit)}</span>}
- <input className={fieldProps.value>0&&styles[`gradient-${fieldProps.value}`]}
+ <span>{normalizeBTMAmountUnit(btmID, fieldProps.value* this.props.gas, this.props.btmAmountUnit)}</span>
+ <input
type='range'
min={0}
max={3}
.slider{
width: 340px;
}
-
-@for $i from 1 through 3 {
- .gradient-#{$i}::-webkit-slider-runnable-track{
- background:linear-gradient(to right, $highlight-default 0%, $highlight-default ($i/3)*100% ,#eee ($i/3)*100% , #eee) !important;
- }
-
- .gradient-#{$i}::-moz-range-track{
- background:linear-gradient(to right, $highlight-default 0%, $highlight-default ($i/3)*100% ,#eee ($i/3)*100%, #eee) !important;
- }
-}
\ No newline at end of file
height: 7px;
cursor: pointer;
animate: 0.2s;
- background: $background-content-color;
+ background: #e4e4e4;
}
input[type=range]::-webkit-slider-thumb {
- height: 20px;
- width: 20px;
+ height: 18px;
+ width: 18px;
border-radius: 15px;
background: $highlight-default;
cursor: pointer;
margin-top: -6px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
- background: $background-content-color;
+ background: #e4e4e4;
}
//Firefox
height: 7px;
cursor: pointer;
animate: 0.2s;
- background: $background-content-color;
+ background: #e4e4e4;
}
input[type=range]::-moz-range-thumb {
border: none;
- height: 20px;
- width: 20px;
+ height: 18px;
+ width: 18px;
border-radius: 15px;
background: $highlight-default;
cursor: pointer;
color: transparent;
}
input[type=range]::-ms-fill-lower {
- background: $highlight-default;
+ background: #e4e4e4;
border-radius: 2px;
}
input[type=range]::-ms-fill-upper {
- background: $background-content-color;
+ background: #e4e4e4;
border-radius: 2px;
}
input[type=range]::-ms-thumb {
margin-top: 1px;
- height: 20px;
- width: 20px;
+ height: 18px;
+ width: 18px;
border-radius: 15px;
background: $highlight-default;
cursor: pointer;
background: $highlight-default;
}
input[type=range]:focus::-ms-fill-upper {
- background: $background-content-color;
+ background: #e4e4e4;
}