navbar style

This commit is contained in:
lutinglt
2026-02-02 15:53:43 +08:00
parent 86d67a4559
commit d65a5e8f67
3 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,8 @@
#### More aligned with GitHub style #### More aligned with GitHub style
- Fine-tune the style of the navigation bar.
##### Template File ##### Template File
### 🐞 Fix ### 🐞 Fix

View File

@@ -202,7 +202,7 @@ export function github2ThemeColor(githubColor: GithubColor): ThemeColor {
bg: githubColor.bgColor.emphasis, bg: githubColor.bgColor.emphasis,
}, },
nav: { nav: {
bg: githubColor.bgColor.muted, bg: githubColor.bgColor.inset,
hoverBg: githubColor.control.transparent.bgColor.hover, hoverBg: githubColor.control.transparent.bgColor.hover,
text: themeVars.color.text.self, text: themeVars.color.text.self,
}, },

View File

@@ -3,7 +3,6 @@ import { css, customThemeVars, otherThemeVars, themeVars } from "src/types/vars"
export const navbarRight = css` export const navbarRight = css`
#navbar { #navbar {
border-bottom: 0;
padding: 8px 16px; // 上下内边距 + .navbar-left & .navbar-right 的 min-height = 64px padding: 8px 16px; // 上下内边距 + .navbar-left & .navbar-right 的 min-height = 64px
min-height: 64px; min-height: 64px;
.navbar-left, .navbar-left,