/**
 * author dron
 * generated by less
 */

// veriables
@font-family: 'Courier New', 'Heiti SC', 'Microsoft Yahei';

// functions
.full(){ width: 100%; height: 100%; }

.size( @width, @height ){ width: @width; height: @height; }
.size( @size ){ .size( @size, @size ); }

.pos( @left, @top ){ left: @left; top: @top; }
.pos( @top, @right, @bottom, @left ){ top: @top; right: @right; bottom: @bottom; left: @left; }

.transition( @text ){
    -webkit-transition: @text;
    -moz-transition: @text;
    -o-transition: @text;
    transition: @text;
}

.gradient( @color1, @color2 ){
    background-image: -webkit-linear-gradient(top, @color1 0%, @color2 100%);
    background-image: -moz-linear-gradient(top, @color1 0%, @color2 100%);
    background-image: -o-linear-gradient(top, @color1 0%, @color2 100%);
    background-image: linear-gradient(top, @color1 0%, @color2 100%);
}

.shadow( @text ){
    -webkit-box-shadow: @text;
    -moz-box-shadow: @text;
    box-shadow: @text;
}

.radius( @text ){
    -webkit-border-radius: @text;
    -moz-border-radius: @text;
    border-radius: @text;
}

.boxes(){
    display: -moz-box;
    display: -webkit-box;
    display: box;
}

.box( @size: 1 ){
    -moz-box-flex: @size;
    -webkit-box-flex: @size;
    box-flex: @size;
}

.columns( @count: 2 ){
    column-count: @count;
    -moz-column-count: @count;
    -webkit-column-count: @count;
}

.column( @width ){
    -moz-column-width: @width;
    -webkit-column-width: @width;
    column-width: @width;
}

.relative{ position: relative; }
.absolute{ position: absolute; }



.navbar, .table{ margin-bottom: 0; }

#top-navbar{
    .navbar-inner{
        border-radius: 0;
    }
}

#code-detail{
    .nav-tabs{
        margin-bottom: 0;
        li{
            a{
                color: #555;
            }
        }
    }
}

ul, ol{
    .tab-content{
        margin: 0; padding: 0;
    }
}

::-webkit-scrollbar{
    .size(12px);
    &-thumb{
        background: #ddd;
        min-height: 50px;
        outline-offset: -2px;
        outline: 2px solid #fff;
        &:hover{
            background: #666;
        }
    }
    &-track-piece{
        background: #fafafa;
        -webkit-border-radius: 0;
    }
}


html, body, table{
    font-family: @font-family;
}

html, body{ 
    .full; 
    overflow: hidden; 
    background: transparent; 
}

.scrollable{
    overflow: auto; 
}

.ellipsisable{
    white-space: nowrap; 
    text-overflow: ellipsis; 
    overflow: hidden; 
}

table.compact-width{
    border-bottom: 1px solid #d5d5d5;
    .absolute;
    .pos(0, 0);
    right: 0;
    z-index: 1;
    th{
        padding: 8px 5px;
    }
}

.tab-content{
    overflow: hidden; 
    .absolute; 
    &>li{
        display: none; 
        .absolute; 
        .pos(0,0,0,0);
        &.tab-content-active{ 
            display: block;
        }
    }
}

.target-web-page{ 
    background: transparent; 
}

#top-navbar{
    .close{
        padding: 7px 18px 0 0;
    }
    .brand{
        color: #333;
    }
}

.main{
    .absolute;
    .pos(43px,0,0,0);
}

#pages{
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    &>li{
        background-color: #fff;
        &.target-web-page{
            background-color: transparent;
        }
    }
}

#list-codes{
    cursor: default;
    .absolute;
    .pos(36px,0,0,0);
}

#list-codes-tbody{
    .none{
        color: #999;
    }
    .stress{
        color: #e5818a;
    }
}


#code-detail{
    left: 200px;
    right: 0;
    top: 0;
    bottom: 0;
    border-left: 1px solid #cacaca;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
    display: none;
    overflow: hidden; z-index: 2;
    ul.code-toolbar-inner{ 
        list-style-type: none; 
        height: 100%;
        margin: 0; 
        padding: 0; 
    }
    .code-toolbar{
        height: 42px;
        background-color: #fafafa;
        border-bottom: 1px solid #d5d5d5;
        li{
            float: left;
            display: block;
            &.right{
                float: right;
            }
            &.close-button-like{
                padding: 8px 12px 0 14px;
            }
            &.tab-like{
                padding: 5px 0 0 30px;
            }
            &.label-like{
                line-height: 36px;
                padding: 4px 10px 0;
                color: #999;
            }
            &.image-like{
                padding: 12px 0 0 8px;
            }
        }
        .image{
            .size(16px);
            border: 1px solid #ccc;
        }
        .arrive{ 
            background-color: #bddbef; 
        }
        .unarrive{ 
            background-color: #fff; 
        }
        .hooking{ 
            background-color: #ffba93; 
        }
    }
}

#code-detail-body{ 
    top: 43px; 
    bottom: 0; 
    left: 0; 
    right: 0; 
}

#code-content{
    .full;
    pre{
        padding: 0;
        margin: 0;
        border: 0;
        font-family: @font-family;
        border-radius: 0;
        background-color: transparent;
        white-space: pre;
    }
    .gutter{
        .absolute; 
        .pos(0,0);
        width: 50px;
        background-color: #fafafa;
        text-align: right;
        padding: 5px;
        z-index: 1;
        pre{
            color: #ccc;
        }
    }
    .lines{
        .absolute;
        .pos(60px,0);
        padding: 5px;
        .arrive{ 
            padding: 0 3px;
            border-radius: 2px;
            margin-left: -3px;
        }
        .arrive-1{
            background-color: #bddbef;
            color: #000;
        }
    }
    .timeout-code, .empty-code{
        padding: 10px;
        color: #ccc;
    }
}

#code-info{
    padding: 30px;
    .group{ 
        margin: 0 0 10px;
        dt{ 
            display: block;
            float: left;
            width: 90px;
        }
        dd{
            display: block;
            margin-left: 90px;
        }
    }
}

#loading{
    text-align: left;
    display: none;
    height: 42px;
    overflow: hidden;
    .transition(height .5s ease);
    .navbar-inner{
        border-left: 0;
        box-shadow: none;
    }
    span{
        color: #000;
        font-size: 14px;
        line-height: 40px;
        display: inline-block;
        text-shadow: 0 1px 0 white;
        &#waitTime{
            padding-left: 10px;
        }
    }
}




