Template:Character/styles.css
Appearance
/* =========================================================
ERINDAL CHARACTER PAGES
Character-only additions to the shared WikiArticle system.
MediaWiki 1.43 TemplateStyles-safe.
========================================================= */
.wiki-record__image--portrait {
box-sizing: border-box;
height: 270px;
min-height: 270px;
max-height: 270px;
padding: 0;
overflow: hidden;
background: var(--wiki-paper, var(--ew-paper-light));
background: var(--ew-component-surface, var(--wiki-paper));
}
/* Character portraits use normal MediaWiki infobox behaviour: show the whole
image, preserve its aspect ratio, and keep the file-page link intact. */
.wiki-record__image--portrait .mw-file-description {
display: flex !important;
align-items: center !important;
justify-content: center !important;
box-sizing: border-box;
width: 100% !important;
height: 270px !important;
}
.wiki-record__image--portrait .mw-file-element {
display: block !important;
width: auto !important;
max-width: 100% !important;
height: 270px !important;
max-height: 270px !important;
object-fit: contain !important;
object-position: center !important;
margin: 0 auto !important;
}