From Wiki96
< Template:Infobox
Revision as of 03:26, 6 November 2022 by HolyNetworkAdapter (talk | contribs) (HolyNetworkAdapter changed the content model of the page Template:Infobox/styles.css from "wikitext" to "CSS")
.infobox {
width: 22em;
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
font-size: 88%;
line-height: 1.5em;
text-align: left;
border: 1px solid darkgray;
border-spacing: 3px;
background-color: whitesmoke;
color: black;
float: right;
clear: right;
}
@media (max-width: 720px)
{
.infobox {
float: none;
margin: 0 0 1em;
}
}
.ib-title, .ib-above, .ib-subheader, .ib-below, .ib-image, .ib-header,
.ib-data:only-child {
text-align: center;
}
.ib-title, .ib-above {
font-size: larger;
}
.ib-title {
font-weight: bold;
}
body.skin-minerva table.infobox {
display: flex;
flex-flow: column nowrap;
}
body.skin-minerva table.infobox > caption,
body.skin-minerva table.infobox > tbody {
display: flex;
flex-flow: column nowrap;
}
body.skin-minerva table.infobox > tbody > tr {
display: flex;
flex-flow: row nowrap;
}
body.skin-minerva table.infobox > tbody > tr > th:only-child,
body.skin-minerva table.infobox > tbody > tr > td:only-child {
width: 100%;
}
body.skin-minerva table.infobox > caption {
padding: .25em .25em 0;
}
body.skin-minerva table.infobox > tbody > tr > th,
body.skin-minerva table.infobox > tbody > tr > td {
padding: .25em;
flex: 1 0;
}