MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 963: | Line 963: | ||
img[alt="Powered by MediaWiki"], | img[alt="Powered by MediaWiki"], | ||
img[src*="poweredby_mediawiki"] { display: none !important; } | img[src*="poweredby_mediawiki"] { display: none !important; } | ||
/* ── Hide page action toolbar on Help and | /* ════════════════════════════════════════════════════════════════════ | ||
* Removes | Special pages — hide MediaWiki branding and internal links | ||
* "Read | Edit | View history | ★ | Tools" bar | Applies to: Login, CreateAccount, Logout, PasswordReset, ChangePassword | ||
* | The goal: visitors should not be aware the site runs on MediaWiki. | ||
════════════════════════════════════════════════════════════════════ */ | |||
/* ── Scope: all Special: pages ───────────────────────────────────── */ | |||
body.ns-special { | |||
/* 1. "Powered by MediaWiki" badge (bottom-right footer icon) */ | |||
#footer-icons, | |||
.mw-footer-powered, | |||
li#footer-poweredbyico, | |||
a[href*="mediawiki.org"], | |||
img[alt*="MediaWiki"], | |||
img[src*="mediawiki"] { display: none !important; } | |||
/* 2. Footer links row — Privacy policy / About / Disclaimers */ | |||
#footer-places, | |||
.mw-footer-places, | |||
ul#footer-info, | |||
#footer-info { display: none !important; } | |||
/* 3. Entire footer (nothing useful remains once icons + links are gone) */ | |||
#footer, .mw-footer { display: none !important; } | |||
/* 4. Vector sidebar (left nav) */ | |||
#mw-panel, | |||
.vector-sidebar, | |||
.vector-sidebar-container, | |||
#vector-toc-pinned-container, | |||
.vector-sticky-pinned-container { display: none !important; } | |||
/* 5. Vector page-tools (Tools dropdown on Special pages) */ | |||
.vector-page-toolbar, | |||
#vector-page-toolbar, | |||
.vector-column-end, | |||
.mw-portlet-coll-watch { display: none !important; } | |||
/* 6. "Page" / "Discussion" tabs */ | |||
#p-namespaces, .vector-namespaces-portlet, | |||
#p-views, .vector-page-tools-end { display: none !important; } | |||
} | |||
/* ── Login page specific (Special:UserLogin) ─────────────────────── */ | |||
body.page-Special_UserLogin, | |||
body.mw-special-Userlogin { | |||
/* "Help with logging in" link */ | |||
.mw-userlogin-help { display: none !important; } | |||
/* "Don't have an account?" section + avatar silhouette */ | |||
#mw-createaccount-cta, | |||
.mw-createacct-benefits-container, | |||
.mw-userlogin-benefits-container { display: none !important; } | |||
/* Hide "Create account" link in the form itself */ | |||
.mw-userlogin-createaccount { display: none !important; } | |||
} | |||
/* ── Create account page (Special:CreateAccount) ─────────────────── */ | |||
body.page-Special_CreateAccount, | |||
body.mw-special-CreateAccount { | |||
/* Benefits/marketing section MW sometimes shows */ | |||
.mw-createacct-benefits-container, | |||
.mw-userlogin-benefits-container { display: none !important; } | |||
/* "Already have an account? Log in" - keep but don't show MW help links */ | |||
.mw-createacct-help { display: none !important; } | |||
} | |||
/* ── Password reset page ─────────────────────────────────────────── */ | |||
body.page-Special_PasswordReset, | |||
body.mw-special-PasswordReset { | |||
/* Nothing extra to hide — just apply the ns-special rules above */ | |||
} | |||
/* ── Logout page ─────────────────────────────────────────────────── */ | |||
body.page-Special_UserLogout, | |||
body.mw-special-UserLogout { | |||
/* Nothing extra — ns-special rules handle it */ | |||
} | |||
/* ── Header on Special pages: hide edit/watchlist/history controls ─ */ | |||
body.ns-special { | |||
/* Action tabs (Read / Edit / View history) */ | |||
#p-views .vector-menu-content, | |||
.vector-page-tools-end, | |||
#ca-edit, #ca-ve-edit, #ca-history, | |||
#ca-watch, #ca-unwatch { display: none !important; } | |||
/* "Powered by MediaWiki" in the sticky header too */ | |||
.vector-sticky-header [href*="mediawiki.org"] { display: none !important; } | |||
} | |||
/* ── Global: always hide "Powered by MediaWiki" everywhere ────────── | |||
* Even on content pages — this is belt-and-braces to ensure it never | |||
* appears even if the footer is somehow present on a content page. */ | |||
#footer-poweredbyico, | |||
.mw-footer-powered, | |||
a.mw-powered-by, | |||
a[href="https://www.mediawiki.org/"], | |||
img[alt="Powered by MediaWiki"], | |||
img[src*="poweredby_mediawiki"] { display: none !important; } | |||
/* header icon rules consolidated above */ | |||
/* ── Hide page action toolbar on Help, About, and all Project (ns-4) pages ── | |||
* Removes "Project page | Discussion" tabs and | |||
* "Read | Edit | View history | ★ | Tools" bar. | |||
* ns-4 = MediaWiki Project namespace (My_wiki:*) ──────────────────── */ | |||
body.ns-4, | |||
body.page-My_wiki-About, | body.page-My_wiki-About, | ||
body.page-My_wiki-Help { | body.page-My_wiki-Help { | ||
.vector-page-toolbar, | |||
#vector-page-toolbar { display: none !important; } | |||
#p-namespaces, | #p-namespaces, | ||
.vector-namespaces-portlet, | .vector-namespaces-portlet, | ||
.mw-portlet-namespaces { display: none !important; } | .mw-portlet-namespaces { display: none !important; } | ||
#p-views, | #p-views, | ||
.mw-portlet-views { display: none !important; } | .mw-portlet-views { display: none !important; } | ||
#ca-watch, #ca-unwatch, | |||
#ca-watch, | |||
.mw-watchlink { display: none !important; } | .mw-watchlink { display: none !important; } | ||
#vector-page-tools, | #vector-page-tools, | ||
.vector-page-tools, | .vector-page-tools, | ||
#p-cactions, | #p-cactions, | ||
.mw-portlet-cactions { display: none !important; } | .mw-portlet-cactions { display: none !important; } | ||
} | } | ||