MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* ========================================================= | |||
Mobile fixes | |||
Prevent infoboxes / series boxes from crushing article text | |||
========================================================= */ | |||
@media screen and (max-width: 768px) { | |||
.infobox, | |||
.navbox, | |||
. | .vertical-navbox, | ||
. | .metadata, | ||
. | table.infobox, | ||
table.navbox, | |||
table[style*="float:right"], | |||
table[style*="float: right"], | |||
} | div[style*="float:right"], | ||
div[style*="float: right"] { | |||
float: none !important; | |||
clear: both !important; | |||
width: calc(100% - 1.5rem) !important; | |||
max-width: 34rem !important; | |||
min-width: 0 !important; | |||
margin: 1.25em auto !important; | |||
box-sizing: border-box !important; | |||
border-left: 4px solid var(--wk-green) !important; | |||
} | |||
.infobox img, | |||
. | .navbox img, | ||
table.infobox img, | |||
} | table.navbox img { | ||
max-width: 80% !important; | |||
height: auto !important; | |||
display: block; | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | |||
.mw-parser-output > p, | |||
.mw- | .mw-parser-output > ul, | ||
.mw-parser-output > ol { | |||
.mw- | clear: both; | ||
} | |||
.mw- | |||
} | |||
#content { | |||
padding-left: 16px !important; | |||
padding-right: 16px !important; | |||
box-sizing: border-box !important; | |||
} | } | ||
.mw-body, | |||
.mw-parser-output | .vector-body, | ||
.mw-body-content, | |||
} | #bodyContent, | ||
.mw-parser-output { | |||
padding-left: 0 !important; | |||
padding-right: 0 !important; | |||
margin-left: 0 !important; | |||
margin-right: 0 !important; | |||
box-sizing: border-box !important; | |||
} | |||
.mw-body h1, | |||
.mw-parser-output | .mw-parser-output h1 { | ||
font-size: 2rem; | |||
line-height: 1.12; | |||
} | margin-top: 0.6em; | ||
margin-bottom: 0.55em; | |||
} | |||
.mw-body h2, | |||
. | .mw-parser-output h2 { | ||
font-size: 1.55rem; | |||
line-height: 1.2; | |||
} | |||
} | |||
.infobox ul, | |||
.infobox, | .navbox ul, | ||
table.infobox ul, | |||
.navbox, | table.navbox ul { | ||
table | padding-left: 1.3em; | ||
} | |||
.infobox | |||
.navbox | |||
. | |||
} | |||
} | } | ||