mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Counterwork seemingly unclickable repo button labels (#15064)
As title, the change counter-works the effect from #14926 that links seem unclickable (especially in the default gitea theme), while maintaining some sort of visual harmony. Co-authored-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
@@ -2932,8 +2932,23 @@ tbody.commit-list {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.repo-buttons .ui.labeled.button > .label:hover {
|
||||
color: var(--color-primary-light-2);
|
||||
background: var(--color-light);
|
||||
}
|
||||
|
||||
.label-mimic-enabled() {
|
||||
color: var(--color-text-dark);
|
||||
background: var(--color-light-mimic-enabled) !important;
|
||||
|
||||
&:hover {
|
||||
color: var(--color-primary-dark-1);
|
||||
}
|
||||
}
|
||||
|
||||
.repo-buttons button[disabled] ~ .label {
|
||||
opacity: var(--opacity-disabled);
|
||||
.label-mimic-enabled();
|
||||
}
|
||||
|
||||
.repo-buttons .ui.labeled.button {
|
||||
@@ -2947,6 +2962,10 @@ tbody.commit-list {
|
||||
&.disabled {
|
||||
pointer-events: inherit !important;
|
||||
|
||||
> .label {
|
||||
.label-mimic-enabled();
|
||||
}
|
||||
|
||||
> .button {
|
||||
pointer-events: none !important;
|
||||
}
|
||||
|
Reference in New Issue
Block a user