Skip to content

Commit e72184f

Browse files
committed
Counterwork adverse effect of go-gitea#14926
1 parent d05539e commit e72184f

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

web_src/less/_base.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
--color-input-border-hover: #cecece;
9898
--color-navbar: #f8f8f8;
9999
--color-light: #00000004;
100+
--color-light-undo-disabling: rgba(0, 0, 0, calc(4 / 255 * 222 / 255 / var(--opacity-disabled)));
100101
--color-light-border: #0000001d;
101102
--color-hover: #0000000d;
102103
--color-active: #00000012;

web_src/less/_repository.less

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2864,8 +2864,23 @@ tbody.commit-list {
28642864
align-items: center;
28652865
}
28662866

2867+
.repo-buttons .ui.labeled.button > .label:hover {
2868+
color: var(--color-primary-light-2);
2869+
background: var(--color-light);
2870+
}
2871+
2872+
.label-mimic-enabled() {
2873+
color: var(--color-text-dark);
2874+
background: var(--color-light-undo-disabling) !important;
2875+
2876+
&:hover {
2877+
color: var(--color-primary-dark-1);
2878+
}
2879+
}
2880+
28672881
.repo-buttons button[disabled] ~ .label {
28682882
opacity: var(--opacity-disabled);
2883+
.label-mimic-enabled();
28692884
}
28702885

28712886
.repo-buttons .ui.labeled.button {
@@ -2879,6 +2894,10 @@ tbody.commit-list {
28792894
&.disabled {
28802895
pointer-events: inherit !important;
28812896

2897+
> .label {
2898+
.label-mimic-enabled();
2899+
}
2900+
28822901
> .button {
28832902
pointer-events: none !important;
28842903
}

web_src/less/themes/theme-arc-green.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
--color-input-border-hover: #505667;
9393
--color-navbar: #2a2e3a;
9494
--color-light: #00000028;
95+
--color-light-undo-disabling: rgba(0, 0, 0, calc(40 / 255 * 222 / 255 / var(--opacity-disabled)));
9596
--color-light-border: #ffffff28;
9697
--color-hover: #60606020;
9798
--color-active: #60606040;

0 commit comments

Comments
 (0)