aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/css/repo.css
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-09-03 10:58:52 +0800
committerGitHub <noreply@github.com>2023-09-03 02:58:52 +0000
commitfba7150ca9decee3e9c9fcd8ddeeef939231f8ec (patch)
treef330f27c3cc914d23a5b5cbadb9088b6bbe5bda9 /web_src/css/repo.css
parentf1fe102c8c9146f8cb997779a4e802691cd1d366 (diff)
downloadgitea-fba7150ca9decee3e9c9fcd8ddeeef939231f8ec.tar.gz
gitea-fba7150ca9decee3e9c9fcd8ddeeef939231f8ec.zip
Refactor "shortsha" (#26877)
The old code used complex `if` blocks and strange HTML layouts. <details> ![image](https://github.com/go-gitea/gitea/assets/2114189/7fbee2b8-d150-4e6b-b67e-83400fa290eb) </details> This PR refactors the template code and remove legacy CSS styles. The UI doesn't change much. ![image](https://github.com/go-gitea/gitea/assets/2114189/3e195df9-0ab5-4182-bcb2-bb20cad823f2) ![image](https://github.com/go-gitea/gitea/assets/2114189/f707a49f-be41-4dfe-871f-2869f2230380)
Diffstat (limited to 'web_src/css/repo.css')
-rw-r--r--web_src/css/repo.css63
1 files changed, 0 insertions, 63 deletions
diff --git a/web_src/css/repo.css b/web_src/css/repo.css
index 94745ff4f5..cbf9fac76b 100644
--- a/web_src/css/repo.css
+++ b/web_src/css/repo.css
@@ -245,15 +245,9 @@
}
.repository.file.list #repo-files-table thead th {
- padding-top: 8px;
- padding-bottom: 5px;
font-weight: var(--font-weight-normal);
}
-.repository.file.list #repo-files-table thead .ui.avatar {
- margin-bottom: 5px;
-}
-
.repository.file.list #repo-files-table tbody .svg {
margin-left: 3px;
margin-right: 5px;
@@ -891,11 +885,6 @@
background: var(--color-red-badge-bg);
}
-.repository.view.issue .comment-list .timeline-item.commits-list .singular-commit .shabox .sha.label.isSigned.isWarning .shortsha {
- display: inline-block;
- padding-top: 1px;
-}
-
.repository.view.issue .comment-list .timeline-item.commits-list .singular-commit .shabox .sha.label.isSigned.isWarning:hover {
background: var(--color-red-badge-hover-bg) !important;
}
@@ -905,11 +894,6 @@
background: var(--color-green-badge-bg);
}
-.repository.view.issue .comment-list .timeline-item.commits-list .singular-commit .shabox .sha.label.isSigned.isVerified .shortsha {
- display: inline-block;
- padding-top: 1px;
-}
-
.repository.view.issue .comment-list .timeline-item.commits-list .singular-commit .shabox .sha.label.isSigned.isVerified:hover {
background: var(--color-green-badge-hover-bg) !important;
}
@@ -919,11 +903,6 @@
background: var(--color-yellow-badge-bg);
}
-.repository.view.issue .comment-list .timeline-item.commits-list .singular-commit .shabox .sha.label.isSigned.isVerifiedUntrusted .shortsha {
- display: inline-block;
- padding-top: 1px;
-}
-
.repository.view.issue .comment-list .timeline-item.commits-list .singular-commit .shabox .sha.label.isSigned.isVerifiedUntrusted:hover {
background: var(--color-yellow-badge-hover-bg) !important;
}
@@ -933,11 +912,6 @@
background: var(--color-orange-badge-bg);
}
-.repository.view.issue .comment-list .timeline-item.commits-list .singular-commit .shabox .sha.label.isSigned.isVerifiedUnmatched .shortsha {
- display: inline-block;
- padding-top: 1px;
-}
-
.repository.view.issue .comment-list .timeline-item.commits-list .singular-commit .shabox .sha.label.isSigned.isVerifiedUnmatched:hover {
background: var(--color-orange-badge-hover-bg) !important;
}
@@ -1387,14 +1361,6 @@
background: var(--color-red-badge-bg);
}
-.repository #commits-table td.sha .sha.label.isSigned.isWarning .shortsha,
-.repository #repo-files-table .sha.label.isSigned.isWarning .shortsha,
-.repository #rev-list .sha.label.isSigned.isWarning .shortsha,
-.repository .timeline-item.commits-list .singular-commit .sha.label.isSigned.isWarning .shortsha {
- display: inline-block;
- padding-top: 1px;
-}
-
.repository #commits-table td.sha .sha.label.isSigned.isWarning .detail.icon,
.repository #repo-files-table .sha.label.isSigned.isWarning .detail.icon,
.repository #rev-list .sha.label.isSigned.isWarning .detail.icon,
@@ -1418,14 +1384,6 @@
background: var(--color-green-badge-bg);
}
-.repository #commits-table td.sha .sha.label.isSigned.isVerified .shortsha,
-.repository #repo-files-table .sha.label.isSigned.isVerified .shortsha,
-.repository #rev-list .sha.label.isSigned.isVerified .shortsha,
-.repository .timeline-item.commits-list .singular-commit .sha.label.isSigned.isVerified .shortsha {
- display: inline-block;
- padding-top: 1px;
-}
-
.repository #commits-table td.sha .sha.label.isSigned.isVerified .detail.icon,
.repository #repo-files-table .sha.label.isSigned.isVerified .detail.icon,
.repository #rev-list .sha.label.isSigned.isVerified .detail.icon,
@@ -1449,14 +1407,6 @@
background: var(--color-yellow-badge-bg);
}
-.repository #commits-table td.sha .sha.label.isSigned.isVerifiedUntrusted .shortsha,
-.repository #repo-files-table .sha.label.isSigned.isVerifiedUntrusted .shortsha,
-.repository #rev-list .sha.label.isSigned.isVerifiedUntrusted .shortsha,
-.repository .timeline-item.commits-list .singular-commit .sha.label.isSigned.isVerifiedUntrusted .shortsha {
- display: inline-block;
- padding-top: 1px;
-}
-
.repository #commits-table td.sha .sha.label.isSigned.isVerifiedUntrusted .detail.icon,
.repository #repo-files-table .sha.label.isSigned.isVerifiedUntrusted .detail.icon,
.repository #rev-list .sha.label.isSigned.isVerifiedUntrusted .detail.icon,
@@ -1480,14 +1430,6 @@
background: var(--color-orange-badge-bg);
}
-.repository #commits-table td.sha .sha.label.isSigned.isVerifiedUnmatched .shortsha,
-.repository #repo-files-table .sha.label.isSigned.isVerifiedUnmatched .shortsha,
-.repository #rev-list .sha.label.isSigned.isVerifiedUnmatched .shortsha,
-.repository .timeline-item.commits-list .singular-commit .sha.label.isSigned.isVerifiedUnmatched .shortsha {
- display: inline-block;
- padding-top: 1px;
-}
-
.repository #commits-table td.sha .sha.label.isSigned.isVerifiedUnmatched .detail.icon,
.repository #repo-files-table .sha.label.isSigned.isVerifiedUnmatched .detail.icon,
.repository #rev-list .sha.label.isSigned.isVerifiedUnmatched .detail.icon,
@@ -2691,11 +2633,6 @@ tbody.commit-list {
line-height: initial;
}
-/* commit history list */
-.repository:not(.diff) .commit-body {
- margin: 0;
-}
-
/* PR-comment */
.repository:not(.diff) .timeline-item .commit-body {
margin-left: 40px;