@import "../font";

.rd-inspector {
    background: #ffffff;
}

.rd-inspector-bar {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: #ffffff;
    z-index: 999;
}

.rd-inspector-bar-decoration {
    background: #08BEC5;
    width: 34px;
    height: 34px;
    border-radius: 50px;
    margin: auto;
}

.rd-inspector-icon() {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 18px;
    text-align: center;
    color: #ffffff;
    background: #D8D8D8;
    border-radius: 34px;
    margin: auto;
    &:hover {
        background: #08BEC5;
    }
}

.rd-inspector-icon-highlight {
    background: #F4F3F3 !important;
    .rd-inspector-property, .rd-inspector-datasource, .rd-inspector-export {
        background: #08BEC5 !important;
    }

}

.rd-inspector-open-arrow {
    .iconfont();
    width: 50px;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
    text-align: center;
    background: #727577;
    color: #ffffff;
    &:before {
        content: "\e61c";
    }
}

.rd-inspector-close-arrow {
    .iconfont();
    width: 50px;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
    text-align: center;
    background: #727577;
    color: #ffffff;
    &:before {
        content: "\e61b";
    }
}

.rd-inspector-bar-item {
    width: 50px;
    padding: 6px 0;
    &:hover {
        background: #F4F3F3;
    }
}

.rd-inspector-property {
    .iconfont();
    .rd-inspector-icon();
    &:before {
        content: "\e660";
    }
}

.rd-inspector-datasource {
    .iconfont();
    .rd-inspector-icon();
    &:before {
        content: "\e663";
    }
}

.rd-inspector-export {
    .iconfont();
    .rd-inspector-icon();
    &:before {
        content: "\e65f";
    }
}

.rd-inspector-dragline {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    z-index: 998;
    cursor: ew-resize;

    &:hover {
        background: #77E0FE;
    }
}

.rd-inspector-dragline-drag {
    background: #77E0FE;
}

.rd-inspector-view {
    position: absolute;
    left: 0;
    right: 50px;
    top: 0;
    bottom: 0;
    z-index: 997;
    background-color: #F4F3F3;
}

// 数据源
.rd-datasource-view {
    display: flex;
    flex-direction: column;
}

.rd-inspector-view-hide {
    display: none;
}

.rd-inspector-view-wapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 32px;
    bottom: 0;
    overflow: auto;
    overflow-x: hidden;
}

.rd-inspector-view-title {
    .iconfont;
    padding-left: 10px;
    font-size: 18px;
    height: 32px;
    line-height: 32px;
    background: #727577;
    color: #ffffff;
    &:before {
        content: "\e66b";
    }
}

// 树形菜单
.tree-root {
    padding: 5px 10px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    flex: 1;
    overflow: scroll;
    .tree-root-title {
        font-size: 16px;
        width: 100%;
        .tree-root-icon {
            .iconfont();
            margin-right: 5px;
            &:before {
                content: "\e745";
            }
        }
    }
    .tree-group {
        height: 30px;
        line-height: 30px;
        font-size: 16px;
        // 标题
        .tree-title {
            color: #333;
            margin-left: 5px;
        }
    }
    .tree-item {
        padding: 2px 0;
        font-size: 14px;
        margin-left: 10px;
        color: #333;
        .tree-item-icon {
            .iconfont();
            &:before {
                content: "\e6b7";
            }
        }
        .tree-item-text {
            margin: 0 5px;
        }
        .tree-item-icon-parent-plus {
            color: #bbb;
            .iconfont();
            font-size: 12px;
            &:before {
                content: "\e672";
            }
        }
        .tree-item-icon-parent-minus {
            color: #bbb;
            .iconfont();
            font-size: 12px;
            &:before {
                content: "\e673";
            }
        }
    }
    .tree-item-dragable {
        cursor: pointer;
        color: #999;
        &:hover {
            color: #08bec5;
        }
    }
    .tree-item-selected {
        color: #08bec5;
    }
    .tree-child-group {
        margin-left: 10px;
        color: #999;
    }
    .tree-item-column {
        display: flex;
        align-items: center;
        cursor: pointer;
    }
    // 文件夹-打开
    .tree-folder-open {
        color: #bbb;
        font-size: 14px;
        .iconfont();
        &:before {
            content: "\e673";
        }
    }
    // 文件夹-关闭
    .tree-folder-close {
        color: #bbb;
        font-size: 14px;
        .iconfont();
        &:before {
            content: "\e672";
        }
    }
}

