black.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. /**
  2. * @description 黑
  3. */
  4. body.vab-theme-black {
  5. $base-menu-background: #282c34;
  6. @mixin container {
  7. color: var(--el-color-white) !important;
  8. background: $base-menu-background !important;
  9. }
  10. @mixin active {
  11. &:hover {
  12. color: var(--el-color-white) !important;
  13. background-color: var(--el-color-primary) !important;
  14. }
  15. &.is-active {
  16. color: var(--el-color-white) !important;
  17. background-color: var(--el-color-primary) !important;
  18. }
  19. }
  20. .logo-container-vertical,
  21. .logo-container-horizontal,
  22. .logo-container-comprehensive,
  23. .logo-container-float {
  24. @include container;
  25. }
  26. .logo-container-column {
  27. .logo {
  28. @include container;
  29. }
  30. }
  31. .vab-column-bar-container.el-scrollbar {
  32. .el-tabs {
  33. .el-tabs__nav-wrap.is-left {
  34. @include container;
  35. }
  36. .el-tabs__nav {
  37. @include container;
  38. }
  39. .el-tabs__item.is-active {
  40. background: var(--el-color-primary) !important;
  41. }
  42. }
  43. .el-menu {
  44. .el-menu-item.is-active,
  45. .el-sub-menu__title.is-active,
  46. .el-menu-item:hover,
  47. .el-sub-menu__title:hover {
  48. i {
  49. color: var(--el-color-primary) !important;
  50. }
  51. color: var(--el-color-primary) !important;
  52. background-color: var(--el-color-primary-light-9) !important;
  53. }
  54. }
  55. }
  56. .vab-column-bar-container-card.el-scrollbar {
  57. .el-tabs {
  58. .el-tabs__item.is-active {
  59. background: transparent !important;
  60. .vab-column-grid {
  61. background: var(--el-color-primary) !important;
  62. }
  63. }
  64. }
  65. }
  66. .vab-column-bar-container-arrow.el-scrollbar {
  67. .el-tabs {
  68. .el-tabs__item.is-active {
  69. background: transparent !important;
  70. .vab-column-grid {
  71. background: transparent !important;
  72. }
  73. }
  74. }
  75. }
  76. .vab-layout-float,
  77. .vab-layout-common,
  78. .vab-layout-vertical,
  79. .vab-layout-horizontal,
  80. .vab-layout-comprehensive {
  81. .el-menu {
  82. @include container;
  83. .el-sub-menu .el-sub-menu__title,
  84. .el-menu-item {
  85. @include container;
  86. }
  87. }
  88. .vab-side-bar,
  89. .comprehensive-bar-container {
  90. @include container;
  91. .el-menu-item {
  92. @include active;
  93. }
  94. }
  95. }
  96. .vab-layout-float {
  97. .el-scrollbar__view .el-menu--collapse.el-menu li.el-sub-menu.is-active {
  98. .el-sub-menu__title {
  99. background-color: transparent !important;
  100. }
  101. > .el-sub-menu__title {
  102. background-color: var(--el-color-primary) !important;
  103. }
  104. }
  105. }
  106. .vab-header {
  107. @include container;
  108. .vab-main {
  109. @include container;
  110. .right-panel {
  111. .el-menu {
  112. &--horizontal {
  113. .el-sub-menu .el-sub-menu__title,
  114. .el-menu-item {
  115. @include active;
  116. }
  117. .el-sub-menu.is-active {
  118. .el-sub-menu__title {
  119. color: var(--el-color-white) !important;
  120. background-color: var(--el-color-primary) !important;
  121. }
  122. }
  123. }
  124. }
  125. }
  126. }
  127. }
  128. .vab-tabs {
  129. &-more {
  130. &-active,
  131. &:hover {
  132. .vab-tabs-more-icon {
  133. .box:before,
  134. .box:after {
  135. background: var(--el-color-primary) !important;
  136. }
  137. }
  138. }
  139. }
  140. .vab-tabs-content-card {
  141. .el-tabs__header {
  142. .el-tabs__item {
  143. &.is-active {
  144. color: var(--el-color-primary) !important;
  145. background: var(--el-color-primary-light-9) !important;
  146. border: 1px solid var(--el-color-primary) !important;
  147. }
  148. &:hover {
  149. border: 1px solid var(--el-color-primary) !important;
  150. }
  151. }
  152. }
  153. }
  154. .vab-tabs-content-smart {
  155. .el-tabs__header {
  156. .el-tabs__item {
  157. &.is-active {
  158. background: var(--el-color-primary-light-9) !important;
  159. }
  160. &:after {
  161. background-color: var(--el-color-primary) !important;
  162. }
  163. &:hover {
  164. background: var(--el-color-primary-light-9) !important;
  165. }
  166. }
  167. }
  168. }
  169. .vab-tabs-content-smooth {
  170. .el-tabs__header {
  171. .el-tabs__item {
  172. &.is-active {
  173. color: var(--el-color-primary) !important;
  174. background: var(--el-color-primary-light-9) !important;
  175. &:hover {
  176. color: var(--el-color-primary) !important;
  177. background: var(--el-color-primary-light-9) !important;
  178. }
  179. }
  180. &:hover {
  181. color: var(--el-color-black) !important;
  182. }
  183. }
  184. }
  185. }
  186. }
  187. .vab-nav {
  188. .el-tabs__item.is-active,
  189. .el-tabs__item:hover {
  190. color: var(--el-color-primary) !important;
  191. }
  192. .el-tabs__active-bar {
  193. background-color: var(--el-color-primary) !important;
  194. }
  195. }
  196. #nprogress {
  197. .bar {
  198. background: var(--el-color-primary) !important;
  199. }
  200. .peg {
  201. box-shadow: 0 0 10px var(--el-color-primary),
  202. 0 0 5px var(--el-color-primary) !important;
  203. }
  204. }
  205. /*由于element-plus
  206. bug使用popper-append-to-body=false会导致多级路由无法显示,故所有菜单必须生成至body下,样式必须放到body下*/
  207. @mixin menuDefalut {
  208. color: var(--el-color-white) !important;
  209. }
  210. @mixin menuActiveHover {
  211. &:hover,
  212. &.is-active {
  213. i {
  214. color: var(--el-color-white) !important;
  215. }
  216. color: var(--el-color-white) !important;
  217. background: var(--el-color-primary) !important;
  218. .el-sub-menu__title {
  219. i {
  220. color: var(--el-color-white) !important;
  221. }
  222. color: var(--el-color-white) !important;
  223. background: var(--el-color-primary) !important;
  224. }
  225. }
  226. }
  227. .el-menu {
  228. border-right: 0 !important;
  229. }
  230. .el-menu--collapse.el-menu li.el-sub-menu.is-active > .el-sub-menu__title {
  231. background-color: var(--el-color-primary) !important;
  232. }
  233. .el-popper {
  234. .el-menu--horizontal,
  235. .el-menu--vertical {
  236. @include menuDefalut;
  237. .el-menu.el-menu--popup {
  238. @include menuDefalut;
  239. }
  240. .el-menu-item,
  241. .el-sub-menu {
  242. @include menuDefalut;
  243. @include menuActiveHover;
  244. .el-sub-menu__title {
  245. @include menuDefalut;
  246. @include menuActiveHover;
  247. }
  248. }
  249. }
  250. }
  251. }