From 49a1fad12a0b90b9b665a36c192ba0ccc3202ecf Mon Sep 17 00:00:00 2001 From: lutinglt Date: Fri, 10 Jan 2025 23:53:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E8=B0=83=E4=BB=93=E5=BA=93=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=A1=B5=E9=9D=A2=E4=BE=A7=E8=BE=B9=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release.md | 4 +- src/repo.scss | 96 ++++++++++++++++++++++++++++++++++++++-------- src/root.scss | 1 + 3 files changed, 84 insertions(+), 17 deletions(-) diff --git a/.github/release.md b/.github/release.md index 2c543f3..e65a881 100644 --- a/.github/release.md +++ b/.github/release.md @@ -1,2 +1,2 @@ -仓库代码页面顶部统计栏颜色(提交/分支/标签)类似 Github -编程语言精调同步 Github \ No newline at end of file +精调仓库代码页面侧边栏同步 Github +仓库代码页面顶部统计栏颜色(提交/分支/标签)类似 Github \ No newline at end of file diff --git a/src/repo.scss b/src/repo.scss index ca4edcd..47ddb86 100644 --- a/src/repo.scss +++ b/src/repo.scss @@ -188,24 +188,90 @@ } } -// 编程语言 -.language-stats { - height: 8px; - margin-bottom: 0px; -} +// 仓库代码页面侧边栏 +.page-content.repository { + .repo-home-sidebar-top { + a.muted:hover { + text-decoration: none; + } -.language-stats-details .item { - font-size: 12px; - margin-right: 16px; + .flex-item { + .flex-item-body { + padding: 8px 0; - .color-icon { - height: 8px; - width: 8px; - margin-right: 8px; + .repo-description { + color: #f0f6fc; + } + + #repo-topics { + margin: 8px 0px !important; + + .repo-topic.ui.label { + font-size: 12px; + padding: 5px 10px; + margin: 0px 1.5px 3.5px 0px; + } + } + + .flex-text-block { + font-size: 14px; + } + } + } } - .tw-font-semibold { - color: #f0f6fc; - margin-right: 2px; + .repo-home-sidebar-bottom { + a.muted:hover { + text-decoration: none; + } + + .flex-item { + padding: 16px 0; + + .flex-item { + padding: 16px 0 0 0; + + .flex-item-icon { + svg.svg.octicon-tag { + color: #3fb950; + } + } + + .flex-item-header .flex-item-title { + font-size: 14px; + } + } + + .flex-item-title .ui.small.label { + background: var(--color-label-bg); + color: var(--color-label-text); + } + + .flex-item-body { + font-size: 12px; + } + } + + // 编程语言 + .language-stats { + height: 8px; + margin-bottom: 0px; + } + + .language-stats-details .item { + font-size: 12px; + margin-right: 16px; + + .color-icon { + height: 8px; + width: 8px; + margin-right: 8px; + } + + .tw-font-semibold { + color: #f0f6fc; + margin-right: 2px; + } + } } } diff --git a/src/root.scss b/src/root.scss index 7e8709a..f402c8a 100644 --- a/src/root.scss +++ b/src/root.scss @@ -20,6 +20,7 @@ :root { --is-dark-theme: true; --border-radius: 6px; + --font-weight-semibold: bold; --color-primary: var(--color-blue); --color-primary-contrast: #fff; --color-primary-dark-1: #739cb3;