Skip to content

Commit ec2c20d

Browse files
authored
Merge pull request #1383 from makeabilitylab/1377-fix-chip-overlap
Lift revealed publication chips above neighboring cards (#1377)
2 parents 132af26 + 4bfc67e commit ec2c20d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

website/static/website/css/publications.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,20 @@
165165
transition: opacity var(--transition-fast);
166166
}
167167

168+
/* On hover/focus, reveal the chips AND lift them onto a higher stacking
169+
layer so they paint on top of whatever sits below them rather than
170+
tangling behind it (#1377). The .pub-download-links row can extend past
171+
the card's 129px box, and the landing grid is a flex-wrap row, so a
172+
card's chips can overlap the title of the card in the row below; raising
173+
z-index keeps the revealed chips legible and on top. z-index is applied
174+
only on hover/focus so the invisible (opacity:0) layer never sits over —
175+
and swallows clicks meant for — the card below. 30 clears the thumbnail
176+
(z-index:10) and award banner (z-index:20). */
168177
.pub-column-horiz-layout:hover .pub-download-links,
169178
.pub-column-horiz-layout:focus-within .pub-download-links {
170179
opacity: 1;
180+
position: relative;
181+
z-index: 30;
171182
}
172183

173184

0 commit comments

Comments
 (0)