summaryrefslogtreecommitdiffstats
path: root/web_src/css
diff options
context:
space:
mode:
authorHester Gong <hestergong@gmail.com>2023-04-09 18:15:43 +0800
committerGitHub <noreply@github.com>2023-04-09 06:15:43 -0400
commita519aac6d5e55b2ad5c740e2fb95d70f5935f51e (patch)
treeb399e4fb11b643096bdcfea4bad7f357db442ba8 /web_src/css
parent42e009fa1146894f5cb0b89e11a139ef5c982add (diff)
downloadgitea-a519aac6d5e55b2ad5c740e2fb95d70f5935f51e.tar.gz
gitea-a519aac6d5e55b2ad5c740e2fb95d70f5935f51e.zip
Show protected branch rule names again (#23907)
`!important`s for one of the primary label selectors are removed by #23774, so the repository branch protection settings ui will not have the demanding css. This PR modifies `.ui.primary.label` to fix it. Before: <img width="1408" alt="飞书20230404-115410" src="https://user-images.githubusercontent.com/17645053/229683221-ef9c7d5c-68a8-42b0-ba19-ef2d5dfce5f9.png"> After: <img width="1419" alt="截屏2023-04-04 11 56 32" src="https://user-images.githubusercontent.com/17645053/229683469-70cfc92d-d7ef-4323-a7f5-2247810fabce.png"> --------- Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'web_src/css')
-rw-r--r--web_src/css/base.css7
1 files changed, 4 insertions, 3 deletions
diff --git a/web_src/css/base.css b/web_src/css/base.css
index 3aee90e0c9..c48a36c854 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -2368,9 +2368,10 @@ a.ui.label:hover {
}
.ui.primary.label,
-.ui.primary.labels .label {
- background-color: var(--color-primary) !important;
- border-color: var(--color-primary-dark-2) !important;
+.ui.primary.labels .label,
+.ui.ui.ui.primary.label {
+ background-color: var(--color-primary);
+ border-color: var(--color-primary-dark-2);
}
.ui.basic.labels .primary.label,