Template:Infobox/styles.css
Template page
More actions
.infobox-panel { float: right; width: 350px; max-width: 100%; margin: 0 0 1rem 1rem; border: 1px solid var(--border-color-base); border-radius: var(--border-radius-medium, 8px); background: var(--color-surface-1); color: var(--color-base); border-collapse: separate; border-spacing: 0; overflow-wrap: anywhere; }
.infobox-panel caption { padding: .6rem; font-size: 1.2rem; font-weight: 700; color: var(--color-emphasized); }
.infobox-panel th, .infobox-panel td { padding: .45rem .6rem; text-align: left; vertical-align: top; }
.infobox-panel th { width: 35%; }
.infobox-panel .infobox-panel__image { text-align: center;} /* background: #f4f4f2; */
.infobox-panel img { max-width: 100%; height: auto; }
.infobox-panel td { white-space: normal; }
/* Text fields preserve user-entered line breaks through the template. */
.infobox-panel .infobox-panel__text { margin: 0; }
.infobox-panel .infobox-panel__text p { display: inline; margin: 0; }
/* Themed panels: a translucent tint over the skin's own surface color,
so light and dark mode both work without any theme selectors. */
.infobox-panel--crimson,
.infobox-panel--azure,
.infobox-panel--verdant,
.infobox-panel--midnight,
.infobox-panel--mekhanite {
background: linear-gradient(var(--if-tint), var(--if-tint)), var(--color-surface-1);
}
.infobox-panel--crimson { --if-tint: rgba(190, 40, 60, 0.22); }
.infobox-panel--azure { --if-tint: rgba(50, 120, 220, 0.22); }
.infobox-panel--verdant { --if-tint: rgba(40, 160, 90, 0.22); }
.infobox-panel--midnight { --if-tint: rgba(120, 70, 200, 0.25); }
.infobox-panel--mekhanite { --if-tint: rgba(176, 124, 84, 0.26); }
@media (max-width: 640px) { .infobox-panel { float: none; width: 100%; margin: 0 0 1rem; } }
@media print { .infobox-panel { background: none; } }