From The Perfect Tower II
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* Template:Infobox/styles.css (TemplateStyles) for Module:Infobox.
* The look is the kit's .tpt-infobox; this sheet only places it beside the article.
* Brand tokens: one var(--tpt-*) per colour or calc(), without var() fallbacks (TemplateStyles rule). */
.wiki-infobox {
float: right;
clear: right;
width: calc(var(--tpt-size-wiki-aside) - 20px);
margin: 0 0 24px 24px;
border-top-width: 3px;
border-top-style: solid;
border-top-color: var(--tpt-accent-fill);
}
/* Building infoboxes: the top edge in the building's color. */
.wiki-infobox[class*="tpt-fac-"] {
border-top-color: var(--tpt-fac);
}
.wiki-infobox .tpt-infobox__title {
font-size: 26px;
}
.wiki-infobox .tpt-infobox__head .tpt-label {
display: block;
margin-top: 4px;
}
.wiki-infobox .tpt-infobox__media {
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 16 / 10;
overflow: hidden;
}
.wiki-infobox .tpt-infobox__media img {
display: block;
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
}
.wiki-infobox .tpt-infobox__rows dd > p {
margin: 0;
}
.wiki-infobox .tpt-infobox__section {
padding: 10px 16px 6px;
background-color: var(--tpt-surface-alt);
border-top: 1px solid var(--tpt-line);
border-bottom: 1px solid var(--tpt-line);
color: var(--tpt-ink-muted);
}
@media screen and (max-width: 719px) {
.wiki-infobox {
float: none;
width: auto;
margin: 0 0 20px;
}
}