优化设置界面折叠项的显示效果

This commit is contained in:
lutinglt
2024-12-26 17:13:36 +08:00
parent f357ee4181
commit e9d2b62b0e
4 changed files with 35 additions and 13 deletions

5
.github/release.md vendored
View File

@@ -1,4 +1 @@
Merry Christmas! 优化设置界面折叠项的显示效果
修复仓库提交页面提交SHA的一致性问题
修复后台设置里Runner运行日志的状态标签显示问题

View File

@@ -30,6 +30,6 @@ jobs:
run: | run: |
export TZ=Asia/Shanghai export TZ=Asia/Shanghai
TAG="v${{ inputs.gitea_version }}-$(date +%Y%m%d-%H%M)" 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: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}

View File

@@ -1,5 +1,18 @@
// Made by Luting ^-^ // Made by Luting ^-^
// 设置左边栏(包含 Actions 的工作流栏) // 设置左边栏(包含 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 { .ui.vertical.menu {
background: var(--color-body); background: var(--color-body);
border: 0; border: 0;
@@ -30,14 +43,25 @@
} }
.active.item:after { .active.item:after {
background: #1f6feb; @extend %active-item-after-style;
border-radius: 0.375rem; }
content: '';
height: 1.8rem; details {
left: calc(0.5rem * -1); &:has(.active.item) {
position: absolute; background: #161a21;
top: calc(50% - 13px);
width: 0.25rem; &[open] {
background: unset;
&:after {
display: none;
}
}
&:after {
@extend %active-item-after-style;
}
}
} }
} }

View File

@@ -4,6 +4,7 @@ textarea,
tr, tr,
td, td,
button, button,
details summary,
#navbar .item, #navbar .item,
.header-wrapper .ui.tabular.menu .item, .header-wrapper .ui.tabular.menu .item,
.job-step-summary, .job-step-summary,