_dark.scss 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  1. $body-dark-card-bg: $body-dark-color;
  2. $body-dark-modal-bg: lighten($body-dark-color, 3%);
  3. @mixin dark-scrollbar($selector) {
  4. #{$selector}::-webkit-scrollbar {
  5. width: 12px;
  6. height: 12px;
  7. }
  8. #{$selector}::-webkit-scrollbar-track {
  9. background-color: $body-dark-bg;
  10. }
  11. #{$selector}::-webkit-scrollbar-thumb {
  12. background-color: $body-darker-color;
  13. border-radius: .4rem;
  14. }
  15. }
  16. @include dark-scrollbar('body.dark-mode');
  17. body.dark-mode {
  18. background-color: $body-dark-bg;
  19. color: $body-dark-font-color;
  20. .body-bg,
  21. .content-wrapper,
  22. .main-footer {
  23. background: $body-dark-bg;
  24. }
  25. .bg-white {
  26. background: $body-dark-bg!important;
  27. }
  28. a {
  29. color: lighten($primary, 1%);
  30. &:hover {
  31. color: darken($primary, 4%);
  32. }
  33. }
  34. .grid-column-header a {
  35. color: darken($body-dark-font-color, 15%);
  36. }
  37. .grid-column-header a:hover, .grid-column-header a.active {
  38. color: lighten($primary, 1%);
  39. }
  40. h1, h2, h3, h4, h5, h6 {
  41. color: $body-dark-heading-color;
  42. }
  43. p, small, label {
  44. color: $body-dark-font-color;
  45. }
  46. .label {
  47. color: darken($white, 2.5%);
  48. }
  49. .dcat-loading:not(.layui-layer-shade) {
  50. background-color: inherit!important;
  51. }
  52. // ------- button
  53. .btn.btn-white,
  54. .btn.btn-default,
  55. .btn.btn-light {
  56. color: $body-dark-font-color;
  57. background-color: $body-dark-color;
  58. border-color: $body-dark-color;
  59. }
  60. .btn.btn-white:hover,
  61. .btn.btn-white:focus,
  62. .btn.btn-default:hover,
  63. .btn.btn-light:hover {
  64. color: lighten($body-dark-font-color, 2%)!important;
  65. }
  66. .btn.btn-light,
  67. .bg-light {
  68. color: $body-dark-font-color!important;
  69. background-color: $body-dark-bg!important;
  70. border-color: $body-dark-bg!important;
  71. }
  72. .bg-default {
  73. background-color: $body-dark-color!important;
  74. color: $body-dark-font-color!important;
  75. }
  76. .btn-light:hover, .btn-light:focus {
  77. color: lighten($body-dark-font-color, 1.2%)!important;
  78. }
  79. .btn.btn-primary:not(.btn-outline),
  80. .btn.btn-warning:not(.btn-outline),
  81. .btn.btn-success:not(.btn-outline),
  82. .btn.btn-info:not(.btn-outline),
  83. .btn.btn-danger:not(.btn-outline),
  84. .btn.btn-custom:not(.btn-outline) {
  85. color: darken($white, 8%)
  86. }
  87. hr {
  88. border-color: $body-dark-border-color;
  89. }
  90. // ------ pre
  91. pre {
  92. background-color: $body-dark-color;
  93. border: 0;
  94. color: $body-dark-font-color;
  95. code {
  96. background-color: inherit;
  97. .operator,
  98. .url {
  99. background-color: $body-content-dark-bg;
  100. }
  101. }
  102. }
  103. code {
  104. background-color: $body-content-dark-bg;
  105. color: $gray-600!important;
  106. }
  107. kbd {
  108. background-color: $body-content-dark-bg;
  109. }
  110. .text-dark {
  111. color: $gray-600 !important;
  112. }
  113. // ------ header-navbar
  114. .header-navbar {
  115. background-color: $body-dark-color;
  116. .navbar-container {
  117. .nav {
  118. .nav-item {
  119. .nav-link {
  120. color: $body-dark-font-color;
  121. background-color: transparent;
  122. i {
  123. color: $body-dark-font-color;
  124. }
  125. }
  126. }
  127. }
  128. }
  129. &.navbar-static-top {
  130. background-color: transparent;
  131. }
  132. &[class*="bg-"] {
  133. .navbar-nav {
  134. .nav-item {
  135. .nav-link {
  136. background-color: inherit;
  137. }
  138. }
  139. }
  140. }
  141. }
  142. .main-menu {
  143. .navbar-header {
  144. .logo-lg {
  145. font-weight: 300;
  146. }
  147. }
  148. }
  149. // ------ dropdown
  150. .dropdown-toggle {
  151. &:hover {
  152. i,
  153. &:after {
  154. color: $white;
  155. }
  156. }
  157. }
  158. .dropdown .dropdown-menu {
  159. box-shadow: $shadow-200;
  160. }
  161. .dropdown-menu {
  162. background-color: $body-dark-color;
  163. &:before {
  164. background: $body-dark-color;
  165. }
  166. .dropdown-item:hover,
  167. .dropdown-item:focus {
  168. background: $body-darker-color;
  169. }
  170. .dropdown-item {
  171. color: $body-dark-font-color;
  172. }
  173. .form-control {
  174. background-color: $body-dark-color;
  175. }
  176. .dropdown-divider {
  177. border-color: $body-dark-border-color;
  178. }
  179. }
  180. .dropdown-item a, .dropdown-menu label {
  181. color: $body-dark-font-color;
  182. }
  183. // ----- modal
  184. .modal {
  185. .modal-header,
  186. .modal-header[class*="bg-"] {
  187. border-color: $body-dark-border-color;
  188. background-color: lighten($body-dark-color, 1%);
  189. .close {
  190. span {
  191. color: $white50;
  192. }
  193. }
  194. }
  195. .modal-content,
  196. .modal-body,
  197. .modal-footer {
  198. background-color: $body-dark-modal-bg;
  199. }
  200. }
  201. .modal-backdrop {
  202. background-color: rgba(#22292f, .5);
  203. }
  204. .pagination {
  205. &:not([class*="pagination-"]) {
  206. .page-item {
  207. &.active {
  208. background-color: $body-content-dark-bg;
  209. .page-link {
  210. &:hover {
  211. color: $white;
  212. }
  213. }
  214. }
  215. .page-link {
  216. background-color: $body-content-dark-bg;
  217. color: $body-dark-font-color;
  218. }
  219. &.prev-item,
  220. &.next-item {
  221. .page-link:hover {
  222. color: $white;
  223. }
  224. }
  225. }
  226. }
  227. &[class*="pagination-"] {
  228. .page-item:not(.active):not(:hover) {
  229. .page-link {
  230. background-color: $body-darker-color;
  231. color: $body-dark-font-color;
  232. }
  233. }
  234. .page-item {
  235. &:not(.active) {
  236. .page-link:hover {
  237. background-color: $body-content-dark-bg;
  238. }
  239. }
  240. &.active {
  241. background-color: $body-dark-color;
  242. }
  243. }
  244. }
  245. }
  246. .nav {
  247. .nav-item {
  248. .nav-link {
  249. color: $body-dark-font-color;
  250. //&.active,
  251. //&:hover {
  252. // color: $primary;
  253. //}
  254. }
  255. }
  256. }
  257. // ------ popover
  258. .popover {
  259. &[x-placement="top"] {
  260. .arrow {
  261. &:after {
  262. border-top-color: $body-dark-color;
  263. }
  264. }
  265. }
  266. &[x-placement="bottom"] {
  267. .arrow {
  268. &:after {
  269. border-bottom-color: $body-dark-color;
  270. }
  271. }
  272. }
  273. &[x-placement="left"] {
  274. .arrow {
  275. &:after {
  276. border-left-color: $body-dark-color;
  277. }
  278. }
  279. }
  280. &[x-placement="right"] {
  281. .arrow {
  282. &:after {
  283. border-right-color: $body-dark-color;
  284. }
  285. }
  286. }
  287. .popover-body {
  288. background-color: $body-dark-color;
  289. color: $body-dark-font-color;
  290. }
  291. }
  292. // ------ tab
  293. .nav.nav-tabs {
  294. border-color: lighten($body-dark-border-color, 10%);
  295. }
  296. .nav-theme-primary .nav.nav-tabs,
  297. .nav-theme-white .nav.nav-tabs {
  298. background-color: $body-dark-card-bg;
  299. .nav-item .nav-link:not(.active) {
  300. color: darken($body-dark-font-color, 4%)
  301. }
  302. .nav-item .nav-link.active {
  303. color: $primary;
  304. }
  305. .nav-item .nav-link.active:after {
  306. background: linear-gradient(30deg, $primary, rgba($primary, 0.5)) !important;
  307. }
  308. }
  309. // ------ table
  310. @include dark-scrollbar('.table-responsive[data-pattern=priority-columns]');
  311. .table-wrapper {
  312. margin-top: 12px!important;
  313. }
  314. .table.default-table td,
  315. .table.default-table th {
  316. border-color: $body-dark-border-color!important;
  317. }
  318. table.table-bordered.dataTable.complex-headers,
  319. .table.default-table {
  320. th {
  321. background: darken($body-dark-bg, 3%);
  322. }
  323. td {
  324. background: darken($body-dark-bg, 1%);
  325. }
  326. }
  327. .table {
  328. background-color: $body-dark-table-bg;
  329. padding: 0 1rem;
  330. th, td {
  331. border-color: $body-dark-border-color;
  332. }
  333. .thead,
  334. tbody {
  335. tr:not([class*="table-"]) {
  336. th,
  337. td {
  338. border: 0;
  339. color: $body-dark-font-color;
  340. code {
  341. background-color: $body-dark-color;
  342. }
  343. }
  344. }
  345. }
  346. thead {
  347. tr {
  348. th {
  349. border: 0;
  350. background-color: $body-dark-table-bg;
  351. color: $body-dark-font-color;
  352. }
  353. }
  354. }
  355. tbody {
  356. tr {
  357. background: $body-content-dark-bg!important;
  358. &[class*="table-"] {
  359. td,
  360. th {
  361. background-color: unset;
  362. color: $black;
  363. border-color: $body-dark-border-color;
  364. }
  365. }
  366. &.table-dark {
  367. td,
  368. th {
  369. color: $white;
  370. }
  371. }
  372. &.table-active {
  373. td,
  374. th {
  375. color: $body-dark-font-color;
  376. }
  377. }
  378. th {
  379. background-color: $body-content-dark-bg;
  380. }
  381. td {
  382. background-color: $body-content-dark-bg;
  383. color: $body-dark-font-color;
  384. }
  385. }
  386. }
  387. &.table-bordered {
  388. border: 1px solid $body-dark-border-color;
  389. thead,
  390. tbody {
  391. tr {
  392. th,
  393. td {
  394. border: 1px solid $body-dark-border-color;
  395. }
  396. }
  397. }
  398. }
  399. &.table-hover {
  400. tbody {
  401. tr {
  402. &:hover {
  403. background-color: $body-dark-color;
  404. }
  405. th,
  406. td {
  407. background-color: unset;
  408. }
  409. }
  410. }
  411. }
  412. &.table-striped {
  413. tbody {
  414. tr {
  415. &:nth-of-type(odd) {
  416. background-color: $body-dark-color;
  417. }
  418. td,
  419. th {
  420. background-color: unset;
  421. }
  422. }
  423. }
  424. }
  425. }
  426. .table.table-bordered {
  427. padding: 0;
  428. }
  429. .card, .box {
  430. background: $body-dark-card-bg;
  431. }
  432. .box.box-solid.box-default {
  433. background-color: $body-dark-bg;
  434. }
  435. .dd-handle,
  436. .card.dcat-box .card-header,
  437. .box-header.with-border,
  438. .with-border,
  439. .box.box-solid.box-default {
  440. border-bottom: 1px solid $body-dark-border-color;
  441. border-color: $body-dark-border-color!important;
  442. }
  443. .box .box-footer, .card .box-footer {
  444. border-color: $body-dark-border-color;
  445. }
  446. .dd-handle {
  447. background: darken($body-dark-bg, 1.2%);
  448. color: $body-dark-font-color;
  449. margin-bottom: 2px;
  450. }
  451. .dd-item > button:before {
  452. color: $body-dark-font-color
  453. }
  454. // ----- 滚动条
  455. // ----- form
  456. .input-group-prepend,
  457. .input-group-append,
  458. .input-group-addon,
  459. .input-group-text {
  460. background-color: $body-dark-bg;
  461. border-color: $body-dark-border-color;
  462. color: $body-dark-font-color!important;
  463. }
  464. input::-webkit-input-placeholder{
  465. color: darken($body-dark-font-color, 1.2%)!important;
  466. }
  467. input:-moz-placeholder{
  468. color: darken($body-dark-font-color, 1.2%)!important;
  469. }
  470. input::-moz-placeholder{
  471. color: darken($body-dark-font-color, 1.2%)!important;
  472. }
  473. input:-ms-input-placeholder {
  474. color: darken($body-dark-font-color, 1.2%)!important;
  475. }
  476. .help-block {
  477. color: darken($body-dark-font-color, 1.2%)!important;
  478. }
  479. .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
  480. {
  481. color: $red-darker!important;
  482. }
  483. @include dark-scrollbar('.select2-container--default .select2-results>.select2-results__options');
  484. .select2-container--default .select2-selection--single,
  485. .select2-container--default .select2-selection--multiple,
  486. .form-control {
  487. background: $body-dark-bg;
  488. color: $body-dark-font-color!important;
  489. border-color: $body-dark-border-color!important;
  490. }
  491. .select2-container--default .select2-search--inline .select2-search__field,
  492. .select2-container--default .select2-selection--single .select2-selection__rendered {
  493. color: $body-dark-font-color!important;
  494. }
  495. .select2-container--default .select2-search--dropdown .select2-search__field {
  496. background: $body-dark-bg!important;
  497. color: $body-dark-font-color!important;
  498. }
  499. .select2-container--default .select2-search--dropdown .select2-search__field,
  500. .select2-container--default .select2-selection--multiple {
  501. border-color: $body-dark-border-color!important;
  502. }
  503. //.select2-container--default .select2-selection--multiple .select2-selection__rendered li:first-child.select2-search.select2-search--inline .select2-search__field {
  504. // color: $body-dark-font-color!important;
  505. //}
  506. .select2-container--default .select2-results>.select2-results__options {
  507. background: $body-dark-color!important;
  508. }
  509. .select2-dropdown {
  510. background: $body-dark-color!important;
  511. }
  512. .select2-container--default .select2-results__option[aria-selected=true],
  513. .select2-container--default .select2-results__option--highlighted[aria-selected] {
  514. background: $body-darker-color!important;
  515. color: $body-dark-font-color!important;
  516. }
  517. .table-filter .form-control {
  518. background: $body-dark-table-bg;
  519. color: $body-dark-font-color;
  520. }
  521. // ------ layer
  522. // 滚动条
  523. @include dark-scrollbar('.layui-layer-page .layui-layer-content');
  524. .layui-layer {
  525. background-color: lighten($body-dark-color, 1%)!important;
  526. }
  527. .layui-layer-page {
  528. .layui-layer-btn,
  529. .layui-layer-content{
  530. background-color: $body-dark-modal-bg!important;
  531. }
  532. }
  533. .layui-layer-title {
  534. background-color: lighten($body-dark-color, 1%)!important;
  535. border-bottom: 1px solid $body-dark-border-color!important;
  536. color: $body-dark-font-color!important;
  537. }
  538. .layui-layer-btn1 {
  539. border-color: $body-dark-color!important;
  540. background: $body-dark-color!important;
  541. }
  542. .layui-layer-setwin .layui-layer-min cite:before,
  543. .layui-layer-setwin .layui-layer-max:before,
  544. .layui-layer-setwin .layui-layer-close1:before {
  545. color: $body-dark-font-color!important;
  546. }
  547. .web-uploader {
  548. .placeholder {
  549. border-width: 2px;
  550. border-color: darken($body-dark-font-color, 7%)!important;
  551. }
  552. .filelist li {
  553. background: $body-dark-color!important;
  554. }
  555. .queueList {
  556. border-color: $body-dark-border-color!important;
  557. }
  558. .statusBar .info,
  559. .filelist li p.title {
  560. color: $body-dark-font-color!important;
  561. }
  562. }
  563. // ----- slider
  564. .slider-panel {
  565. background-color: lighten($body-dark-color, 1.1%);
  566. }
  567. .right-side-filter-container .header {
  568. border-color: $body-dark-border-color;
  569. background-color: lighten($body-dark-color, 1.1%);;
  570. }
  571. // ----- sweet2
  572. .swal2-popup {
  573. background: $body-dark-color;
  574. h2 {
  575. color: $body-dark-font-color
  576. }
  577. }
  578. .swal2-content {
  579. color: darken($body-dark-font-color, 1.5%)
  580. }
  581. // ---- quick create
  582. .quick-create {
  583. td {
  584. background-color: $body-dark-modal-bg!important;
  585. color: darken($body-dark-font-color, 5%)
  586. }
  587. }
  588. // ----- iconpicker
  589. @include dark-scrollbar('.iconpicker .iconpicker-items');
  590. .iconpicker-popover.popover .popover-title,
  591. .iconpicker .iconpicker-items,
  592. .iconpicker-popover.popover {
  593. background: $body-dark-color!important;
  594. border-color: $body-dark-border-color!important;
  595. }
  596. .iconpicker-popover.popover .popover-title,
  597. .iconpicker-popover.popover.bottom>.arrow:after,
  598. .iconpicker-popover.popover.bottomRight>.arrow:after, .iconpicker-popover.popover.bottomLeft>.arrow:after {
  599. border-color: $body-dark-color;
  600. }
  601. // ----- alert
  602. .alert.alert-danger {
  603. h3, h4, h5 {
  604. color: $danger;
  605. }
  606. }
  607. .alert.alert-success {
  608. h3, h4, h5 {
  609. color: $success;
  610. }
  611. }
  612. .alert.alert-info {
  613. h3, h4, h5 {
  614. color: $info;
  615. }
  616. }
  617. .alert.alert-primary {
  618. h3, h4, h5 {
  619. color: $primary-darker;
  620. }
  621. }
  622. .alert.alert-warning {
  623. h3, h4, h5 {
  624. color: darken($warning, 5%);
  625. }
  626. }
  627. .callout {
  628. background: darken($body-dark-bg, 3%);
  629. border-color: #8e9aac;
  630. h3, h4, h5 {
  631. color: lighten($body-dark-font-color, 5%);
  632. }
  633. }
  634. // ----- apexcharts
  635. .apexcharts-legend-series {
  636. .apexcharts-legend-text {
  637. color: $body-dark-font-color !important;
  638. }
  639. }
  640. .apexcharts-radialbar-track {
  641. path {
  642. stroke: $body-dark-bg;
  643. }
  644. }
  645. .apexcharts-inner {
  646. polygon {
  647. stroke: $body-dark-table-bg !important;
  648. fill: $body-dark-bg !important;
  649. }
  650. }
  651. .apexcharts-pie-series {
  652. path {
  653. stroke: $body-dark-bg;
  654. }
  655. }
  656. .apexcharts-menu {
  657. background-color: $body-dark-bg;
  658. border: 0;
  659. }
  660. .apexcharts-toolbar {
  661. .apexcharts-zoom-in-icon,
  662. .apexcharts-zoom-out-icon,
  663. .apexcharts-zoom-icon,
  664. .apexcharts-menu-icon,
  665. .apexcharts-reset-zoom-icon {
  666. &:hover {
  667. svg {
  668. fill: $body-dark-font-color;
  669. }
  670. }
  671. }
  672. }
  673. // ---- login
  674. .login-page {
  675. background-color: $body-dark-bg!important;
  676. }
  677. .login-card-body, .register-card-body {
  678. background-color: $body-dark-color;
  679. color: $body-dark-font-color
  680. }
  681. // ----- selector
  682. .grid-selector {
  683. .wrap {
  684. background-color: $body-dark-color;
  685. }
  686. .select-label {
  687. color: darken($body-dark-font-color, 5%);
  688. }
  689. ul > li a {
  690. color: $body-dark-font-color;
  691. }
  692. .select-options a.active {
  693. color: $primary
  694. }
  695. }
  696. // ----- switchery
  697. .switchery {
  698. background-color: lighten($body-dark-font-color, 4%)!important;
  699. border-color: lighten($body-dark-font-color, 4%)!important;
  700. box-shadow: $shadow-200;
  701. }
  702. .switchery>small {
  703. background-color: lighten($body-dark-font-color, 10%)!important;
  704. }
  705. // ----- rwd table
  706. //.no-touch .dropdown-menu>.checkbox-row:active,
  707. .dropdown-menu li.checkbox-row:hover {
  708. background-color: $body-darker-color!important;
  709. }
  710. // ---- step
  711. .dcat-step {
  712. .dcat-step-title {
  713. color: $body-dark-font-color;
  714. }
  715. .active > .dcat-step-item-container > .dcat-step-content > .dcat-step-title,
  716. .done > .dcat-step-item-container > .dcat-step-content > .dcat-step-title {
  717. color: lighten($body-dark-font-color, 8%);
  718. }
  719. .dcat-step-icons {
  720. border-color: lighten($body-dark-font-color, 4%);
  721. > .dcat-step-icon {
  722. color: lighten($body-dark-font-color, 4%);
  723. }
  724. }
  725. .dcat-step-title:after {
  726. background-color: $body-dark-font-color;
  727. }
  728. .active > .dcat-step-item-container > .dcat-step-content > .dcat-step-title:after {
  729. background-color: lighten($body-dark-font-color, 4%);
  730. }
  731. .done .dcat-step-icons {
  732. background-color: transparent;
  733. border-color: $primary;
  734. }
  735. .done .dcat-step-icons > .dcat-step-icon {
  736. color: $primary
  737. }
  738. }
  739. .dcat-done-step .st-title {
  740. color: $body-dark-heading-color
  741. }
  742. .dcat-done-step .st-desc {
  743. color: $body-dark-font-color;
  744. }
  745. // ------- fixed-columns
  746. @include dark-scrollbar('.table-main');
  747. .table-fixed-left .table {
  748. box-shadow: 6px 0 5px -5px rgba(0,0,0,1);
  749. }
  750. .table-fixed-right .table {
  751. box-shadow: -5px 0 5px -5px rgba(0,0,0,1);
  752. }
  753. // ------- sidebar
  754. [class*=sidebar-dark-] {
  755. background-image: none;
  756. background-color: $body-dark-color!important;
  757. .navbar-header {
  758. background: $body-darker-color;
  759. }
  760. .nav-sidebar > .nav-item > .nav-treeview {
  761. background: transparent;
  762. }
  763. .nav-sidebar > .nav-item > .nav-link.active,
  764. .nav-treeview > .nav-item > .nav-link.active,
  765. .nav-treeview > .nav-item > .nav-link.active:hover,
  766. .nav-treeview > .nav-item > .nav-link.active:focus {
  767. background: $body-darker-color;
  768. }
  769. .nav-treeview.nav .nav-item .nav-link.active {
  770. padding: 10px 10px 10px 25px !important;
  771. }
  772. }
  773. .main-menu .navbar-header .navbar-brand {
  774. margin-top: .5rem;
  775. }
  776. }
  777. body.dark-mode:not(.sidebar-separate) {
  778. .main-sidebar .sidebar {
  779. margin-top: 1rem
  780. }
  781. }