Jump to content

MediaWiki:Common.css: Difference between revisions

From Fedoverse Wiki
Created page with "CSS placed here will be applied to all skins: --- HIDE ALL CLUTTER FOR READ-ONLY WIKI ---: Hide search/hamburger/vector menus for anonymous visitors: body.not-logged-in #p-cactions, body.not-logged-in #p-views, body.not-logged-in #p-navigation, body.not-logged-in .mw-article-toolbar, body.not-logged-in .mw-editsection { display: none !important; } Hide Vector 2022 specific hamburger menu & main menu toggles: body.not-logged-in #vector-main-menu-..."
 
No edit summary
Line 22: Line 22:
#footer-icons,
#footer-icons,
.mw-footer-container {
.mw-footer-container {
    display: none !important;
}
/* 1. Hide the Hamburger Menu button (top left) */
#mw-sidebar-button,
#vector-main-menu-dropdown {
    display: none !important;
}
/* 2. Hide the Log in button / user section (top right) */
body.not-logged-in #p-personal,
body.not-logged-in .vector-user-links,
body.not-logged-in #pt-login,
body.not-logged-in #pt-login-2 {
    display: none !important;
}
/* 3. Hide the page category tabs (Main Page | Discussion) & action tabs (Read | View source | View history | Tools) */
body.not-logged-in .vector-page-toolbar,
body.not-logged-in #p-namespaces,
body.not-logged-in #p-views,
body.not-logged-in #p-cactions,
body.not-logged-in .mw-article-toolbar {
     display: none !important;
     display: none !important;
}
}

Revision as of 18:23, 23 July 2026

/* CSS placed here will be applied to all skins */
/* --- HIDE ALL CLUTTER FOR READ-ONLY WIKI --- */

/* Hide search/hamburger/vector menus for anonymous visitors */
body.not-logged-in #p-cactions,
body.not-logged-in #p-views,
body.not-logged-in #p-navigation,
body.not-logged-in .mw-article-toolbar,
body.not-logged-in .mw-editsection {
    display: none !important;
}

/* Hide Vector 2022 specific hamburger menu & main menu toggles */
body.not-logged-in #vector-main-menu-dropdown,
body.not-logged-in #vector-page-tools-dropdown,
body.not-logged-in .vector-header-end #p-user-menu-overflow {
    display: none !important;
}

/* Hide default MediaWiki footers (privacy, disclaimers, powered by) */
#footer-places,
#footer-icons,
.mw-footer-container {
    display: none !important;
}

/* 1. Hide the Hamburger Menu button (top left) */
#mw-sidebar-button,
#vector-main-menu-dropdown {
    display: none !important;
}

/* 2. Hide the Log in button / user section (top right) */
body.not-logged-in #p-personal,
body.not-logged-in .vector-user-links,
body.not-logged-in #pt-login,
body.not-logged-in #pt-login-2 {
    display: none !important;
}

/* 3. Hide the page category tabs (Main Page | Discussion) & action tabs (Read | View source | View history | Tools) */
body.not-logged-in .vector-page-toolbar,
body.not-logged-in #p-namespaces,
body.not-logged-in #p-views,
body.not-logged-in #p-cactions,
body.not-logged-in .mw-article-toolbar {
    display: none !important;
}