Skip to content

Commit

Permalink
Make sure focused author avatar is topmost of its siblings
Browse files Browse the repository at this point in the history
  • Loading branch information
bramus committed Dec 6, 2024
1 parent 2ffdb36 commit c021eed
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/authors.astro
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,14 @@ const authorInfo = Object.values(authors);
transition: all ease-in-out 0.15s;
}

.avatars :is(:hover, :focus) > img {
transform-origin: 50% 50%;
--border-color: var(--color-core-tertiary);
scale: 1.1;
.avatars > a:is(:hover, :focus) {
z-index: calc(var(--num-children) + 1) !important;

> img {
transform-origin: 50% 50%;
--border-color: var(--color-core-tertiary);
scale: 1.1;
}
}

.avatars span {
Expand Down

0 comments on commit c021eed

Please sign in to comment.