MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 24: | Line 24: | ||
} | } | ||
/* Hide | /* Hide Parsoid/VE empty paragraphs directly after the infobox */ | ||
.infobox-person + p > br:only-child { | .infobox-person + p:has(> br:only-child), | ||
.infobox-person + p + p:has(> br:only-child) { | |||
display: none; | display: none; | ||
} | } | ||
Revision as of 11:00, 9 January 2026
/* CSS placed here will be applied to all skins */
/* Template:Infobox person */
.infobox-person {
width: 300px;
float: right;
clear: right;
margin: 0 0 1em 1em;
font-size: 90%;
border: 1px solid var(--border-color-base, #a2a9b1);
background: var(--background-color-base, #fff);
color: var(--color-base, #202122);
}
.infobox-person__title {
text-align: center;
font-size: 125%;
background: var(--background-color-interactive-subtle, #eaecf0);
}
.infobox-person th {
text-align: left;
font-weight: bold;
}
/* Hide Parsoid/VE empty paragraphs directly after the infobox */
.infobox-person + p:has(> br:only-child),
.infobox-person + p + p:has(> br:only-child) {
display: none;
}