@import "const";
.baseHeight {
    height: @baseHeight;
    line-height: @baseHeight;
}

.dib {
    display: inline-block;
    vertical-align: middle;
}

.authEdit {
    .pa-handle-text {
        color: @baseFontColor;
    }
    .panel-heading {
        padding: 0;
        padding-left: 10px;
        .baseHeight();
        padding-left: @baseNum;
        font-size: @baseFontSize;
    }
    .pa-search {
        width: 100%;
        margin: auto;
        margin: 20px 10px;
        .baseHeight();
        .roleNameLabel {
            font-family: @baseFont;
            font-size: 13px;
            color: @baseFontColor;
        }
        .form-group {
            width: 100%;
            margin: auto;
        }
    }
    .input-group {
        width: 100%;
    }
    .pa-search input {
        .baseHeight();
        // padding: 0;
        margin-right: 12px;
        margin-left: 5px;
        border: 1px solid #cccccc;
    }
    .input-group-addon {
        .baseHeight();
        .dib();
        width: 100px;
        margin-left: 12px;
        color: @white;
    }
    // right
    .treeSource {
        .box-heading {
            margin: 20px 0;
            .baseHeight();
        }
        .labeling {
            position: relative;
            background: none;
            cursor: pointer;
            &:before {
                background: url(../../images/noChecked.png) no-repeat;
                width: 18px;
                height: 18px;
                position: absolute;
                left: -21px;
                content: "";
            }
            &.chbAll {
                width: auto;
                line-height: 18px;
            }
        }
        input[type='checkbox']:checked+label:before {
            background: url(../../images/checked.png) no-repeat;
        }
    }
    .dataSource {
        //使用tree控件样式
        //展开样式
        [treecontrol].tree-classic li.tree-expanded i.tree-branch-head {
            background: url(../../images/dealer/icon_zhankai.png) no-repeat;
        }
        //未展开样式
        [treecontrol].tree-classic li.tree-collapsed i.tree-branch-head {
            background: url(../../images/dealer/icon_shouqii.png) no-repeat;
        }
        // .tree li{
        //     position: relative;
        //     &:before{
        //         content: "";
        //         width: 1px;
        //         height: 20px;
        //         border: 1px dotted #ccc;
        //         position: absolute;
        //         left: 35px;
        //         top: 0px;
        //     }
        //     &:after{
        //         content: "";
        //         width: 1px;
        //         height:100%;
        //         border:1px dotted #ccc;
        //         position: absolute;
        //         left:30px;
        //     }
        // }
        .tree li{
            padding-left:28px;
            &:last-of-type{
                &:before{
                    display: none;
                }
            }
        }
        .tree li{
            position: relative;
            &:before{
                content: "";
                width: 1px;
                height:145%;
                border:1px dotted #ccc;
                position: absolute;
                left:35px;
                top:0;
            }
        }
        .a2{
            &:first-child{
                .tree-leaf-head:before{
                    position: absolute;
                    height:20px;
                    width:1px;
                    border-left:2px solid #fff;
                    top:-20px;
                }
            }
            .tree-label{
                span{
                    position: relative;
                    &:before{
                        position: absolute;
                        width:20px;
                        height:1px;
                        border-top:1px dotted #ccc;
                        left:-37px;
                        top:50%;
                    }
                }
            }
            .tree-branch-head {
                position: relative;
                &:before{
                    position: absolute;
                    height:20px;
                    width:1px;
                    border-top:1px dotted #ccc;
                    left:0;
                    top:-30px;
                }
            }
            .tree-branch-head{
                position: relative;
                &:before{
                    content: "";
                    position: absolute;
                    height: 20px;
                    width: 1px;
                    border-left: 2px dotted #ccc;
                    left: 7px;
                    top: -50%;
                }
            }
        }
        li.tree-leaf:last-child{
            .a5{
                position: relative;
                &:before{
                    content: "";
                    position: absolute;
                    height: 20px;
                    width: 1px;
                    border-left: 2px solid #fff;
                    left: 7px;
                    top: 10px;
                }
            }
        }
        // tree控件样式结束
    }
    // 将树下面的子节点置于选中状态
    [treecontrol] li.selected {
        li {
            .tree-selected {
                background-color: transparent;
                font-weight: bold;
            }
        }
    }
    [treecontrol].tree-classic li .tree-selected{
        background-color: transparent;
    }
}
.tree-label{
    position: relative;
    padding-left: 25px;
    &:before{
        content: "";
        width:16px;
        height:16px;
        position: absolute;
        left:8px;
        top:0;
        background: url(../../images/noChecked.png) no-repeat center;
    }
}
.selected .tree-label{
    &:before{
        background: url(../../images/checked.png) no-repeat center;
    }
}
.tree-label span{
        position: relative;
        padding-left: 8px;
        &:before{
        content: "";
        width:6px;
        height:6px;
        display: inline-block;
        vertical-align: middle;
        background: url(../../images/dealer/point.png) no-repeat center;
    }
}


.btn-checbox {
    label {
        font-size: 12px;
        padding: 4px 12px;
    }
}

.curpointer {
    cursor: pointer;
}
