ci(deploy): simplify workflow trigger to run on every push

style(theme): improve sidebar spacing specificity in CSS
This commit is contained in:
sanbuphy
2026-01-12 17:08:20 +08:00
parent 26a612e40d
commit 0347f96547
2 changed files with 8 additions and 9 deletions
+1 -2
View File
@@ -2,9 +2,8 @@
name: Deploy VitePress site to Pages name: Deploy VitePress site to Pages
on: on:
# Runs on pushes targeting the `main` branch. Change this to `master` if you're using `master` branch. # Runs on every push.
push: push:
branches: [main, master, version2]
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
+7 -7
View File
@@ -4,38 +4,38 @@
} }
/* 减少一级标题(如"前端开发")底部的间距 */ /* 减少一级标题(如"前端开发")底部的间距 */
.VPSidebarItem.level-0 { .VPSidebar .VPSidebarItem.level-0 {
padding-bottom: 4px; padding-bottom: 4px;
} }
/* 减少一级标题文字与下方子菜单的间距 */ /* 减少一级标题文字与下方子菜单的间距 */
.VPSidebarItem.level-0 > .item { .VPSidebar .VPSidebarItem.level-0 > .item {
padding-bottom: 2px; padding-bottom: 2px;
} }
/* 调整子菜单项之间的间距 */ /* 调整子菜单项之间的间距 */
.VPSidebarItem.level-1 .item { .VPSidebar .VPSidebarItem.level-1 .item {
padding: 2px 0; padding: 2px 0;
} }
/* 针对可能存在的特定类名进行覆盖,确保紧凑 */ /* 针对可能存在的特定类名进行覆盖,确保紧凑 */
.VPSidebarGroup { .VPSidebar .VPSidebarGroup {
padding-top: 6px; padding-top: 6px;
padding-bottom: 6px; padding-bottom: 6px;
} }
/* 进一步压缩分组标题与第一项之间的间距 */ /* 进一步压缩分组标题与第一项之间的间距 */
.VPSidebarItem.level-0 + .VPSidebarItem.level-1 { .VPSidebar .VPSidebarItem.level-0 + .VPSidebarItem.level-1 {
margin-top: -2px; margin-top: -2px;
} }
/* 压缩分组标题本身的行高 */ /* 压缩分组标题本身的行高 */
.VPSidebarItem.level-0 .text { .VPSidebar .VPSidebarItem.level-0 .text {
line-height: 1.3; line-height: 1.3;
} }
/* 压缩子项的行高 */ /* 压缩子项的行高 */
.VPSidebarItem.level-1 .text { .VPSidebar .VPSidebarItem.level-1 .text {
line-height: 1.4; line-height: 1.4;
} }