MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ========================= | /* ========================= | ||
MOBILE VIEW FIX (MINERVA) | |||
========================= */ | ========================= */ | ||
@media screen and (max-width: 768px) { | |||
/* Hide | /* Hide left sidebar completely */ | ||
. | #mw-panel, | ||
.mw-sidebar, | |||
.vector-sidebar-container, | |||
.vector-main-menu-container { | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* Full width content */ | ||
#content, | |||
#mw-content-text, | |||
.mw-parser-output { | |||
. | |||
margin-left: 0 !important; | margin-left: 0 !important; | ||
padding-left: 12px !important; | |||
padding-right: 12px !important; | |||
} | |||
} | |||
/* | /* Increase base font size */ | ||
body { | |||
font-size: 18px !important; | |||
} | line-height: 1.6 !important; | ||
} | |||
/* | /* Paragraph text */ | ||
. | .mw-parser-output p { | ||
font-size: 18px !important; | |||
} | line-height: 1.7 !important; | ||
} | |||
/* | /* Headings bigger like Wikipedia mobile */ | ||
h1 { | |||
font-size: 26px !important; | |||
} | } | ||
h2 { | |||
font-size: 22px !important; | |||
} | |||
} | |||
h3 { | |||
font-size: 20px !important; | |||
} | |||
} | |||
h4 { | |||
font-size: 18px !important; | |||
} | |||
/* | /* Infobox image responsiveness */ | ||
. | .infobox, | ||
.infobox_v2, | |||
.infobox biography, | |||
.infobox img { | |||
width: 100% !important; | |||
. | max-width: 100% !important; | ||
float: none !important; | |||
margin: 0 auto 12px auto !important; | |||
} | |||
. | |||
margin | |||
} | |||
/* | /* Make TOC readable */ | ||
#toc, | |||
. | .toc { | ||
font-size: 16px !important; | |||
} | } | ||
} | } | ||
Revision as of 15:14, 20 January 2026
/* =========================
MOBILE VIEW FIX (MINERVA)
========================= */
@media screen and (max-width: 768px) {
/* Hide left sidebar completely */
#mw-panel,
.mw-sidebar,
.vector-sidebar-container,
.vector-main-menu-container {
display: none !important;
}
/* Full width content */
#content,
#mw-content-text,
.mw-parser-output {
margin-left: 0 !important;
padding-left: 12px !important;
padding-right: 12px !important;
}
/* Increase base font size */
body {
font-size: 18px !important;
line-height: 1.6 !important;
}
/* Paragraph text */
.mw-parser-output p {
font-size: 18px !important;
line-height: 1.7 !important;
}
/* Headings bigger like Wikipedia mobile */
h1 {
font-size: 26px !important;
}
h2 {
font-size: 22px !important;
}
h3 {
font-size: 20px !important;
}
h4 {
font-size: 18px !important;
}
/* Infobox image responsiveness */
.infobox,
.infobox_v2,
.infobox biography,
.infobox img {
width: 100% !important;
max-width: 100% !important;
float: none !important;
margin: 0 auto 12px auto !important;
}
/* Make TOC readable */
#toc,
.toc {
font-size: 16px !important;
}
}