_dark.scss 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  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, 5%)!important;
  466. }
  467. input::-moz-placeholder{
  468. color: darken($body-dark-font-color, 5%)!important;
  469. }
  470. input::-moz-placeholder{
  471. color: darken($body-dark-font-color, 5%)!important;
  472. }
  473. input:-ms-input-placeholder {
  474. color: darken($body-dark-font-color, 5%)!important;
  475. }
  476. .help-block {
  477. color: darken($body-dark-font-color, 1.3%)!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. // form divider
  522. .form-divider {
  523. border-color: $body-dark-border-color;
  524. span {
  525. background-color: $body-dark-card-bg;
  526. }
  527. }
  528. .form-control:disabled,
  529. .form-control[readonly],
  530. .select2-container--default.select2-container--disabled .select2-selection--single,
  531. .select2-container--default.select2-container--disabled .select2-selection--multiple {
  532. background-color: darken($body-dark-bg, 2%)!important;
  533. }
  534. // ------ layer
  535. // 滚动条
  536. @include dark-scrollbar('.layui-layer-page .layui-layer-content');
  537. .layui-layer {
  538. background-color: lighten($body-dark-color, 1%)!important;
  539. }
  540. .layui-layer-page {
  541. .layui-layer-btn,
  542. .layui-layer-content{
  543. background-color: $body-dark-modal-bg!important;
  544. }
  545. }
  546. .layui-layer-title {
  547. background-color: lighten($body-dark-color, 1%)!important;
  548. border-bottom: 1px solid $body-dark-border-color!important;
  549. color: $body-dark-font-color!important;
  550. }
  551. .layui-layer-btn1 {
  552. border-color: $body-dark-color!important;
  553. background: $body-dark-color!important;
  554. }
  555. .layui-layer-setwin .layui-layer-min cite:before,
  556. .layui-layer-setwin .layui-layer-max:before,
  557. .layui-layer-setwin .layui-layer-close1:before {
  558. color: $body-dark-font-color!important;
  559. }
  560. .web-uploader {
  561. .placeholder {
  562. border-width: 2px;
  563. border-color: darken($body-dark-font-color, 7%)!important;
  564. }
  565. .filelist li {
  566. background: $body-dark-color!important;
  567. }
  568. .queueList {
  569. border-color: $body-dark-border-color!important;
  570. }
  571. .statusBar .info,
  572. .filelist li p.title {
  573. color: $body-dark-font-color!important;
  574. }
  575. }
  576. // ----- slider
  577. .slider-panel {
  578. background-color: lighten($body-dark-color, 1.1%);
  579. }
  580. .right-side-filter-container .header {
  581. border-color: $body-dark-border-color;
  582. background-color: lighten($body-dark-color, 1.1%);;
  583. }
  584. // ----- sweet2
  585. .swal2-popup {
  586. background: $body-dark-color;
  587. h2 {
  588. color: $body-dark-font-color
  589. }
  590. }
  591. .swal2-content {
  592. color: darken($body-dark-font-color, 1.5%)
  593. }
  594. // ---- quick create
  595. .quick-create {
  596. td {
  597. background-color: $body-dark-modal-bg!important;
  598. color: darken($body-dark-font-color, 5%)
  599. }
  600. }
  601. // ----- iconpicker
  602. @include dark-scrollbar('.iconpicker .iconpicker-items');
  603. .iconpicker-popover.popover .popover-title,
  604. .iconpicker .iconpicker-items,
  605. .iconpicker-popover.popover {
  606. background: $body-dark-color!important;
  607. border-color: $body-dark-border-color!important;
  608. }
  609. .iconpicker-popover.popover .popover-title,
  610. .iconpicker-popover.popover.bottom>.arrow:after,
  611. .iconpicker-popover.popover.bottomRight>.arrow:after, .iconpicker-popover.popover.bottomLeft>.arrow:after {
  612. border-color: $body-dark-color;
  613. }
  614. // ----- alert
  615. .alert.alert-danger {
  616. h3, h4, h5 {
  617. color: $danger;
  618. }
  619. }
  620. .alert.alert-success {
  621. h3, h4, h5 {
  622. color: $success;
  623. }
  624. }
  625. .alert.alert-info {
  626. h3, h4, h5 {
  627. color: $info;
  628. }
  629. }
  630. .alert.alert-primary {
  631. h3, h4, h5 {
  632. color: $primary-darker;
  633. }
  634. }
  635. .alert.alert-warning {
  636. h3, h4, h5 {
  637. color: darken($warning, 5%);
  638. }
  639. }
  640. .callout {
  641. background: darken($body-dark-bg, 3%);
  642. border-color: #8e9aac;
  643. h3, h4, h5 {
  644. color: lighten($body-dark-font-color, 5%);
  645. }
  646. }
  647. // ----- apexcharts
  648. .apexcharts-legend-series {
  649. .apexcharts-legend-text {
  650. color: $body-dark-font-color !important;
  651. }
  652. }
  653. .apexcharts-radialbar-track {
  654. path {
  655. stroke: $body-dark-bg;
  656. }
  657. }
  658. .apexcharts-inner {
  659. polygon {
  660. stroke: $body-dark-table-bg !important;
  661. fill: $body-dark-bg !important;
  662. }
  663. }
  664. .apexcharts-pie-series {
  665. path {
  666. stroke: $body-dark-bg;
  667. }
  668. }
  669. .apexcharts-menu {
  670. background-color: $body-dark-bg;
  671. border: 0;
  672. }
  673. .apexcharts-toolbar {
  674. .apexcharts-zoom-in-icon,
  675. .apexcharts-zoom-out-icon,
  676. .apexcharts-zoom-icon,
  677. .apexcharts-menu-icon,
  678. .apexcharts-reset-zoom-icon {
  679. &:hover {
  680. svg {
  681. fill: $body-dark-font-color;
  682. }
  683. }
  684. }
  685. }
  686. // ---- login
  687. .login-page {
  688. background-color: $body-dark-bg!important;
  689. }
  690. .login-card-body, .register-card-body {
  691. background-color: $body-dark-color;
  692. color: $body-dark-font-color
  693. }
  694. // ----- selector
  695. .grid-selector {
  696. .wrap {
  697. background-color: $body-dark-color;
  698. }
  699. .select-label {
  700. color: darken($body-dark-font-color, 5%);
  701. }
  702. ul > li a {
  703. color: $body-dark-font-color;
  704. }
  705. .select-options a.active {
  706. color: $primary
  707. }
  708. }
  709. // ----- switchery
  710. .switchery {
  711. background-color: lighten($body-dark-font-color, 4%)!important;
  712. border-color: lighten($body-dark-font-color, 4%)!important;
  713. box-shadow: $shadow-200;
  714. }
  715. .switchery>small {
  716. background-color: lighten($body-dark-font-color, 10%)!important;
  717. }
  718. // ----- rwd table
  719. //.no-touch .dropdown-menu>.checkbox-row:active,
  720. .dropdown-menu li.checkbox-row:hover {
  721. background-color: $body-darker-color!important;
  722. }
  723. // ---- step
  724. .dcat-step {
  725. .dcat-step-title {
  726. color: $body-dark-font-color;
  727. }
  728. .active > .dcat-step-item-container > .dcat-step-content > .dcat-step-title,
  729. .done > .dcat-step-item-container > .dcat-step-content > .dcat-step-title {
  730. color: lighten($body-dark-font-color, 8%);
  731. }
  732. .dcat-step-icons {
  733. border-color: lighten($body-dark-font-color, 4%);
  734. > .dcat-step-icon {
  735. color: lighten($body-dark-font-color, 4%);
  736. }
  737. }
  738. .dcat-step-title:after {
  739. background-color: $body-dark-font-color;
  740. }
  741. .active > .dcat-step-item-container > .dcat-step-content > .dcat-step-title:after {
  742. background-color: lighten($body-dark-font-color, 4%);
  743. }
  744. .done .dcat-step-icons {
  745. background-color: transparent;
  746. border-color: $primary;
  747. }
  748. .done .dcat-step-icons > .dcat-step-icon {
  749. color: $primary
  750. }
  751. }
  752. .dcat-done-step .st-title {
  753. color: $body-dark-heading-color
  754. }
  755. .dcat-done-step .st-desc {
  756. color: $body-dark-font-color;
  757. }
  758. // ------- fixed-columns
  759. @include dark-scrollbar('.table-main');
  760. .table-fixed-left .table {
  761. box-shadow: 6px 0 5px -5px rgba(0,0,0,1);
  762. }
  763. .table-fixed-right .table {
  764. box-shadow: -5px 0 5px -5px rgba(0,0,0,1);
  765. }
  766. // ------- sidebar
  767. [class*=sidebar-dark-] {
  768. background-image: none;
  769. background-color: $body-dark-color!important;
  770. .navbar-header {
  771. background: $body-darker-color;
  772. }
  773. .nav-sidebar > .nav-item > .nav-treeview {
  774. background: transparent;
  775. }
  776. .nav-sidebar > .nav-item > .nav-link.active,
  777. .nav-treeview > .nav-item > .nav-link.active,
  778. .nav-treeview > .nav-item > .nav-link.active:hover,
  779. .nav-treeview > .nav-item > .nav-link.active:focus {
  780. background: $body-darker-color;
  781. }
  782. .nav-treeview.nav .nav-item .nav-link.active {
  783. padding: 10px 10px 10px 25px !important;
  784. }
  785. }
  786. .main-menu .navbar-header .navbar-brand {
  787. margin-top: .5rem;
  788. }
  789. }
  790. body.dark-mode:not(.sidebar-separate) {
  791. .main-sidebar .sidebar {
  792. margin-top: 1rem
  793. }
  794. }