微调仓库提交页面

This commit is contained in:
鲁汀
2024-12-16 12:57:53 +08:00
committed by GitHub
parent 00f9b233b9
commit b1e094e719

View File

@@ -554,9 +554,9 @@
--color-red-badge: #db2828;
--color-red-badge-bg: #db28281a;
--color-red-badge-hover-bg: #db28284d;
--color-green-badge: #3fb950;
--color-green-badge: #39d353;
--color-green-badge-bg: #12261e;
--color-green-badge-hover-bg: #238636;
--color-green-badge-hover-bg: #153d22;
--color-yellow-badge: #fbbd08;
--color-yellow-badge-bg: #fbbd081a;
--color-yellow-badge-hover-bg: #fbbd084d;
@@ -1128,6 +1128,32 @@ a.ui.ui.ui.basic.primary.label:hover {
.ui.label.sha {
color: #919894;
background-color: var(--color-box-header);
border: 0 !important;
}
.repository #commits-table .commit-list .ui.label.sha {
line-height: 18px;
margin-top: 0.375rem;
margin-bottom: 0.375rem;
margin-left: -2px;
}
.ui.label.sha:hover {
background-color: var(--color-hover);
}
.repository #commits-table td.sha .sha.label.isSigned.isVerified .detail.icon,
.repository #repo-files-table .sha.label.isSigned.isVerified .detail.icon,
.repository #repo-file-commit-box .sha.label.isSigned.isVerified .detail.icon,
.repository #rev-list .sha.label.isSigned.isVerified .detail.icon,
.repository .timeline-item.commits-list .singular-commit .sha.label.isSigned.isVerified .detail.icon,
.repository #commits-table td.sha .sha.label .detail.icon,
.repository #repo-files-table .sha.label .detail.icon,
.repository #repo-file-commit-box .sha.label .detail.icon,
.repository #rev-list .sha.label .detail.icon,
.repository .timeline-item.commits-list .singular-commit .sha.label .detail.icon {
border: 0;
background: unset;
}
.ui.label:not(.basic, .sha) {
@@ -1218,6 +1244,11 @@ a.ui.label:not(.basic, .sha):hover {
background-color: var(--color-nav-bg) !important;
}
/* 修复关注&派生 hover 意外点亮右侧 label 左边框 */
.ui.ui.ui.ui.small.button {
z-index: 0;
}
/* 仓库页面头部名称 */
.page-content.repository .repo-header img.ui.avatar {
height: 32px;
@@ -1305,7 +1336,7 @@ a.ui.label:not(.basic, .sha):hover {
border-radius: 25px;
margin-top: -1px;
margin-left: 1px;
margin-right: 12px !important;
margin-right: 8px !important;
}
.page-content.repository .commit-list .latest-commit .author-wrapper {
@@ -1320,12 +1351,14 @@ a.ui.label:not(.basic, .sha):hover {
display: none;
}
.page-content.repository .tw-flex .tw-align-middle:not(img),
.page-content.repository .commit-list .tw-align-middle:not(img) {
padding: 6px;
border-radius: var(--border-radius);
margin-right: 6px;
}
.page-content.repository .tw-flex .tw-align-middle:not(img):hover,
.page-content.repository .commit-list .tw-align-middle:not(img):hover {
background-color: var(--color-hover);
}
@@ -1340,6 +1373,7 @@ a.ui.label:not(.basic, .sha):hover {
.repository #commits-table .author img {
border-radius: 25px;
margin-right: 8px !important;
}
.repository #commits-table .text.right.aligned {