@import 'variables';
@import 'mixins';

.rangeslider,
.rangeslider__fill {
    display: block;
    border-radius:3px;
}

.rangeslider {
    background: #eee;
    box-shadow: 0 0 0 1px rgba($color-2, 0.2);
    position: relative;
}

.rangeslider--horizontal {
    height: 15px;
    width: 100%;
}

.rangeslider--vertical {
    width: 20px;
    min-height: 150px;
    max-height: 100%;
    height: 100%;
}

.rangeslider--disabled {
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
    opacity: 0.4;
}

.rangeslider__fill {
    background: $color-2;
    border-color:$color-2;
    position: absolute;
}
.rangeslider--horizontal .rangeslider__fill {
    top: 0;
    height: 100%;
}
.rangeslider--vertical .rangeslider__fill {
    bottom: 0;
    width: 100%;
}

.rangeslider__handle {
    background: white;
    box-shadow: 0 0 0 2px $color-2;
    cursor: pointer;
    display: inline-block;
    width: 25px;
    height: 25px;
    position: absolute;
    background-color:#fff;
    border-radius: 2px;
}
.rangeslider__handle:after {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    margin: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:$color-2;
    border-radius:3px;

}
.rangeslider__handle:active, .rangeslider--active .rangeslider__handle {
    box-shadow:0 0 2px 2px #009cab;
}
.rangeslider--horizontal .rangeslider__handle {
    top: -7px;
    touch-action: pan-y;
    -ms-touch-action: pan-y;
}
.rangeslider--vertical .rangeslider__handle {
    left: -7px;
    touch-action: pan-x;
    -ms-touch-action: pan-x;
}

input[type="range"]:focus + .rangeslider .rangeslider__handle {
    -moz-box-shadow: 0 0 8px rgba(255, 0, 255, 0.9);
    -webkit-box-shadow: 0 0 8px rgba(255, 0, 255, 0.9);
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.9);
}
