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.
@media (max-width: 720px) {
#top-ad iframe {
transform: scale(0.77);
transform-origin: top left;
}
}
/* ===== Mobile width/overflow fixes for TFWiki (MonacoBook-ish skins) ===== */
@media (max-width: 720px) {
/* 1) Stop the page from being wider than the viewport */
html, body {
width: 100% !important;
overflow-x: hidden !important;
}
/* 2) Force the main wrappers to be fluid */
#globalWrapper,
#column-content,
#content,
#bodyContent {
width: auto !important;
max-width: 100% !important;
margin: 0 !important;
box-sizing: border-box !important;
}
/* Optional: give the text a tiny bit of breathing room */
#content, #bodyContent {
padding-left: 10px !important;
padding-right: 10px !important;
}
/* 3) Sidebar/left column is often the main cause of overflow */
#column-one {
float: none !important;
width: auto !important;
max-width: 100% !important;
position: static !important;
}
/* If you’d rather just hide the sidebar entirely on phones, uncomment this: */
/* #column-one { display: none !important; } */
/* 4) Images + thumbs should never force horizontal scroll */
img, video, iframe {
max-width: 100% !important;
height: auto !important;
}
.thumb, .thumbinner {
max-width: 100% !important;
box-sizing: border-box !important;
}
/* 5) Tables/infoboxes/navboxes are the usual overflow culprits */
table, .wikitable, .infobox, .navbox {
max-width: 100% !important;
}
/* Make wide tables scroll instead of breaking layout */
table, .wikitable, .navbox {
display: block !important;
overflow-x: auto !important;
-webkit-overflow-scrolling: touch;
}
/* Infoboxes are often floated and can cause sideways overflow */
.infobox {
float: none !important;
margin: 0 auto 1em auto !important;
}
/* 6) Long unbroken text/URLs/code can push 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;
}
}

