MediaWiki:Common.css
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* Center and style the main page logo */
.mainpage-logo {
text-align: center;
margin: 20px 0;
}
.mainpage-logo img {
max-width: 100%;
height: auto;
}
/* Responsive tables */
table {
width: 100%;
overflow-x: auto;
display: block;
}
/* Responsive layout adjustments */
@media (max-width: 768px) {
#mw-head-base,
#mw-panel,
#mw-navigation {
display: none; /* Optional: hide sidebars on small screens */
}
#content,
#bodyContent {
margin: 0;
padding: 10px;
width: 100%;
}
h1, h2, h3 {
font-size: 1.5em;
}
.mainpage-logo img {
width: 100%;
height: auto;
}
}