MediaWiki:Mobile.css

Revision as of 12:39, 24 May 2026 by SGPolitico (talk | contribs)

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* All CSS here will be loaded for users of the mobile site */
/* Make Infobox Full Width on Mobile */
.infobox-container {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    margin: 15px 0 !important;
    clear: both !important;
    display: block !important;
}
.infobox-table,
.infobox-container table.wikitable {
    width: 100% !important;
    font-size: 14px;
    display: table !important;
}
.infobox-image img {
    max-width: 100%;
    height: auto;
}

/* Override inline styles on the infobox div (written by template) */
div[style*="width:30%"],
div[style*="width: 30%"],
div[style*="float:right"],
div[style*="float: right"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    clear: both !important;
    display: block !important;
}
div[style*="width:30%"] table.wikitable,
div[style*="width: 30%"] table.wikitable,
div[style*="float:right"] table.wikitable,
div[style*="float: right"] table.wikitable {
    width: 100% !important;
    display: table !important;
}