MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* =========================
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;
}
}
/* =========================
EXTRA MOBILE TEXT BOOST
========================= */
@media screen and (max-width: 768px) {
/* Main article paragraph text */
.mw-parser-output p,
.mw-parser-output li,
.mw-parser-output dd {
font-size: 19px !important; /* पहले ~16–17px था */
line-height: 1.8 !important;
}
/* Intro paragraph (lead section) */
.mw-parser-output > p {
font-size: 20px !important;
line-height: 1.85 !important;
}
/* Section content spacing */
.mw-parser-output {
padding-left: 14px !important;
padding-right: 14px !important;
}
}