dma_handbook/docs/.vuepress/styles/palette.scss
2026-01-30 15:12:19 +08:00

93 lines
2.0 KiB
SCSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//: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{
.vp-sidebar-children {
.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;
}
.vp-navbar-dropdown-item{
color: var(--vp-c-text);
}
@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;
}
.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;
}