MediaWiki:Common.css

From AbhiprayaVedi
Revision as of 07:52, 31 May 2026 by VijayanPN (talk | contribs)

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.
/* Hide namespace subtitle for published articles */
.mw-displaytitle-subtitle {
    display: none !important;
}
/* ================ BASE TYPOGRAPHY ================ */

:lang(en) {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

/* Strong Malayalam Font Priority */
:lang(ml),
:lang(ml) * {
    font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Noto Sans Malayalam', 'Nirmala UI', sans-serif !important;
    line-height: 1.78 !important;
}

/* Specific overrides for article content */
.article-content:lang(ml),
.intro-box:lang(ml),
.highlight-box:lang(ml) {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}

/* Global minor tweaks only */
body {
  line-height: 1.7;
}

/* Main Article Title (Skin H1) */
#firstHeading,
.mw-first-heading {
    font-size: 2.4em !important;
    font-weight: bold !important;
    margin-bottom: 0.4em !important;
    color: #222;
    border-bottom: solid 4px #36c;
}
/* Malayalam support */
:lang(ml) #firstHeading,
:lang(ml) .mw-first-heading {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif;
}