Jump to content

MediaWiki:Common.css: Difference between revisions

From WikiBachiller
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ====================================================== */
/* ====================================================== */
/* MINIMAL UI FOR PRIVATE WIKI - ALL PAGES */
/* MINIMAL UI FOR PRIVATE WIKI */
/* Vector skin */
/* ====================================================== */
/* ====================================================== */


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


/* Hide headings / labels inside sidebar */
/* ------------------------------ */
#mw-panel h3,
/* PERSONAL MENU (LOGIN) */
#mw-panel .portal h3,
/* Keep original top-right position */
#mw-panel .vector-menu-heading,
#p-personal {
#mw-panel .vector-menu-content,
    display: block !important;
#p-tb h3,
    position: relative !important;
#p-cactions h3,
}
 
#p-personal h3 {
#p-personal h3 {
     display: none !important;
     display: none !important;
Line 32: Line 27:


/* ------------------------------ */
/* ------------------------------ */
/* Hide footer and indicators */
/* PAGE ACTIONS: edit / history / etc */
#footer,
/* Visible for logged-in users */
.mw-footer,
#p-views,
#siteSub,
#p-cactions {
#contentSub,
    display: block !important;
.breadcrumb,
}
.mw-indicators {
 
#p-views h3,
#p-cactions h3 {
     display: none !important;
     display: none !important;
}
#p-views ul,
#p-cactions ul {
    display: flex;
    gap: 12px;
}
}


/* ------------------------------ */
/* ------------------------------ */
/* Hide page tabs / actions / toolbox */
/* HIDE EDIT / HISTORY FOR ANONYMOUS USERS */
#ca-view,
.mw-anon-user #p-views,
#ca-edit,
.mw-anon-user #p-cactions {
.vectorMenu,
    display: none !important;
.mw-portlet {
}
 
/* Hide section edit links for anon users */
.mw-anon-user .mw-editsection {
     display: none !important;
     display: none !important;
}
}


/* ------------------------------ */
/* ------------------------------ */
/* Hide search box */
/* TOOLBOX + SEARCH: hidden */
#p-tb,
#search,
#search,
#searchInput,
#searchInput,
Line 60: Line 67:


/* ------------------------------ */
/* ------------------------------ */
/* Main content container - optional: center on screen */
/* FOOTER + NOISE */
#content,
#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 {
#mw-content-text {
     max-width: 900px;
     max-width: none !important;
     margin: 40px auto;
     margin: 0 !important;
     padding: 0 20px;
     padding: 0 !important;
}
 
.mw-parser-output {
    line-height: 1.6;
}
 
/* ------------------------------ */
/* MAIN PAGE (LANDING) */
body.page-Main_Page #content {
    margin-top: 80px !important;
}
}


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


/* Optional: highlight "Request Account" link on Main Page */
/* Optional: highlight Request Account link */
body.page-Main_Page a[href*="Request_account"] {
body.page-Main_Page a[href*="Request_account"] {
     display: inline-block;
     display: inline-block;
Line 84: Line 114:
     font-weight: bold;
     font-weight: bold;
     border-radius: 6px;
     border-radius: 6px;
     font-size: 1.2em;
     font-size: 1.1em;
}
}


body.page-Main_Page a[href*="Request_account"]:hover {
body.page-Main_Page a[href*="Request_account"]:hover {
     background-color: #005fa3;
     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;
    }
}
#mw-prefsection-appearance {
    display: none;
}
}

Latest revision as of 16:30, 23 January 2026

/* ====================================================== */
/* 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;
    }
}

#mw-prefsection-appearance {
    display: none;
}