MediaWiki:Common.css: Difference between revisions
Created page with "→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; } →--- VERIFIED BADGE POPUP STYLE ---: →Keep badge inline with heading and vertically centered: .verified-badge { display: inline-block; vertical-align: middle; position: relative; cursor: pointer; } →Small visible badge icon (inline with title): .badge-icon { display: inline-block..." |
No edit summary |
||
| Line 7: | Line 7: | ||
/* --- | /* --- 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-----------*/ | |||