MediaWiki:Mobile.css: Difference between revisions
Jump to navigation
Jump to search
Created page with "→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 scr..." |
(No difference)
|
Latest revision as of 13:08, 24 March 2025
/* 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;
}
}