|
|
| Line 942: |
Line 942: |
| opacity: 1 !important; | | opacity: 1 !important; |
| } | | } |
| /* ── Header on Special pages: hide edit/watchlist/history controls ─ */ | | |
| body.ns-special {
| | |
| /* Action tabs (Read / Edit / View history) */
| | /* ===== HEADER CLEANUP ===== */ |
| #p-views .vector-menu-content,
| | |
| .vector-page-tools-end,
| | /* Hamburger */ |
| #ca-edit, #ca-ve-edit, #ca-history,
| | .vector-main-menu, |
| #ca-watch, #ca-unwatch { display: none !important; }
| | #mw-sidebar-button, |
|
| | .vector-header-start .vector-main-menu-container { |
| /* "Powered by MediaWiki" in the sticky header too */
| | display: none !important; |
| .vector-sticky-header [href*="mediawiki.org"] { display: none !important; }
| |
| } | | } |
|
| | |
| /* ── Global: always hide "Powered by MediaWiki" everywhere ────────── | | /* Search */ |
| * Even on content pages — this is belt-and-braces to ensure it never
| | #p-search, |
| * appears even if the footer is somehow present on a content page. */
| | .vector-search-box, |
| #footer-poweredbyico, | | .vector-search-box-vue, |
| .mw-footer-powered,
| | .vector-search-box-collapses { |
| a.mw-powered-by,
| | display: none !important; |
| a[href="https://www.mediawiki.org/"],
| |
| img[alt="Powered by MediaWiki"],
| |
| img[src*="poweredby_mediawiki"] { display: none !important; }
| |
| /* ════════════════════════════════════════════════════════════════════
| |
| Special pages — hide MediaWiki branding and internal links
| |
| 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) ─────────────────────── */ | | /* Appearance */ |
| body.page-Special_UserLogin,
| | #vector-appearance, |
| body.mw-special-Userlogin {
| | #p-appearance, |
|
| | .vector-appearance-pinnable-element, |
| /* "Help with logging in" link */
| | [aria-controls="vector-appearance"] { |
| .mw-userlogin-help { display: none !important; }
| | 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) ─────────────────── */ | | /* Watchlist */ |
| body.page-Special_CreateAccount,
| | #pt-watchlist, |
| body.mw-special-CreateAccount {
| | #pt-watchlist-2, |
|
| | li#pt-watchlist { |
| /* Benefits/marketing section MW sometimes shows */
| | display: none !important; |
| .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-Help {
| |
| .vector-page-toolbar,
| |
| #vector-page-toolbar { display: none !important; }
| |
|
| |
| #p-namespaces,
| |
| .vector-namespaces-portlet,
| |
| .mw-portlet-namespaces { display: none !important; }
| |
|
| |
| #p-views,
| |
| .mw-portlet-views { display: none !important; }
| |
|
| |
| #ca-watch, #ca-unwatch,
| |
| .mw-watchlink { display: none !important; }
| |
|
| |
| #vector-page-tools,
| |
| .vector-page-tools,
| |
| #p-cactions,
| |
| .mw-portlet-cactions { display: none !important; }
| |
| } | | } |