2025-09-29 16:51:36 +08:00
|
|
|
|
//:root {
|
|
|
|
|
|
// .vp-sidebar-item {
|
|
|
|
|
|
// &[data-level='1'] { color: #3eaf7c }
|
|
|
|
|
|
// &[data-level='2'] { color: #f09d51 }
|
|
|
|
|
|
// }
|
|
|
|
|
|
//}
|
|
|
|
|
|
.vp-sidebar{
|
|
|
|
|
|
width: 22rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
.vp-sidebar-items{
|
|
|
|
|
|
margin-left: 1.25rem;
|
|
|
|
|
|
width: 80%;
|
|
|
|
|
|
}
|
|
|
|
|
|
.vp-sidebar-children {
|
|
|
|
|
|
//.vp-sidebar-item{
|
2026-01-30 15:12:19 +08:00
|
|
|
|
.vp-sidebar-children {
|
2025-09-29 16:51:36 +08:00
|
|
|
|
|
|
|
|
|
|
.vp-sidebar-item {
|
|
|
|
|
|
//li{
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
//}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
.vp-sidebar-item {
|
|
|
|
|
|
margin-bottom: 0.625rem!important;
|
|
|
|
|
|
padding-left: 1.25rem!important;
|
|
|
|
|
|
line-height: 2.5rem!important;
|
|
|
|
|
|
}
|
|
|
|
|
|
.vp-sidebar-item.auto-link:hover, .vp-sidebar-item.active:not(p.vp-sidebar-heading){
|
|
|
|
|
|
color: #000;
|
|
|
|
|
|
background: #f8f8f8;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-radius: 0.625rem;
|
|
|
|
|
|
//border-inline-start-color:#368cbb; // 左侧条
|
|
|
|
|
|
}
|
|
|
|
|
|
.vp-sidebar{
|
|
|
|
|
|
scrollbar-color: #999 #e2e2e3;
|
|
|
|
|
|
}
|
2026-01-12 10:19:10 +08:00
|
|
|
|
.vp-navbar-dropdown-item{
|
|
|
|
|
|
color: var(--vp-c-text);
|
|
|
|
|
|
}
|
2025-09-29 16:51:36 +08:00
|
|
|
|
@media (max-width: 719px){
|
|
|
|
|
|
.vp-navbar-item .auto-link:hover, .vp-navbar-item .auto-link .auto-link-active{
|
|
|
|
|
|
color: #000;
|
|
|
|
|
|
}
|
|
|
|
|
|
.vp-sidebar-item.auto-link:hover, .vp-sidebar-item.active:not(p.vp-sidebar-heading){
|
|
|
|
|
|
color: #000;
|
|
|
|
|
|
background: #f8f8f8;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
border-radius: 0.625rem;
|
|
|
|
|
|
//border-inline-start-color:#368cbb; // 左侧条
|
|
|
|
|
|
}
|
|
|
|
|
|
.vp-sidebar{
|
|
|
|
|
|
scrollbar-color: #999 #e2e2e3;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.route-link-active{
|
|
|
|
|
|
color: #299764!important;
|
|
|
|
|
|
border-bottom: 2px solid #299764;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
}
|
|
|
|
|
|
.vp-navbar-item.active {
|
|
|
|
|
|
color: #299764;
|
|
|
|
|
|
border-bottom: 2px solid #299764;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.vp-navbar-item:hover {
|
|
|
|
|
|
color: #299764;
|
|
|
|
|
|
}
|
2026-01-30 15:12:19 +08:00
|
|
|
|
.search-box input{
|
|
|
|
|
|
padding-inline: 2rem!important;
|
|
|
|
|
|
}
|
|
|
|
|
|
// 水印样式兼容:确保不被侧边栏/导航栏遮挡
|
|
|
|
|
|
.watermark-container {
|
|
|
|
|
|
z-index: 9999 !important;
|
|
|
|
|
|
// 避开VuePress默认主题的层级,不遮挡你的侧边栏/导航栏
|
|
|
|
|
|
&:not(.vp-sidebar):not(.vp-navbar) {
|
|
|
|
|
|
pointer-events: none !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 深色主题适配(如果后续开启深色模式,保留这段)
|
|
|
|
|
|
body.dark .watermark-content::before {
|
|
|
|
|
|
color: #ffffff !important;
|
|
|
|
|
|
opacity: 0.2 !important;
|
|
|
|
|
|
}
|