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,