MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
Hide major layout containers that you don't need | Hide major layout containers that you don't need | ||
======================================================================== */ | ======================================================================== */ | ||
#content, /* main content area */ | |||
#footer, /* footer */ | #footer, /* footer */ | ||
#mw-head { /* site header, if present */ | #mw-head { /* site header, if present */ | ||
Revision as of 15:28, 11 April 2025
/* CSS placed here will be applied to all skins */
/* ========================================================================
Hide major layout containers that you don't need
======================================================================== */
#content, /* main content area */
#footer, /* footer */
#mw-head { /* site header, if present */
display: none !important;
}
/* ========================================================================
In the left sidebar (#mw-panel): hide all its contents...
======================================================================== */
#mw-panel {
display: block !important;
}
#mw-panel > * {
display: none !important;
}
/* Now, explicitly display the logo and the mainpage link */
#p-logo,
#n-mainpage {
display: block !important;
}
/* ========================================================================
In the personal tools (#p-personal): hide everything except the login link
======================================================================== */
#p-personal {
display: block !important;
}
#pt-login {
display: inline-block !important;
}
/* ========================================================================
In the toolbox (#p-tb): hide everything except the print command
======================================================================== */
#p-tb {
display: block !important;
}
#p-tb > * {
display: none !important;
}
#t-print {
display: inline-block !important;
}