User:CannonProductions/monacobookbeta.css: Difference between revisions
From MediaWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
/* Banner: keep your scaling, but stop it from contributing to page width */ | |||
#top-ad { | |||
width: 100% !important; | |||
overflow: hidden !important; | |||
} | |||
#top-ad iframe { | #top-ad iframe { | ||
transform: scale(0.77); | transform: scale(0.77); | ||
| Line 15: | Line 20: | ||
} | } | ||
/* 2) Force the main wrappers to be fluid ( | /* 2) Force the main wrappers to be fluid (don’t touch #column-one; it’s JS-toggled) */ | ||
#globalWrapper, | #globalWrapper, | ||
#column-content, | #column-content, | ||
| Line 27: | Line 32: | ||
} | } | ||
/* Optional: | /* Optional: breathing room */ | ||
#content, #bodyContent { | #content, #bodyContent { | ||
padding-left: 10px !important; | padding-left: 10px !important; | ||
| Line 33: | Line 38: | ||
} | } | ||
/* 3) | /* ✅ 3) Kill the “wobble”: don’t let the content area scroll sideways */ | ||
#content, | |||
#bodyContent { | |||
overflow-x: hidden !important; | |||
} | |||
/* 4) Images + thumbs should never force horizontal scroll */ | |||
img, video, iframe { | img, video, iframe { | ||
max-width: 100% !important; | max-width: 100% !important; | ||
| Line 43: | Line 54: | ||
} | } | ||
/* | /* 5) Tables/navboxes: allow THESE to scroll instead of the whole page */ | ||
table | #mw-content-text table.wikitable, | ||
#mw-content-text table.navbox { | |||
display: block !important; | |||
overflow-x: auto !important; | |||
max-width: 100% !important; | max-width: 100% !important; | ||
-webkit-overflow-scrolling: touch; | -webkit-overflow-scrolling: touch; | ||
} | } | ||
/* Infoboxes | /* Infoboxes: keep them from floating wide */ | ||
.infobox { | .infobox { | ||
float: none !important; | float: none !important; | ||
margin: 0 auto 1em auto !important; | margin: 0 auto 1em auto !important; | ||
max-width: 100% !important; | |||
} | } | ||
/* | /* 6) Long unbroken text/URLs/code can push width */ | ||
.mw-parser-output { | .mw-parser-output { | ||
overflow-wrap: anywhere !important; | overflow-wrap: anywhere !important; | ||
Revision as of 10:48, 30 December 2025
@media (max-width: 720px) {
/* Banner: keep your scaling, but stop it from contributing to page width */
#top-ad {
width: 100% !important;
overflow: hidden !important;
}
#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 (don’t 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: breathing room */
#content, #bodyContent {
padding-left: 10px !important;
padding-right: 10px !important;
}
/* ✅ 3) Kill the “wobble”: don’t let the content area scroll sideways */
#content,
#bodyContent {
overflow-x: hidden !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/navboxes: allow THESE to scroll instead of the whole page */
#mw-content-text table.wikitable,
#mw-content-text table.navbox {
display: block !important;
overflow-x: auto !important;
max-width: 100% !important;
-webkit-overflow-scrolling: touch;
}
/* Infoboxes: keep them from floating wide */
.infobox {
float: none !important;
margin: 0 auto 1em auto !important;
max-width: 100% !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;
}
}

