MediaWiki:Common.css
From Third Realm Wiki
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Default paragraph spacing */
.mw-parser-output > p {
margin-top: .2em; /* This is the main culprit for the big gap */
margin-bottom: 1em;
}
/* Default for floated elements like infoboxes */
.mw-parser-output .infobox,
.infobox {
float: right;
clear: right; /* Causes the box to sit below any other right-floated content */
margin: 0 0 1em 1em; /* top, right, bottom, left */
border: 1px solid #aaa;
background-color: #f9f9f9;
padding: 0.2em;
}
/* Heading spacing (just for context) */
.mw-headline {
margin-top: 1em;
margin-bottom: 0.25em;
}
/* The content container itself */
.mw-parser-output {
line-height: 1.6;
overflow: hidden;
}
/* Shared section headings inside character infoboxes. */
.infobox-section-heading {
border-top: 1px solid #aaa;
color: #772222;
font-family: inherit;
font-size: 1.15em;
font-variant: normal;
font-weight: 700;
line-height: 1.2;
padding: 6px 4px 4px;
text-align: center;
}
/* Keep page-level Edit tabs, but hide the per-heading edit links. */
.mw-editsection {
display: none !important;
}
/* Compact page headers and align character contents with their infobox. */
.mw-body .firstHeading h1 {
margin-top: 0;
}
#contentSub > p:empty,
#mw-content-subtitle:empty {
display: none;
}
.mw-parser-output > p:has(> br:only-child):has(+ #toc) {
display: none;
}
.mw-parser-output:has(> :first-child:is(.infobox, [style*="float:right"], [style*="float: right"])) > #toc {
margin-top: 0;
}