TemplateStyle:Navcards.css
From Halopedia, the Halo wiki
.template-navcards-content {
display: grid;
gap: 1rem 0.5rem;
}
.template-navcard {
position: relative;
display: flex;
flex-direction: column;
}
.template-navcard-image {
aspect-ratio: var(--tg-navcards-aspect-ratio);
border-radius: 8px;
background: #ccc;
overflow: hidden;
}
.template-navcard-image img {
width: 100%;
height: 100% !important;
object-fit: cover;
transition: 100ms ease;
transition-property: transform;
}
.template-navcard:hover .template-navcard-image img {
transform: scale(1.1);
}
.template-navcard-text {
margin-top: 0.5rem;
line-height: 1.25;
white-space: nowrap;
}
.template-navcard-title {
font-family: 'EB Garamond','EB Garamond-fallback',serif;
font-size: 0.875rem;
font-weight: 600;
}
.template-navcard-caption {
font-size: 0.8125rem;
}
.template-navcard-title,
.template-navcard-caption {
text-overflow: ellipsis;
overflow: hidden;
}
.template-navcard-link {
position: absolute;
inset: 0;
}
.template-navcard-link > a {
display: block;
height: 100%;
text-indent: -9999px;
}