MediaWiki:Infobox.css

/* General Infobox styling */ .portable-infobox { border-color: #aaa; border-radius: 0 !important; } .portable-infobox.pi-background { background-color: #f9f9f9; } .portable-infobox .pi-border-color { border-color: transparent; }

/* 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 */ /* Infoboxes */ .portable-infobox .pi-item-spacing.pi-title, .portable-infobox .pi-item-spacing.pi-header, .portable-infobox .pi-horizontal-group .pi-item-spacing.pi-header { margin: 3px; padding: 3px; }

.portable-infobox .pi-title { font-size: 16px !important; }

.portable-infobox .pi-item-spacing.pi-header, .portable-infobox .pi-horizontal-group .pi-font.pi-header { font-size: 13px; }

.portable-infobox .pi-image { margin: 3px; }

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

.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; } .portable-infobox .wds-tabs__wrapper > .wds-tabs { margin: 0px 3px !important; }

/* Dark mode infobox - Fix the white background problem */ .theme-fandomdesktop-dark .portable-infobox.pi-background { background-color: var(--theme-page-background-color--secondary); }

/* Tabs design (Infobox only) */ .portable-infobox .wds-tabs__wrapper .wds-tabs { flex-wrap: wrap; justify-content: center; } .portable-infobox .wds-tabs__tab-label { height: 18px; font-size: 14px; margin: 2px 4px !important; color: var(--theme-page-text-color); } .portable-infobox .wds-tabs__tab:not(.wds-is-current):hover { color: inherit; } .portable-infobox .wds-tabs__tab.wds-is-current { box-shadow: none; background-color: #3333ff; color: white; } .portable-infobox .wds-tabs__tab.wds-is-current .wds-tabs__tab-label { color: white; } .portable-infobox .wds-tabs__wrapper .wds-tabs__tab-label { transition: none; }