0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-04 22:57:34 -04:00

remove unnecessary styles

This commit is contained in:
wxiaoguang 2025-04-16 08:31:08 +08:00
parent 5d7274270d
commit f278b7d282
2 changed files with 1 additions and 47 deletions

View File

@ -38,7 +38,7 @@
</div>
</div>
{{if not (or .IsBeingCreated .IsBroken)}}
<div class="flex-text-block repo-buttons">
<div class="flex-text-block tw-flex-wrap">
{{if $.RepoTransfer}}
<form method="post" action="{{$.RepoLink}}/action/accept_transfer?redirect_to={{$.RepoLink}}">
{{$.CsrfTokenHtml}}

View File

@ -27,49 +27,3 @@
.repo-header .flex-item-trailing {
flex-wrap: nowrap;
}
.repo-buttons {
flex-flow: row wrap;
word-break: keep-all;
}
.repo-buttons button {
/* ensure that text-btn and svg-text-btn have consistent height. */
line-height: 16px !important;
}
.repo-buttons button[disabled] ~ .label {
opacity: var(--opacity-disabled);
color: var(--color-text-dark);
background: var(--color-light-mimic-enabled) !important;
}
.repo-buttons button[disabled] ~ .label:hover {
color: var(--color-primary-dark-1);
}
.repo-buttons .ui.labeled.button.disabled {
pointer-events: inherit !important;
}
.repo-buttons .ui.labeled.button.disabled > .label {
color: var(--color-text-dark);
background: var(--color-light-mimic-enabled) !important;
}
.repo-buttons .ui.labeled.button.disabled > .label:hover {
color: var(--color-primary-dark-1);
}
.repo-buttons .ui.labeled.button.disabled > .button {
pointer-events: none !important;
}
@media (max-width: 767.98px) {
.repo-buttons .ui.button,
.repo-buttons .ui.label {
padding-left: 8px;
padding-right: 8px;
margin: 0;
}
}