user-detail.less 11.2 KB
@bgcolor-white: #FFF;
@bgcolor-common: #F2F2F2;
@border-color: #E4E4E4;
@container-margin: 5px;
@left-top-height: 100px;

.user-detail-view {
    .content-container {
        display: flex;
        height: 100%;

        .ivh-treeview-node-content,
        .ivh-treeview-checkbox-wrapper {
            padding: 5px;
        }

        .ui-grid-viewport {
            overflow: auto !important;
        }

        .ui-grid {
            /*border: none;*/
        }

        .ui-grid-contents-wrapper .ui-grid-render-container .ui-grid-row {
            line-height: 40px;
        }

        .ui-grid-contents-wrapper .ui-grid-render-container .ui-grid-row:nth-child(even) .ui-grid-cell {
            border-right-width: 0;
            background-color: #ffffff;
        }

        .ui-grid-contents-wrapper .ui-grid-render-container i {
            font-size: 18px;
            color: #a1a1a1;
            vertical-align: middle;
            padding-left: 5px;
        }

        .ui-grid-icon-plus-squared:before {
            font-family: FontAwesome;
            content: "\f067";
            font-size: 12px;
        }

        .ui-grid-icon-minus-squared:before {
            font-family: FontAwesome;
            content: "\f068";
            font-size: 12px;
        }

        .ui-grid-contents-wrapper .ui-grid-render-container .ui-grid-cell-contents .ui-grid-header-cell-label,
        .ui-grid-tree-header-row {
            /*font-weight: normal !important;*/
        }

        .left-container {
            height: 100%;
            width: 40%;
            border: 1px solid @border-color;
            background-color: @bgcolor-white;
            padding: 5px;
            margin-right: @container-margin;
            border-radius: 5px;

            .top {
                margin-top: 10px;

                .icon-array {
                    font-size: 18px;
                }

                .icon-array,
                .icon-user {
                    float: left;
                    color: #757575;
                    font-size: 22px;
                    padding-left: 6px;
                }

                .user-name {
                    float: left;
                    font-size: 16px;
                    font-weight: bold;
                    padding-left: 10px;
                }

                .icon-user-disabled {
                    float: left;
                }

                .user-modify,
                .user-disabled {
                    float: right;
                    color: #757575;
                    font-size: 12px;
                    padding-right: 20px;

                    i {
                        padding-right: 5px;
                        font-size: 16px;
                    }

                    .str-disabled {
                        display: inline-block;
                        vertical-align: middle;
                        margin-top: -8px;
                    }

                    .str-modify {
                        display: inline-block;
                        vertical-align: middle;
                        margin-top: -5px;
                    }
                }

                .user-disabled i {
                    color: #e84100;
                    font-weight: bold;
                }
            }

            .middle {
                padding-left: 81px;
                padding-top: 10px;

                .row {
                    padding-top: 5px;

                    .account-status i {
                        float: left;
                        font-size: 16px;
                        font-weight: bold;
                        padding-left: 10px;
                        color: #d96840;
                        padding-right: 5px;
                    }
                }
            }

            .bottom {
                     height: calc(~'100% - 130px');
                .role-header {
                    margin-left: 39px;
                    font-size: 14px;
                    font-weight: bold;
                    margin-top: 18px;
                    /*background-color: #f2f2f2;*/
                    margin: 30px 26px 10px 10px;
                    border-radius: 19px;
                    height: 32px;
                    line-height: 32px;
                    vertical-align: middle;
                    font-weight: bold;
                    padding-left: 15px;
                }

                .header {
                    margin: 5px 8px;
                    height: 35px;
                    line-height: 35px;
                    vertical-align: middle;
                    font-weight: bold;
                    /*background-color: #f2f2f2;*/
                    .header-left {
                        padding: 0px 12px;
                        word-break: keep-all;
                        overflow-x: hidden;

                        .md-tab {
                            padding: 12px 2px;
                            height: 45px;
                            line-height: 13px;
                        }

                        .active {
                            background-color: #d26139 !important;
                            color: #ffffff !important;
                        }

                        md-tabs-wrapper {
                            height: 35px;
                            line-height: 35px;
                        }

                        md-tabs-wrapper md-prev-button,
                        md-tabs-wrapper md-next-button {
                            width: 6px;
                        }
                        /*这段代码加上,滚动有点问题*/
                        md-tabs-canvas.md-paginated {
                            margin: 0 14px;
                        }

                        md-tabs.md-default-theme md-ink-bar,
                        md-tabs md-ink-bar {
                            color: white;
                            background-color: white;
                        }

                        md-tabs[md-border-bottom] md-tabs-wrapper {
                            border: 0px;
                        }

                        .role-name {
                            text-align:center;
                            padding: 5px;
                            border-top-left-radius: 2em;
                            border-top-right-radius: 2em;
                            border-bottom-right-radius: 2em;
                            border-bottom-left-radius: 2em;
                            width:110px;
                        }

                        .admin-color {
                            background-color: @color-rose-red;
                            color: white;
                        }

                        .manager-color {
                            background-color: @color-blue-ext0;
                            color: white;
                        }

                        .normal-color {
                            background-color: #f2f2f2;
                            color: black;
                            font-weight: normal;
                            padding: 1px;
                            margin-right: 5px;
                            height: 32px;
                            line-height: 32px;
                            vertical-align: middle;
                            margin-top: 5px;
                            float: left;
                        }
                    }

                    .header-right {
                        i {
                            font-size: 16px;
                            /*margin-top: 10px;*/
                        }

                        .v-role {
                            height: 16px;
                            line-height: 16px;
                            vertical-align: middle;
                        }
                    }
                }

                .content {
                    margin: 5px 8px;
                    padding: 15px;
                    height: calc(~'100% - 120px');
                    overflow: auto;
                }
            }
        }

        .right-container {
            height: 100%;
            width: calc(~"60% - @{container-margin}");
            border-radius: 5px;

            .text-align-left {
                padding-left: 10px;
            }

            .header {
                background-color: #f2f2f2;
                margin: 45px 26px 10px 10px;
                border-radius: 19px;
                height: 32px;
                line-height: 32px;
                vertical-align: middle;
                font-weight: bold;

                .header-left {
                    padding-left: 15px;
                    float: left;
                    margin-top: -15px;
                }

                .header-right {
                    float: right;
                    margin-right: 20px;

                    i {
                        font-size: 16px;
                        margin-top: 5px;
                    }
                }
            }

            .bottom {

                .assign-user-box {
                    display: none;
                    position: absolute;
                    top: 0;
                    left: 0;
                    z-index: 999;
                    background-color: #fff;
                    border: 1px solid #949494;
                    border-radius: 5px;
                    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
                    font-size: 13px;

                    .up-triangle {
                        height: 15px;
                        width: 21px;
                        position: relative;
                        float: left;
                        margin-left: 30px;

                        img {
                            margin-right: 24px;
                        }
                    }

                    .role-item-container {
                        padding: 15px;
                        width: 220px;
                        min-height: 70px;
                        max-height: 200px;
                        overflow-y: auto;

                        .title-left {
                            padding-left: 5px;
                            vertical-align: text-bottom;
                        }

                        .role-box {
                            padding-top: 10px;
                            padding-left: 20px;
                        }

                        .role-item {
                            margin: 5px 10px;
                        }
                    }

                    .card-footer {
                        border-top: 1px solid #e5e5e5;
                        padding-top: 10px;
                        padding-bottom: 10px;

                        .btn {
                            margin-left: 26px;
                            min-width: 70px !important;
                        }
                    }
                }

                #generalSettingGrid {

                    .ui-grid-header {
                        border: none;
                    }

                    .ui-grid-cell {
                        border-bottom: none;
                        cursor: pointer;
                    }

                    .ui-grid-row:nth-child(even) .ui-grid-cell {
                        background-color: #ffffff;
                    }
                }

                #orgSettingGrid {
                }
            }
        }
    }
}