mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-25 18:38:51 +00:00
31912c0f83
* 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.
68 lines
1012 B
SCSS
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;
|
|
}
|
|
}
|
|
}
|
|
}
|