MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 508:
 
/* ======================================================= */
/* GLOBAL HIDE LOGIN(Read-Only Mode) & TOOLS FOR ANONYMOUS USERS (VECTOR 2022) */
/* We hide these for everyone, then unhide for logged-in */
/* users in MediaWiki:Group-user.css */
/* ======================================================= */
 
/* 1. Hide the "Logentire in"User andLinks "Createarea account"(Login / Create buttonsAccount) */
body.not-logged-in #vector-user-links,
/* Targeting both standard header and sticky header (-2) elements */
#pt-login,
body.not-logged-in #vector-user-links,
body.not-logged-in #pt-createaccount,
body.not-logged-in #pt-login,
#pt-userpage,
body.not-logged-in #pt-createaccount,
#pt-mytalk,
body.not-logged-in #pt-login-2,
#pt-preferences,
body.not-logged-in #pt-createaccount-2 {
#pt-watchlist,
#pt-mycontris,
#pt-logout {
display: none !important;
}
 
/* 2. Hide the "Tools" menuMenu & Sidebar Tools */
#p-tb, /* Standard Toolbox */
/* #p-tb is the standard ID for the Toolbox/Tools menu */
#vector-page-tools, /* Vector 2022 Right Sidebar Tools */
body.not-logged-in #p-tb,
body.not-logged-in #vector-page-tools-dropdown, /* Vector 2022 Collapsed Tools */
body.not-logged-in .vector-p-tb { /* Generic Class */
display: none !important;
}
 
/* 3. (Optional) Hide Edit & History tabs for read-only feel */
#ca-viewsource,
#ca-history,
#ca-talk {
display: none !important;
}