white.scss 7.6 KB

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