User:CannonProductions/monacobookbeta.css
From MediaWiki
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.
/* ===== TFWiki Mobile (MonacoBookBeta-ish) — clean + conflict-proof ===== */
@media (max-width: 720px) {
/* --- Base layout: full width, no weird centering --- */
html, body {
width: 100% !important;
max-width: 100% !important;
margin: 0 !important;
padding: 0 !important;
overflow-x: visible !important;
}
#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;
}
/* breathing room for article text */
#content, #bodyContent {
padding-left: 10px !important;
padding-right: 10px !important;
overflow-x: hidden !important;
}
/* keep "more" / action menus able to overflow */
#p-cactions,
#p-cactions .pBody,
#column-content {
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 */
#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;
}
/* --- Layering defaults --- */
#p-personal {
position: relative !important;
z-index: auto !important;
}
/* keep top bar clickable */
#sitemenutop,
#usermenutop,
#mobileusermenu {
position: relative !important;
z-index: 1000000 !important;
}
/* keep banner ad low by default */
#top-ad,
#top-ad iframe {
position: relative !important;
z-index: 1 !important;
}
/* =========================================================
FULL-SCREEN NAV: ONLY when html.tf-nav-open is present
========================================================= */
html.tf-nav-open #column-one {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
width: 100vw !important;
min-width: 100vw !important;
max-width: none !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;
background: #fff !important;
box-sizing: border-box !important;
}
/* Stretch the sidebar contents to match the full width */
html.tf-nav-open #column-one .portlet,
html.tf-nav-open #column-one .pBody,
html.tf-nav-open #column-one ul,
html.tf-nav-open #column-one form,
html.tf-nav-open #column-one fieldset {
width: 100% !important;
max-width: none !important;
box-sizing: border-box !important;
float: none !important;
margin: 0 !important;
padding: 0 !important;
}
/* Full-width menu lists + big tap targets */
html.tf-nav-open #column-one ul {
list-style: none !important;
}
html.tf-nav-open #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;
}
/* Hide the redundant big logo image above NAVIGATION */
html.tf-nav-open #column-one #p-m-logo {
display: none !important;
}
/* (Optional) If another logo block shows up, hide it too */
html.tf-nav-open #column-one #p-logo {
display: none !important;
}
/* Hide the banner ad while nav is open */
html.tf-nav-open #top-ad {
display: none !important;
}
}

