MediaWiki:Common.css
Jump to navigation
Jump to search
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)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* ================================================================
MAIN PAGE RESTORE
Put this at the VERY END of MediaWiki:Common.css
================================================================ */
/* Restore the original main-page behavior */
body.page-Main_Page #content,
body.page-Main_Page .mw-body {
margin-top: 0 !important;
margin-left: 0 !important;
padding: 0 !important;
border: none !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
overflow: visible !important;
max-width: none !important;
}
body.page-Main_Page #content::before,
body.page-Main_Page .mw-body::before {
display: none !important;
content: none !important;
}
body.page-Main_Page #bodyContent,
body.page-Main_Page .mw-body-content,
body.page-Main_Page .mw-parser-output {
margin: 0 !important;
padding: 0 !important;
background: transparent !important;
box-shadow: none !important;
}
/* Hide default wiki title/subtitle on Main Page */
body.page-Main_Page #firstHeading,
body.page-Main_Page .mw-first-heading,
body.page-Main_Page #contentSub {
display: none !important;
}
/* Remove global article-flow/card styling from Main Page */
body.page-Main_Page .mw-parser-output > p,
body.page-Main_Page .mw-parser-output > ul,
body.page-Main_Page .mw-parser-output > ol,
body.page-Main_Page .mw-parser-output > table,
body.page-Main_Page .mw-parser-output > blockquote,
body.page-Main_Page .mw-parser-output > pre,
body.page-Main_Page .mw-parser-output > .toc,
body.page-Main_Page .mw-parser-output > #toc {
background: transparent !important;
border: 0 !important;
border-radius: 0 !important;
padding: 0 !important;
box-shadow: none !important;
}
body.page-Main_Page .mw-parser-output > * + * {
margin-top: 0 !important;
}
/* Main page should not inherit the dark wiki shell chrome */
body.page-Main_Page #mw-page-base,
body.page-Main_Page #mw-head,
body.page-Main_Page #mw-navigation,
body.page-Main_Page .vector-header,
body.page-Main_Page .vector-sticky-header,
body.page-Main_Page .vector-page-toolbar,
body.page-Main_Page .vector-pinnable-header,
body.page-Main_Page .vector-header-container,
body.page-Main_Page .vector-header-start,
body.page-Main_Page .vector-header-end,
body.page-Main_Page .vector-page-toolbar-container,
body.page-Main_Page .vector-user-links,
body.page-Main_Page .vector-user-menu,
body.page-Main_Page #p-personal,
body.page-Main_Page #p-vector-user-menu-overflow,
body.page-Main_Page #mw-panel,
body.page-Main_Page .vector-column-start,
body.page-Main_Page .vector-sidebar,
body.page-Main_Page .vector-sidebar-container,
body.page-Main_Page .vector-menu,
body.page-Main_Page .vector-menu-portal,
body.page-Main_Page .portal,
body.page-Main_Page #footer,
body.page-Main_Page .mw-footer,
body.page-Main_Page .vector-footer-container {
background: transparent !important;
box-shadow: none !important;
border: none !important;
}
/* Keep links on main page from being restyled by the wiki shell */
body.page-Main_Page #mw-head a,
body.page-Main_Page #mw-navigation a,
body.page-Main_Page #mw-panel a,
body.page-Main_Page .vector-sidebar a,
body.page-Main_Page .vector-menu a,
body.page-Main_Page .portal a,
body.page-Main_Page #footer a,
body.page-Main_Page .mw-footer a {
text-shadow: none !important;
}
/* Main page custom roots must own the layout completely */
body.page-Main_Page .timero-wiki-root,
body.page-Main_Page #home-root,
body.page-Main_Page #main-page-root {
display: block !important;
margin: 0 !important;
padding: 0 !important;
width: 100% !important;
max-width: 100% !important;
min-width: 0 !important;
background: transparent !important;
box-shadow: none !important;
overflow-x: hidden !important;
box-sizing: border-box !important;
}
body.page-Main_Page .timero-wiki-root > div,
body.page-Main_Page #home-root > div,
body.page-Main_Page #main-page-root > div {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
}
/* ================================================================
MAIN PAGE RESTORE
Put this at the VERY END of MediaWiki:Common.css
================================================================ */
/* Restore the original main-page behavior */
body.page-Main_Page #content,
body.page-Main_Page .mw-body {
margin-top: 0 !important;
margin-left: 0 !important;
padding: 0 !important;
border: none !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
overflow: visible !important;
max-width: none !important;
}
body.page-Main_Page #content::before,
body.page-Main_Page .mw-body::before {
display: none !important;
content: none !important;
}
body.page-Main_Page #bodyContent,
body.page-Main_Page .mw-body-content,
body.page-Main_Page .mw-parser-output {
margin: 0 !important;
padding: 0 !important;
background: transparent !important;
box-shadow: none !important;
}
/* Hide default wiki title/subtitle on Main Page */
body.page-Main_Page #firstHeading,
body.page-Main_Page .mw-first-heading,
body.page-Main_Page #contentSub {
display: none !important;
}
/* Remove global article-flow/card styling from Main Page */
body.page-Main_Page .mw-parser-output > p,
body.page-Main_Page .mw-parser-output > ul,
body.page-Main_Page .mw-parser-output > ol,
body.page-Main_Page .mw-parser-output > table,
body.page-Main_Page .mw-parser-output > blockquote,
body.page-Main_Page .mw-parser-output > pre,
body.page-Main_Page .mw-parser-output > .toc,
body.page-Main_Page .mw-parser-output > #toc {
background: transparent !important;
border: 0 !important;
border-radius: 0 !important;
padding: 0 !important;
box-shadow: none !important;
}
body.page-Main_Page .mw-parser-output > * + * {
margin-top: 0 !important;
}
/* Main page should not inherit the dark wiki shell chrome */
body.page-Main_Page #mw-page-base,
body.page-Main_Page #mw-head,
body.page-Main_Page #mw-navigation,
body.page-Main_Page .vector-header,
body.page-Main_Page .vector-sticky-header,
body.page-Main_Page .vector-page-toolbar,
body.page-Main_Page .vector-pinnable-header,
body.page-Main_Page .vector-header-container,
body.page-Main_Page .vector-header-start,
body.page-Main_Page .vector-header-end,
body.page-Main_Page .vector-page-toolbar-container,
body.page-Main_Page .vector-user-links,
body.page-Main_Page .vector-user-menu,
body.page-Main_Page #p-personal,
body.page-Main_Page #p-vector-user-menu-overflow,
body.page-Main_Page #mw-panel,
body.page-Main_Page .vector-column-start,
body.page-Main_Page .vector-sidebar,
body.page-Main_Page .vector-sidebar-container,
body.page-Main_Page .vector-menu,
body.page-Main_Page .vector-menu-portal,
body.page-Main_Page .portal,
body.page-Main_Page #footer,
body.page-Main_Page .mw-footer,
body.page-Main_Page .vector-footer-container {
background: transparent !important;
box-shadow: none !important;
border: none !important;
}
/* Keep links on main page from being restyled by the wiki shell */
body.page-Main_Page #mw-head a,
body.page-Main_Page #mw-navigation a,
body.page-Main_Page #mw-panel a,
body.page-Main_Page .vector-sidebar a,
body.page-Main_Page .vector-menu a,
body.page-Main_Page .portal a,
body.page-Main_Page #footer a,
body.page-Main_Page .mw-footer a {
text-shadow: none !important;
}
/* Main page custom roots must own the layout completely */
body.page-Main_Page .timero-wiki-root,
body.page-Main_Page #home-root,
body.page-Main_Page #main-page-root {
display: block !important;
margin: 0 !important;
padding: 0 !important;
width: 100% !important;
max-width: 100% !important;
min-width: 0 !important;
background: transparent !important;
box-shadow: none !important;
overflow-x: hidden !important;
box-sizing: border-box !important;
}
body.page-Main_Page .timero-wiki-root > div,
body.page-Main_Page #home-root > div,
body.page-Main_Page #main-page-root > div {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
}