MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 410: | Line 410: | ||
} | } | ||
/* | /* === Mobile Infobox Layout Fix === */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
. | /* Force infoboxes to drop below text and use full width */ | ||
.infobox { | |||
float: none !important; | |||
margin: 1em auto !important; | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
clear: both !important; | |||
display: block !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; | |||
} | } | ||
} | } | ||