User:CannonProductions/monacobookbeta.css: Difference between revisions
From MediaWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ===== TFWiki Mobile | /* ===== TFWiki Mobile (MonacoBookBeta-ish) — clean + conflict-proof ===== */ | ||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
/* --- Base layout: full width, | /* --- Base layout: full width, no weird centering --- */ | ||
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; | overflow-x: visible !important; | ||
} | } | ||
#globalWrapper, | #globalWrapper, | ||
#column-content, | #column-content, | ||
| Line 32: | Line 21: | ||
padding: 0 !important; | padding: 0 !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
} | } | ||
| Line 44: | Line 27: | ||
padding-left: 10px !important; | padding-left: 10px !important; | ||
padding-right: 10px !important; | padding-right: 10px !important; | ||
overflow-x: hidden !important; | |||
} | } | ||
| Line 49: | Line 33: | ||
#p-cactions, | #p-cactions, | ||
#p-cactions .pBody, | #p-cactions .pBody, | ||
#column-content | #column-content { | ||
overflow: visible !important; | overflow: visible !important; | ||
} | } | ||
| Line 79: | Line 62: | ||
} | } | ||
/* Wide tables scroll | /* Wide tables scroll */ | ||
#mw-content-text table.wikitable, | #mw-content-text table.wikitable, | ||
#mw-content-text .navbox, | #mw-content-text .navbox, | ||
| Line 99: | Line 82: | ||
} | } | ||
/* --- Layering defaults --- */ | |||
/* --- Layering | |||
#p-personal { | #p-personal { | ||
position: relative !important; | position: relative !important; | ||
| Line 111: | Line 88: | ||
} | } | ||
/* keep top bar clickable */ | |||
#sitemenutop, | #sitemenutop, | ||
#usermenutop, | #usermenutop, | ||
| Line 116: | Line 94: | ||
position: relative !important; | position: relative !important; | ||
z-index: 1000000 !important; | z-index: 1000000 !important; | ||
} | |||
/* keep banner ad low by default */ | |||
#top-ad, | |||
#top-ad iframe { | |||
position: relative !important; | |||
z-index: 1 !important; | |||
} | |||
/* ========================================================= | |||
FULL-SCREEN NAV: ONLY when html.tf-nav-open is present | |||
========================================================= */ | |||
html.tf-nav-open #column-one { | |||
position: fixed !important; | |||
top: 0 !important; | |||
left: 0 !important; | |||
right: 0 !important; | |||
width: 100vw !important; | |||
min-width: 100vw !important; | |||
max-width: none !important; | |||
height: 100vh !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
overflow-y: auto !important; | |||
overflow-x: hidden !important; | |||
-webkit-overflow-scrolling: touch; | |||
z-index: 999999 !important; | |||
background: #fff !important; | |||
box-sizing: border-box !important; | |||
} | |||
/* Stretch the sidebar contents to match the full width */ | |||
html.tf-nav-open #column-one .portlet, | |||
html.tf-nav-open #column-one .pBody, | |||
html.tf-nav-open #column-one ul, | |||
html.tf-nav-open #column-one form, | |||
html.tf-nav-open #column-one fieldset { | |||
width: 100% !important; | |||
max-width: none !important; | |||
box-sizing: border-box !important; | |||
float: none !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | |||
/* Full-width menu lists + big tap targets */ | |||
html.tf-nav-open #column-one ul { | |||
list-style: none !important; | |||
} | |||
html.tf-nav-open #column-one li a { | |||
display: block !important; | |||
width: 100% !important; | |||
box-sizing: border-box !important; | |||
padding: 14px 16px !important; | |||
font-size: 18px !important; | |||
line-height: 1.2 !important; | |||
border-bottom: 1px solid rgba(0,0,0,0.10) !important; | |||
text-decoration: none !important; | |||
} | |||
/* Hide the redundant big logo image above NAVIGATION */ | |||
html.tf-nav-open #column-one #p-m-logo { | |||
display: none !important; | |||
} | |||
/* (Optional) If another logo block shows up, hide it too */ | |||
html.tf-nav-open #column-one #p-logo { | |||
display: none !important; | |||
} | |||
/* Hide the banner ad while nav is open */ | |||
html.tf-nav-open #top-ad { | |||
display: none !important; | |||
} | } | ||
} | } | ||
Revision as of 12:46, 30 December 2025
/* ===== TFWiki Mobile (MonacoBookBeta-ish) — clean + conflict-proof ===== */
@media (max-width: 720px) {
/* --- Base layout: full width, no weird centering --- */
html, body {
width: 100% !important;
max-width: 100% !important;
margin: 0 !important;
padding: 0 !important;
overflow-x: visible !important;
}
#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;
}
/* breathing room for article text */
#content, #bodyContent {
padding-left: 10px !important;
padding-right: 10px !important;
overflow-x: hidden !important;
}
/* keep "more" / action menus able to overflow */
#p-cactions,
#p-cactions .pBody,
#column-content {
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 */
#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;
}
/* --- Layering defaults --- */
#p-personal {
position: relative !important;
z-index: auto !important;
}
/* keep top bar clickable */
#sitemenutop,
#usermenutop,
#mobileusermenu {
position: relative !important;
z-index: 1000000 !important;
}
/* keep banner ad low by default */
#top-ad,
#top-ad iframe {
position: relative !important;
z-index: 1 !important;
}
/* =========================================================
FULL-SCREEN NAV: ONLY when html.tf-nav-open is present
========================================================= */
html.tf-nav-open #column-one {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
width: 100vw !important;
min-width: 100vw !important;
max-width: none !important;
height: 100vh !important;
margin: 0 !important;
padding: 0 !important;
overflow-y: auto !important;
overflow-x: hidden !important;
-webkit-overflow-scrolling: touch;
z-index: 999999 !important;
background: #fff !important;
box-sizing: border-box !important;
}
/* Stretch the sidebar contents to match the full width */
html.tf-nav-open #column-one .portlet,
html.tf-nav-open #column-one .pBody,
html.tf-nav-open #column-one ul,
html.tf-nav-open #column-one form,
html.tf-nav-open #column-one fieldset {
width: 100% !important;
max-width: none !important;
box-sizing: border-box !important;
float: none !important;
margin: 0 !important;
padding: 0 !important;
}
/* Full-width menu lists + big tap targets */
html.tf-nav-open #column-one ul {
list-style: none !important;
}
html.tf-nav-open #column-one li a {
display: block !important;
width: 100% !important;
box-sizing: border-box !important;
padding: 14px 16px !important;
font-size: 18px !important;
line-height: 1.2 !important;
border-bottom: 1px solid rgba(0,0,0,0.10) !important;
text-decoration: none !important;
}
/* Hide the redundant big logo image above NAVIGATION */
html.tf-nav-open #column-one #p-m-logo {
display: none !important;
}
/* (Optional) If another logo block shows up, hide it too */
html.tf-nav-open #column-one #p-logo {
display: none !important;
}
/* Hide the banner ad while nav is open */
html.tf-nav-open #top-ad {
display: none !important;
}
}

