William O'Beirne 31912c0f83 Gas Price Estimates API (#1050)
* Setup api / reducers / actions for gas.

* Implement gas price saga, fetch from component, and loading states. Blocked on CORS.

* Implement caching mechanism.

* Add tests for gas saga and reducer.

* More testing.

* Indicate that gas price is recommended when fetched from API.

* Hide track while loading.

* Fix tscheck.

* Check gas estimate before assuming its ok.

* Check for correct logical order of gas prices.

* Tscheck fixes.
2018-02-16 13:01:39 -06:00

68 lines
1012 B
SCSS

@import 'common/sass/variables';
$rail-height: 4px;
$handle-size: 22px;
$speed: 70ms;
$tooltip-bg: rgba(#222, 0.95);
@keyframes slider-loading {
0%, 100% {
opacity: 0.8;
}
50% {
opacity: 0.4;
}
}
.rc-slider {
&-rail {
background: $gray-lighter;
}
&-track {
background: $brand-primary;
}
&-handle {
top: 50%;
width: $handle-size;
height: $handle-size;
background: $brand-primary;
margin: 0;
border: none;
transform: translate(-50%, -50%);
}
&-tooltip {
&-arrow {
.rc-slider-tooltip-placement-top & {
border-top-color: $tooltip-bg;
}
}
&-inner {
background: $tooltip-bg;
padding: 7px 8px;
height: 26px;
box-shadow: none;
border-radius: 3px;
}
}
// Disabled styles
&-disabled {
background: none;
.rc-slider {
&-handle,
&-track {
display: none;
}
&-rail {
animation: slider-loading 1s ease infinite;
}
}
}
}