Skip to content

Commit

Permalink
Counterwork adverse effect of go-gitea#14926
Browse files Browse the repository at this point in the history
  • Loading branch information
CL-Jeremy committed Mar 20, 2021
1 parent d05539e commit e72184f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions web_src/less/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
--color-input-border-hover: #cecece;
--color-navbar: #f8f8f8;
--color-light: #00000004;
--color-light-undo-disabling: rgba(0, 0, 0, calc(4 / 255 * 222 / 255 / var(--opacity-disabled)));
--color-light-border: #0000001d;
--color-hover: #0000000d;
--color-active: #00000012;
Expand Down
19 changes: 19 additions & 0 deletions web_src/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -2864,8 +2864,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-undo-disabling) !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 {
Expand All @@ -2879,6 +2894,10 @@ tbody.commit-list {
&.disabled {
pointer-events: inherit !important;

> .label {
.label-mimic-enabled();
}

> .button {
pointer-events: none !important;
}
Expand Down
1 change: 1 addition & 0 deletions web_src/less/themes/theme-arc-green.less
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
--color-input-border-hover: #505667;
--color-navbar: #2a2e3a;
--color-light: #00000028;
--color-light-undo-disabling: rgba(0, 0, 0, calc(40 / 255 * 222 / 255 / var(--opacity-disabled)));
--color-light-border: #ffffff28;
--color-hover: #60606020;
--color-active: #60606040;
Expand Down

0 comments on commit e72184f

Please sign in to comment.