Template:Browse/banner.css
Template page
More actions
/* Landrace.Wiki: photo banner at the top of a Browse subpage.
Used by: Template:Browse/Banner.
Content model: Sanitised CSS.
*/
.lw-browse-banner {
margin: 0 0 1rem;
padding: 0;
}
.lw-browse-banner__frame {
width: 100%;
aspect-ratio: 21 / 9;
overflow: hidden;
border-radius: 6px;
background-color: #d4ddc6;
object-position: 50% 50%;
}
.lw-browse-banner__frame p:empty {
display: none;
}
.lw-browse-banner__frame .mw-file-description,
.lw-browse-banner__frame .mw-file-element,
.lw-browse-banner__frame figure,
.lw-browse-banner__frame span,
.lw-browse-banner__frame a {
display: block;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
object-position: inherit;
}
.lw-browse-banner__frame img {
display: block;
width: 100% !important;
height: 100% !important;
max-width: none !important;
object-fit: cover !important;
object-position: inherit;
}
.lw-browse-banner__cap {
margin-top: 6px;
font-size: 0.78rem;
line-height: 1.45;
color: #495057;
}
.lw-browse-banner__credit {
color: #6c757d;
}
@media (max-width: 640px) {
.lw-browse-banner__frame {
aspect-ratio: 16 / 9;
}
}