dark.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. @import './variables';
  2. @import 'element-plus/theme-chalk/dark/css-vars.css';
  3. html.dark > body,
  4. html.dark > body[class*='vab-theme-'] {
  5. --el-color-black: #cfd3dc;
  6. --el-color-white: #1d1e1f;
  7. --el-color-grey: #cfd3dc;
  8. --el-menu-background-color-second: #1d1e1f;
  9. --el-border-color: #414243;
  10. --el-menu-background-color: #1d1e1f;
  11. --el-mask-color: rgba(0, 0, 0, 0.8);
  12. --w-e-textarea-bg-color: #333;
  13. --w-e-textarea-color: #fff;
  14. --w-e-textarea-border-color: var(--el-border-color);
  15. --w-e-textarea-slight-border-color: var(--el-border-color);
  16. --w-e-textarea-slight-color: var(--el-border-color);
  17. --w-e-textarea-slight-bg-color: var(--el-border-color);
  18. --w-e-textarea-selected-border-color: var(--el-color-primary);
  19. --w-e-textarea-handler-bg-color: var(--el-color-primary);
  20. --w-e-toolbar-color: #fff;
  21. --w-e-toolbar-bg-color: #333;
  22. --w-e-toolbar-active-color: #fff;
  23. --w-e-toolbar-active-bg-color: #333;
  24. --w-e-toolbar-disabled-color: #999;
  25. --w-e-toolbar-border-color: #333;
  26. --w-e-modal-button-bg-color: #333;
  27. --w-e-modal-button-border-color: #d9d9d9;
  28. color: #cfd3dc !important;
  29. background-color: var(--el-color-white) !important;
  30. .vab-nav {
  31. background: var(--el-color-white) !important;
  32. }
  33. [class*='-container'],
  34. .no-background-container {
  35. background: var(--el-color-white) !important;
  36. }
  37. .table {
  38. td {
  39. border: 1px solid var(--el-border-color) !important;
  40. }
  41. }
  42. .vab-column-bar .el-tabs .el-tabs__item {
  43. color: var(--el-color-grey) !important;
  44. }
  45. .vab-column-bar {
  46. border-right: 1px solid var(--el-border-color) !important;
  47. &-arrow {
  48. .el-tabs {
  49. .el-tabs__item {
  50. &.is-active {
  51. color: var(--el-menu-color-text) !important;
  52. background: transparent !important;
  53. .vab-column-grid {
  54. background: transparent !important;
  55. &:after {
  56. border-color: transparent var(--el-menu-color-text) transparent transparent;
  57. }
  58. }
  59. }
  60. }
  61. }
  62. }
  63. }
  64. .vab-tabs-content-card .el-tabs__header .el-tabs__item {
  65. border: 1px solid var(--el-border-color) !important;
  66. }
  67. .vab-column-bar .el-tabs .el-tabs__nav {
  68. margin-left: -1px !important;
  69. background: var(--el-color-white) !important;
  70. border-right: 1px solid var(--el-border-color) !important;
  71. }
  72. .vab-logo-column .logo {
  73. background: var(--el-color-white) !important;
  74. border-right: 1px solid var(--el-border-color) !important;
  75. }
  76. .vab-side-bar {
  77. border-right: 1px solid var(--el-border-color) !important;
  78. }
  79. .vab-header {
  80. border-bottom: 1px solid var(--el-border-color) !important;
  81. .vab-logo-horizontal {
  82. height: calc(var(--el-header-height) - 2px);
  83. }
  84. .vab-main .right-panel {
  85. [class*='ri-'],
  86. .username {
  87. color: var(--el-color-grey) !important;
  88. }
  89. }
  90. }
  91. /* svg */
  92. [fill='#fff'] {
  93. fill: var(--el-color-white) !important;
  94. }
  95. .el-button,
  96. .el-switch,
  97. .el-checkbox,
  98. .el-checkbox-group,
  99. .el-radio,
  100. .el-radio-group,
  101. .el-slider,
  102. .el-tag,
  103. .el-pagination,
  104. .el-segmented,
  105. .el-carousel,
  106. .el-menu,
  107. .el-card__body::after,
  108. .fold-unfold,
  109. .schedule-box,
  110. .vab-theme-setting div a:hover,
  111. .transition-box,
  112. .top-card-blue,
  113. .icon-panel {
  114. --el-color-white: var(--el-menu-text-color);
  115. }
  116. .el-divider__text {
  117. background-color: transparent !important;
  118. }
  119. .vab-blockquote {
  120. background-color: rgba(0, 0, 0, 0.1) !important;
  121. }
  122. }