123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146 |
- $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%;
- }
|