From 163794fbe22cf8fb02e8fb76d9f6cf3363f7ecba Mon Sep 17 00:00:00 2001 From: lutinglt Date: Tue, 16 Sep 2025 16:48:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=A1=B5=E8=84=9A=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release.md | 1 + styles/components/footer.ts | 34 +++++++++++++++++++++++++ styles/components/index.ts | 2 ++ styles/{public => components}/navbar.ts | 0 styles/public/index.ts | 1 - 5 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 styles/components/footer.ts rename styles/{public => components}/navbar.ts (100%) diff --git a/.github/release.md b/.github/release.md index 6848f0a..75ecf88 100644 --- a/.github/release.md +++ b/.github/release.md @@ -2,6 +2,7 @@ ##### 更符合 GitHub 风格 +- 同步页脚样式 - 优化创建标签菜单的菜单项的样式 ### 🐞 Fix diff --git a/styles/components/footer.ts b/styles/components/footer.ts new file mode 100644 index 0000000..75dcc9e --- /dev/null +++ b/styles/components/footer.ts @@ -0,0 +1,34 @@ +import { css, themeVars } from "src/types/vars"; + +export const footer = css` + .page-footer { + background-color: ${themeVars.color.body}; + border-top: 0; + color: ${themeVars.color.text.light.num1}; + font-size: 12px; + gap: 32px; + justify-content: center; + padding: 16px 0 40px 0; + > .left-links { + gap: 4px; + } + > .right-links { + gap: 16px; + > .ui.dropdown { + font-size: 12px; + &:hover { + color: ${themeVars.color.primary.self}; + } + } + > a { + border-left: 0; + color: ${themeVars.color.text.light.num1}; + padding-left: 0; + margin-left: 0; + &:hover { + color: ${themeVars.color.primary.self}; + } + } + } + } +`; diff --git a/styles/components/index.ts b/styles/components/index.ts index 3b1562a..c14951d 100644 --- a/styles/components/index.ts +++ b/styles/components/index.ts @@ -7,9 +7,11 @@ import "./diff"; import "./editor"; import "./explore"; import "./filelist"; +import "./footer"; import "./heatmap"; import "./issue"; import "./milestones"; +import "./navbar"; import "./newrepo"; import "./notification"; import "./org"; diff --git a/styles/public/navbar.ts b/styles/components/navbar.ts similarity index 100% rename from styles/public/navbar.ts rename to styles/components/navbar.ts diff --git a/styles/public/index.ts b/styles/public/index.ts index 19e3bc9..a3866db 100644 --- a/styles/public/index.ts +++ b/styles/public/index.ts @@ -12,6 +12,5 @@ import "./label"; // 标签 import "./menu"; // 菜单 import "./modal"; // 弹窗 import "./tippy"; // 提示框 -import "./navbar"; // 导航栏 import "./attached"; // 附加样式 import "./other"; // 其他样式