diff --git a/frontend/src/layout/components/Sidebar/components/SubItem.vue b/frontend/src/layout/components/Sidebar/components/SubItem.vue index 2c8d27eb4..9b7b4a0db 100644 --- a/frontend/src/layout/components/Sidebar/components/SubItem.vue +++ b/frontend/src/layout/components/Sidebar/components/SubItem.vue @@ -39,5 +39,5 @@ defineProps<{ menuList: RouteRecordRaw[] }>(); diff --git a/frontend/src/layout/components/Sidebar/index.scss b/frontend/src/layout/components/Sidebar/index.scss index e09e3af33..289f0d0da 100644 --- a/frontend/src/layout/components/Sidebar/index.scss +++ b/frontend/src/layout/components/Sidebar/index.scss @@ -13,16 +13,16 @@ &:hover { .el-icon { - color: $primary-color; + color: var(--el-color-primary); } span { - color: $primary-color; + color: var(--el-color-primary); } } &.is-active { background-color: var(--el-menu-item-bg-color-active); - border: 2px solid $primary-color; + border: 2px solid var(--el-color-primary); &::before { position: absolute; @@ -31,7 +31,7 @@ width: 4px; height: 14px; content: ''; - background: $primary-color; + background: var(--el-color-primary); } } } @@ -39,26 +39,26 @@ &.is-active { .el-sub-menu__title { span { - color: $primary-color; + color: var(--el-color-primary); } .el-icon { - color: $primary-color; + color: var(--el-color-primary); } } } .el-sub-menu__title { background-color: var(--el-menu-item-bg-color); - box-shadow: 0px 0px 4px rgba(0, 94, 235, 0.1); + box-shadow: 0 0 4px rgba(0, 94, 235, 0.1); height: 46px; border-radius: 4px; &:hover { .el-icon { - color: $primary-color; + color: var(--el-color-primary); } span { - color: $primary-color; + color: var(--el-color-primary); } } } diff --git a/frontend/src/layout/components/Sidebar/index.vue b/frontend/src/layout/components/Sidebar/index.vue index 62cef3da0..ec6233be8 100644 --- a/frontend/src/layout/components/Sidebar/index.vue +++ b/frontend/src/layout/components/Sidebar/index.vue @@ -36,7 +36,7 @@