MediaWiki:Mobile.css
Jump to navigation
Jump to search
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.
/* All CSS here will be loaded for users of the mobile site */
.navbox {
display: block !important; /* Ensure it’s visible */
width: 100%; /* Full width on small screens */
box-sizing: border-box; /* Include padding/borders in width */
font-size: 90%; /* Slightly smaller text for mobile */
}
.navbox-title {
padding: 5px; /* Reduce padding */
}
.navbox-list {
padding: 5px; /* Adjust list padding */
}
/* Make lists stack vertically on small screens */
@media (max-width: 720px) {
.navbox-group, .navbox-list {
display: block;
width: 100%;
}
.hlist ul {
display: block; /* Stack horizontal lists */
}
.hlist li {
display: block;
margin: 2px 0;
}
}