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 (but DO NOT touch #column-one; it's JS-toggled) */
#globalWrapper,
#column-content,
#content,
#bodyContent {
width: auto !important;
max-width: 100% !important;
min-width: 0 !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) Media 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;
}
/* 4) Tables/infoboxes/navboxes: avoid blowing out the page width */
table, .wikitable, .infobox, .navbox {
max-width: 100% !important;
}
/* Safer than forcing tables/navboxes to display:block (which can break UI):
allow the *content area* to scroll horizontally when needed */
#bodyContent {
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;
}
/* 5) 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;
}
}

