MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 66: | Line 66: | ||
.toc { | .toc { | ||
font-size: 16px !important; | 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; | |||
} | } | ||
} | } | ||
Revision as of 15:18, 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;
}
}
/* =========================
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;
}
}