MediaWiki:Group-user.css

Revision as of 03:20, 4 February 2026 by Wikilah admin (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.
/* CSS placed here will affect registered users only */

/* ========================================================== */
/* RESTORE MENUS FOR LOGGED-IN USERS                          */
/* This overrides the "Hide" rules in Common.css              */
/* ========================================================== */

/* 1. Restore User Links Container */
/* Vector 2022 uses flexbox for the header icons */
#vector-user-links,
.vector-user-links,
#p-personal {
    display: flex !important;
}

/* 2. Restore Individual User Buttons */
#pt-userpage, 
#pt-mytalk, 
#pt-preferences, 
#pt-watchlist, 
#pt-mycontris, 
#pt-logout {
    display: block !important;
}

/* 3. Restore Tools (Sidebar & Dropdowns) */
#vector-page-tools,
#vector-page-tools-dropdown,
#p-tb,
.vector-page-tools,
.vector-p-tb,
#p-coll-print_export {
    display: block !important;
}

/* 4. Restore Tabs (History, Talk, Edit) */
#ca-viewsource, 
#ca-history, 
#ca-talk {
    display: block !important;
}

/* 5. Restore Categories Bar */
/* Essential if you want to manage categories */
#catlinks, 
.catlinks,
.mw-normal-catlinks {
    display: block !important;
}

/* ======================================================= */
/* RESTORE PAGE ACTIONS FOR LOGGED-IN USERS                */
/* ======================================================= */
#p-views,
.page-actions-menu__list {
    /* Use FLEX because this menu needs horizontal alignment */
    display: flex !important; 
}

/* ======================================================= */
/* RESTORE INTERFACE FOR LOGGED-IN USERS                   */
/* ======================================================= */

/* Restore Vector 2022 Toolbar */
/* We use 'flex' because Vector 2022 uses flexbox for alignment */
.vector-page-toolbar {
    display: flex !important;
}

/* Restore SiteSub ("From...") and Indicators */
.vector-body-before-content {
    display: block !important;
}

/* ======================================================= */
/* RESTORE HEADER MENUS FOR LOGGED-IN USERS                */
/* ======================================================= */

.vector-menu-content {
    /* Use flex to maintain correct horizontal alignment of icons */
    display: flex !important; 
}

/* ======================================================= */
/* RESTORE FULL WIDTH FOR LOGGED-IN USERS (EDITORS)        */
/* Overrides the 900px limit set in Common.css             */
/* ======================================================= */

#content {
    max-width: none !important;
    margin: 0 !important; /* Optional: Resets centering if you want it strictly left-aligned */
}

/* ======================================================= */
/* HIDE COLOR THEME (Read-Only/Anonymous Only)             */
/* ======================================================= */
/* This specific selector hides the element ONLY if the user 
   does NOT have the 'group-user' class (i.e., they are logged out). */
body:not(.group-user) #skin-client-prefs-skin-theme {
    display: none !important;
}