User:CannonProductions/monacobookbeta.css: Difference between revisions
From MediaWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
/* --- Base layout: full width, | /* --- Base layout: full width, don't clip off-canvas/dropdowns --- */ | ||
html, body { | html, body { | ||
width: 100% !important; | width: 100% !important; | ||
| Line 8: | Line 8: | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
overflow-x: visible !important; /* don't clip | overflow-x: visible !important; /* important: don't clip sliding panels */ | ||
} | } | ||
/* Banner: keep scaling, and prevent it from forcing width */ | |||
#top-ad { | |||
width: 100% !important; | |||
overflow: hidden !important; | |||
} | |||
#top-ad iframe { | |||
transform: scale(0.77); | |||
transform-origin: top left; | |||
} | |||
/* Wrappers fluid */ | |||
#globalWrapper, | #globalWrapper, | ||
#column-content, | #column-content, | ||
| Line 21: | Line 32: | ||
padding: 0 !important; | padding: 0 !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
} | |||
/* Stop sideways scroll in the ARTICLE area (not the whole page) */ | |||
#mw-content-text, | |||
.mw-parser-output { | |||
overflow-x: hidden !important; | |||
} | } | ||
| Line 27: | Line 44: | ||
padding-left: 10px !important; | padding-left: 10px !important; | ||
padding-right: 10px !important; | padding-right: 10px !important; | ||
} | } | ||
| Line 33: | Line 49: | ||
#p-cactions, | #p-cactions, | ||
#p-cactions .pBody, | #p-cactions .pBody, | ||
#column-content { | #column-content, | ||
#globalWrapper { | |||
overflow: visible !important; | overflow: visible !important; | ||
} | } | ||
| Line 62: | Line 79: | ||
} | } | ||
/* Wide tables scroll */ | /* Wide tables scroll (table scrolls, page doesn't) */ | ||
#mw-content-text table.wikitable, | #mw-content-text table.wikitable, | ||
#mw-content-text .navbox, | #mw-content-text .navbox, | ||
| Line 82: | Line 99: | ||
} | } | ||
/* --- | /* --- Navigation panel: DO NOT override its positioning --- */ | ||
/* Just ensure it can sit above other stuff when it opens */ | |||
#column-one { | #column-one { | ||
z-index: 999999 !important; | z-index: 999999 !important; | ||
} | } | ||
| Line 186: | Line 117: | ||
z-index: 1000000 !important; | z-index: 1000000 !important; | ||
} | } | ||
} | } | ||
Revision as of 12:43, 30 December 2025
/* ===== TFWiki Mobile Fix Pack (MonacoBookBeta-ish) ===== */
@media (max-width: 720px) {
/* --- Base layout: full width, don't clip off-canvas/dropdowns --- */
html, body {
width: 100% !important;
max-width: 100% !important;
margin: 0 !important;
padding: 0 !important;
overflow-x: visible !important; /* important: don't clip sliding panels */
}
/* Banner: keep scaling, and prevent it from forcing width */
#top-ad {
width: 100% !important;
overflow: hidden !important;
}
#top-ad iframe {
transform: scale(0.77);
transform-origin: top left;
}
/* Wrappers fluid */
#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;
}
/* Stop sideways scroll in the ARTICLE area (not the whole page) */
#mw-content-text,
.mw-parser-output {
overflow-x: hidden !important;
}
/* breathing room for article text */
#content, #bodyContent {
padding-left: 10px !important;
padding-right: 10px !important;
}
/* keep "more" / action menus able to overflow */
#p-cactions,
#p-cactions .pBody,
#column-content,
#globalWrapper {
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 (table scrolls, page doesn't) */
#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;
}
/* --- Navigation panel: DO NOT override its positioning --- */
/* Just ensure it can sit above other stuff when it opens */
#column-one {
z-index: 999999 !important;
}
/* --- Layering fix --- */
#p-personal {
position: relative !important;
z-index: auto !important;
}
#sitemenutop,
#usermenutop,
#mobileusermenu {
position: relative !important;
z-index: 1000000 !important;
}
}

