feat: admin console dark theme

This commit is contained in:
RockYang
2024-04-26 18:10:17 +08:00
parent 468b48151f
commit 5e0be4d10e
17 changed files with 197 additions and 83 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="sidebar">
<div class="sidebar dark">
<div class="logo">
<el-image :src="logo"/>
<span class="text" v-show="!sidebar.collapse">{{ title }}</span>
@@ -234,4 +234,32 @@ setMenuItems(items)
width: 0;
}
.sidebar.dark {
border-right 1px solid var(--el-border-color-dark)
.logo {
background var(--el-bg-color)
.text {
color var(--el-text-color-regular)
}
}
ul {
background var(--el-bg-color)
.el-menu-item.is-active {
background-color var(--el-menu-bg-color-dark)
}
.el-menu-item:hover {
background-color var(--el-menu-bg-color-darker)
}
}
.sidebar-el-menu:not(.el-menu--collapse) {
width: 250px;
}
}
</style>