MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 403: | Line 403: | ||
} | } | ||
/* | /* Hide stray VisualEditor <p><br></p> after infoboxes */ | ||
.mw- | .mw-parser-output .infobox + p:has(br) { | ||
margin | display: none !important; | ||
padding | margin: 0 !important; | ||
padding: 0 !important; | |||
} | } | ||
/* | /* === Mobile Infobox Layout Fix === */ | ||
. | @media (max-width: 768px) { | ||
.mw- | /* Force infoboxes to drop below text and use full width */ | ||
.mw- | .infobox { | ||
.mw- | float: none !important; | ||
margin: 1em auto !important; | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
clear: both !important; | |||
display: block !important; | |||
} | |||
/* Slight padding and center alignment for aesthetics */ | |||
.infobox th, | |||
.infobox td { | |||
padding: 0.4em !important; | |||
} | |||
/* Make sure text wraps nicely */ | |||
.infobox td, | |||
.infobox th { | |||
word-wrap: break-word !important; | |||
} | |||
} | |||
/* === Desktop: show full wordmark === */ | |||
.mw-logo-icon { display: none !important; } | |||
.mw-logo-wordmark { display: inline-block !important; } | |||
/* === Mobile (under 768px): hide wordmark, show square icon === */ | |||
@media (max-width: 768px) { | |||
.mw-logo-wordmark { display: none !important; } | |||
.mw-logo-icon { | |||
display: inline-block !important; | |||
content: url("https://untenables.com/images/2/26/Favicon.png"); | |||
width: 42px; | |||
height: auto; | |||
margin-top: 4px; | |||
} | |||
} | } | ||