website/components/MemberCard.css

50 lines
900 B
CSS

.components__member_card {
display: grid;
grid-template-rows: 1fr 5rem;
min-width: 15rem;
aspect-ratio: 1;
box-shadow: 0 0 0.4rem 0.2rem var(--_translucent);
border: var(--_border-size) solid transparent;
background-size: cover;
background-repeat: no-repeat;
&:has(a:focus-visible),
&:hover {
border: var(--_border-size) solid var(--_accent-color);
}
& h3 {
margin: 0;
}
& a {
outline: none;
}
}
.components__member_card__icon {
height: 100%;
object-fit: cover;
overflow: hidden;
}
.components__member_card__content {
background-color: var(--_translucent);
backdrop-filter: blur(var(--_blur));
display: flex;
flex-direction: column;
padding: var(--_gap-half);
gap: var(--_gap-half);
}
.components__member_card__groups {
display: flex;
flex-wrap: wrap;
gap: var(--_gap-half);
& span {
padding: var(--_gap-half);
background-color: var(--_translucent);
}
}