﻿.tsb {
    position: relative;
}

    .tsb .scrollbar {
        float: right;
        position: relative;
        width: 6px;
        z-index: 999;
        opacity: 0;
        -moz-transition: opacity linear 250ms;
        -o-transition: opacity linear 250ms;
        -webkit-transition: opacity linear 250ms;
        transition: opacity linear 250ms;
    }

        .tsb .scrollbar.disable {
            opacity: 0;
        }

        .tsb .scrollbar .track {
            position: relative;
            width: 6px;
        }

        .tsb .scrollbar .thumb {
            background: #bec4c9;
            position: absolute;
            left: 0;
            top: 0;
            width: 6px;
            cursor: pointer;
            border-radius: 4px;
        }

        .tsb .scrollbar.disable .thumb {
            cursor: default;
        }

    .tsb .viewport {
        max-height: 100%;
        position: relative;
        z-index: 1;
        overflow: hidden;
    }

        .tsb .viewport .overview {
            position: relative;
            top: 0;
        }

    .tsb:hover .scrollbar {
        opacity: 1;
    }

        .tsb:hover .scrollbar.disable {
            opacity: 0;
        }

    .tsb.shadow-top:after {
        pointer-events: none;
        content: '';
        height: 16px;
        width: 100%;
        top: 0;
        position: absolute;
        background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0)));
        background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
        background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
        background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
        background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFFFF', endColorstr='#00FFFFFF',GradientType=0 );
        z-index: 99;
    }

    .tsb.shadow-bottom:before {
        pointer-events: none;
        content: '';
        height: 16px;
        width: 100%;
        bottom: 0;
        position: absolute;
        background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(255,255,255,1)));
        background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
        background: -o-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
        background: -ms-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
        background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00FFFFFF', endColorstr='#FFFFFFFF',GradientType=0 );
        z-index: 99;
    }
