MediaWiki:Mobile.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.
/* Mobile-specific styles */
/* Make main page image responsive */
.page-Main_Page .mw-parser-output .floatnone,
.page-Main_Page .mw-parser-output .center {
width: 100% !important;
}
.page-Main_Page .mw-parser-output img {
max-width: 100% !important;
height: auto !important;
}
/* Hide imagemap on mobile - coordinates don't scale */
.page-Main_Page .mw-parser-output map {
display: none;
}
/* Stack all table layouts */
.page-Main_Page table,
.page-Main_Page table tbody,
.page-Main_Page table tr,
.page-Main_Page table td {
display: block !important;
width: 100% !important;
}
/* Remove fixed widths */
.page-Main_Page td[style] {
width: 100% !important;
border-right: none !important;
}
/* Better spacing for content boxes */
.page-Main_Page .mw-parser-output > table {
margin-bottom: 1em;
}
/* Quick links should be readable */
#mp-topbanner ul {
margin: 0;
padding-left: 1.5em;
}
#mp-topbanner li {
margin-bottom: 0.5em;
}