MediaWiki:Infobox.css

/* General variables for background colors */ .theme-fandomdesktop-light .portable-infobox { --infobox-bg-color: #f9f9f9; --infobox-bg-color--alt: #f0f0f0; } .theme-fandomdesktop-dark .portable-infobox { --infobox-bg-color: #2f2f2f; --infobox-bg-color--alt: #393939; }

/* General Infobox styling .portable-infobox { border: none; overflow: hidden; border-radius: 12px; } .portable-infobox.pi-background { background-color: var(--infobox-bg-color); } .portable-infobox .pi-border-color { border-color: transparent; }

/* Alternating row colors; Colors taken directly from the original, non-PI infoboxes .portable-infobox .pi-data:nth-child(even) { background-color: var(--infobox-bg-color--alt); } .portable-infobox .pi-data:nth-child(odd) { background-color: var(--infobox-bg-color); }

/* Slightly widen the data label names .portable-infobox .pi-data-label { flex-basis: 105px; }

/* Tweak caption .portable-infobox .pi-caption { font-size: 12px; font-style: normal; color: var(--theme-page-text-color); line-height: 1.3; } .portable-infobox .pi-caption i { font-style: italic !important; }

/* Center the header and navigation .portable-infobox .pi-horizontal-group .pi-header, .portable-infobox .pi-navigation { text-align: center; }

/* Make the infobox more look like Wikipedia .portable-infobox .pi-image { max-width: 100%; height: auto; background-color: var(--infobox-bg-color--alt); }

.portable-infobox .pi-item-spacing { padding: 4px; }

.portable-infobox .pi-horizontal-group .pi-horizontal-group-item.pi-item-spacing.pi-data-label { padding-bottom: 0; } .portable-infobox .pi-horizontal-group .pi-horizontal-group-item.pi-item-spacing.pi-data-value { padding-top: 0; }

.portable-infobox.pi-theme-episode .pi-horizontal-group .pi-horizontal-group-item.pi-item-spacing.pi-data-value[data-source="season"], .portable-infobox.pi-theme-episode .pi-horizontal-group .pi-horizontal-group-item.pi-item-spacing.pi-data-value[data-source="number"] { padding-bottom: 0; } .portable-infobox.pi-theme-episode .pi-item-spacing.pi-data[data-source="series"] { padding-bottom: 0; }