顶栏上方留白改为 1.5 倍标题高度,标题与导航间距改为 0.8 倍。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-04 20:35:46 +08:00
parent 2c0e25eaf8
commit d24df2e618
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -21,6 +21,8 @@
--hub-title-size: 1.75rem;
--hub-title-lh: 1.25;
--hub-title-h: calc(var(--hub-title-size) * var(--hub-title-lh));
--hub-title-pad-top: calc(var(--hub-title-h) * 1.5);
--hub-title-nav-gap: calc(var(--hub-title-h) * 0.8);
--hub-title-gap: calc(var(--hub-title-h) * 1.1);
}
* { box-sizing: border-box; }
@@ -54,8 +56,8 @@ a:hover { color: #7dd3fc; }
.topbar-brand {
display: block;
margin: 0 auto var(--hub-title-gap);
padding-top: var(--hub-title-gap);
margin: 0 auto var(--hub-title-nav-gap);
padding-top: var(--hub-title-pad-top);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: var(--hub-title-size);
font-weight: 700;