mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 04:40:31 +00:00
优化顶部导航栏样式和颜色
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
### 🌈 Style
|
### 🌈 Style
|
||||||
|
|
||||||
- 调整顶部导航栏高度
|
- 优化顶部导航栏样式和颜色
|
||||||
|
|
||||||
##### 更符合 GitHub 风格
|
##### 更符合 GitHub 风格
|
||||||
|
|
||||||
|
|||||||
@@ -200,11 +200,11 @@ export function github2ThemeColor(githubColor: GithubColor): ThemeColor {
|
|||||||
bg: githubColor.bgColor.emphasis,
|
bg: githubColor.bgColor.emphasis,
|
||||||
},
|
},
|
||||||
nav: {
|
nav: {
|
||||||
bg: githubColor.bgColor.inset,
|
bg: githubColor.bgColor.muted,
|
||||||
hoverBg: githubColor.control.transparent.bgColor.hover,
|
hoverBg: githubColor.control.transparent.bgColor.hover,
|
||||||
text: themeVars.color.text.self,
|
text: themeVars.color.text.self,
|
||||||
},
|
},
|
||||||
secondaryNavBg: themeVars.color.nav.bg,
|
secondaryNavBg: themeVars.color.body,
|
||||||
label: {
|
label: {
|
||||||
text: themeVars.color.text.self,
|
text: themeVars.color.text.self,
|
||||||
bg: githubColor.bgColor.neutral.muted,
|
bg: githubColor.bgColor.neutral.muted,
|
||||||
|
|||||||
@@ -3,13 +3,30 @@ import { css, customThemeVars, otherThemeVars, themeVars } from "src/types/vars"
|
|||||||
|
|
||||||
export const navbarRight = css`
|
export const navbarRight = css`
|
||||||
#navbar {
|
#navbar {
|
||||||
|
border-bottom: 0;
|
||||||
|
padding: 0px 16px;
|
||||||
min-height: 64px;
|
min-height: 64px;
|
||||||
.navbar-left {
|
.navbar-left {
|
||||||
#navbar-logo img {
|
gap: 4px;
|
||||||
|
> .item {
|
||||||
|
padding: 6px 10px;
|
||||||
|
min-height: 20px;
|
||||||
|
&.active {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
&#navbar-logo {
|
||||||
|
// 与下方的用户切换头像对齐
|
||||||
|
padding-left: 6px;
|
||||||
|
&:hover {
|
||||||
|
background: unset;
|
||||||
|
}
|
||||||
|
img {
|
||||||
height: 32px;
|
height: 32px;
|
||||||
width: 32px;
|
width: 32px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
// 进入用户页面后, 避免注册, 登录和首页等意外覆盖
|
// 进入用户页面后, 避免注册, 登录和首页等意外覆盖
|
||||||
.navbar-right:has(.user-menu) {
|
.navbar-right:has(.user-menu) {
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
|||||||
@@ -144,6 +144,9 @@ export const notification = css`
|
|||||||
&:last-child {
|
&:last-child {
|
||||||
border-bottom-left-radius: ${otherThemeVars.border.radius};
|
border-bottom-left-radius: ${otherThemeVars.border.radius};
|
||||||
border-bottom-right-radius: ${otherThemeVars.border.radius};
|
border-bottom-right-radius: ${otherThemeVars.border.radius};
|
||||||
|
&:hover {
|
||||||
|
border-bottom-left-radius: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
background: ${themeVars.github.bgColor.accent.muted};
|
background: ${themeVars.github.bgColor.accent.muted};
|
||||||
|
|||||||
Reference in New Issue
Block a user