]> source.dussan.org Git - gitea.git/commitdiff
Show protected branch rule names again (#23907) (#24018)
authorGiteabot <teabot@gitea.io>
Sun, 9 Apr 2023 12:06:16 +0000 (08:06 -0400)
committerGitHub <noreply@github.com>
Sun, 9 Apr 2023 12:06:16 +0000 (14:06 +0200)
Backport #23907 by @HesterG

`!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: Hester Gong <hestergong@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
web_src/css/base.css

index 343ffff82e547bd83a4e652b35c3c59ec729b14d..51b2929c7cb19b150284d438973734d011e387b7 100644 (file)
@@ -2384,9 +2384,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,