Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Common.css: Difference between revisions

MediaWiki interface page
Scope category auto-list hide to MedCategory pages only via :has() on the Category:MedCategory marker
Restore css content model clobbered by maintenance edit.php
 
(3 intermediate revisions by the same user not shown)
Line 64: Line 64:
}
}
/* ===== End Pendell's corner ===== */
/* ===== End Pendell's corner ===== */
/* ===== Hide MediaWiki's auto-generated category member listing on
/* Hide MediaWiki's auto-generated category member listing on category
   MedCategory pages only. Those pages render a manual prose "Members"
   pages that supply their own curated, prose-led member index. Two
   section instead. Scoping uses :has() to match the [[Category:MedCategory]]
  marker tags trigger the hide:
  marker rendered in the catlinks block, so any current or future page
    Category:MedCategoryFull      MedCategory class pages
   tagged [[Category:MedCategory]] gets the hide automatically and no
    Category:CuratedCategoryPage  canonical category pages (home-claude
   other category pages are affected. Category membership, navigation,
                                  category-page structure, 2026-05-20)
  and the API listing are unaffected this is display-only. ===== */
   Scoping uses :has() on the marker link in the catlinks block, so any
body:has(#mw-normal-catlinks a[title="Category:MedCategory"]) .mw-category-generated { display: none; }
   page carrying either marker is hidden automatically. Category
   membership, navigation, and the API listing are unaffected: this is
  display-only.
 
  This rule is intentionally SKIN-INDEPENDENT and must keep working
  under every skin (pharma default, plants overlay, any future skin).
  display: none is set !important and the selector carries id-level
  specificity, so a skin stylesheet cannot quietly re-show the
  auto-list. Future skin authors: do not override this. The curated
  index is the intended member listing on these pages. */
body:has(#mw-normal-catlinks a[title="Category:MedCategoryFull"]) .mw-category-generated,
body:has(#mw-normal-catlinks a[title="Category:CuratedCategoryPage"]) .mw-category-generated { display: none !important; }