From 7117355169c90011899cea0880eb7d084d0a7414 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 20 Apr 2023 23:28:55 -0400 Subject: [PATCH] Fix label color, fix divider in dropdown (#24215) (#24244) Backport #24215 by @silverwind Two small CSS fixes: 1. Fix basic primary label hover: Before: Screenshot 2023-04-19 at 20 00 32 After: Screenshot 2023-04-19 at 20 05 29 2. Fix border color of divider in dropdown and remove margin so it looks better with hover effect, as discussed in https://github.com/go-gitea/gitea/pull/24143: Screenshot 2023-04-19 at 20 03 24 Screenshot 2023-04-19 at 20 03 55 Co-authored-by: silverwind --- web_src/css/base.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web_src/css/base.css b/web_src/css/base.css index a7853a704b6c..ef2cf9ed4012 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -2396,6 +2396,13 @@ a.ui.label:hover { color: var(--color-primary); } +.ui.basic.labels a.primary.label:hover, +a.ui.ui.ui.basic.primary.label:hover { + background: var(--color-hover); + border-color: var(--color-primary-dark-1); + color: var(--color-primary-dark-1); +} + .ui.basic.labels .secondary.label, .ui.ui.ui.basic.secondary.label { background: transparent; @@ -2657,6 +2664,11 @@ table th[data-sortt-desc] .svg { border-radius: 0 0 var(--border-radius) var(--border-radius); } +.ui.dropdown .menu > .divider { + border-top: 1px solid var(--color-secondary); + margin: 4px 0; +} + .ui.multiple.dropdown > .label { box-shadow: 0 0 0 1px var(--color-secondary) inset; }