MediaWiki:Common.css: Difference between revisions
Appearance
| Line 16: | Line 16: | ||
body.page-Main_Page #siteNotice { | body.page-Main_Page #siteNotice { | ||
display: block; | display: block; | ||
} | |||
/* Make content text size and line height match Wikipedia */ | |||
#mw-content-text { | |||
font-size: 0.875rem; /* Standard Wikipedia font size */ | |||
line-height: 1.6; /* Standard Wikipedia line spacing */ | |||
font-family: sans-serif; | |||
} | |||
/* Adjust paragraph spacing (the "gap" between blocks of text) */ | |||
#mw-content-text p { | |||
margin-top: 0.5em; | |||
margin-bottom: 0.5em; | |||
} | |||
/* Optional: Make headings look more official */ | |||
.firstHeading, h1, h2 { | |||
font-family: 'Linux Libertine', 'Georgia', 'Times', serif; | |||
margin-bottom: 0.25em; | |||
padding-bottom: 0; | |||
border-bottom: 1px solid #a2a9b1; | |||
} | } | ||
Revision as of 17:39, 10 April 2026
/* CSS placed here will be applied to all skins */
/* hide main page title */
body.page-Main_Page h1.firstHeading { display: none; }
/* hide lastmodified date from homepage */
body.page-Main_Page #footer-info-lastmod {
display: none;
}
/* 1. Hide sitenotice on all pages */
#siteNotice {
display: none;
}
/* 2. Show sitenotice only on Main Page */
body.page-Main_Page #siteNotice {
display: block;
}
/* Make content text size and line height match Wikipedia */
#mw-content-text {
font-size: 0.875rem; /* Standard Wikipedia font size */
line-height: 1.6; /* Standard Wikipedia line spacing */
font-family: sans-serif;
}
/* Adjust paragraph spacing (the "gap" between blocks of text) */
#mw-content-text p {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
/* Optional: Make headings look more official */
.firstHeading, h1, h2 {
font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
margin-bottom: 0.25em;
padding-bottom: 0;
border-bottom: 1px solid #a2a9b1;
}