Skip to content

Commit 7117355

Browse files
GiteaBotsilverwind
andauthored
Fix label color, fix divider in dropdown (#24215) (#24244)
Backport #24215 by @silverwind Two small CSS fixes: 1. Fix basic primary label hover: Before: <img width="172" alt="Screenshot 2023-04-19 at 20 00 32" src="https://user-images.githubusercontent.com/115237/233161903-eec2de54-1a58-44ac-a6ef-2d77157317f6.png"> After: <img width="179" alt="Screenshot 2023-04-19 at 20 05 29" src="https://user-images.githubusercontent.com/115237/233162028-995404ac-5852-4d03-821f-6eb4a918a9e3.png"> 2. Fix border color of divider in dropdown and remove margin so it looks better with hover effect, as discussed in #24143: <img width="205" alt="Screenshot 2023-04-19 at 20 03 24" src="https://user-images.githubusercontent.com/115237/233162102-3f4a4142-9634-4c95-acf0-be57072ce7eb.png"> <img width="311" alt="Screenshot 2023-04-19 at 20 03 55" src="https://user-images.githubusercontent.com/115237/233162109-faa616f6-02e4-43d3-95fa-66787a7f914c.png"> Co-authored-by: silverwind <me@silverwind.io>
1 parent d5f2c9d commit 7117355

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

web_src/css/base.css

+12
Original file line numberDiff line numberDiff line change
@@ -2396,6 +2396,13 @@ a.ui.label:hover {
23962396
color: var(--color-primary);
23972397
}
23982398

2399+
.ui.basic.labels a.primary.label:hover,
2400+
a.ui.ui.ui.basic.primary.label:hover {
2401+
background: var(--color-hover);
2402+
border-color: var(--color-primary-dark-1);
2403+
color: var(--color-primary-dark-1);
2404+
}
2405+
23992406
.ui.basic.labels .secondary.label,
24002407
.ui.ui.ui.basic.secondary.label {
24012408
background: transparent;
@@ -2657,6 +2664,11 @@ table th[data-sortt-desc] .svg {
26572664
border-radius: 0 0 var(--border-radius) var(--border-radius);
26582665
}
26592666

2667+
.ui.dropdown .menu > .divider {
2668+
border-top: 1px solid var(--color-secondary);
2669+
margin: 4px 0;
2670+
}
2671+
26602672
.ui.multiple.dropdown > .label {
26612673
box-shadow: 0 0 0 1px var(--color-secondary) inset;
26622674
}

0 commit comments

Comments
 (0)