TemplateStyle:Navcards.css

From Halopedia, the Halo wiki

Revision as of 11:03, March 21, 2025 by Porplemontage (talk | contribs) (Created page with ".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%; object-fit: cover; transition: 100ms ease; transition-property: transform; } .temp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.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%;
    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;
}