MediaWiki:Mobile.css: Difference between revisions

From Candypedia
No edit summary
Tags: Mobile edit Mobile web edit
No edit summary
Tags: Mobile edit Mobile web edit
Line 1: Line 1:
@media screen and (max-width: 720px) {
@media screen and (max-width: 720px) {
   /* 1) Un-hide the navbox that Minerva’s mobile CSS has display:none’d */
   /* 1) Outer navbox is the scroll container at 100% width */
   .content .navbox,
   .content .navbox,
   .content .vertical-navbox {
   .content .vertical-navbox {
     display: block !important;
     display: block !important;
     visibility: visible !important;
     width: 100% !important;
     height: auto !important;
     overflow-x: auto !important;
     max-height: none !important;
     -webkit-overflow-scrolling: touch !important;
    opacity: 1 !important;
     box-sizing: border-box;
     box-sizing: border-box;
    width: 100% !important;
   }
   }


   /* 2) Turn the inner table into a scroll container */
   /* 2) Inner wrapper just wraps the table inline, no forced width */
   .content .navbox-inner {
   .content .navbox-inner {
     display: block !important;
     display: inline-block !important;
     overflow-x: auto !important;
     width: auto !important;
    -webkit-overflow-scrolling: touch !important;
     min-width: 0 !important;
    width: max-content !important;
     min-width: 100% !important;
   }
   }


   /* 3) Lay out all your groups/items in a single row */
   /* 3) Line up your groups/items in a row */
   .content .navbox-group,
   .content .navbox-group,
   .content .navbox-list {
   .content .navbox-list {

Revision as of 21:41, 24 April 2025

@media screen and (max-width: 720px) {
  /* 1) Outer navbox is the scroll container at 100% width */
  .content .navbox,
  .content .vertical-navbox {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box;
  }

  /* 2) Inner wrapper just wraps the table inline, no forced width */
  .content .navbox-inner {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
  }

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