Module:Infobox/styles.css: Difference between revisions
Jump to navigation
Jump to search
en>Jdlrobson (Fix phab:T281642, a pet peeve of mine. This copies across styles from MediaWiki:Minerva.css) |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
/* | .infobox { | ||
/* | border: 1px solid #a2a9b1; | ||
border-spacing: 3px; | |||
background-color: #f8f9fa; | |||
color: black; | |||
/* @noflip */ | |||
margin: 0.5em 0 0.5em 1em; | |||
padding: 0.2em; | |||
/* @noflip */ | |||
float: right; | |||
/* @noflip */ | |||
clear: right; | |||
font-size: 88%; | |||
line-height: 1.5em; | |||
width: 22em; | |||
} | |||
/* | /* | ||
* not strictly certain | * not strictly certain .infobox-subbox styles are necessary since the modules | ||
* exclusively output infobox-subbox or infobox, not both | * now exclusively output infobox-subbox or infobox, not both | ||
* just replicating the module faithfully | * just replicating the module faithfully | ||
*/ | */ | ||
Line 23: | Line 33: | ||
} | } | ||
.infobox- | .infobox-header, | ||
.infobox-label, | |||
.infobox-above, | |||
.infobox-full-data, | |||
.infobox-data, | |||
.infobox-below, | |||
.infobox-subheader, | |||
.infobox-image, | |||
.infobox-navbar { | |||
vertical-align: top; | |||
} | |||
.infobox-label, | |||
.infobox-data { | |||
/* @noflip */ | |||
text-align: left; | |||
} | |||
.infobox-above, | |||
.infobox-title { | |||
font-size: 125%; | |||
font-weight: bold; | |||
text-align: center; | |||
} | |||
.infobox-title { | |||
padding: 0.2em; | |||
} | |||
.infobox-header, | |||
.infobox-subheader, | |||
.infobox-image, | |||
.infobox-full-data, | |||
.infobox-below { | |||
text-align: center; | |||
} | |||
.infobox-navbar { | |||
/* @noflip */ | |||
text-align: right; | |||
} | } | ||
Line 31: | Line 79: | ||
} | } | ||
.infobox-3cols-child { | |||
margin: auto; | |||
} | } |
Latest revision as of 21:19, 30 September 2023
.infobox {
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
font-size: 88%;
line-height: 1.5em;
width: 22em;
}
/*
* not strictly certain .infobox-subbox styles are necessary since the modules
* now exclusively output infobox-subbox or infobox, not both
* just replicating the module faithfully
*/
.infobox-subbox {
padding: 0;
border: none;
margin: -3px;
width: auto;
min-width: 100%;
font-size: 100%;
clear: none;
float: none;
background-color: transparent;
}
.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar {
vertical-align: top;
}
.infobox-label,
.infobox-data {
/* @noflip */
text-align: left;
}
.infobox-above,
.infobox-title {
font-size: 125%;
font-weight: bold;
text-align: center;
}
.infobox-title {
padding: 0.2em;
}
.infobox-header,
.infobox-subheader,
.infobox-image,
.infobox-full-data,
.infobox-below {
text-align: center;
}
.infobox-navbar {
/* @noflip */
text-align: right;
}
.infobox .navbar {
font-size: 100%;
}
.infobox-3cols-child {
margin: auto;
}