MediaWiki:Themes.css

/*    Portable Infobox customization .portable-infobox { border:1px solid #aaaaaa; background-color: #dedcff; width:300px; } .portable-infobox .pi-header { color: fff; text-align: center; padding: 1px; margin:5px; border-top-left-radius: 50px; border-top-right-radius: 50px; }

.pi-secondary-background { background-color: #6699ff; }

.portable-infobox .pi-border-color { border-color:#E1E1E1; }  .portable-infobox .pi-title { background-color: #4caf50; font-size:120%; color: #fff; text-align: center; padding: 1px; margin:5px; } .portable-infobox .pi-tab-link.current { background-color:white; } .portable-infobox .pi-image-collection-tab-content { background-color:#E1E1E1; }

ul.pi-image-collection-tabs{ margin: auto; width: 270px; display: flex; flex-wrap: wrap; } ul.pi-image-collection-tabs li { flex-grow: 1; /* Force tabs to take up a 4th of available space per row, before rendering */ /* This effectively limits each row of tabs to just 4 tabs. */ flex-basis: 24%; border: none; /* Wikia's default CSS sets max-width for tabs to 50%. Why? */ max-width: 100%; } /* Every 4th element + 1 (first element of every row) */ ul.pi-image-collection-tabs li:first-child, ul.pi-image-collection-tabs li:nth-child(4n+1){ border-top-left-radius: 50px; } /* Every 4th element (last element of every row) */ ul.pi-image-collection-tabs li:last-child, ul.pi-image-collection-tabs li:nth-child(4n){ border-top-right-radius: 50px; } ul.pi-image-collection-tabs li:hover{ background-color: #eee; } ul.pi-image-collection-tabs li.current { flex-grow: 4; } .portable-infobox .pi-title { border-bottom-left-radius: 100px; border-bottom-right-radius: 100px; } /*   Necessary for infoboxes because line breaks can't be put into labels of a data source, it is not rendered. with this, blank spaces can be added and line breaks can be achieved. See Character Infobox, data source "VR" In hopes it does not break anything h3.pi-data-label.pi-secondary-font b { white-space: pre-wrap !important; }

/* Horizontally centers item labels and values */ .portable-infobox .pi-data { align-items: center; }

/*   End of Portable Infobox styling