Jump to content

MediaWiki:Common.css

From Verified Wikipedia

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* 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) --- */

/* 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-----------*/