MediaWiki:Common.css: Difference between revisions
Appearance
| Line 20: | Line 20: | ||
/* Fix the large gaps between paragraphs */ | /* Fix the large gaps between paragraphs */ | ||
#mw-content-text p { | #mw-content-text p { | ||
margin-top: -0.5em !important; | |||
margin-bottom: 0.5em !important; | margin-bottom: -0.5em !important; | ||
line-height: 1 !important; /* This matches Wikipedia's tighter spacing */ | line-height: 1 !important; /* This matches Wikipedia's tighter spacing */ | ||
} | } | ||
Revision as of 17:54, 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;
}
/* Fix the large gaps between paragraphs */
#mw-content-text p {
margin-top: -0.5em !important;
margin-bottom: -0.5em !important;
line-height: 1 !important; /* This matches Wikipedia's tighter spacing */
}
/* Apply tighter line height to the whole content area */
.mw-body-content {
line-height: 1 !important;
}