MediaWiki:Common.css: Difference between revisions
Created page with "→CSS placed here will be applied to all skins: →Hide 'View history' tab for anonymous users: body:not(.loggedin) li#ca-history { display: none !important; } →Hide 'Recent changes' link in sidebar for anonymous users: body:not(.loggedin) #n-recentchanges, body:not(.loggedin) a[title="Special:RecentChanges"] { display: none !important; }" |
mNo edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* Hide 'View history' tab for anonymous users */ | /* ✅ Hide 'View history' tab ONLY for anonymous users */ | ||
body | body.anonymous li#ca-history { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* Hide 'Recent changes' | /* ✅ Hide 'Recent changes' ONLY for anonymous users */ | ||
body | body.anonymous #n-recentchanges, | ||
body | body.anonymous a[title="Special:RecentChanges"] { | ||
display: none !important; | display: none !important; | ||
} | } |
Revision as of 16:43, 28 June 2025
/* CSS placed here will be applied to all skins */ /* ✅ Hide 'View history' tab ONLY for anonymous users */ body.anonymous li#ca-history { display: none !important; } /* ✅ Hide 'Recent changes' ONLY for anonymous users */ body.anonymous #n-recentchanges, body.anonymous a[title="Special:RecentChanges"] { display: none !important; }