MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1,266: | Line 1,266: | ||
display: none; | display: none; | ||
} | } | ||
/* - | /* ========== MOBILE-ONLY INFOBOX FIX (DESKTOP SAFE) ========== */ | ||
@media (max-width: 600px) { | |||
.infobox { | /* 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 { | .infobox img { | ||
max-width: 100% !important; | |||
height: auto !important; | |||
} | } | ||
/* Left column | /* Left label column */ | ||
.infobox th { | .infobox th { | ||
width: 40% !important; /* Slightly bigger label space */ | |||
padding: 6px !important; | |||
background: #e0e0e0 !important; | |||
word-break: break-word !important; | |||
} | |||
} | |||
/* Right column | /* Right value column */ | ||
.infobox td { | .infobox td { | ||
padding: 6px !important; | |||
word-break: break-word !important; | |||
} | } | ||
/* Header title spacing */ | |||
.infobox caption { | .infobox caption { | ||
font-size: 18px; | font-size: 18px !important; | ||
padding: 8px; | padding: 8px !important; | ||
} | } | ||
} | } | ||