From e9d2b62b0e339bd5c50af137dfabee4a60c5ea78 Mon Sep 17 00:00:00 2001 From: lutinglt Date: Thu, 26 Dec 2024 17:13:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=BE=E7=BD=AE=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E6=8A=98=E5=8F=A0=E9=A1=B9=E7=9A=84=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release.md | 5 +---- .github/workflows/release.yml | 2 +- src/setting.scss | 40 ++++++++++++++++++++++++++++------- src/transition.scss | 1 + 4 files changed, 35 insertions(+), 13 deletions(-) diff --git a/.github/release.md b/.github/release.md index cfd3aba..055f548 100644 --- a/.github/release.md +++ b/.github/release.md @@ -1,4 +1 @@ -Merry Christmas! - -修复仓库提交页面提交SHA的一致性问题 -修复后台设置里Runner运行日志的状态标签显示问题 \ No newline at end of file +优化设置界面折叠项的显示效果 \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa70902..51f26d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,6 @@ jobs: run: | export TZ=Asia/Shanghai TAG="v${{ inputs.gitea_version }}-$(date +%Y%m%d-%H%M)" - gh release create "$TAG" dist/theme-github.css --notes-file .github/release.md -t $TAG + gh release create "$TAG" dist/theme-github.css --notes-file .github/release.md --draft -t $TAG env: GH_TOKEN: ${{ github.token }} diff --git a/src/setting.scss b/src/setting.scss index 78bae3f..f2c8ca0 100644 --- a/src/setting.scss +++ b/src/setting.scss @@ -1,5 +1,18 @@ // Made by Luting ^-^ // 设置左边栏(包含 Actions 的工作流栏) + + +%active-item-after-style { + background: #1f6feb; + border-radius: 0.375rem; + content: ''; + height: 1.8rem; + left: calc(0.5rem * -1); + position: absolute; + top: calc(50% - 13px); + width: 0.25rem; +} + .ui.vertical.menu { background: var(--color-body); border: 0; @@ -30,14 +43,25 @@ } .active.item:after { - background: #1f6feb; - border-radius: 0.375rem; - content: ''; - height: 1.8rem; - left: calc(0.5rem * -1); - position: absolute; - top: calc(50% - 13px); - width: 0.25rem; + @extend %active-item-after-style; + } + + details { + &:has(.active.item) { + background: #161a21; + + &[open] { + background: unset; + + &:after { + display: none; + } + } + + &:after { + @extend %active-item-after-style; + } + } } } diff --git a/src/transition.scss b/src/transition.scss index 575636e..900c02b 100644 --- a/src/transition.scss +++ b/src/transition.scss @@ -4,6 +4,7 @@ textarea, tr, td, button, +details summary, #navbar .item, .header-wrapper .ui.tabular.menu .item, .job-step-summary,