MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 77: | Line 77: | ||
body.page-Main_Page .mw-content-container { | body.page-Main_Page .mw-content-container { | ||
margin-left: auto !important; | margin-left: auto !important; | ||
margin-right: | margin-right: auto !important; | ||
max-width: 1200px !important; | max-width: 1200px !important; | ||
} | } | ||
/*---------------End-----------*/ | /*---------------End-----------*/ | ||
Revision as of 07:45, 2 December 2025
/* --- MAIN PAGE CLEAN LAYOUT (TOP BAR ONLY) --- */
/* Hide left sidebar */
.page-Main_Page .vector-sidebar-container,
.page-Main_Page .vector-column-start,
.page-Main_Page #mw-panel {
display: none !important;
}
/* Hide right side column & tools */
.page-Main_Page .vector-column-end,
.page-Main_Page .vector-page-toolbar {
display: none !important;
}
/* Hide footer completely
.page-Main_Page #footer,
.page-Main_Page footer {
display: none !important;
}*/
/* Remove the horizontal line only on Main Page */
body.page-Main_Page .vector-toc .vector-toc-top,
body.page-Main_Page .mw-body-header::after,
body.page-Main_Page header.mw-body-header-vector-page-titlebar::after {
display: none !important;
border: none !important;
}
/* Also hide title that appears inside the content area */
.page-Main_Page h1.firstHeading {
display: none !important;
}
/* Hide the subtle horizontal line under the header on Main Page */
.page-Main_Page #contentSub,
.page-Main_Page #siteSub {
display: none !important;
}
/*--------------------------------------- main page style-------------------------------------*/
/* Hide Main Page title */
body.page-Main_Page #firstHeading,
body.page-Main_Page .vector-page-titlebar,
body.page-Main_Page .mw-page-title-main {
display: none !important;
}
/* Remove horizontal divider line */
body.page-Main_Page .vector-divider {
display: none !important;
}
/* Wikipedia-like width */
body.page-Main_Page .mw-content-container {
max-width: 1500px !important;
width: 95% !important;
}
/* Remove annoying top margin */
body.page-Main_Page .mw-content-container .mw-content-ltr {
margin-top: 0 !important;
}
/* General box consistency */
body.page-Main_Page div {
box-sizing: border-box;
}
/* Center Main Page content */
body.page-Main_Page .mw-body,
body.page-Main_Page .mw-content-container {
margin-left: auto !important;
margin-right: auto !important;
max-width: 1200px !important;
}
/*---------------End-----------*/