MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tag: Manual revert |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* Make infobox responsive */ | |||
.infobox { | |||
max-width: 100% !important; | |||
width: 270px; | |||
float: right; | |||
margin: 0 0 1em 1em; | |||
word-wrap: break-word; | |||
overflow-wrap: break-word; | |||
box-sizing: border-box; | |||
} | |||
/* Force images inside infobox to scale */ | |||
.infobox img { | |||
max-width: 100% !important; | |||
height: auto !important; | |||
display: block; | |||
} | |||
/* Make header flexible */ | |||
.infobox th { | |||
white-space: normal !important; | |||
word-wrap: break-word; | |||
overflow-wrap: break-word; | |||
text-align: center; | |||
} | |||
/* Center infobox on mobile */ | |||
@media screen and (max-width: 600px) { | |||
.infobox { | |||
float: none !important; | |||
margin: 0 auto; | |||
} | |||
} |