Jump to content

MediaWiki:Common.css: Difference between revisions

From Verified Wikipedia
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* Justify all wiki article text */
#mw-content-text, .mw-body-content, .mw-parser-output {
  text-align: justify;
}
/* --- MAIN PAGE CLEAN LAYOUT (TOP BAR ONLY) --- */
/* --- MAIN PAGE CLEAN LAYOUT (TOP BAR ONLY) --- */


Line 85: 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: auto !important;
     margin-right: 120px !important;
     max-width: 1200px !important;
     max-width: 1200px !important;
}
}


/*---------------End-----------*/
/*---------------End-----------*/

Revision as of 07:41, 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: 120px !important;
    max-width: 1200px !important;
}

/*---------------End-----------*/