MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* ======================================================================== | |||
Hide major layout containers that you don't need | |||
======================================================================== */ | |||
#footer, /* footer */ | |||
#mw-head { /* site header, if present */ | |||
display: none !important; | |||
} | |||
/* ======================================================================== | /* ======================================================================== | ||
In the left sidebar (#mw-panel): hide all its contents... | In the left sidebar (#mw-panel): hide all its contents... | ||
| Line 33: | Line 41: | ||
display: block !important; | display: block !important; | ||
} | } | ||
#p-tb > * { | |||
display: none !important; | |||
} | |||
#t-print { | #t-print { | ||
display: inline-block !important; | display: inline-block !important; | ||
} | } | ||
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
======================================================================== */
#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;
}