TemplateStyle:Navcards.css: Difference between revisions
From Halopedia, the Halo wiki
(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...") |
mNo edit summary |
||
Line 19: | Line 19: | ||
.template-navcard-image img { | .template-navcard-image img { | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100% !important; | ||
object-fit: cover; | object-fit: cover; | ||
transition: 100ms ease; | transition: 100ms ease; |
Revision as of 11:17, March 21, 2025
.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;
}