2026-01-12 14:52:41 +08:00
|
|
|
:root {
|
2026-01-12 21:07:35 +08:00
|
|
|
/* Easy-Vibe Theme Fix v2025-01-12 */
|
2026-01-12 22:19:04 +08:00
|
|
|
/* 通过变量控制分组底部留白(默认 24px) */
|
2026-01-12 14:52:41 +08:00
|
|
|
--vp-sidebar-nav-section-gap: 8px;
|
2026-01-12 12:21:35 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-12 22:19:04 +08:00
|
|
|
/* 生产环境(带 data-v-* 的 scoped 样式)会比 class 选择器更高优先级。
|
|
|
|
|
为避免 build/preview 时被覆盖,这里显式匹配 scoped 属性并加 !important。 */
|
|
|
|
|
:where(html) .VPSidebarItem.level-0,
|
|
|
|
|
:where(html) .VPSidebarItem.level-0[data-v-d81de50c] {
|
|
|
|
|
padding-bottom: 8px !important;
|
2026-01-12 12:21:35 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-12 14:52:41 +08:00
|
|
|
/* 减少一级标题文字与下方子菜单的间距 */
|
2026-01-12 22:19:04 +08:00
|
|
|
:where(html) .VPSidebarItem.level-0 > .item,
|
|
|
|
|
:where(html) .VPSidebarItem.level-0[data-v-d81de50c] > .item {
|
|
|
|
|
padding-bottom: 4px !important;
|
2026-01-12 12:21:35 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-12 18:23:52 +08:00
|
|
|
/* 调整子菜单项之间的间距 - 针对所有层级 */
|
2026-01-12 22:19:04 +08:00
|
|
|
:where(html) .VPSidebarItem.level-1 .item,
|
|
|
|
|
:where(html) .VPSidebarItem.level-1[data-v-d81de50c] .item,
|
|
|
|
|
:where(html) .VPSidebarItem.level-2 .item,
|
|
|
|
|
:where(html) .VPSidebarItem.level-2[data-v-d81de50c] .item,
|
|
|
|
|
:where(html) .VPSidebarItem.level-3 .item,
|
|
|
|
|
:where(html) .VPSidebarItem.level-3[data-v-d81de50c] .item,
|
|
|
|
|
:where(html) .VPSidebarItem.level-4 .item,
|
|
|
|
|
:where(html) .VPSidebarItem.level-4[data-v-d81de50c] .item {
|
|
|
|
|
padding-top: 3px !important;
|
|
|
|
|
padding-bottom: 3px !important;
|
|
|
|
|
min-height: 26px !important; /* 稍微放大便于点击 */
|
2026-01-12 12:21:35 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-12 14:52:41 +08:00
|
|
|
/* 针对可能存在的特定类名进行覆盖,确保紧凑 */
|
2026-01-12 22:19:04 +08:00
|
|
|
:where(html) .VPSidebarGroup,
|
|
|
|
|
:where(html) .VPSidebarGroup[data-v-8d50c081] {
|
2026-01-12 18:23:52 +08:00
|
|
|
padding-top: 6px !important;
|
|
|
|
|
padding-bottom: 6px !important;
|
2026-01-12 12:21:35 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-12 14:52:41 +08:00
|
|
|
/* 进一步压缩分组标题与第一项之间的间距 */
|
2026-01-12 22:19:04 +08:00
|
|
|
:where(html) .VPSidebarItem.level-0 + .VPSidebarItem.level-1,
|
|
|
|
|
:where(html) .VPSidebarItem.level-0[data-v-d81de50c] + .VPSidebarItem.level-1[data-v-d81de50c] {
|
2026-01-12 18:23:52 +08:00
|
|
|
margin-top: -2px !important;
|
2026-01-12 12:21:35 +08:00
|
|
|
}
|
2026-01-12 14:52:41 +08:00
|
|
|
|
|
|
|
|
/* 压缩分组标题本身的行高 */
|
2026-01-12 22:19:04 +08:00
|
|
|
:where(html) .VPSidebarItem.level-0 .text,
|
|
|
|
|
:where(html) .VPSidebarItem.level-0[data-v-d81de50c] .text {
|
2026-01-12 18:23:52 +08:00
|
|
|
line-height: 1.3 !important;
|
2026-01-12 14:52:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 压缩子项的行高 */
|
2026-01-12 22:19:04 +08:00
|
|
|
:where(html) .VPSidebarItem.level-1 .text,
|
|
|
|
|
:where(html) .VPSidebarItem.level-1[data-v-d81de50c] .text,
|
|
|
|
|
:where(html) .VPSidebarItem.level-2 .text,
|
|
|
|
|
:where(html) .VPSidebarItem.level-2[data-v-d81de50c] .text,
|
|
|
|
|
:where(html) .VPSidebarItem.level-3 .text,
|
|
|
|
|
:where(html) .VPSidebarItem.level-3[data-v-d81de50c] .text {
|
2026-01-12 18:23:52 +08:00
|
|
|
line-height: 1.4 !important;
|
|
|
|
|
padding: 0 !important; /* 移除文字本身的内边距 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 强制链接本身没有额外的边距 */
|
2026-01-12 22:19:04 +08:00
|
|
|
:where(html) .VPSidebarItem .VPLink,
|
|
|
|
|
:where(html) .VPSidebarItem[data-v-d81de50c] .VPLink {
|
2026-01-12 18:23:52 +08:00
|
|
|
padding-top: 2px !important;
|
|
|
|
|
padding-bottom: 2px !important;
|
|
|
|
|
min-height: auto !important;
|
2026-01-12 15:31:23 +08:00
|
|
|
}
|
|
|
|
|
|
2026-01-12 22:19:04 +08:00
|
|
|
/* 清空 sidebar item 自带的 margin,避免垂直间距被放大 */
|
|
|
|
|
:where(html) .VPSidebarItem .item,
|
|
|
|
|
:where(html) .VPSidebarItem[data-v-d81de50c] .item {
|
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-12 15:31:23 +08:00
|
|
|
/* 图片高度限制策略:根据长宽比调整最大高度 */
|
|
|
|
|
/* 越高的图片(长宽比越大),限制的高度越小,避免占用过多纵向空间 */
|
|
|
|
|
.vp-doc img.img-tall {
|
|
|
|
|
max-height: 450px !important;
|
|
|
|
|
width: auto !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vp-doc img.img-very-tall {
|
|
|
|
|
max-height: 350px !important;
|
|
|
|
|
width: auto !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vp-doc img.img-ultra-tall {
|
|
|
|
|
max-height: 250px !important;
|
|
|
|
|
width: auto !important;
|
|
|
|
|
}
|
2026-01-12 15:34:58 +08:00
|
|
|
|
|
|
|
|
/* Fix tagline wrapping issues */
|
|
|
|
|
.VPHomeHero .tagline {
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
max-width: none !important;
|
|
|
|
|
}
|