$main-color: #007bff; @mixin dropdownItem { border-color: $main-color; .dropdown-item { color: $main-color; border-bottom: 1px solid #eee; &:first-child { border-top: 1px solid #eee; } &:active, &.active { color: #fff !important; background-color: $main-color; } &:focus, &:hover { color: #fff; text-decoration: none; background-color: $main-color; } } } body { .no-select { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .content-wrapper { padding: 5px 10px; .dropdown-menu { @include dropdownItem; } } label { &.iwb-label { text-align: right; margin-bottom: 0; } &.iwb-label-sm { padding-top: .2rem; } &.iwb-label-required::before { content: "*"; color: red; margin-right: 6px; text-align: right; } } .text-iwb { color: $main-color; } .text-p, &.text-primary { color: $main-color; } .text-s, &.text-success { color: #28a745; } .text-i, &.text-info { color: #00b0e4; } .text-w, &.text-warning { color: #ffc107; } .text-d, &.text-danger { color: #fb483a; } } .number{ } .label { display: inline-block; padding: .25rem .4rem; font-size: 75%; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25rem; transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out; color: #fff; background-color: #6c757d; border-color: #6c757d; &.label-iwb { background-color: $main-color; border-color: $main-color; } &.label-p, &.label-primary { background-color: $main-color; border-color: $main-color; } &.label-s, &.label-success { background-color: #28a745; border-color: #28a745; } &.label-i, &.label-info { background-color: #00b0e4; border-color: #00b0e4; } &.label-w, &.label-warning { color: #1f2d3d; background-color: #ffc107; border-color: #ffc107; } &.label-d, &.label-danger { background-color: #fb483a; border-color: #fb483a; } } .badge.badge-iwb { color: #fff; background-color: $main-color; border-color: $main-color; } .btn.btn-iwb { color: #fff; background-color: $main-color; border-color: $main-color; box-shadow: none; } .btn.btn-iwb:hover { background-image: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1)); border-color: rgba(0,0,0,.1); } .btn.btn-default { color: $main-color; border-color: $main-color; } .btn-outline-iwb { color: $main-color; border-color: $main-color; } .btn-outline-iwb:hover { color: #fff; background-color: $main-color; border-color: $main-color; } .bg-iwb { color: #fff; background-color: $main-color !important; > a { color: inherit !important; } } .card.card-iwb { &.card-outline { border-top: 3px solid $main-color; } &:not(.card-outline) > .card-header { background-color: $main-color; color: #fff; a { color: inherit; &.active { color: $main-color; } } } } .iwb-checkbox { display: inline-block; position: relative; padding-left: 30px; color: $main-color; margin-bottom: 10px; cursor: pointer; font-size: .875rem; -webkit-transition: all 0.3s; transition: all 0.3s; cursor: pointer; > input { position: absolute; z-index: -1; opacity: 0; filter: alpha(opacity=0); } > span { border-radius: 3px; background: none; position: absolute; top: 2px; left: 0; height: 18px; width: 18px; color: inherit; border: 1px solid; } > span:after { content: ''; position: absolute; display: none; } input:checked ~ span { -webkit-transition: all 0.3s; transition: all 0.3s; background: none; } input:checked ~ span:after { display: block; top: 50%; left: 50%; margin-left: -2px; margin-top: -6px; width: 5px; height: 10px; border-color: inherit; border-style: solid; border-width: 0 2px 2px 0 !important; -webkit-transform: rotate(45deg); transform: rotate(45deg); } &.iwb-green { color: #28a745; } &.iwb-danger { color: #fb483a; } } .tooltip { .tooltip-inner { background: $main-color; } &.bs-tooltip-left { .arrow:before { border-left-color: $main-color; } } &.bs-tooltip-right { .arrow:before { border-right-color: $main-color; } } &.bs-tooltip-top { .arrow:before { border-top-color: $main-color; } } &.bs-tooltip-bottom { .arrow:before { border-bottom-color: $main-color; } } } .iwb-file { width: 100%; position: relative; display: inline-block; width: 100%; margin-bottom: 0; .iwb-file-input { opacity: 0; } .iwb-file-label { background-color: #fff; border: 1px solid #aaa; color: #ccc; text-align: left; position: absolute; top: 0; right: 0; left: 0; z-index: 1; width: 100%; height: calc( 1.725rem + 2px); padding: 5px 12px; line-height: 1.25; font-weight: 400; border-radius: 3px; &.choice { color: #e9ecef; } &:after { color: #495057; border-left: 1px solid #aaa; background-color: #e9ecef; position: absolute; top: 0; right: 0; bottom: 0; z-index: 3; display: block; height: 1.725rem; padding: 5px 12px; line-height: 1.25; font-family: "iconfont"; content: "\e81c 浏览文件"; border-radius: 0 3px 3px 0; } } .iwb-file-input:lang(en) ~ .iwb-file-label::after { content: "Browse"; } .clear { display: block; color: #695057; background: #e9ecef; border: 1px solid #aaa; width: 33px; height: calc( 1.725rem + 2px); padding: 5px 10px; cursor: pointer; position: absolute; top: 0; right: 100px; z-index: 1; } &.file-error { .iwb-file-label { border: 1px solid #F44336 !important; } } &.file-success { .iwb-file-label { border: 1px solid #28a745 !important; } } } .dropdown-menu { .dropdown-item { &:active, &.active { color: #fff!important; background-color: $main-color; } } } .modal-backdrop.show { opacity: .1; } .modal { .modal-header { color: $main-color; padding-top: 10px; padding-bottom: 10px; .modal-title-span { color: inherit; } .close { color: inherit; outline: none !important; } } .modal-body { padding-top: 15px; padding-bottom: 10px; } .dropdown-menu { @include dropdownItem; } } form { .form-group { margin-bottom: 10px; &.row { margin-left: 0; margin-right: 0; .iwb-label { width: 15%; max-width: 100px; padding-right: 10px; } & > div { width: 85%; position: relative; } } } .form-control { border-color: #aaa; transition: all .3s ease-in-out; z-index: 1; } .form-control:focus, .form-control:active { border-color: #80bdff; } .form-control:disabled, .form-control[readonly] { background-color: #e9ecef; opacity: .8; } .form-control.error { border-color: #dc3545; } .form-control.valid { border-color: #28a745; } label.error { position: absolute; top: 4px; right: 20px; width: auto; color: #ff0000; z-index: 4; } .search-input + label.error { right:45px; } .input-group > .search-icon > .input-group-text { color: #fff; background-color: $main-color; border: 1px solid $main-color; font-weight: 400; width: 35px; } } .input-group-sm { .select2-container { .selection { & > .select2-selection--single { padding: 0; height: calc(1.8125rem + 2px); .select2-selection__rendered { height: 100%; line-height: 1.8125rem; margin-top: 0; } .select2-selection__arrow { height: 100%; } } & > .select2-selection--multiple { height: calc(1.8125rem + 2px); .select2-selection__choice { margin-top: .325rem; background-color: $main-color; border-color: #006fe6; font-size: 85%; } .select2-selection__choice__remove { color: #eee; &:hover { color: #fff; } } } } &.select2-container--focus, &.select2-container--open { .select2-selection { border-color: #80bdff; } } &.select2-container--open { .select2-search--inline .select2-search__field { border: 1px solid #80bdff; margin-top: 4px; } } .select2-dropdown { border-color: #80bdff; } } .form-control.error + .select2-container .select2-selection { border-color: #dc3545; } .form-control.valid + .select2-container .select2-selection { border-color: #28a745; } } .iwb-bootstrap-table { .tableTool { padding: 5px 0; margin: 0; height: 41px; .btn-group button.btn.btn-default { border-color: #ddd; } .search-icon { i, span { font-size: 1rem; font-weight: 600; } } } .iwb-checkbox { > span { top: -3px; left: 1px; height: 17px; width: 17px; } input:checked ~ span { background: #fff; } } .table-action { cursor: pointer; color: $main-color; margin: 0 8px; padding: 0 2px; font-size: 14px; font-weight: 600; &:hover { border-bottom: 2px solid $main-color; padding-bottom: 2px; } i { margin-right: 5px; font-size: 1rem; } } .selected { .table-action { color: #fff; &:hover { border-bottom: 2px solid #fff; } } } .bootstrap-table .table:not(.table-condensed) > thead > tr > td, .bootstrap-table .table:not(.table-condensed) > tbody > tr > td, .bootstrap-table .table:not(.table-condensed) > tfoot > tr > td { padding: 0 8px; height: 28px; } .fixed-table-container { border-radius: 4px 4px 0 0; .fixed-table-header { thead { background-color: #D1DCF9; .th-inner.sortable { padding-right: 8px; } tr > th { border-bottom: none; border-top: none; } } } .fixed-table-body { background-color: rgba(0,0,0,.00); thead { background-color: #EBEEF7; } tbody { .selected td { background-color: #0074f0; color: #eee; } } .table-striped tbody tr:nth-of-type(2n) { /*background-color: rgba(0,0,0,.00);*/ background-color: rgba(235, 238, 247,.5); } .table-striped tbody tr:nth-of-type(2n+1) { /*background-color: rgba(0,0,0,.01);*/ background-color: #f9f9f9; } .table-hover > tbody > tr:hover { background-color: #D1DCF9; } } } .fixed-table-pagination { background-color: #D1DCF9; padding: 5px; border: 1px solid #ddd; border-top: none; border-radius: 0 0 4px 4px; .pagination-detail, .pagination { margin: 0; .page-list > .btn-group > .btn { padding: 0.175rem 0.5rem; } } } } .search-card { & > .card-header { position: relative; cursor: pointer; padding: 5px 15px; .card-title { font-size: 0.875rem; line-height: 21px; color: $main-color; } .card-tool { position: absolute; right: 3px; i, span { color: $main-color; } } } & > .card-body { padding: 10px 10px 0; } & > .card-footer { padding: 5px 10px; /*i, span, > span.btn.menu-btn { color: #fff; }*/ } .search-unit { width: 100%; margin-bottom: 10px; .input-group-text { min-width: 20px; text-align: right; color: #fff; background-color: $main-color; border: 1px solid $main-color; font-weight:bold; } .select2 { width: calc(100% - 80px) !important; } .input-group-prepend { .input-group-text { width: 80px; justify-content: right; } } } } .swal-modal { width: 350px; text-align: left; padding: 10px 10px 15px; /*.swal-icon { width: 30px; height: 30px; border-width: 2px; margin: 20px; margin-left: 30px; .swal-icon--warning__body { width: 2px; height: 17px; top: 5px; border-radius: 2px; margin-left: -1px; .swal-icon--warning__dot { width: 3px; height: 3px; border-radius: 50%; margin-left: -1.5px; bottom: -5px; } } }*/ .swal-icon { display: none; } .swal-title, .swal-text { font-size: 14px; text-align: left; margin: 0; padding: 10px 0 0; text-indent: 1em; } .swal-title { font-size: 16px; font-weight: 600; color: #333; line-height: 35px; &:before { font-family: 'iconfont'; margin-right: 10px; font-size: 30px; position: relative; top: 4px; } } .swal-icon--success + .swal-title { &:before { content: '\e7e2'; color: #a5dc86; } } .swal-icon--error + .swal-title { &:before { content: '\e7e1'; color: #f27474; } } .swal-icon--warning + .swal-title { &:before { content: '\e7de'; color: #f8bb86; } } .swal-icon--info + .swal-title { &:before { content: '\e7dc'; color: #c9dae1; } } .swal-footer { text-align: right; margin-top: 0px; padding: 5px 10px; .swal-button-container { margin: 0; .swal-button { background-color: #0074f0; border: 1px solid #0074f0; color: #fff; border-radius: 3px; box-shadow: none; font-weight: 600; font-size: 14px; padding: 4px 20px; margin-left: 15px; cursor: pointer; &.swal-button--cancel { color: #0074f0; background-color: #fff; border: 1px solid #0074f0; } } } } } .iwb-info-box { .box-header { text-indent:2em; color: $main-color; margin-top: 15px; font-size: 1.5rem; font-weight: 600; border-bottom: 2px solid; letter-spacing: 2px; margin-bottom: 15px; padding-bottom: 10px; } .box-footer { color: $main-color; text-align: center; background: transparent; margin-top: 15px; padding-top: 10px; border-top: 2px solid; } } .notification-menu { width: 500px; max-width: 500px; .notification-item { display: flex; .item-icon { width: 20px; text-align: center; } .item-title { width: calc(100% - 70px); overflow: hidden; text-overflow: ellipsis; padding: 0 5px; } .item-time { width: auto; padding: 0 5px; } .item-state { width: 40px; padding: 0 15px 0 0; .no-read { color: $main-color; cursor: pointer; position: relative; &::after { content: ""; position: absolute; top: 2px; right: -8px; background: #fb483a; width: 5px; height: 5px; border-radius: 50%; } } .has-read { color: #aaa; cursor: not-allowed } } &:active, &.active { .no-read { color: #fff; } } } } #avatar-modal { .avatar-view { height: auto; img { width: 100%; cursor: pointer; } } .avatar-body { padding-right: 15px; padding-left: 15px; } .avatar-form { font-size: inherit; } .avatar-upload { overflow: hidden; label { display: block; float: left; clear: left; width: 100px; } input { display: block; margin-left: 110px; } } .avater-alert { margin-top: 10px; margin-bottom: 10px; } .avatar-wrapper { height: 364px; width: 100%; margin-top: 15px; box-shadow: inset 0 0 5px #000000; box-shadow: inset 0 0 5px rgba(0,0,0,.25); background-color: #f6f6f6; background-color: #f6f6f6; border: 1px solid $main-color; overflow: hidden; img { display: block; height: auto; max-width: 100%; } } .avatar-preview { float: left; margin-top: 15px; margin-right: 15px; border: 1px solid #ddd; border-radius: 50%; background-color: #f5f5f5; overflow: hidden; cursor: pointer; img { width: 100%; } } .avatar-preview:hover { box-shadow: 0 0 5px #000000; box-shadow: 0 0 5px rgba(0,0,0,.15); } .preview-lg { height: 184px; width: 184px; margin-top: 15px; } .preview-md { height: 100px; width: 100px; } .preview-sm { height: 45px; width: 45px; } .avatar-input, .avatar-src, .avatar-data { display: none !important; } .avatar-btns { margin-top: 30px; margin-bottom: 15px; } .avatar-btns .btn-group { margin-right: 5px; } @media (min-width: 992px) { .avatar-preview { float: none; } } } ._file.flag-icon- { text-align: left; } .dynamic-box { border: 1px solid #f8bb86; padding: 10px; border-radius:4px; .iwb-dynamic-box { margin: 5px 0; .dynamic-label { text-align: left; padding-left: 1em; } .dynamic-control { text-align: center } .btn-add { color: #fff; background-color: #28a745; border-color: #28a745; box-shadow: none; &:hover, &:not(:disabled):not(.disabled):active { color: #fff; background-color: #218838; border-color: #1e7e34; } } .btn-delete { color: #fff; background-color: #dc3545; border-color: #dc3545; box-shadow: none; &:hover, &:not(:disabled):not(.disabled):active { color: #fff; background-color: #c82333; border-color: #c82333; } } } } .iwb-tree-box { margin-top: 5px; height: calc(100vh - 120px); .box-header { line-height:40px; color: #fff; background: $main-color; text-align: center; font-weight: 600; } .box-body { padding: 10px; height: calc(100% - 40px); border: 1px solid #dddddd; } .jstree-proton-responsive { .jstree-wholerow { border-top: 1px solid rgba(0,0,0,.05); background: rgba(0,0,0,.02); } } .jstree-proton .jstree-hovered, .jstree-proton .jstree-wholerow-hovered { background: $main-color; } .jstree-proton .jstree-clicked, .jstree-proton .jstree-wholerow-clicked { background: $main-color; } } .evolution.non-evolution.number { font-size: 100%; }