MediaWiki:Common.css
From AbhiprayaVedi
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.
/* 1. TITLE - FORCE CENTER (HIGHEST SPECIFICITY) */
#mw-content-text .firstHeading {
text-align: center !important;
font-family: Georgia, serif !important;
font-size: 2.2em !important;
margin-bottom: 0.2em !important;
line-height: 1.1 !important;
}
/* 2. META - SINGLE LINE, MINIMAL SPACE */
#mw-content-text .article-meta {
text-align: center !important;
margin: 0.3em 0 0.8em 0 !important;
font-size: 1.1em !important;
line-height: 1.1 !important;
height: auto !important;
}
#mw-content-text .meta-line {
display: inline-flex !important;
align-items: baseline !important;
white-space: nowrap !important;
gap: 0.5em !important;
}
/* 3. FIRST PARAGRAPH - NO BLOCK */
#mw-content-text .article-content p {
margin-top: 0.1em !important;
margin-bottom: 0.8em !important;
text-indent: 0 !important;
}
#mw-content-text .article-content p:first-of-type {
margin-top: 0 !important;
}
/* 4. BASE LAYOUT */
.article-wrapper {
max-width: 900px;
margin: 0 auto;
padding: 15px;
font-family: Georgia, serif;
line-height: 1.6;
}
.article-content {
font-size: 1.1em;
clear: both;
}
/* 5. FLOATBOX */
.article-floatbox {
float: right !important;
width: 220px !important;
margin: 0 0 1em 1.5em !important;
}