$color-border-timeline : #dedede;
.kads-slider-timeline-cont{
    margin-top: 20px;
    position: relative;
    width: 100%;
    min-width: 1200px;
    padding-bottom: 15px;
    @include clearfix();
    ul{
        margin: 0;
        padding: 0;
        list-style: none;
        li{
            margin: 0;
            padding: 0;
        }
    }
}
.kads-slider-timeline-headbar {
    background: #fafafa;
    border: 1px solid $color-border-timeline;
    height: 37px;
    position: relative;
}

.kads-slider-timeline-controls {
    height: 37px;
    position: relative;
    width: 100%;
    border-bottom: 1px solid $color-border-timeline;
    border-top: 1px solid $color-border-timeline;
    ul {
        margin: 11px;
        padding: 0;
        li {
            float: left;
            margin: 0;
        }
    }
}

.kads-slider-timeline-ruler {
    background: url("../images/line-horizontal.png") repeat-x left bottom;
    height: 100%;
    width: 100%;
    margin: 0 20px;
    position: relative;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
}
.kads-slider-container{
    a {
        text-decoration: none;
    }
}
.kads-slider-timeline-current-time {
    color: #666;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 37px;
    margin: 0 13px;
    position: absolute;
    right: 0;
    top: 0;
}
.kads-slider-timeline-ruler-cont {
    height: 37px;
    position: relative;
    width: 100%;
    border-bottom: 1px solid $color-border-timeline;
    border-top: 1px solid $color-border-timeline;
}
.kads-slider-frames-rows{
    position: relative;
    width:20110px;
    overflow: hidden;
    left: 0;
}
.kads-slider-timeline-ruler-frameindicator {
    height: 100%;
    position: absolute;
    top: 0;
}
.kads-slider-timeline-delayindicator {
    border-right: 1px dashed #afafaf;
    height: 100%;
    position: absolute;
    top: 0;
}

.kads-slider-frames-times{
    position: absolute;
    height: 13px;
    font-size: 9px;
    top: 0;
    left: 0;
    padding: 0 10px;
    background: #ccc;
    line-height: 15px;
    @include opacity(0.6);
}
.kads-slider-timeline-lable {
    color: gray;
    display: block;
    font-size: 9px;
    margin-left: 0px;
    margin-right: 0;
    margin-top: 12px;
    text-align: left;
    width: 100px;
    float: left;
    text-indent: 3px;
}
.kads-slider-layer-warp {
    position: relative;
    margin-left: 241px;
}

.kads-slider-layer-list {
    float: left;
    height: 100%;
    overflow: hidden;
    margin-left: -241px;
    border: 1px solid $color-border-timeline;
    border-width: 0 0 1px 1px;
    width: 240px;
    padding-bottom: 35px;
    ul {
        list-style: outside none none;
        margin: 0;
        padding: 0;
    }
}
.kads-slider-layer-frames {
    overflow: hidden;
    position: relative;
    border: 1px solid $color-border-timeline;
    border-width: 0 1px 1px 1px;
    padding-bottom: 35px;
}
.kads-slider-scroll-timeline-wrap{
    width: 100%;
    background: #fff;
    border-top:1px solid $color-border-timeline;
    height: 14px;
    position: absolute;
    bottom: 0;
    z-index: 800;
}
.kads-slider-scroll-timeline{
    width: 150px;
    background: gray;
    height: 10px;
    margin-top: 2px;
    position: relative;
    bottom: 0;
    cursor:w-resize;
    *cursor: pointer;
    z-index: 800;
    @include border-radius(5px);
}
.kads-slider-timeline-delayindicator {
    border-right: 1px dashed #afafaf;
    height: 100%;
    position: absolute;
    top: 0;
}
.kads-slider-frames-row {
    border-bottom: 1px solid $color-border-timeline;
    border-right: 1px solid $color-border-timeline;
    height: 35px;
    padding-left: 20px;
    position: relative;
    left: 0;
}

.kads-slider-timeline-range {
    height: 20px;
    left: 0;
    position: relative;
    top: 8px;
    white-space: nowrap;
    @include clearfix();
}
.kads-slider-layer-item-label{
    cursor: move;
}
.kads-slider-range {
    display: inline-block;
    height: 20px;
    min-width: 20px;
    left: 0;
    top: 0;
    white-space: normal;
    position: absolute;
    &.kads-slider-range-show {
        background: #666;
        cursor: move;
        border: 1px solid darken(#666,5%);
    }
    &.kads-slider-range-bg{
        background: $color-active;
        border: 1px solid darken($color-active,5%);
    }
    &.kads-slider-range-delay {
        background: lighten(#666,40%);
        border: 1px solid lighten(#666,35%);
    }
    .kads-slider-range-value{
        text-align: center;
        width: 100%;
        color: #fff;
    }
    .ui-resizable-handle.ui-resizable-e {
        margin-top: 0;
        top: 0;
        width: 2px;
        height: 100%;
        right: -1px;
        background: transparent;
        @include border-radius(0);
    }
    .ui-resizable-handle.ui-resizable-w {
        margin-top: 0;
        top: 0;
        width: 2px;
        height: 100%;
        left: -1px;
        @include border-radius(0);
        background: transparent;
    }
}

.kads-slider-page-admin .selected .kads-slider-range{
    &.kads-slider-range-show {
        background: $color-delete;
        cursor: move;
        border: 1px solid darken($color-delete,5%);
    }
    &.kads-slider-range-delay {
        background: lighten($color-delete,40%);
        border: 1px solid lighten($color-delete,35%);
    }
}
.kads-slider-layer-item-label{
    &.selected{
        .kads-slider-layer-row{
            color: #fff;
            background: $color-active;
            border: 1px solid darken($color-active,10%);
            .kads-slider-layer-label 
            {
               span{
                    color: #fff;
                }
            }
            .kads-slider-layer-controls a{
                color: #fff;
            }
        }
        
    }
}
.kads-slider-layer-row {
    background: white;
    border-bottom: 1px solid $color-border-timeline;
    height: 35px;
    position: relative;
    ul {
        margin: 11px;
        position: absolute;
        li {
            float: left;
        }
    }
}
.kads-slider-layer-label {
    left: 5px;
    position: absolute;
    top: 5px;
    span{
        float: left;
        display: block;
        line-height: 27px;
        color: #666;
        &.kads-slider-layer-labeltext {
            float: left;
            margin-left: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 160px;
        }
    }
}

.kads-slider-layer-controls {
    margin: 11px 11px 0 0;
    position: absolute;
    right: 0;
    a {
        margin: 0 2px;
        color: #666;
        text-decoration: none;
        &:hover,&:focus{
            color: lighten(#666,10%);
        }
    }
}
.jspHorizontalBar {
    background: red;
    bottom: 0;
    height: 10px;
    left: 0;
    position: absolute;
    width: 100%;
}
.kads-slider-timeline-resizehandle {
    bottom: -17px;
    color: gray;
    cursor: n-resize;
    font-size: 25px;
    height: 17px;
    line-height: 0;
    position: absolute;
    text-align: center;
    width: 100%;
}