审查视图

public/assets/less/backend.less 15.9 KB
Karson authored
1 2
@import (reference) "bootstrap-less/mixins.less";
@import (reference) "bootstrap-less/variables.less";
Karson authored
3 4
@import (reference) "fastadmin/mixins.less";
@import (reference) "fastadmin/variables.less";
Karson authored
5 6
@import "lesshat.less";
Karson authored
7 8 9 10 11 12 13 14 15 16
@import url("../css/bootstrap.min.css");
@import url("../css/fastadmin.min.css");
@import url("../css/skins/skin-green.css");
@import url("../css/iconfont.css");
@import url("../libs/font-awesome/css/font-awesome.min.css");
@import url("../libs/toastr/toastr.min.css");
@import url("../libs/layer/build/skin/default/layer.css");
@import url("../libs/bootstrap-table/dist/bootstrap-table.min.css");
@import url("../libs/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css");
@import url("../libs/nice-validator/dist/jquery.validator.css");
Karson authored
17
@import url("../libs/selectpage/selectpage.css");
Karson authored
18
Karson authored
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
.clearfix() {
    &:before,
        &:after {
        content: " "; // 1
        display: table; // 2
    }
    &:after {
        clear: both;
    }
}

@main-bg:           #f1f4f6;
@panel-intro-bg:    darken(@main-bg,3%);
@panel-nav-bg:    #fff;

body {
    background:#f1f4f6;
}
Karson authored
37 38 39
body.is-dialog {
    background:#fff;
}
Karson authored
40 41 42 43 44 45 46 47 48 49

.selection {
    position: absolute;
    border: 1px solid #8B9;
    background-color: #BEC;
}
.main-header {
    .logo,.navbar {
        .transition(none);
    }
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
    .navbar{
        position:relative;
        .sidebar-toggle{
            position:absolute;
            width:45px;
            text-align: center;
        }
        #nav{
            position:absolute;
            left:45px;
        }
        .navbar-custom-menu {
            position:absolute;
            right:0;
        }
    }
Karson authored
66 67 68 69 70 71 72 73
}
.note-dialog .modal {z-index:1060;}

.bootstrap-dialog .modal-dialog {
    /*width: 70%;*/
    max-width:885px;
}
74 75 76
.content {
    min-height:500px;
}
Karson authored
77 78 79 80 81 82 83
#header {
    background: #fff;
    box-shadow: 0 2px 2px rgba(0,0,0,.05),0 1px 0 rgba(0,0,0,.05);
}
.content-wrapper {
    position:relative;
}
Karson authored
84 85 86
.control-relative{
    position:relative;
}
Karson authored
87 88 89 90 91
.tab-addtabs {
    overflow: hidden;
    .tab-pane {
        height: 100%;
        width: 100%;
92 93 94 95 96 97
    }
    &.ios-iframe-fix{
        .tab-pane {
            -webkit-overflow-scrolling:touch;
            overflow: auto;
        }
Karson authored
98 99
    }
}
100 101 102 103 104
.layui-layer-iframe .layui-layer-content.ios-iframe-fix {
  -webkit-overflow-scrolling: touch;
  overflow: auto;
  overflow-y: auto!important;
}
105 106 107 108 109 110 111 112 113 114 115 116 117 118
@media only screen and (min-width : 481px) {
    .row-flex {
        display: flex;
        flex-wrap: wrap;
    }
    .row-flex > [class*='col-'] {
        display: flex;
        flex-direction: column;
    }
    .row-flex.row:after, 
    .row-flex.row:before {
        display: flex;
    }
}
119 120 121 122 123 124
.common-search-table {
    min-height: 20px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f5f5f5;
}
Karson authored
125 126 127
.searchit{
    border-bottom:1px dashed @link-color;
}
128 129 130 131 132 133 134 135 136 137 138 139 140
/* 固定的底部按钮 */
.fixed-footer {
    position: fixed;
    bottom:0;    
    background-color: #ecf0f1;
    width:100%;
    margin-bottom:0;
    padding:10px;
}
/* 包裹在layer外层 */
.layer-footer {
    display:none;
}
Karson authored
141
142 143 144 145 146 147 148 149
table.table-template{
    overflow:hidden;
}
.sp_container .msg-box{
    position: absolute;
    right: 0;
    top: 0;
}
150 151 152 153 154
.toast-top-right-index{
    top:62px;
    right:12px;
}
155 156 157 158 159 160 161 162 163 164 165
.bootstrap-select .status {
    background: #f0f0f0;
    clear: both;
    color: #999;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: -5px;
    padding: 10px 20px;
}
166 167 168 169 170 171
.img-center {
    margin:0 auto;
    display: inline;
    float:none;
}
Karson authored
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
/*
 * RIBBON
 */
#ribbon {
    overflow:hidden;
    padding: 15px 15px 0 15px;
    position: relative;

    a {
        color: #777 !important;
        text-decoration: none !important;
    }
    .breadcrumb {
        display: inline-block;
        margin: 0;
        padding: 0;
        background: none;
        vertical-align: top;
    }

    .breadcrumb > .active,
Karson authored
193
    .breadcrumb li {
Karson authored
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
        color: #aaa;
    }
    .shortcut {
        a{
            margin-left:10px;
        }
    }

}

.is-dialog {
    #main {
        background:#fff;
    }

    form label {
        font-weight: normal;
    }
}
Karson authored
213 214

.user-panel > .image img{
215 216
    width:45px;
    height:45px;
Karson authored
217 218
}
Karson authored
219 220 221 222
/*panel扩展描述样式*/
.panel-intro {
    margin-bottom:0;
    border:none;
Karson authored
223
    > .panel-heading {
Karson authored
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 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384
        padding:15px;
        padding-bottom:0;
        background:@panel-intro-bg;
        border-color:@panel-intro-bg;
        position:relative;
        .panel-lead {
            margin-bottom:15px;
            em {
                display: block;
                font-weight: bold;
                font-style:normal;
            }
        }

        .panel-title {
            height:25px;
            font-weight: normal;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .panel-control {
            height: 42px;
            position:absolute;
            top:8px;
            right:8px;
            .fa {
                font-size:14px;
            }
        }
        .nav-tabs {
            border-bottom:0;
            margin-bottom:0;
        }


        .nav-tabs > li > a{
            margin-right:4px;
            color: #95a5a6;
            background-color: darken(@panel-intro-bg, 5%);
            border: 1px solid @panel-intro-bg;
            border-bottom-color: transparent;
        }
        .nav-tabs > li > a:hover, .nav-tabs > li > a:focus{
            border: 1px solid @panel-intro-bg;
            color: #7b8a8b;
            background-color: darken(@panel-intro-bg, 10%);
        }
        .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
            color: #7b8a8b;
            background-color: #ffffff;
            border-bottom-color: transparent;
            cursor: default;
        }
    }
}
/*单表格*/
.panel-tabs {
    .panel-heading {
        padding:12px 15px 12px 15px;
        .panel-lead {
            margin-bottom:0px;
        }
        .panel-title {

        }
    }
}
/*选项卡*/
.panel-nav {

    .panel-heading {
        padding:0px;
        padding-bottom:0;
        background:@main-bg;
        border-color:@main-bg;
    }
    .nav-tabs > li > a{
        padding: 12px 15px;
        background-color: @panel-intro-bg;
        border: 1px solid @main-bg;
    }
    .nav-tabs > li > a:hover, .nav-tabs > li > a:focus{
        border: 1px solid @panel-intro-bg;
        background-color: @panel-intro-bg;
    }
    .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
        border-color: @main-bg;
        border-bottom-color: transparent;
    }
}
/*顶栏addtabs*/
.nav-addtabs{
    &.disable-top-badge {
        > li > a > .pull-right-container{
            display:none;
        }
    }
    border:none;
    > li{
        margin:0;
        > a{
            height:49px;
            line-height:49px;
            padding:0 15px;
            border-radius:0;
            border:none;
            border-right:1px solid rgba(0, 0, 0, 0.05);
            margin:0;
            color:#95a5a6;
            &:hover, &:focus{
                border:none;
                color:#2c3e50;
                border-right:1px solid rgba(0, 0, 0, 0.05);
            }
            i{
                margin-right:3px;
            }
        }
        &.active > a{
            height:49px;line-height:49px;
            padding:0 15px;
            border-radius:0;
            border:none;
            border-right:1px solid rgba(0, 0, 0, 0.05);
            background:#f1f4f6;
            color:#2c3e50;
            overflow:hidden;
            &:hover, &:focus{
                border:none;
                color:#2c3e50;
                border-right:1px solid rgba(0, 0, 0, 0.05);
                background:#f1f4f6;
            }
        }
        .close-tab {
            font-size: 10px;
            position:absolute;
            right: 5px;
            top: 50%;
            margin-top:-7px;
            z-index: 100;
            cursor: hand;
            cursor: pointer;
            color: #fff;
            display:none;
        }
    }
    .open > a{
        &:hover,&:focus{
            border-right:1px solid rgba(0, 0, 0, 0.05);
        }
    }
    ul li {
        position:relative;
    }
    li:hover > .close-tab {
        display:block;
    }
}
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
.main-sidebar .sidebar-form {
    overflow:visible;
    .menuresult {
        z-index:999;
        position: absolute;
        top:34px;
        left:-1px;
        width:100%;
        max-height:250px;
        overflow:auto;
        margin:0;
        border-top:none;
        border-top-left-radius:0;
        border-top-right-radius:0;
        a {
            border-top:1px solid #eee;
            display: block;
            background-color: #fff;
            border-bottom:1px solid #eee;
            margin-bottom:-1px;
            display:block;
            padding: 10px 15px;
            color:#222d32;
            &:hover{
                background:#eee;
            }
        }
    }
}
.input-group .sp_result_area {
    width:100%;
}
Karson authored
417 418 419 420 421 422 423 424 425 426
.sidebar-menu{
    &.show-submenu {
        .treeview-menu {
            display: block;
        }
    }
    > li .badge {
        margin-top:0;
    }
}
427 428 429 430 431 432
.sidebar-collapse {
    .user-panel > .image img{
        width:25px;
        height:25px;
    }
}
433
Karson authored
434 435 436 437 438 439
@media (min-width: 768px){
    .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
        top: 41px;
    }
}
440 441 442 443 444 445 446
.fieldlist dd {
    display:block;margin:5px 0;
    input{display: inline-block;width:300px;}
    input:first-child{width:110px;}
    ins{width:110px;display: inline-block;text-decoration:none;font-weight: bold;}
}
Karson authored
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485
#treeview {
    .jstree-container-ul .jstree-node{
        display:block;clear:both;
    }
    .jstree-leaf:not(:first-child) {
        float:left;
        background:none;
        margin-left:0;
        width:80px;
        clear:none;
    }
    .jstree-leaf {
        float:left;
        margin-left:0;padding-left:24px;
        width:80px;
        clear:none;
        color:#777;
    }
    .jstree-leaf > .jstree-icon,.jstree-leaf .jstree-themeicon{
        display:none;
    }
    .jstree-last{
        background-image: url("../img/32px.png");
        background-position: -292px -4px;
        background-repeat: repeat-y;
    }
    .jstree-children {
        .clearfix();
    }
    .jstree-themeicon {
        display: none;
    }
}

/*去除bootstrap-table的边框*/
.fixed-table-container {
    border:none!important;
}
486 487 488
/*修复nice-validator和summernote的编辑框冲突*/
.nice-validator .note-editor .note-editing-area .note-editable{
    display:inherit;
489 490
}
491
/*预览区域*/
492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512
.plupload-preview {
    padding:10px;
    margin-bottom:0;
    li {
        margin-bottom:10px;
    }
    .thumbnail {
        margin-bottom:10px;
    }
    a{
        display:block;
        &:first-child{
            height:90px;
        }
        img{
            height:80px;
            object-fit: cover;
        }
    }
}
Karson authored
513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528
.pjax-loader-bar .progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: #77b6ff;
    box-shadow: 0 0 10px rgba(119,182,255,0.7);
    -webkit-transition: width 0.4s ease;
    transition: width 0.4s ease;
}
.dropdown-menu.text-left {
    a,li{
        text-align: left!important;
    }
}
.bootstrap-table .fixed-table-toolbar .dropdown-menu{
529
    overflow:auto;
Karson authored
530 531 532 533 534
}

.bootstrap-table table tbody tr:first-child td .bs-checkbox {
    vertical-align: middle;
}
535 536 537
.bootstrap-table td.bs-checkbox {
    vertical-align: middle;
}
Karson authored
538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583
.dropdown-submenu {
    position: relative;
    >.dropdown-menu {
        overflow:auto;
        top: 0;
        left: 100%;
        margin-top: -6px;
        margin-left: -1px;
        .border-radius(0 6px 6px 6px);
    }
    &:hover {
        >.dropdown-menu {
            display: block;
        }
        >a:after {
            border-left-color: #fff;
        }
    }
    >a:after {
        display: block;
        content: " ";
        float: right;
        width: 0;
        height: 0;
        border-color: transparent;
        border-style: solid;
        border-width: 5px 0 5px 5px;
        border-left-color: #ccc;
        margin-top: 5px;
        margin-right: -10px;
    }
    &.pull-left {
        float: none;
        >.dropdown-menu {
            left: -100%;
            margin-left: 10px;
            .border-radius(6px 0 6px 6px);
        }
    }
}

/*重写toast的几个背景色*/
.toast-primary {
    background-color: #48c9b0!important;
}
.toast-success {
Karson authored
584
    background-color: #18bc9c!important;
Karson authored
585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600
}
.toast-error {
    background-color: #e74c3c!important;
}
.toast-info {
    background-color: #5dade2!important;
}
.toast-warning {
    background-color: #f1c40f!important;
}
.toast-inverse {
    background-color: #34495e!important;
}
.toast-default {
    background-color: #bdc3c7!important;
}
Karson authored
601 602 603 604 605
#toast-container{
    >div, >div:hover{
        .box-shadow(0 0 3px #eee);
    }
}
Karson authored
606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699

.layui-layer-title {
    background:#2c3e50!important;
    color:#fff!important;
}

/*避免出现多滚动条*/
.layui-layer-noborder {
    border:none!important;
    box-shadow: 1px 1px 50px rgba(0,0,0,.3)!important;
}
.layui-layer-moves{
    .box-sizing(content-box);
}
.layui-layer-iframe {
    overflow:hidden!important;
}
.layui-layer-iframe .layui-layer-content {
    -webkit-overflow-scrolling: touch;
    overflow-y: hidden!important;
    overflow:hidden;
}
/*自定义底部灰色操作区*/
.layui-layer-btn {
    text-align: center!important;
    padding: 10px!important;
    background: #ecf0f1;
}
.layui-layer-footer {
    padding:8px 20px;
    background-color:#ecf0f1;
    height:auto;
    text-align:inherit!important;
}

.layui-layer-btn a {
    background-color: #95a5a6!important;
    border-color: #95a5a6!important;
    color:#fff!important;
}

.layui-layer-btn .layui-layer-btn0{
    background-color: #18bc9c!important;
    border-color: #18bc9c!important;
}

.layui-layer-setwin {
    top:10px!important;
    > a {
        background:none!important;
        cite {
            display:none;
        }
        &:after {
            content: "\e625";
            font-family: iconfont;
            font-style: normal;
            font-weight: normal;
            text-decoration: inherit;
            position: absolute;
            font-size: 18px;
            color: #fff;
            margin: 0;
            z-index: 1;
        }
        &:hover {
            text-decoration: none!important;
            background:none!important;
        }
        &:focus {
            text-decoration: none!important;
        }
    }
    .layui-layer-min{
        &:after {
            content: "\e625";
        }
    }
    .layui-layer-max{
        &:after {
            content: "\e623";
        }

    }
    .layui-layer-maxmin{
        &:after {
            content: "\e624";
        }
    }
    .layui-layer-close1{
        &:after {
            content: "\e626";
        }
    }
Karson authored
700 701 702 703 704 705
    .layui-layer-close2,.layui-layer-close2:hover{
        background:url('../libs/layer/build/skin/default/icon.png') no-repeat -149px -31px !important;
        &:after {
            display:none;
        }
    }
Karson authored
706 707
}
Karson authored
708 709 710 711 712 713
@media (min-width: 768px){
    .form-inline .form-control {
        padding-right:20px;
    }
}
Karson authored
714 715 716 717 718
/*手机版样式*/
@media (max-width: @screen-phone) {
    .nav-addtabs {
        display:none;
    }
719 720 721 722 723
    .fixed-table-toolbar {
        .columns-right.btn-group{
            display:none;
        }
    }
Karson authored
724 725 726 727 728
}
/*平板样式*/
@media (max-width: @screen-tablet) {

}