MediaWiki:Common.css: Difference between revisions
No edit summary Tag: Reverted |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 75: | Line 75: | ||
background-color: #fff !important; | background-color: #fff !important; | ||
} | } | ||
.mw-parser-output > :first-child { | .mw-parser-output > :first-child { | ||
margin-top: 0 !important; | margin-top: 0 !important; | ||
| Line 1,313: | Line 1,265: | ||
body.page-Main_Page #firstHeading { | body.page-Main_Page #firstHeading { | ||
display: none; | display: none; | ||
} | |||
/* ========== MOBILE-ONLY INFOBOX FIX (DESKTOP SAFE) ========== */ | |||
@media (max-width: 600px) { | |||
/* Make infobox width fit mobile */ | |||
.infobox { | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
margin: 0 auto !important; | |||
font-size: 14px !important; | |||
} | |||
/* Image auto-resizes on mobile only */ | |||
.infobox img { | |||
max-width: 100% !important; | |||
height: auto !important; | |||
} | |||
/* Left label column */ | |||
.infobox th { | |||
width: 40% !important; /* Slightly bigger label space */ | |||
padding: 6px !important; | |||
background: #e0e0e0 !important; | |||
word-break: break-word !important; | |||
} | |||
/* Right value column */ | |||
.infobox td { | |||
padding: 6px !important; | |||
word-break: break-word !important; | |||
} | |||
/* Header title spacing */ | |||
.infobox caption { | |||
font-size: 18px !important; | |||
padding: 8px !important; | |||
} | |||
} | } | ||