slider-np
Version:
this is a range slider for positive and negative value
56 lines (52 loc) • 1.11 kB
CSS
/* slider_pn css */
.slider_pn_cnt {
width: 120px;
float: left;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 10px;
}
.slider_pn_scale ul,
.slider_pn_scale,
.slider_pn_pointer {
width: 100%;
float: left;
}
.slider_pn_pointer span:before {
content: attr(data-type);
position: absolute;
top: 0;
left: 0;
transform: translate(-50%, 0%);
}
.slider_pn_pointer span {
position: relative;
}
.slider_pn_pointer {
position: relative;
width: 100%;
}
.slider_pn_scale .scale {
width: 100%;
float: left;
display: flex;
flex-direction: row;
gap: 1%;
}
.slider_pn_scale .scale .right_scale,
.slider_pn_scale .scale .left_scale {
width: 49.5%;
height: 5px;
border-radius: 0.5px;
float: left;
margin: 0 auto;
background-color: #dcdee1;
}
.hover_value{
position: absolute ;
bottom:0px ;
transform: translate(-50%, -5px);
color: black;
}