Skip to content

Commit 5c80ecc

Browse files
CL-Jeremyzeripath
andauthored
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 <[email protected]>
1 parent 6ca667d commit 5c80ecc

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: #00000006;
100+
--color-light-mimic-enabled: rgba(0, 0, 0, calc(6 / 255 * 222 / 255 / var(--opacity-disabled)));
100101
--color-light-border: #0000001d;
101102
--color-hover: #0000000f;
102103
--color-active: #00000014;

web_src/less/_repository.less

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2932,8 +2932,23 @@ tbody.commit-list {
29322932
align-items: center;
29332933
}
29342934

2935+
.repo-buttons .ui.labeled.button > .label:hover {
2936+
color: var(--color-primary-light-2);
2937+
background: var(--color-light);
2938+
}
2939+
2940+
.label-mimic-enabled() {
2941+
color: var(--color-text-dark);
2942+
background: var(--color-light-mimic-enabled) !important;
2943+
2944+
&:hover {
2945+
color: var(--color-primary-dark-1);
2946+
}
2947+
}
2948+
29352949
.repo-buttons button[disabled] ~ .label {
29362950
opacity: var(--opacity-disabled);
2951+
.label-mimic-enabled();
29372952
}
29382953

29392954
.repo-buttons .ui.labeled.button {
@@ -2947,6 +2962,10 @@ tbody.commit-list {
29472962
&.disabled {
29482963
pointer-events: inherit !important;
29492964

2965+
> .label {
2966+
.label-mimic-enabled();
2967+
}
2968+
29502969
> .button {
29512970
pointer-events: none !important;
29522971
}

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-mimic-enabled: rgba(0, 0, 0, calc(40 / 255 * 222 / 255 / var(--opacity-disabled)));
9596
--color-light-border: #ffffff28;
9697
--color-hover: #ffffff10;
9798
--color-active: #ffffff16;

0 commit comments

Comments
 (0)