MediaWiki:Mobile.css

From Candypedia
Revision as of 21:13, 24 April 2025 by SuitCase (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.
@media screen and (max-width: 720px) {
  /* 1) Force navbox to show and scroll on narrow screens */
  .content .navbox,
  .content .vertical-navbox {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box;
    width: 100%;
  }

  /* 2) Make the inner table width “auto” so it can overflow horizontally */
  .content .navbox-inner {
    display: block !important;
    width: max-content !important;
    min-width: 100% !important;
  }

  /* 3) Line up your list items in one row */
  .navbox-group,
  .navbox-list {
    white-space: nowrap;
    margin: 0;
    padding: 0;
  }
  .navbox-group > li,
  .navbox-list > li {
    display: inline-block;
    float: none;
  }
}