MediaWiki:Common.css: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
.infobox, | .infobox, | ||
.navbox, | .navbox, | ||
| Line 21: | Line 20: | ||
float: none !important; | float: none !important; | ||
clear: both !important; | clear: both !important; | ||
width: 100% !important; | width: calc(100% - 1.5rem) !important; | ||
max-width: | max-width: 34rem !important; | ||
min-width: 0 !important; | min-width: 0 !important; | ||
margin: | margin: 1.25em auto !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
border-left: 4px solid var(--wk-green) !important; | |||
} | } | ||
.infobox img, | .infobox img, | ||
.navbox img, | .navbox img, | ||
table.infobox img, | table.infobox img, | ||
table.navbox img { | table.navbox img { | ||
max-width: | max-width: 80% !important; | ||
height: auto !important; | height: auto !important; | ||
display: block; | |||
margin-left: auto; | |||
margin-right: auto; | |||
} | } | ||
.mw-parser-output > p, | .mw-parser-output > p, | ||
.mw-parser-output > ul, | .mw-parser-output > ul, | ||
| Line 44: | Line 45: | ||
} | } | ||
#content { | |||
padding-left: 16px !important; | |||
padding-right: 16px !important; | |||
box-sizing: border-box !important; | |||
} | |||
.mw-body, | .mw-body, | ||
.vector-body, | .vector-body, | ||
.mw-body-content, | |||
#bodyContent, | |||
.mw-parser-output { | .mw-parser-output { | ||
padding-left: | padding-left: 0 !important; | ||
padding-right: | padding-right: 0 !important; | ||
box-sizing: border-box; | margin-left: 0 !important; | ||
margin-right: 0 !important; | |||
box-sizing: border-box !important; | |||
} | } | ||
.mw-body h1, | .mw-body h1, | ||
.mw-parser-output h1 { | .mw-parser-output h1 { | ||
font-size: | font-size: 2rem; | ||
line-height: 1. | line-height: 1.12; | ||
margin-top: 0.6em; | |||
margin-bottom: 0.55em; | |||
} | } | ||
| Line 67: | Line 77: | ||
} | } | ||
.infobox ul, | .infobox ul, | ||
.navbox ul, | .navbox ul, | ||
table.infobox ul, | table.infobox ul, | ||
table.navbox ul { | table.navbox ul { | ||
padding-left: 1. | padding-left: 1.3em; | ||
} | } | ||
} | |||
/* WikiHikmah sidebar colour scheme */ | |||
.wikihikmah-sidebar { | |||
border: 1px solid #8CCFD0; | |||
background: #F7FFFF; | |||
color: #073B42; | |||
} | |||
.wikihikmah-sidebar th, | |||
.wikihikmah-sidebar .sidebar-title { | |||
background: #0B7F8C; | |||
color: #FFFFFF; | |||
border-bottom: 3px solid #C9A646; | |||
} | |||
.wikihikmah-sidebar .sidebar-heading, | |||
.wikihikmah-sidebar .sidebar-above, | |||
.wikihikmah-sidebar .sidebar-subgroup th { | |||
background: #E6F7F7; | |||
color: #075B66; | |||
border-top: 1px solid #8CCFD0; | |||
border-bottom: 1px solid #8CCFD0; | |||
} | |||
.wikihikmah-sidebar a { | |||
color: #075B66; | |||
} | |||
.wikihikmah-sidebar a:visited { | |||
color: #064D57; | |||
} | |||
.wikihikmah-sidebar img { | |||
border-radius: 3px; | |||
} | } | ||