Files
Iris/src/scss/components/_slider.scss
2018-05-30 21:39:38 +12:00

61 lines
798 B
SCSS
Executable File

.slider {
position: relative;
cursor: pointer;
.track {
position: absolute;
background: rgba(0,0,0,0.2);
border-radius: 2px;
.progress {
position: absolute;
background: $turquoise;
pointer-events: none;
left: 0;
border-radius: 2px;
}
}
&.disabled {
.progress {
background: rgba(255,255,255,0.25);
}
}
&.horizontal {
height: 20px;
.track {
height: 4px;
top: 42%;
right: 0;
left: 0;
margin-top: -3px;
.progress {
top: 0;
height: 100%;
max-width: 100%;
}
}
}
&.vertical {
width: 20px;
height: 100%;
.track {
width: 5px;
top: 0;
bottom: 0;
left: 12px;
.progress {
bottom: 0;
width: 100%;
max-height: 100%;
}
}
}
}