@pi0/framework7
Version:
Full featured mobile HTML framework for building iOS & Android apps
65 lines (64 loc) • 1.14 kB
text/less
/* === Range Slider === */
.range-slider {
display: block;
width: 100%;
position: relative;
align-self: center;
cursor: pointer;
user-select: none;
&.disabled {
.disabled();
}
input[type="range"] {
display: none;
}
}
.range-bar {
position: absolute;
left: 0;
top: 50%;
width: 100%;
overflow: hidden;
}
.range-bar-active {
position: absolute;
.ltr({ left: 0; });
.rtl({ right: 0; });
top: 0;
height: 100%;
}
.range-knob-wrap {
z-index: 20;
position: absolute;
top: 50%;
.ltr({ left: 0; });
.rtl({ right: 0; });
}
.range-knob {
box-sizing: border-box;
border-radius: 50%;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.range-knob-label {
position: absolute;
left: 50%;
bottom: 100%;
text-align: center;
transition-duration: 120ms;
transition-property: transform;
transform: translateY(100%) scale(0);
}
.range-knob-active-state .range-knob-label {
transform: translateY(0%) scale(1);
}
& when (@include-ios-theme) {
@import url('./range-ios.less');
}
& when (@include-md-theme) {
@import url('./range-md.less');
}