Module:InfoboxNeue/styles.css

.infobox { width: 100%; max-width: 400px; border-radius: var( --border-radius--medium ); background-color: var( --color-surface-2 ); /* Replace inset shadow in future when upstream is fixed */ box-shadow: var( --box-shadow-card ); font-size: 0.875rem; line-height: var( --line-height-sm ); }

.infobox__image img { /* Perserve rounded border */ border-top-left-radius: var( --border-radius--medium ); border-top-right-radius: var( --border-radius--medium ); /* Prevent overflow */ max-width: 100%; height: auto; }

/* Provide background color for transparent SVGs */ .infobox__image img[src$=".svg"] { background: #eaecf0; }

.infobox__snippet, .infobox__indicator, .infobox__header, .infobox__sectionHeader, .infobox__sectionContent { padding-left: var( --space-md ); padding-right: var( --space-md ); }

.infobox__snippet, .infobox__indicator { padding-top: var( --space-sm ); padding-bottom: var( --space-sm ); }

.infobox__snippet { display: none; gap: var( --space-xs ); align-items: center; white-space: nowrap; }

.infobox__snippet.mw-collapsible-toggle { /* Disable default style */ float: none; border-radius: var( --border-radius--medium ); }

/* Might as well steal from skin */ .infobox__snippet.mw-collapsible-toggle .mw-ui-icon-wikimedia-collapse { width: 0.875rem; height: 0.875rem; flex-shrink: 0; transition: transform 250ms cubic-bezier( 0.215, 0.61, 0.355, 1); }

/* Might as well steal from skin */ .infobox__snippet.mw-collapsible-toggle.mw-collapsible-toggle-collapsed .mw-ui-icon-wikimedia-collapse { transform: rotate( 180deg ); }

.infobox__snippet .infobox__desc { max-width: 100%; text-overflow: ellipsis; overflow: hidden; font-size: 0.875rem; }

.infobox__indicator { background-color: var( --color-surface-3 ); }

.infobox__header, .infobox__sectionHeader { margin-bottom: var( --space-md ); line-height: var( --line-height-xs ); }

.infobox__header { margin-top: var( --space-lg ); }

.infobox__sectionHeader { margin-top: var( --space-md ); }

.infobox__section { margin-top: var( --space-md ); margin-bottom: var( --space-md ); }

.infobox__title, .infobox__sectionTitle { color: var( --color-base--emphasized ); font-weight: var( --font-weight-semibold ); }

.infobox__title { font-size: var( --font-size-h3 ); }

.infobox__subtitle, .infobox__sectionSubtitle { margin-top: 2px; }

.infobox__section + .infobox__section { border-top: 1px solid var( --border-color-base ); }

/* Use padding to prevent margin collapse when there is no footer */ .infobox__section:last-child { margin-bottom: 0; padding-bottom: var( --space-lg ); }

.infobox__sectionTitle { font-size: 1rem; }

.infobox__sectionSubtitle { color: var( --color-base--subtle ); }

.infobox__sectionContent { display: grid; gap: var( --space-sm ); }

.infobox__item { display: grid; gap: 2px var( --space-xs ); }

.infobox__desc, .infobox__label { color: var( --color-base--subtle ); font-size: 0.8125rem; }

.infobox__label { letter-spacing: 0.05em; }

.infobox__grid--row .infobox__label, .infobox__grid--row .infobox__desc { font-size: 0.875rem; }

.infobox__data { font-weight: var( --font-weight-medium ); }

.infobox.mw-collapsible:before { /* Avoid collapse button flash */ content: none !important; }

@media only screen and ( max-width: 720px ) { .infobox { margin-right: auto; margin-left: auto; }

.infobox__snippet { display: flex; } }

/* CSS grid utility classes */ .infobox__grid--row { grid-auto-flow: column; }

.infobox__grid--cols-2 { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); }

.infobox__grid--cols-3 { grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); }

.infobox__grid--cols-4 { grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); }

.infobox__grid--col-span-2 { grid-column: span 2; }

.infobox__grid--col-span-3 { grid-column: span 3; }

.infobox__grid--col-span-4 { grid-column: span 4; }

.infobox__grid--space-between { justify-content: space-between; }