mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-03 03:23:25 +09:00
chore: remove dead CSS rules (#39188)
This commit is contained in:
+3
-135
@@ -163,14 +163,6 @@ td .commit-summary {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.non-diff-file-content .header .small.icon {
|
||||
font-size: 0.75em;
|
||||
}
|
||||
|
||||
.non-diff-file-content .header .tiny.icon {
|
||||
font-size: 0.5em;
|
||||
}
|
||||
|
||||
.non-diff-file-content .header .file-actions .btn-octicon {
|
||||
line-height: var(--line-height-default);
|
||||
padding: 8px;
|
||||
@@ -371,10 +363,6 @@ td .commit-summary {
|
||||
color: var(--color-text-light-2);
|
||||
}
|
||||
|
||||
.issue-title .label {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.issue-state-label {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
@@ -393,17 +381,6 @@ td .commit-summary {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.repository.view.issue .pull-desc a[data-clipboard-text] {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.repository.view.issue .pull-desc a[data-clipboard-text] svg {
|
||||
vertical-align: middle;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
right: 1px;
|
||||
}
|
||||
|
||||
.repository.view.issue .pull.tabs.container {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
@@ -593,14 +570,6 @@ td .commit-summary {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.repository.view.issue .comment-list .comment .ui.form .field .tab.markup {
|
||||
min-height: 5rem;
|
||||
}
|
||||
|
||||
.repository.view.issue .comment-list .comment .edit.buttons {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.repository.view.issue .comment-list .code-comment {
|
||||
border: 1px solid transparent;
|
||||
padding: 8px;
|
||||
@@ -787,20 +756,17 @@ td .commit-summary {
|
||||
}
|
||||
|
||||
.repository .data-table td.added,
|
||||
.repository .data-table th.added,
|
||||
.repository .data-table tr.added {
|
||||
.repository .data-table th.added {
|
||||
background-color: var(--color-diff-added-row-bg) !important;
|
||||
}
|
||||
|
||||
.repository .data-table td.removed,
|
||||
.repository .data-table th.removed,
|
||||
.repository .data-table tr.removed {
|
||||
.repository .data-table th.removed {
|
||||
background-color: var(--color-diff-removed-row-bg) !important;
|
||||
}
|
||||
|
||||
.repository .data-table td.moved,
|
||||
.repository .data-table th.moved,
|
||||
.repository .data-table tr.moved {
|
||||
.repository .data-table th.moved {
|
||||
background-color: var(--color-diff-moved-row-bg) !important;
|
||||
}
|
||||
|
||||
@@ -879,30 +845,6 @@ td .commit-summary {
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
.repository .diff-detail-box span.status {
|
||||
display: inline-block;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
margin-right: 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.repository .diff-detail-box span.status.modify {
|
||||
background-color: var(--color-yellow);
|
||||
}
|
||||
|
||||
.repository .diff-detail-box span.status.add {
|
||||
background-color: var(--color-green);
|
||||
}
|
||||
|
||||
.repository .diff-detail-box span.status.del {
|
||||
background-color: var(--color-red);
|
||||
}
|
||||
|
||||
.repository .diff-detail-box span.status.rename {
|
||||
background-color: var(--color-teal);
|
||||
}
|
||||
|
||||
.repository .diff-detail-box .ui.button {
|
||||
padding: 0 12px;
|
||||
height: 30px;
|
||||
@@ -921,11 +863,6 @@ td .commit-summary {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.repository .diff-file-box .file-body.file-code .lines-num span.fold {
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.repository .diff-file-box .code-diff td {
|
||||
padding: 0 0 0 10px !important;
|
||||
border-top: 0;
|
||||
@@ -944,10 +881,6 @@ td .commit-summary {
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.repository .diff-file-box .code-diff tbody tr td.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.repository .diff-file-box .code-diff tbody tr [data-line-num]::before {
|
||||
content: attr(data-line-num);
|
||||
text-align: right;
|
||||
@@ -1001,26 +934,6 @@ td .commit-summary {
|
||||
max-width: initial; /* remove fomantic over 100% width */
|
||||
}
|
||||
|
||||
.repository .diff-stats {
|
||||
clear: both;
|
||||
margin-bottom: 5px;
|
||||
max-height: 200px;
|
||||
height: fit-content;
|
||||
overflow: auto;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.repository .diff-stats li {
|
||||
list-style: none;
|
||||
padding-bottom: 4px;
|
||||
margin-bottom: 4px;
|
||||
padding-left: 6px;
|
||||
}
|
||||
|
||||
.repository .diff-stats li + li {
|
||||
border-top: 1px solid var(--color-secondary);
|
||||
}
|
||||
|
||||
.repository .repo-search-result {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
@@ -1030,14 +943,6 @@ td .commit-summary {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.repository.quickstart .guide .item {
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
.repository.quickstart .guide .item small {
|
||||
font-weight: var(--font-weight-normal);
|
||||
}
|
||||
|
||||
.repository .activity-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -1066,10 +971,6 @@ td .commit-summary {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.repository .ui.fluid.action.input .ui.search.action.input {
|
||||
flex: auto;
|
||||
}
|
||||
|
||||
.repository .repository-summary {
|
||||
box-shadow: none;
|
||||
}
|
||||
@@ -1377,30 +1278,6 @@ tbody.commit-list {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
tr.commit-list {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) and (max-width: 991.98px) {
|
||||
tr.commit-list {
|
||||
width: 723px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) and (max-width: 1200px) {
|
||||
tr.commit-list {
|
||||
width: 933px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1201px) {
|
||||
tr.commit-list {
|
||||
width: 1127px;
|
||||
}
|
||||
}
|
||||
|
||||
.commit-body {
|
||||
margin: 0.25em 0;
|
||||
white-space: pre-wrap;
|
||||
@@ -1822,15 +1699,6 @@ tbody.commit-list {
|
||||
}
|
||||
}
|
||||
|
||||
.commit-status-header {
|
||||
/* reset the default ".ui.attached.header" styles, to use the outer border */
|
||||
border: none !important;
|
||||
/* add a bottom border to make sure the there is always a divider between the header and list when the list is scrolling */
|
||||
border-bottom: 1px solid var(--color-secondary) !important;
|
||||
/* use negative margin to avoid the newly added border conflict with the list's top border */
|
||||
margin: 0 0 -1px !important;
|
||||
}
|
||||
|
||||
.commit-status-list {
|
||||
max-height: 240px; /* fit exactly 6 items, commit-status-item.height * 6 */
|
||||
overflow-x: hidden;
|
||||
|
||||
Reference in New Issue
Block a user