User:CannonProductions/monacobookbeta.css: Difference between revisions
From MediaWiki
Jump to navigationJump to search
Undo revision 1881980 by CannonProductions (talk) |
No edit summary |
||
| Line 15: | Line 15: | ||
} | } | ||
/* 2) Force the main wrappers to be fluid */ | /* 2) Force the main wrappers to be fluid (but DO NOT touch #column-one; it's JS-toggled) */ | ||
#globalWrapper, | #globalWrapper, | ||
#column-content, | #column-content, | ||
| Line 22: | Line 22: | ||
width: auto !important; | width: auto !important; | ||
max-width: 100% !important; | max-width: 100% !important; | ||
min-width: 0 !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
| Line 32: | Line 33: | ||
} | } | ||
/* 3) | /* 3) Media should never force horizontal scroll */ | ||
img, video, iframe { | img, video, iframe { | ||
max-width: 100% !important; | max-width: 100% !important; | ||
| Line 53: | Line 43: | ||
} | } | ||
/* | /* 4) Tables/infoboxes/navboxes: avoid blowing out the page width */ | ||
table, .wikitable, .infobox, .navbox { | table, .wikitable, .infobox, .navbox { | ||
max-width: 100% !important; | 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; | overflow-x: auto !important; | ||
-webkit-overflow-scrolling: touch; | -webkit-overflow-scrolling: touch; | ||
| Line 71: | Line 61: | ||
} | } | ||
/* | /* 5) 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:31, 30 December 2025
@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;
}
}

