Jump to content

MediaWiki:Group-user.css: Difference between revisions

From Insurer Brain
Content deleted Content added
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will affect registered users only */
/* CSS placed here will affect registered users only */
/* Show these tabs again for logged-in users */
#ca-viewsource, #ca-history, #ca-talk, #p-tb, #pt-login {
display: block !important;
}


/* ========================================================== */
/* ========================================================== */
/* RESTORE MENUS FOR LOGGED-IN USERS */
/* RESTORE MENUS FOR LOGGED-IN USERS */
/* This overrides the "Hide" rules in Common.css */
/* NB: MediaWiki-namespace page — admin manual paste, like */
/* Common.css. Git (this file) is canonical. */
/* ========================================================== */
/* ========================================================== */


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


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


/* the catlinks bar stays visible for editors, but not when it's an
/* 2. Restore Tools */
EMPTY box (all of the page's categories are hidden ones) */
#catlinks.catlinks-allhidden { display: none !important; }
/* 3. Restore Tools (Sidebar & Dropdowns) */
#vector-page-tools,
#vector-page-tools,
#vector-page-tools-dropdown,
#vector-page-tools-dropdown,
#p-tb,
#p-tb,
.vector-page-tools,
.vector-page-tools,
.vector-p-tb,
#p-coll-print_export {
#p-coll-print_export {
display: block !important;
display: block !important;
}
}


/* 3. Restore Tabs */
/* 4. Restore Tabs (History, Talk, Edit) */
#ca-viewsource,
#ca-viewsource,
#ca-history,
#ca-history,
#ca-talk {
#ca-talk {
display: block !important; /* Tabs are usually block/list-item */
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 the RIGHT RAIL (.vector-column-end): Common.css section 12
hides it for everyone, but PINNED page tools (incl. the Delete
action) render inside it — without this rule the Tools menu has no
home on the page even for admins (the toolbar itself shows, but a
pinned Tools panel lives in this column). */
.vector-column-end {
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 */
}
}

Latest revision as of 02:20, 18 July 2026

/* CSS placed here will affect registered users only */

/* ========================================================== */
/* RESTORE MENUS FOR LOGGED-IN USERS                          */
/* This overrides the "Hide" rules in Common.css              */
/* NB: MediaWiki-namespace page — admin manual paste, like    */
/* Common.css. Git (this file) is canonical.                  */
/* ========================================================== */

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

/* the catlinks bar stays visible for editors, but not when it's an
   EMPTY box (all of the page's categories are hidden ones) */
#catlinks.catlinks-allhidden { display: none !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 the RIGHT RAIL (.vector-column-end): Common.css section 12
   hides it for everyone, but PINNED page tools (incl. the Delete
   action) render inside it — without this rule the Tools menu has no
   home on the page even for admins (the toolbar itself shows, but a
   pinned Tools panel lives in this column). */
.vector-column-end {
    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 */
}