123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782 |
- $body-dark-card-bg: $body-dark-color;
- $body-dark-modal-bg: lighten($body-dark-color, 3%);
- @mixin dark-scrollbar($selector) {
- #{$selector}::-webkit-scrollbar {
- width: 12px;
- }
- #{$selector}::-webkit-scrollbar-track {
- background-color: $body-dark-bg;
- }
- #{$selector}::-webkit-scrollbar-thumb {
- background-color: $body-darker-color;
- border-radius: .4rem;
- }
- }
- @include dark-scrollbar('body.dark-mode');
- body.dark-mode {
- background-color: $body-dark-bg;
- color: $body-dark-font-color;
- .content-wrapper, .main-footer {
- background: $body-dark-bg;
- }
- .bg-white {
- background: $body-dark-bg!important;
- }
- a {
- color: lighten($primary, 1%);
- &:hover {
- color: darken($primary, 4%);
- }
- }
- .grid-column-header a {
- color: darken($body-dark-font-color, 15%);
- }
- .grid-column-header a:hover, .grid-column-header a.active {
- color: lighten($primary, 1%);
- }
- h1, h2, h3, h4, h5, h6 {
- color: $body-dark-heading-color;
- }
- p, small, label {
- color: $body-dark-font-color;
- }
- .label {
- color: darken($white, 2.5%);
- }
- .dcat-loading:not(.layui-layer-shade) {
- background-color: inherit!important;
- }
- // ------- button
- .btn.btn-white,
- .btn.btn-default,
- .btn.btn-light {
- color: $body-dark-font-color;
- background-color: $body-dark-color;
- border-color: $body-dark-color;
- }
- .btn.btn-white:hover,
- .btn.btn-white:focus,
- .btn.btn-default:hover,
- .btn.btn-light:hover {
- color: lighten($body-dark-font-color, 2%)!important;
- }
- .btn.btn-light,
- .bg-light {
- color: $body-dark-font-color!important;
- background-color: $body-dark-bg!important;
- border-color: $body-dark-bg!important;
- }
- .bg-default {
- background-color: $body-dark-color!important;
- color: $body-dark-font-color!important;
- }
- .btn-light:hover, .btn-light:focus {
- color: lighten($body-dark-font-color, 1.2%)!important;
- }
- .btn.btn-primary:not(.btn-outline),
- .btn.btn-warning:not(.btn-outline),
- .btn.btn-success:not(.btn-outline),
- .btn.btn-info:not(.btn-outline),
- .btn.btn-danger:not(.btn-outline),
- .btn.btn-custom:not(.btn-outline) {
- color: darken($white, 8%)
- }
- hr {
- border-color: $body-dark-border-color;
- }
- // ------ pre
- pre {
- background-color: $body-dark-color;
- border: 0;
- color: $body-dark-font-color;
- code {
- background-color: inherit;
- .operator,
- .url {
- background-color: $body-content-dark-bg;
- }
- }
- }
- code {
- background-color: $body-content-dark-bg;
- color: $gray-600!important;
- }
- kbd {
- background-color: $body-content-dark-bg;
- }
- .text-dark {
- color: $gray-600 !important;
- }
- // ------ header-navbar
- .header-navbar {
- background-color: $body-dark-color;
- .navbar-container {
- .nav {
- .nav-item {
- .nav-link {
- color: $body-dark-font-color;
- background-color: transparent;
- i {
- color: $body-dark-font-color;
- }
- }
- }
- }
- }
- &.navbar-static-top {
- background-color: transparent;
- }
- &[class*="bg-"] {
- .navbar-nav {
- .nav-item {
- .nav-link {
- background-color: inherit;
- }
- }
- }
- }
- }
- // ------ dropdown
- .dropdown-toggle {
- &:hover {
- i,
- &:after {
- color: $white;
- }
- }
- }
- .dropdown .dropdown-menu {
- box-shadow: $shadow-200;
- }
- .dropdown-menu {
- background-color: $body-dark-color;
- &:before {
- background: $body-dark-color;
- }
- .dropdown-item:hover,
- .dropdown-item:focus {
- background: $body-darker-color;
- }
- .dropdown-item {
- color: $body-dark-font-color;
- }
- .form-control {
- background-color: $body-dark-color;
- }
- .dropdown-divider {
- border-color: $body-dark-border-color;
- }
- }
- .dropdown-item a, .dropdown-menu label {
- color: $body-dark-font-color;
- }
- // ----- modal
- .modal {
- .modal-header,
- .modal-header[class*="bg-"] {
- border-color: $body-dark-border-color;
- background-color: lighten($body-dark-color, 1%);
- .close {
- span {
- color: $white50;
- }
- }
- }
- .modal-content,
- .modal-body,
- .modal-footer {
- background-color: $body-dark-modal-bg;
- }
- }
- .modal-backdrop {
- background-color: rgba(#22292f, .5);
- }
- .pagination {
- &:not([class*="pagination-"]) {
- .page-item {
- &.active {
- background-color: $body-content-dark-bg;
- .page-link {
- &:hover {
- color: $white;
- }
- }
- }
- .page-link {
- background-color: $body-content-dark-bg;
- color: $body-dark-font-color;
- }
- &.prev-item,
- &.next-item {
- .page-link:hover {
- color: $white;
- }
- }
- }
- }
- &[class*="pagination-"] {
- .page-item:not(.active):not(:hover) {
- .page-link {
- background-color: $body-darker-color;
- color: $body-dark-font-color;
- }
- }
- .page-item {
- &:not(.active) {
- .page-link:hover {
- background-color: $body-content-dark-bg;
- }
- }
- &.active {
- background-color: $body-dark-color;
- }
- }
- }
- }
- .nav {
- .nav-item {
- .nav-link {
- color: $body-dark-font-color;
- //&.active,
- //&:hover {
- // color: $primary;
- //}
- }
- }
- }
- // ------ popover
- .popover {
- &[x-placement="top"] {
- .arrow {
- &:after {
- border-top-color: $body-dark-color;
- }
- }
- }
- &[x-placement="bottom"] {
- .arrow {
- &:after {
- border-bottom-color: $body-dark-color;
- }
- }
- }
- &[x-placement="left"] {
- .arrow {
- &:after {
- border-left-color: $body-dark-color;
- }
- }
- }
- &[x-placement="right"] {
- .arrow {
- &:after {
- border-right-color: $body-dark-color;
- }
- }
- }
- .popover-body {
- background-color: $body-dark-color;
- color: $body-dark-font-color;
- }
- }
- // ------ tab
- .nav.nav-tabs {
- border-color: lighten($body-dark-border-color, 10%);
- }
- .nav-theme-primary .nav.nav-tabs,
- .nav-theme-white .nav.nav-tabs {
- background-color: $body-dark-card-bg;
- .nav-item .nav-link:not(.active) {
- color: darken($body-dark-font-color, 4%)
- }
- .nav-item .nav-link.active {
- color: $primary;
- }
- .nav-item .nav-link.active:after {
- background: linear-gradient(30deg, $primary, rgba($primary, 0.5)) !important;
- }
- }
- // ------ table
- @include dark-scrollbar('.table-responsive[data-pattern=priority-columns]');
- table.dataTable {
- margin-top: 12px!important;
- }
- .table.default-table td,
- .table.default-table th {
- border-color: $body-dark-border-color!important;
- }
- table.table-bordered.dataTable.complex-headers,
- .table.default-table {
- th {
- background: darken($body-dark-bg, 3%);
- }
- td {
- background: darken($body-dark-bg, 1%);
- }
- }
- .table {
- background-color: $body-dark-table-bg;
- padding: 0 1rem;
- th, td {
- border-color: $body-dark-border-color;
- }
- .thead,
- tbody {
- tr:not([class*="table-"]) {
- th,
- td {
- border: 0;
- color: $body-dark-font-color;
- code {
- background-color: $body-dark-color;
- }
- }
- }
- }
- thead {
- tr {
- th {
- border: 0;
- background-color: $body-dark-table-bg;
- color: $body-dark-font-color;
- }
- }
- }
- tbody {
- tr {
- background: $body-content-dark-bg!important;
- &[class*="table-"] {
- td,
- th {
- background-color: unset;
- color: $black;
- border-color: $body-dark-border-color;
- }
- }
- &.table-dark {
- td,
- th {
- color: $white;
- }
- }
- &.table-active {
- td,
- th {
- color: $body-dark-font-color;
- }
- }
- th {
- background-color: $body-content-dark-bg;
- }
- td {
- background-color: $body-content-dark-bg;
- color: $body-dark-font-color;
- }
- }
- }
- &.table-bordered {
- border: 1px solid $body-dark-border-color;
- thead,
- tbody {
- tr {
- th,
- td {
- border: 1px solid $body-dark-border-color;
- }
- }
- }
- }
- &.table-hover {
- tbody {
- tr {
- &:hover {
- background-color: $body-dark-color;
- }
- th,
- td {
- background-color: unset;
- }
- }
- }
- }
- &.table-striped {
- tbody {
- tr {
- &:nth-of-type(odd) {
- background-color: $body-dark-color;
- }
- td,
- th {
- background-color: unset;
- }
- }
- }
- }
- }
- .table.table-bordered {
- padding: 0;
- }
- .card, .box {
- background: $body-dark-card-bg;
- }
- .box.box-solid.box-default {
- background-color: $body-dark-bg;
- }
- .dd-handle,
- .card.dcat-box .card-header,
- .box-header.with-border,
- .with-border,
- .box.box-solid.box-default {
- border-bottom: 1px solid $body-dark-border-color;
- border-color: $body-dark-border-color!important;
- }
- .box .box-footer, .card .box-footer {
- border-color: $body-dark-border-color;
- }
- .dd-handle {
- background: darken($body-dark-bg, 1.2%);
- color: $body-dark-font-color;
- margin-bottom: 2px;
- }
- .dd-item > button:before {
- color: $body-dark-font-color
- }
- // ----- 滚动条
- // ----- form
- .input-group-prepend,
- .input-group-append,
- .input-group-addon,
- .input-group-text {
- background-color: $body-dark-bg;
- border-color: $body-dark-border-color;
- color: $body-dark-font-color!important;
- }
- input::-webkit-input-placeholder{
- color: darken($body-dark-font-color, 1.2%)!important;
- }
- input:-moz-placeholder{
- color: darken($body-dark-font-color, 1.2%)!important;
- }
- input::-moz-placeholder{
- color: darken($body-dark-font-color, 1.2%)!important;
- }
- input:-ms-input-placeholder {
- color: darken($body-dark-font-color, 1.2%)!important;
- }
- .help-block {
- color: darken($body-dark-font-color, 1.2%)!important;
- }
- .has-error .checkbox, .has-error .checkbox-inline, .has-error.checkbox label, .has-error .control-label, .has-error .form-control-position i, .has-error .form-control:focus~.form-control-position i, .has-error .help-block, .has-error .radio, .has-error .radio-inline, .has-error.radio label
- {
- color: $red-darker!important;
- }
- @include dark-scrollbar('.select2-container--default .select2-results>.select2-results__options');
- .select2-container--default .select2-selection--single,
- .select2-container--default .select2-selection--multiple,
- .form-control {
- background: $body-dark-bg;
- color: $body-dark-font-color!important;
- border-color: $body-dark-border-color!important;
- }
- .select2-container--default .select2-selection--single .select2-selection__rendered {
- color: $body-dark-font-color!important;
- }
- .select2-container--default .select2-search--dropdown .select2-search__field {
- background: $body-dark-bg!important;
- color: $body-dark-font-color!important;
- }
- .select2-container--default .select2-search--dropdown .select2-search__field,
- .select2-container--default .select2-selection--multiple {
- border-color: $body-dark-border-color!important;
- }
- //.select2-container--default .select2-selection--multiple .select2-selection__rendered li:first-child.select2-search.select2-search--inline .select2-search__field {
- // color: $body-dark-font-color!important;
- //}
- .select2-container--default .select2-results>.select2-results__options {
- background: $body-dark-color!important;
- }
- .select2-dropdown {
- background: $body-dark-color!important;
- }
- .select2-container--default .select2-results__option[aria-selected=true],
- .select2-container--default .select2-results__option--highlighted[aria-selected] {
- background: $body-darker-color!important;
- color: $body-dark-font-color!important;
- }
- .dataTables_filter .form-control {
- background: $body-dark-table-bg;
- color: $body-dark-font-color;
- }
- // ------ layer
- // 滚动条
- @include dark-scrollbar('.layui-layer-page .layui-layer-content');
- .layui-layer {
- background-color: lighten($body-dark-color, 1%)!important;
- }
- .layui-layer-page {
- .layui-layer-btn,
- .layui-layer-content{
- background-color: $body-dark-modal-bg!important;
- }
- }
- .layui-layer-title {
- background-color: lighten($body-dark-color, 1%)!important;
- border-bottom: 1px solid $body-dark-border-color!important;
- color: $body-dark-font-color!important;
- }
- .layui-layer-btn1 {
- border-color: $body-dark-color!important;
- background: $body-dark-color!important;
- }
- .layui-layer-setwin .layui-layer-min cite:before,
- .layui-layer-setwin .layui-layer-max:before,
- .layui-layer-setwin .layui-layer-close1:before {
- color: $body-dark-font-color!important;
- }
- .web-uploader {
- .placeholder {
- border-width: 2px;
- border-color: darken($body-dark-font-color, 7%)!important;
- }
- .filelist li {
- background: $body-dark-color!important;
- }
- .queueList {
- border-color: $body-dark-border-color!important;
- }
- .statusBar .info,
- .filelist li p.title {
- color: $body-dark-font-color!important;
- }
- }
- // ----- slider
- .slider-panel {
- background-color: lighten($body-dark-color, 1.1%);
- }
- .right-side-filter-container .header {
- border-color: $body-dark-border-color;
- background-color: lighten($body-dark-color, 1.1%);;
- }
- // ----- sweet2
- .swal2-popup {
- background: $body-dark-color;
- h2 {
- color: $body-dark-font-color
- }
- }
- .swal2-content {
- color: darken($body-dark-font-color, 1.5%)
- }
- // ---- quick create
- .quick-create {
- td {
- background-color: $body-dark-modal-bg!important;
- color: darken($body-dark-font-color, 5%)
- }
- }
- // ----- iconpicker
- @include dark-scrollbar('.iconpicker .iconpicker-items');
- .iconpicker-popover.popover .popover-title,
- .iconpicker .iconpicker-items,
- .iconpicker-popover.popover {
- background: $body-dark-color!important;
- border-color: $body-dark-border-color!important;
- }
- .iconpicker-popover.popover .popover-title,
- .iconpicker-popover.popover.bottom>.arrow:after,
- .iconpicker-popover.popover.bottomRight>.arrow:after, .iconpicker-popover.popover.bottomLeft>.arrow:after {
- border-color: $body-dark-color;
- }
- // ----- alert
- .alert.alert-danger {
- h3, h4, h5 {
- color: $danger;
- }
- }
- .alert.alert-success {
- h3, h4, h5 {
- color: $success;
- }
- }
- .alert.alert-info {
- h3, h4, h5 {
- color: $info;
- }
- }
- .alert.alert-primary {
- h3, h4, h5 {
- color: $primary-darker;
- }
- }
- .alert.alert-warning {
- h3, h4, h5 {
- color: darken($warning, 5%);
- }
- }
- .callout {
- background: darken($body-dark-bg, 3%);
- border-color: #8e9aac;
- h3, h4, h5 {
- color: lighten($body-dark-font-color, 5%);
- }
- }
-
- // ----- apexcharts
- .apexcharts-legend-series {
- .apexcharts-legend-text {
- color: $body-dark-font-color !important;
- }
- }
- .apexcharts-radialbar-track {
- path {
- stroke: $body-dark-bg;
- }
- }
- .apexcharts-inner {
- polygon {
- stroke: $body-dark-table-bg !important;
- fill: $body-dark-bg !important;
- }
- }
- .apexcharts-pie-series {
- path {
- stroke: $body-dark-bg;
- }
- }
- .apexcharts-menu {
- background-color: $body-dark-bg;
- border: 0;
- }
- .apexcharts-toolbar {
- .apexcharts-zoom-in-icon,
- .apexcharts-zoom-out-icon,
- .apexcharts-zoom-icon,
- .apexcharts-menu-icon,
- .apexcharts-reset-zoom-icon {
- &:hover {
- svg {
- fill: $body-dark-font-color;
- }
- }
- }
- }
- // ---- login
- .login-page {
- background-color: $body-dark-bg!important;
- }
- .login-card-body, .register-card-body {
- background-color: $body-dark-color;
- color: $body-dark-font-color
- }
- // ----- selector
- .custom-data-table .grid-selector {
- .wrap {
- background-color: $body-dark-color;
- }
- .select-label {
- color: darken($body-dark-font-color, 5%);
- }
- ul > li a {
- color: $body-dark-font-color;
- }
- .select-options a.active {
- color: $primary
- }
- }
- // ----- switchery
- .switchery {
- background-color: lighten($body-dark-font-color, 4%)!important;
- border-color: lighten($body-dark-font-color, 4%)!important;
- box-shadow: $shadow-200;
- }
- .switchery>small {
- background-color: lighten($body-dark-font-color, 10%)!important;
- }
- // ----- rwd table
- //.no-touch .dropdown-menu>.checkbox-row:active,
- .dropdown-menu li.checkbox-row:hover {
- background-color: $body-darker-color!important;
- }
- }
|