plain.scss 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. html > body.vab-theme-plain {
  2. --el-menu-background-color: #ffffff;
  3. --el-menu-color-text: #515a6e;
  4. @mixin container {
  5. color: var(--el-menu-color-text) !important;
  6. background: #ffffff !important;
  7. }
  8. @mixin active {
  9. &:hover {
  10. color: var(--el-color-primary) !important;
  11. background-color: var(--el-color-primary-light-9) !important;
  12. i,
  13. svg,
  14. span[title] {
  15. color: var(--el-color-primary) !important;
  16. }
  17. }
  18. &.is-active {
  19. color: var(--el-color-primary) !important;
  20. background-color: var(--el-color-primary-light-9) !important;
  21. i,
  22. svg,
  23. span[title] {
  24. color: var(--el-color-primary) !important;
  25. }
  26. }
  27. }
  28. .el-menu--vertical {
  29. .el-menu-item {
  30. &:hover {
  31. color: var(--el-color-primary) !important;
  32. background-color: var(--el-color-primary-light-9) !important;
  33. }
  34. }
  35. .el-menu-item.is-active,
  36. .el-sub-menu__title.is-active {
  37. color: var(--el-color-primary) !important;
  38. background-color: var(--el-color-primary-light-9) !important;
  39. }
  40. }
  41. .el-menu--horizontal .el-menu-item:not(.is-disabled):focus,
  42. .el-menu--horizontal .el-menu-item:not(.is-disabled):hover {
  43. color: var(--el-color-primary) !important;
  44. background-color: var(--el-color-primary-light-9) !important;
  45. }
  46. .el-menu--horizontal .el-sub-menu__title:not(.is-disabled):focus,
  47. .el-menu--horizontal .el-sub-menu__title:not(.is-disabled):hover {
  48. border-radius: var(--el-border-radius-base) !important;
  49. }
  50. .vab-logo-common,
  51. .vab-logo-vertical,
  52. .vab-logo-horizontal {
  53. @include container;
  54. .title,
  55. .vab-icon {
  56. @include container;
  57. }
  58. }
  59. .vab-logo-column,
  60. .vab-logo-comprehensive {
  61. @include container;
  62. .logo {
  63. border-right: 1px solid var(--el-border-color) !important;
  64. }
  65. .title {
  66. @include container;
  67. }
  68. .logo,
  69. .vab-icon {
  70. @include container;
  71. }
  72. }
  73. .vab-column-bar {
  74. border-right: 1px solid var(--el-border-color) !important;
  75. .el-tabs {
  76. @include container;
  77. .el-tabs__nav {
  78. border-right: 1px solid var(--el-border-color) !important;
  79. }
  80. .el-tabs__nav-wrap.is-left {
  81. background: #f7faff !important;
  82. }
  83. .el-tabs__item,
  84. .el-tabs__nav {
  85. @include container;
  86. }
  87. .el-tabs__item.is-active {
  88. color: #ffffff !important;
  89. background: var(--el-color-primary) !important;
  90. }
  91. }
  92. .el-menu {
  93. .el-menu-item.is-active,
  94. .el-sub-menu__title.is-active,
  95. .el-menu-item:hover,
  96. .el-sub-menu__title:hover {
  97. i {
  98. color: var(--el-color-primary) !important;
  99. }
  100. color: var(--el-color-primary) !important;
  101. background-color: var(--el-color-primary-light-9) !important;
  102. }
  103. }
  104. &-card {
  105. .el-tabs {
  106. .el-tabs__item {
  107. .vab-column-grid:hover {
  108. color: #ffffff !important;
  109. }
  110. &.is-active {
  111. background: transparent !important;
  112. }
  113. }
  114. }
  115. }
  116. &-arrow {
  117. .el-tabs {
  118. .el-tabs__item {
  119. &.is-active {
  120. color: var(--el-menu-color-text) !important;
  121. background: transparent !important;
  122. .vab-column-grid {
  123. background: transparent !important;
  124. &:after {
  125. border-color: transparent var(--el-border-color) transparent transparent;
  126. }
  127. }
  128. }
  129. }
  130. }
  131. }
  132. }
  133. .vab-tabs-content-card .el-tabs__header .el-tabs__item {
  134. border: 1px solid var(--el-border-color) !important;
  135. }
  136. .vab-logo-column .logo {
  137. background: #ffffff !important;
  138. border-right: 1px solid var(--el-border-color) !important;
  139. }
  140. .vab-header {
  141. @include container;
  142. .vab-main {
  143. @include container;
  144. .right-panel {
  145. .vab-right-tools {
  146. [class*='ri-'] {
  147. color: var(--el-menu-color-text);
  148. }
  149. }
  150. .username,
  151. .username *,
  152. > i,
  153. > div > i,
  154. > span > i,
  155. > div > span > i {
  156. @include container;
  157. }
  158. .el-menu {
  159. &--horizontal {
  160. .el-sub-menu .el-sub-menu__title,
  161. .el-menu-item {
  162. @include active;
  163. [class*='ri-'] {
  164. color: var(--el-menu-color-text) !important;
  165. }
  166. }
  167. > .el-sub-menu.is-active > .el-sub-menu__title,
  168. > .el-menu-item.is-active {
  169. color: var(--el-color-primary) !important;
  170. background-color: var(--el-color-primary-light-9) !important;
  171. border-radius: var(--el-border-radius-base);
  172. @include active;
  173. [class*='ri-'] {
  174. color: var(--el-color-primary) !important;
  175. }
  176. }
  177. > .el-sub-menu > .el-sub-menu__title,
  178. > .el-menu-item {
  179. &:hover {
  180. color: var(--el-color-primary) !important;
  181. background-color: transparent !important;
  182. }
  183. }
  184. }
  185. }
  186. }
  187. }
  188. }
  189. .vab-tabs {
  190. &-more {
  191. &-active,
  192. &:hover {
  193. .vab-tabs-more-icon {
  194. .box:before,
  195. .box:after {
  196. background: var(--el-color-primary) !important;
  197. }
  198. }
  199. }
  200. }
  201. .vab-tabs-content-card {
  202. .el-tabs__header {
  203. .el-tabs__item {
  204. &.is-active {
  205. color: var(--el-color-primary) !important;
  206. background: var(--el-color-primary-light-9) !important;
  207. border: 1px solid var(--el-color-primary) !important;
  208. }
  209. &:hover {
  210. border: 1px solid var(--el-color-primary) !important;
  211. }
  212. }
  213. }
  214. }
  215. .vab-tabs-content-smart {
  216. .el-tabs__header {
  217. .el-tabs__item {
  218. &.is-active {
  219. background: var(--el-color-primary-light-9) !important;
  220. }
  221. &:after {
  222. background-color: var(--el-color-primary) !important;
  223. }
  224. &:hover {
  225. background: var(--el-color-primary-light-9) !important;
  226. }
  227. }
  228. }
  229. }
  230. .vab-tabs-content-smooth {
  231. .el-tabs__header {
  232. .el-tabs__item {
  233. &.is-active {
  234. color: var(--el-color-primary) !important;
  235. background: var(--el-color-primary-light-9) !important;
  236. &:hover {
  237. color: var(--el-color-primary) !important;
  238. background: var(--el-color-primary-light-9) !important;
  239. }
  240. }
  241. &:hover {
  242. color: var(--el-menu-color-text) !important;
  243. }
  244. }
  245. }
  246. }
  247. }
  248. .vab-side-bar {
  249. border-right: 1px solid var(--el-border-color) !important;
  250. .el-sub-menu__title:hover {
  251. color: var(--el-color-primary);
  252. background-color: var(--el-color-primary-light-9);
  253. }
  254. }
  255. }