123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 |
- /**
- * @description 黑
- */
- body.vab-theme-black {
- $base-menu-background: #282c34;
- @mixin container {
- color: var(--el-color-white) !important;
- background: $base-menu-background !important;
- }
- @mixin active {
- &:hover {
- color: var(--el-color-white) !important;
- background-color: var(--el-color-primary) !important;
- }
- &.is-active {
- color: var(--el-color-white) !important;
- background-color: var(--el-color-primary) !important;
- }
- }
- .logo-container-vertical,
- .logo-container-horizontal,
- .logo-container-comprehensive,
- .logo-container-float {
- @include container;
- }
- .logo-container-column {
- .logo {
- @include container;
- }
- }
- .vab-column-bar-container.el-scrollbar {
- .el-tabs {
- .el-tabs__nav-wrap.is-left {
- @include container;
- }
- .el-tabs__nav {
- @include container;
- }
- .el-tabs__item.is-active {
- background: var(--el-color-primary) !important;
- }
- }
- .el-menu {
- .el-menu-item.is-active,
- .el-sub-menu__title.is-active,
- .el-menu-item:hover,
- .el-sub-menu__title:hover {
- i {
- color: var(--el-color-primary) !important;
- }
- color: var(--el-color-primary) !important;
- background-color: var(--el-color-primary-light-9) !important;
- }
- }
- }
- .vab-column-bar-container-card.el-scrollbar {
- .el-tabs {
- .el-tabs__item.is-active {
- background: transparent !important;
- .vab-column-grid {
- background: var(--el-color-primary) !important;
- }
- }
- }
- }
- .vab-column-bar-container-arrow.el-scrollbar {
- .el-tabs {
- .el-tabs__item.is-active {
- background: transparent !important;
- .vab-column-grid {
- background: transparent !important;
- }
- }
- }
- }
- .vab-layout-float,
- .vab-layout-common,
- .vab-layout-vertical,
- .vab-layout-horizontal,
- .vab-layout-comprehensive {
- .el-menu {
- @include container;
- .el-sub-menu .el-sub-menu__title,
- .el-menu-item {
- @include container;
- }
- }
- .vab-side-bar,
- .comprehensive-bar-container {
- @include container;
- .el-menu-item {
- @include active;
- }
- }
- }
- .vab-layout-float {
- .el-scrollbar__view .el-menu--collapse.el-menu li.el-sub-menu.is-active {
- .el-sub-menu__title {
- background-color: transparent !important;
- }
- > .el-sub-menu__title {
- background-color: var(--el-color-primary) !important;
- }
- }
- }
- .vab-header {
- @include container;
- .vab-main {
- @include container;
- .right-panel {
- .el-menu {
- &--horizontal {
- .el-sub-menu .el-sub-menu__title,
- .el-menu-item {
- @include active;
- }
- .el-sub-menu.is-active {
- .el-sub-menu__title {
- color: var(--el-color-white) !important;
- background-color: var(--el-color-primary) !important;
- }
- }
- }
- }
- }
- }
- }
- .vab-tabs {
- &-more {
- &-active,
- &:hover {
- .vab-tabs-more-icon {
- .box:before,
- .box:after {
- background: var(--el-color-primary) !important;
- }
- }
- }
- }
- .vab-tabs-content-card {
- .el-tabs__header {
- .el-tabs__item {
- &.is-active {
- color: var(--el-color-primary) !important;
- background: var(--el-color-primary-light-9) !important;
- border: 1px solid var(--el-color-primary) !important;
- }
- &:hover {
- border: 1px solid var(--el-color-primary) !important;
- }
- }
- }
- }
- .vab-tabs-content-smart {
- .el-tabs__header {
- .el-tabs__item {
- &.is-active {
- background: var(--el-color-primary-light-9) !important;
- }
- &:after {
- background-color: var(--el-color-primary) !important;
- }
- &:hover {
- background: var(--el-color-primary-light-9) !important;
- }
- }
- }
- }
- .vab-tabs-content-smooth {
- .el-tabs__header {
- .el-tabs__item {
- &.is-active {
- color: var(--el-color-primary) !important;
- background: var(--el-color-primary-light-9) !important;
- &:hover {
- color: var(--el-color-primary) !important;
- background: var(--el-color-primary-light-9) !important;
- }
- }
- &:hover {
- color: var(--el-color-black) !important;
- }
- }
- }
- }
- }
- .vab-nav {
- .el-tabs__item.is-active,
- .el-tabs__item:hover {
- color: var(--el-color-primary) !important;
- }
- .el-tabs__active-bar {
- background-color: var(--el-color-primary) !important;
- }
- }
- #nprogress {
- .bar {
- background: var(--el-color-primary) !important;
- }
- .peg {
- box-shadow: 0 0 10px var(--el-color-primary),
- 0 0 5px var(--el-color-primary) !important;
- }
- }
- /*由于element-plus
- bug使用popper-append-to-body=false会导致多级路由无法显示,故所有菜单必须生成至body下,样式必须放到body下*/
- @mixin menuDefalut {
- color: var(--el-color-white) !important;
- }
- @mixin menuActiveHover {
- &:hover,
- &.is-active {
- i {
- color: var(--el-color-white) !important;
- }
- color: var(--el-color-white) !important;
- background: var(--el-color-primary) !important;
- .el-sub-menu__title {
- i {
- color: var(--el-color-white) !important;
- }
- color: var(--el-color-white) !important;
- background: var(--el-color-primary) !important;
- }
- }
- }
- .el-menu {
- border-right: 0 !important;
- }
- .el-menu--collapse.el-menu li.el-sub-menu.is-active > .el-sub-menu__title {
- background-color: var(--el-color-primary) !important;
- }
- .el-popper {
- .el-menu--horizontal,
- .el-menu--vertical {
- @include menuDefalut;
- .el-menu.el-menu--popup {
- @include menuDefalut;
- }
- .el-menu-item,
- .el-sub-menu {
- @include menuDefalut;
- @include menuActiveHover;
- .el-sub-menu__title {
- @include menuDefalut;
- @include menuActiveHover;
- }
- }
- }
- }
- }
|