Jump to content

MediaWiki:Common.css

From WikiBachiller
Revision as of 15:00, 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 */
/* Vector skin */
/* ====================================================== */

/* ------------------------------ */
/* SIDEBAR: fully hidden */
#mw-panel,
#p-navigation,
#p-interaction,
#p-lang,
.portal {
    display: none !important;
}

/* ------------------------------ */
/* PERSONAL MENU (LOGIN) */
/* Keep original top-right position */
#p-personal {
    display: block !important;
    position: relative !important;
}

#p-personal h3 {
    display: none !important;
}

/* ------------------------------ */
/* PAGE ACTIONS: edit / history / etc */
/* Visible for logged-in users */
#p-views,
#p-cactions {
    display: block !important;
}

#p-views h3,
#p-cactions h3 {
    display: none !important;
}

#p-views ul,
#p-cactions ul {
    display: flex;
    gap: 12px;
}

/* ------------------------------ */
/* HIDE EDIT / HISTORY FOR ANONYMOUS USERS */
.mw-anon-user #p-views,
.mw-anon-user #p-cactions {
    display: none !important;
}

/* Hide section edit links for anon users */
.mw-anon-user .mw-editsection {
    display: none !important;
}

/* ------------------------------ */
/* TOOLBOX + SEARCH: hidden */
#p-tb,
#search,
#searchInput,
.vector-search-box {
    display: none !important;
}

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

/* ------------------------------ */
/* CONTENT: FULL WIDTH, SMALL MARGINS */
#content {
    max-width: none !important;
    margin: 16px 20px !important;
    padding: 0 !important;
}

#mw-content-text {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mw-parser-output {
    line-height: 1.6;
}

/* ------------------------------ */
/* MAIN PAGE (LANDING) */
body.page-Main_Page #content {
    margin-top: 80px !important;
}

body.page-Main_Page #mw-content-text {
    text-align: center;
}

/* Optional: highlight Request Account link */
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.1em;
}

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

/* ------------------------------ */
/* LINKS: minimal look */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ------------------------------ */
/* MOBILE SAFETY */
@media (max-width: 720px) {
    #content {
        margin: 12px !important;
    }

    #p-views ul,
    #p-cactions ul {
        flex-wrap: wrap;
    }
}