user-business-unit-modal.less 6.99 KB
Newer Older
eddie.woo's avatar
eddie.woo committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
.user-bu-modal-wrap {
    @ui-grid-row-height: 30px;
    font-family: 'Microsoft YaHei';

    .text-ellipsis() {
        white-space: nowrap;
        word-break: normal;
        text-overflow: ellipsis;
        overflow-x: hidden;
    }
    /*弹框*/
    #userBuModal {
        /*ui grid 统一设置*/
        .ui-grid-custom() {

            .text-align-left {
                text-align: left;
                .text-ellipsis();
            }

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

            .text-align-center {
                text-align: center;
                .text-ellipsis();
            }

            .red-color {
                /*border: 1px solid #D04A02;*/
                background-color: #fed5a9 !important;
            }


            .icon-right {
                text-align: right;
                padding-right: 5px;
                float: right;
                line-height: @ui-grid-row-height;
            }


            .ui-grid-row {
                line-height: @ui-grid-row-height;
            }


            .ui-grid-contents-wrapper .ui-grid-render-container .ui-grid-row:nth-child(even) .ui-grid-cell {
                background-color: white;
            }

            .ui-grid-viewport {
                font-size: 13px;
            }

            .ui-grid {
                border: 1px solid #d4d4d4;
                border-radius: 5px;
                overflow: hidden;
            }

            .ui-grid-header {
                border-bottom: 0;
            }

            .ui-grid-cell {
                border-bottom: 0;
            }

            .ui-grid-row .ui-grid-cell.ui-grid-row-header-cell {
                border-bottom: 0;
            }
            // 第一级是否加粗
            .ui-grid-tree-header-row {
                // font-weight:normal!important;
                font-size: 13px;
            }

            .ui-grid-cell-contents {
                padding: 3px 0 3px 12px !important;
            }

            .ui-grid-contents-wrapper .ui-grid-render-container .ui-grid-cell-contents .ui-grid-header-cell-label {
                font-size: 13px;
            }

            .ui-grid-header-cell-wrapper {
                /*margin: 5px 0px!important;*/
                border-bottom: 1px solid #e4e4e4 !important;
            }
            //http://stackoverflow.com/questions/20782368/use-font-awesome-icon-as-css-content
            //http://fontawesome.io/icons/
            //to change the icon of ui grid to font awesome
            .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-row() {

            &:nth-child(odd) {
                .ui-grid-cell {
                    border-right-width: 0;
                    background-color: #fdfdfd;
                }
            }

            &:nth-child(even) {
                .ui-grid-cell {
                    border-right-width: 0;
                    background-color: #f3f3f3;
                }
            }

            &:last-child {
                .ui-grid-cell {
                    border-bottom-width: 1px;
                }
            }

            &.ui-grid-row-selected > [ui-grid-row] > .ui-grid-cell {
                background-color: #fed5a9 !important;
            }
        }

        .fa-check {
            font-size: 15px;
        }

        .icon-add {
            font-size: 18px;
            color: #333333 !important;
        }

        .material-icons {
            font-size: 16px;
            color: #a1a1a1;
            vertical-align: middle;
        }

        .sub-title {
            font-family: 'Microsoft YaHei';
            font-weight: 409;
            font-style: normal;
            font-size: 13px;
            color: #434343;
            font-weight: bold;
        }

        .modal-dialog {
            width: 600px;
            height: 400px;
        }
        /*用户列表*/
        .user-list {
            height: 300px;

            .title {
                height: 30px;
                display: inline-block;
            }

            .user-data-grid {
                height: 250px;


                #userUIGrid {
                    height: 250px;

                    .ui-grid-row {
                        .ui-grid-row();
                    }
                }

                .ui-grid-custom();
            }
        }
        /*特殊权限*/
        .privilege-list {
            /*margin-top: 20px;*/
            height: 180px;

            .title {
                padding-bottom: 10px;
                font-family: 'Microsoft YaHei';
                font-style: normal;
                color: #D04A02;
            }

            .pri-data-grid {
                height: 160px;

                #priUIGrid {
                    height: 160px;

                    .ui-grid-row {
                        .ui-grid-row();
                    }
                }

                .ui-grid-custom();
            }
        }

        .modal-footer {
            padding-left: 15px !important;
        }

        .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;
                /*border: 1px solid #999999;
                border: 1px solid rgba(0, 0, 0, 0.2);
                border-radius: 6px;
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);*/
                .title-left {
                    padding-left: 5px;
                    vertical-align: text-bottom;
                }

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

                .role-item {
                    margin: 5px 10px;
                    .text-ellipsis();
                }
            }

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

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