Compare commits

...

13 Commits

Author SHA1 Message Date
lutinglt
fe7cb17617 release 2025-01-12 18:14:00 +08:00
lutinglt
5280962bc4 release 2025-01-12 17:49:13 +08:00
lutinglt
915d139d86 修复工作流作业选中效果 2025-01-12 14:14:11 +08:00
lutinglt
d12dba2373 调整工作流步骤状态标签颜色和间隔 2025-01-12 10:44:53 +08:00
lutinglt
63b2f3fa7b 修复分支菜单按钮溢出 2025-01-11 20:17:11 +08:00
lutinglt
1078e4e73a 版本发布整体调整 2025-01-11 19:53:27 +08:00
lutinglt
2c03bd213a 分支及分支菜单按钮优化 2025-01-11 18:39:06 +08:00
lutinglt
7c81b764db 调整发布页左侧栏 2025-01-11 14:05:58 +08:00
lutinglt
596af871ce 微调侧边栏间隔 2025-01-11 13:14:01 +08:00
lutinglt
121b49d43d 微调标签图标和代码页侧边栏图标与文字的距离 2025-01-11 11:43:00 +08:00
lutinglt
cfaef6de31 禁用工作流标签优化 2025-01-11 10:54:59 +08:00
lutinglt
38c3d8f4bf update 2025-01-11 00:17:02 +08:00
lutinglt
608b8d5e2e update 2025-01-11 00:12:48 +08:00
10 changed files with 195 additions and 57 deletions

21
.github/release.md vendored
View File

@@ -1,2 +1,19 @@
精调仓库代码页面侧边栏同步 Github
仓库代码页面顶部统计栏颜色(提交/分支/标签)类似 Github
## 🌈 Style
#### 更符合 GitHub 风格
- 微调侧边栏元素的间隔
- 版本发布整体调整
- 仓库分支下拉菜单优化
- 调整工作流步骤状态图标颜色和间隔
- 工作流禁用标签颜色和位置优化
- 版本发布页长标签不再使用动态宽度显示全部内容, 使用固定宽度, 过长内容使用省略号替代
## 🎈 Perf
- 手动工作流分支按钮优化 `布局类似代码页的分支按钮`
- 下拉菜单按钮优化 `观感更居中`
## 🐞 Fix
- 修复工作流选中作业鼠标停留时缺失的效果

View File

@@ -58,8 +58,6 @@ THEMES = gitea-dark, github
![Action](screenshots/action.png)
![Action Step](screenshots/step.png)
![Dispatch](screenshots/dispatch.png)
## 构建

Binary file not shown.

Before

Width:  |  Height:  |  Size: 433 KiB

After

Width:  |  Height:  |  Size: 296 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 470 KiB

After

Width:  |  Height:  |  Size: 211 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

View File

@@ -1,6 +1,70 @@
// Made by Luting ^-^
// 工作流禁用标签
.ui.vertical.menu .item > .ui.red.label {
color: var(--color-error-text);
border: 1px solid var(--color-error-border);
background: var(--color-error-bg);
margin-top: 0.5px;
}
// 手动工作流下拉列表
#runWorkflowDispatchForm {
// 分支选择按钮
.ui.dropdown.button.branch-selector-dropdown {
padding: 8px 24px 8px 8px;
svg.octicon-git-branch {
margin-right: 6px;
}
}
}
.action-view-left {
.job-brief-item {
position: relative;
border-radius: 0.5rem !important;
margin-left: 0.5rem;
&.selected {
background-color: #161a21;
&:hover {
background-color: var(--color-hover);
}
&:after {
overflow: visible;
background: #1f6feb;
border-radius: 0.375rem;
content: '';
height: 1.8rem;
left: -0.5rem;
position: absolute;
top: calc(50% - 13px);
width: 0.25rem;
}
}
}
}
.action-view-right {
.job-step-container {
.job-step-summary {
color: var(--color-console-fg-subtle);
.tw-mr-2:not(.svg) svg.svg {
margin: 2px 6px 0px 2px;
}
svg.svg.text.green {
color: #9198a1 !important;
}
&.selected {
svg.svg.text.green {
color: #f0f6fc !important;
}
}
}
.job-log-line {
@@ -10,28 +74,5 @@
color: #fff;
}
}
.job-brief-item {
position: relative;
border-radius: 0.5rem !important;
&:hover {
background-color: var(--color-hover) !important;
}
&.selected {
background-color: #161a21 !important;
&:after {
overflow: visible;
background: #1f6feb;
border-radius: 0.375rem;
content: '';
height: 1.8rem;
left: calc(0rem * -1);
position: absolute;
top: calc(50% - 13px);
width: 0.25rem;
}
}
}

View File

@@ -111,6 +111,8 @@
.ui.dropdown > .visible.menu .scrolling.menu,
.ui.button.dropdown .menu {
.item {
display: flex;
align-items: center;
border-radius: var(--border-radius);
margin: 0 8px;
@@ -126,8 +128,20 @@
}
}
.ui.dropdown.branch-selector-dropdown > .visible.menu {
// 仓库分支列表下查看操作按钮
> .item {
display: flex;
align-items: center;
border-radius: var(--border-radius);
margin: 8px;
padding: 6px 8px !important;
}
.scrolling.menu .item {
padding: 6px 16px !important;
// 分支菜单下划线
.ui.dropdown > .visible.menu .scrolling.menu .item {
&:before {
content: ' ';
display: block;
@@ -154,4 +168,11 @@
border-color: transparent;
}
}
.ui.label {
margin-top: 1px;
margin-left: auto;
margin-right: 0;
}
}
}

View File

@@ -1,7 +1,50 @@
// Made by Luting ^-^
.page-content.repository.releases {
#release-list .release-entry {
.meta {
gap: 2px;
padding-top: 24px;
padding-right: 40px;
text-align: left;
min-width: 0;
flex: 0.125;
a.muted {
color: #9198a1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
svg {
margin-right: 8px !important;
}
svg.tw-mr-1.svg.octicon-tag {
color: #3fb950;
margin-top: 1px;
}
}
.js-branch-tag-selector {
margin-top: 8px;
}
}
.segment.detail {
p.text.grey {
margin: 16px 0;
}
.markup {
> *:first-child {
margin-top: 16px !important;
}
> *:last-child {
margin-bottom: 16px !important;
}
}
}
}
.ui.small.primary.button {

View File

@@ -196,6 +196,9 @@
}
.flex-item {
.flex-item-title {
margin-top: 2px;
}
.flex-item-body {
padding: 8px 0;
@@ -204,7 +207,7 @@
}
#repo-topics {
margin: 8px 0px !important;
margin: 10px 0px !important;
.repo-topic.ui.label {
font-size: 12px;
@@ -215,6 +218,21 @@
.flex-text-block {
font-size: 14px;
font-weight: 600;
margin-top: 10px;
&.muted {
margin-top: 2px;
font-weight: normal;
}
svg.svg {
margin-right: 4px;
&.octicon-database{
margin-right: 6px;
}
}
}
}
}
@@ -234,6 +252,7 @@
.flex-item-icon {
svg.svg.octicon-tag {
color: #3fb950;
margin-top: 3px;
}
}

View File

@@ -20,7 +20,6 @@
: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;