From 2edfab194d2759c1f8da738b2a840526060901c0 Mon Sep 17 00:00:00 2001 From: HesterG Date: Tue, 4 Apr 2023 11:51:04 +0800 Subject: [PATCH 1/3] add back important --- web_src/css/base.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web_src/css/base.css b/web_src/css/base.css index ac3c5278fc953..169d11c3a2769 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -2383,9 +2383,9 @@ a.ui.label:hover { .ui.basic.labels .primary.label, .ui.ui.ui.basic.primary.label { - background: transparent; - border-color: var(--color-primary); - color: var(--color-primary); + background: transparent !important; + border-color: var(--color-primary) !important; + color: var(--color-primary) !important; } .ui.basic.labels .secondary.label, From a806ea3240496818bb97db6ceee72394449b8ec7 Mon Sep 17 00:00:00 2001 From: HesterG Date: Tue, 4 Apr 2023 13:44:55 +0800 Subject: [PATCH 2/3] add comment and remove unnecessary important --- web_src/css/base.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web_src/css/base.css b/web_src/css/base.css index 169d11c3a2769..b631685e2a03e 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -2383,9 +2383,9 @@ a.ui.label:hover { .ui.basic.labels .primary.label, .ui.ui.ui.basic.primary.label { - background: transparent !important; - border-color: var(--color-primary) !important; - color: var(--color-primary) !important; + background: transparent !important; /* reset background of the ".ui.primary.label", for branch protection labels in repository settings */ + border-color: var(--color-primary) !important; /* reset border-color of the ".ui.primary.label", for branch protection labels in repository settings */ + color: var(--color-primary); } .ui.basic.labels .secondary.label, From 3d97a428ffe3ec5438b3ad309c0164b55f2f44f6 Mon Sep 17 00:00:00 2001 From: HesterG Date: Tue, 4 Apr 2023 18:35:29 +0800 Subject: [PATCH 3/3] remove important on .ui.primary.label and add one more rule --- web_src/css/base.css | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/web_src/css/base.css b/web_src/css/base.css index b631685e2a03e..a0edd8fec8670 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -2376,15 +2376,16 @@ 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, .ui.ui.ui.basic.primary.label { - background: transparent !important; /* reset background of the ".ui.primary.label", for branch protection labels in repository settings */ - border-color: var(--color-primary) !important; /* reset border-color of the ".ui.primary.label", for branch protection labels in repository settings */ + background: transparent; + border-color: var(--color-primary); color: var(--color-primary); }