MediaWiki:Common.css: Difference between revisions
Appearance
| Line 18: | Line 18: | ||
} | } | ||
/* | /* Fix the large gaps between paragraphs */ | ||
#mw-content-text { | #mw-content-text p { | ||
margin-top: 0.5em !important; | |||
line-height: 1.6; | margin-bottom: 0.5em !important; | ||
line-height: 1.6 !important; /* This matches Wikipedia's tighter spacing */ | |||
} | } | ||
/* | /* Apply tighter line height to the whole content area */ | ||
.mw-body-content { | |||
line-height: 1.6 !important; | |||
} | } | ||
/* | /* Ensure the Site Notice also stays tight */ | ||
#siteNotice { | |||
margin-bottom: 0.5em !important; | |||
margin-bottom: 0. | line-height: 1.4 !important; | ||
} | } | ||
Revision as of 17:47, 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.6 !important; /* This matches Wikipedia's tighter spacing */
}
/* Apply tighter line height to the whole content area */
.mw-body-content {
line-height: 1.6 !important;
}
/* Ensure the Site Notice also stays tight */
#siteNotice {
margin-bottom: 0.5em !important;
line-height: 1.4 !important;
}