Compare commits

...

4 Commits

Author SHA1 Message Date
lutinglt
5a203804be 下拉菜单样式同步 Github 2024-12-27 12:30:21 +08:00
lutinglt
3489fc94c2 折叠项观测小优化 2024-12-27 00:16:28 +08:00
lutinglt
e9d2b62b0e 优化设置界面折叠项的显示效果 2024-12-26 17:13:36 +08:00
lutinglt
f357ee4181 修复仓库提交和Runner日志的一致性问题 2024-12-24 22:24:32 +08:00
9 changed files with 125 additions and 20 deletions

4
.github/release.md vendored
View File

@@ -1,3 +1 @@
提交查看页面增加了提交之间的间隔
隐藏仓库文件列表头部最后一次提交的 SHA
其他一些细节优化
下拉菜单样式同步 Github

View File

@@ -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 }}

View File

@@ -109,7 +109,7 @@
}
}
/* 关闭工单按钮 */
// 关闭工单按钮
.ui.red.basic.button#status-button {
color: #ab7df8;
border-color: var(--color-light-border);
@@ -121,7 +121,7 @@
}
}
/* 重新开启按钮 */
// 重新开启按钮
.ui.basic.primary.button#status-button {
color: #39d353;
background-color: var(--color-button);

View File

@@ -1,4 +1,25 @@
// Made by Luting ^-^
// 下拉菜单动画
@keyframes overlay-appear {
0% {
opacity: 0;
transform: translateY(-5%);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.ui.dropdown .menu {
margin-top: 3.75px !important;
border-radius: 12px !important;
overflow: hidden auto;
box-shadow: #30363d 0px 0px 0px 0.5px;
animation: 200ms cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running overlay-appear;
}
.ui.dropdown .menu,
.branch-tag-item.active,
.ui.pointing.dropdown > .menu:not(.hidden):after {
@@ -29,3 +50,18 @@
}
}
// 按钮菜单选项(主要为仓库)
.ui.button.dropdown .menu .item {
border-radius: var(--border-radius);
margin: 0 6px;
&:first-of-type {
border-radius: var(--border-radius);
margin-top: 6px;
}
&:last-of-type {
border-radius: var(--border-radius);
margin-bottom: 6px;
}
}

View File

@@ -17,10 +17,9 @@ textarea,
.ui.form input[type='time'],
.ui.form input[type='url'],
.ui.selection.dropdown {
&:focus {
border-color: #1f6feb;
}
&:focus,
&:focus-visible {
border-radius: var(--border-radius);
border-color: #1f6feb;
outline: none;
box-shadow: inset 0 0 0 1px #1f6feb;

View File

@@ -111,6 +111,32 @@ a.ui.ui.ui {
border-radius: 25px;
}
&.task-status-success {
color: var(--color-success-text);
border: 1px solid var(--color-success-border);
background: var(--color-success-bg);
}
&.task-status-failure {
color: var(--color-error-text);
border: 1px solid var(--color-error-border);
background: var(--color-error-bg);
}
&.task-status-running,
&.task-status-skipped {
color: var(--color-info-text);
border: 1px solid var(--color-info-border);
background: var(--color-info-bg);
}
&.task-status-cancelled,
&.task-status-blocked {
color: var(--color-warning-text);
border: 1px solid var(--color-warning-border);
background: var(--color-warning-bg);
}
> a {
opacity: 1;
}
@@ -138,11 +164,21 @@ a.ui.label:not(.basic, .sha):hover {
#rev-list,
.timeline-item.commits-list .singular-commit {
.sha.label {
.detail.icon,
&.isSigned.isVerified .detail.icon {
.detail.icon {
border: 0;
background: unset;
}
&.isSigned {
&.isWarning,
&.isVerified,
&.isVerifiedUntrusted,
&.isVerifiedUnmatched {
.detail.icon {
border: 0;
background: unset;
}
}
}
}
}
}

View File

@@ -1,6 +1,6 @@
// Made by Luting ^-^
/* 用户仓库列表字体颜色
/* 用户仓库列表字体颜色 */
/* .repo-list-link {
color: var(--color-blue) !important;
} */

View File

@@ -1,5 +1,17 @@
// 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 +42,37 @@
}
.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) {
> summary {
background: #161a21;
&:hover {
background: var(--color-hover);
}
}
&[open] {
> summary {
background: unset;
&:hover {
background: var(--color-hover);
}
}
&:after {
display: none;
}
}
&:after {
@extend %active-item-after-style;
}
}
}
}

View File

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