MediaWiki:Common.css: Difference between revisions
From The Taylor Archive
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* 1. Reset base wrapper styling so empty containers stay invisible */ | ||
#mw-site-navigation .sidebar-inner { | #mw-site-navigation .sidebar-inner { | ||
background: transparent !important; | background: transparent !important; | ||
| Line 14: | Line 6: | ||
} | } | ||
#mw-site-navigation .sidebar-chunk { | /* 2. Hide any sidebar chunk on main/content pages that lacks actual links */ | ||
#mw-site-navigation .sidebar-chunk:not(:has(a)) { | |||
display: none !important; | |||
} | |||
/* 3. Explicitly hide the language and secondary tool containers when unpopulated */ | |||
#p-lang, | |||
#p-lang-sidebar, | |||
.mw-portlet-lang, | |||
#p-tb-label { | |||
display: none !important; | |||
} | } | ||
Revision as of 19:21, 20 July 2026
/* 1. Reset base wrapper styling so empty containers stay invisible */
#mw-site-navigation .sidebar-inner {
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
/* 2. Hide any sidebar chunk on main/content pages that lacks actual links */
#mw-site-navigation .sidebar-chunk:not(:has(a)) {
display: none !important;
}
/* 3. Explicitly hide the language and secondary tool containers when unpopulated */
#p-lang,
#p-lang-sidebar,
.mw-portlet-lang,
#p-tb-label {
display: none !important;
}