MediaWiki:Mobile.css

From Amberlynn Wiki
Revision as of 13:08, 24 March 2025 by Admin (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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;
    }
}