Jump to content

MediaWiki:Common.css

From WikiBachiller
Revision as of 14:33, 23 January 2026 by Badmin (talk | contribs)

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.
/* ====================================================== */
/* MINIMAL UI FOR PRIVATE WIKI - ALL PAGES */
/* ====================================================== */

/* ------------------------------ */
/* Hide sidebar, all panels, and menus */
#mw-panel,
.vector-menu-content,
.portal,
#p-navigation,
#p-interaction,
#p-tb,
#p-cactions,
#p-personal,
#p-lang,
#p-views,
.mw-ui-portlet,
.vector-menu {
    display: none !important;
}

/* Hide headings / labels inside sidebar */
#mw-panel h3,
#mw-panel .portal h3,
#mw-panel .vector-menu-heading,
#mw-panel .vector-menu-content,
#p-tb h3,
#p-cactions h3,
#p-personal h3 {
    display: none !important;
}

/* ------------------------------ */
/* Hide footer and indicators */
#footer,
.mw-footer,
#siteSub,
#contentSub,
.breadcrumb,
.mw-indicators {
    display: none !important;
}

/* ------------------------------ */
/* Hide page tabs / actions / toolbox */
#ca-view,
#ca-edit,
.vectorMenu,
.mw-portlet {
    display: none !important;
}

/* ------------------------------ */
/* Hide search box */
#search,
#searchInput,
.vector-search-box {
    display: none !important;
}

/* ------------------------------ */
/* Main content container - optional: center on screen */
#content,
#mw-content-text {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Optional: center content for Main Page only */
body.page-Main_Page #content,
body.page-Main_Page #mw-content-text {
    text-align: center;
    margin-top: 100px;
}

/* Optional: highlight "Request Account" link on Main Page */
body.page-Main_Page a[href*="Request_account"] {
    display: inline-block;
    padding: 12px 20px;
    background-color: #0074D9;
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    font-size: 1.2em;
}

body.page-Main_Page a[href*="Request_account"]:hover {
    background-color: #005fa3;
}