User:CannonProductions/monacobookbeta.css: Difference between revisions

From MediaWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 2: Line 2:
@media (max-width: 720px) {
@media (max-width: 720px) {


   /* --- Base layout: full width, no weird centering --- */
   /* --- Base layout: full width, don't clip off-canvas/dropdowns --- */
   html, body {
   html, body {
     width: 100% !important;
     width: 100% !important;
Line 8: Line 8:
     margin: 0 !important;
     margin: 0 !important;
     padding: 0 !important;
     padding: 0 !important;
     overflow-x: visible !important; /* don't clip dropdowns */
     overflow-x: visible !important; /* important: don't clip sliding panels */
   }
   }


  /* Banner: keep scaling, and prevent it from forcing width */
  #top-ad {
    width: 100% !important;
    overflow: hidden !important;
  }
  #top-ad iframe {
    transform: scale(0.77);
    transform-origin: top left;
  }
  /* Wrappers fluid */
   #globalWrapper,
   #globalWrapper,
   #column-content,
   #column-content,
Line 21: Line 32:
     padding: 0 !important;
     padding: 0 !important;
     box-sizing: border-box !important;
     box-sizing: border-box !important;
  }
  /* Stop sideways scroll in the ARTICLE area (not the whole page) */
  #mw-content-text,
  .mw-parser-output {
    overflow-x: hidden !important;
   }
   }


Line 27: Line 44:
     padding-left: 10px !important;
     padding-left: 10px !important;
     padding-right: 10px !important;
     padding-right: 10px !important;
    overflow-x: hidden !important; /* stop sideways scroll in content */
   }
   }


Line 33: Line 49:
   #p-cactions,
   #p-cactions,
   #p-cactions .pBody,
   #p-cactions .pBody,
   #column-content {
   #column-content,
  #globalWrapper {
     overflow: visible !important;
     overflow: visible !important;
   }
   }
Line 62: Line 79:
   }
   }


   /* Wide tables scroll */
   /* Wide tables scroll (table scrolls, page doesn't) */
   #mw-content-text table.wikitable,
   #mw-content-text table.wikitable,
   #mw-content-text .navbox,
   #mw-content-text .navbox,
Line 82: Line 99:
   }
   }


   /* --- Full-screen sidebar overlay --- */
   /* --- Navigation panel: DO NOT override its positioning --- */
  /* Just ensure it can sit above other stuff when it opens */
   #column-one {
   #column-one {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
     z-index: 999999 !important;
     z-index: 999999 !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
  /* Remove built-in padding/indentation inside the sidebar */
  #column-one .portlet,
  #column-one .pBody {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
  }
  /* Full-width menu lists */
  #column-one ul {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
  }
  #column-one li { margin: 0 !important; padding: 0 !important; }
  /* Big, thumb-friendly menu rows */
  #column-one li a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 16px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    border-bottom: 1px solid rgba(0,0,0,0.10) !important;
    text-decoration: none !important;
  }
  /* Sidebar images behave */
  #column-one img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Search area padding + full-width controls */
  #p-search .pBody { padding: 12px 16px !important; }
  #column-one #searchInput,
  #column-one input[type="text"],
  #column-one input[type="search"] {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 18px !important;
    padding: 12px 12px !important;
    box-sizing: border-box !important;
  }
  #column-one input[type="submit"],
  #column-one input[type="button"],
  #column-one button {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    font-size: 18px !important;
    padding: 14px 12px !important;
    margin: 10px 0 0 0 !important;
    box-sizing: border-box !important;
   }
   }


Line 186: Line 117:
     z-index: 1000000 !important;
     z-index: 1000000 !important;
   }
   }
  #top-ad {
    position: relative !important;
    z-index: 1 !important;
  }
  #top-ad iframe {
    position: relative !important;
    z-index: 1 !important;
  }
  /* --- Nav-open tweaks (minimal, safe) --- */
  html.tf-nav-open #top-ad {
    display: none !important;
  }
  /* Optional: hide action tabs while nav open */
  html.tf-nav-open #p-cactions {
    display: none !important;
  }
}
/* Hide the redundant big logo inside the opened mobile nav */
html.tf-nav-open #column-one #p-m-logo {
  display: none !important;
}
}

Revision as of 12:43, 30 December 2025

/* ===== TFWiki Mobile Fix Pack (MonacoBookBeta-ish) ===== */
@media (max-width: 720px) {

  /* --- Base layout: full width, don't clip off-canvas/dropdowns --- */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: visible !important; /* important: don't clip sliding panels */
  }

  /* Banner: keep scaling, and prevent it from forcing width */
  #top-ad {
    width: 100% !important;
    overflow: hidden !important;
  }
  #top-ad iframe {
    transform: scale(0.77);
    transform-origin: top left;
  }

  /* Wrappers fluid */
  #globalWrapper,
  #column-content,
  #content,
  #bodyContent {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Stop sideways scroll in the ARTICLE area (not the whole page) */
  #mw-content-text,
  .mw-parser-output {
    overflow-x: hidden !important;
  }

  /* breathing room for article text */
  #content, #bodyContent {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* keep "more" / action menus able to overflow */
  #p-cactions,
  #p-cactions .pBody,
  #column-content,
  #globalWrapper {
    overflow: visible !important;
  }
  #p-cactions {
    position: relative !important;
    z-index: 10000 !important;
  }

  /* Main Page columns stack */
  #mw-content-text .mainleft,
  #mw-content-text .mainright {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    text-align: center;
  }

  /* Media never forces overflow */
  img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
  }
  .thumb, .thumbinner {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Wide tables scroll (table scrolls, page doesn't) */
  #mw-content-text table.wikitable,
  #mw-content-text .navbox,
  #mw-content-text table.navbox {
    display: block !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* long text doesn't blow width */
  .mw-parser-output {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  pre, code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
  }

  /* --- Navigation panel: DO NOT override its positioning --- */
  /* Just ensure it can sit above other stuff when it opens */
  #column-one {
    z-index: 999999 !important;
  }

  /* --- Layering fix --- */
  #p-personal {
    position: relative !important;
    z-index: auto !important;
  }

  #sitemenutop,
  #usermenutop,
  #mobileusermenu {
    position: relative !important;
    z-index: 1000000 !important;
  }
}