cartodb-4.42/app/assets/stylesheets/common/forms/slider.css.scss
2024-04-06 05:25:13 +00:00

67 lines
1.2 KiB
SCSS

@import "../../variables/colors";
@import "../../variables/sizes";
// New slider styles
//
// <div class="UISlider">
// <!-- Apply jquery ui slider -->
// </div>
//
// --------------------------------------------------------------------------------------------------------------------
$br: 10px;
.UISlider {
position: relative;
width: 140px;
height: 10px;
}
.UISlider.ui-slider {
border-radius: $br;
background: white;
}
.UISlider.ui-slider::before {
content: '';
position: absolute;
z-index: 1;
top: 0;
left: 0;
width: 100%;
height: 8px;
border: 1px solid rgba(black, 0.1);
border-radius: $br;
}
.UISlider .ui-slider-range-min {
height: 10px;
border-radius: $br;
background-color: #1181FB;
}
.UISlider .ui-slider-handle {
position: absolute;
z-index: 3;
top: 5px;
left: 2px;
width: 18px;
height: 18px;
margin-top: -9px;
margin-left: -9px;
border-radius: 18px;
outline: none;
background: white;
box-shadow: rgba(black, 0.15) 0 0 0 1px;
&.ui-state-active,
&.ui-state-focus,
&.ui-state-hover { box-shadow: rgba(black, 0.3) 0 0 0 1px; }
}
.UISlider.ui-slider-disabled {
opacity: 0.6;
}
.UISlider.ui-slider-disabled .ui-slider-handle { cursor: default; }