MediaWiki:Common.css: Difference between revisions
From അഭിപ്രായവേദി
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
/* | /* ========================================================================== | ||
@import url('https:// | 1. LOAD MALAYALAM GOOGLE FONTS | ||
========================================================================== */ | |||
@import url('https://googleapis.com'); | |||
:lang(ml), | /* GLOBAL FONTS FORCE (Combined to eliminate duplications) */ | ||
:lang(ml) * { | :lang(ml), :lang(ml) *, | ||
font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important; | body:lang(ml), .mw-body:lang(ml), .mw-body-content:lang(ml), #content:lang(ml), | ||
.mw-parser-output:lang(ml), .article-content:lang(ml), .article-content *, | |||
.intro-box:lang(ml), p:lang(ml), span:lang(ml), div:lang(ml), | |||
h1:lang(ml), h2:lang(ml), h3:lang(ml), h4:lang(ml), | |||
#firstHeading, .mw-first-heading, .firstHeading { | |||
font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', 'Nirmala UI', sans-serif !important; | |||
} | } | ||
/* | /* GLOBAL MINOR TWEAKS */ | ||
body { | |||
line-height: 1.7; | |||
} | } | ||
.article-content * { | |||
line-height: 1.85 !important; | |||
} | } | ||
/* | /* ========================================================================== | ||
#firstHeading, | 2. HEADINGS & TITLES | ||
.mw-first-heading { | ========================================================================== */ | ||
font-size: 2. | #firstHeading, .mw-first-heading, .firstHeading { | ||
font-weight: | font-size: 2.35em !important; | ||
font-weight: 700 !important; | |||
margin-bottom: 0.4em !important; | margin-bottom: 0.4em !important; | ||
color: #222; | color: #222; | ||
border-bottom: solid 4px #36c; | border-bottom: solid 4px #36c; | ||
} | } | ||
:lang(en) #firstHeading, :lang(en) .mw-first-heading { | |||
font-size: 2.45em !important; | |||
.mw- | |||
font- | |||
} | } | ||
/* | /* HIDE NAMESPACE SUBTITLE FOR PUBLISHED ARTICLES */ | ||
.mw-displaytitle-subtitle { | |||
display: none !important; | |||
.mw- | |||
} | } | ||
/* | /* ========================================================================== | ||
3. LAYOUT & SIDEBARS (FULL WIDTH) | |||
========================================================================== */ | |||
#mw-site-navigation, #mw-related-navigation { | #mw-site-navigation, #mw-related-navigation { | ||
display: none !important; | display: none !important; | ||
} | } | ||
#mw-content-container { | #mw-content-container { | ||
margin-left: 0 !important; | margin-left: 0 !important; | ||
| Line 92: | Line 52: | ||
padding-left: 2rem !important; | padding-left: 2rem !important; | ||
padding-right: 2rem !important; | padding-right: 2rem !important; | ||
max-width: 100% !important; | max-width: 100% !important; | ||
} | } | ||
#content { | #content { | ||
max-width: 100% !important; | max-width: 100% !important; | ||
} | } | ||
/* | |||
body.mw-anon #mw-page-header-links { | /* ========================================================================== | ||
4. FIXED: HIDE PAGE TABS FOR ANONYMOUS USERS (View Source, History etc.) | |||
========================================================================== */ | |||
body.mw-anon #p-views, | |||
body.mw-anon .mw-portlet-views, | |||
body.mw-anon #mw-page-header-links, | |||
body.mw-anon #ca-viewsource, | |||
body.mw-anon #ca-history { | |||
display: none !important; | |||
} | |||
/* ========================================================================== | |||
5. LOGO INTEGRATION FOR DISPLAY NAME PLACE | |||
========================================================================== */ | |||
.mw-wiki-title { | |||
font-family: 'Manjari', sans-serif !important; | |||
font-weight: bold; | |||
font-size: 22px; | |||
color: #002B49 !important; /* Deep Navy */ | |||
} | } | ||
Revision as of 12:04, 15 June 2026
/* ==========================================================================
1. LOAD MALAYALAM GOOGLE FONTS
========================================================================== */
@import url('https://googleapis.com');
/* GLOBAL FONTS FORCE (Combined to eliminate duplications) */
:lang(ml), :lang(ml) *,
body:lang(ml), .mw-body:lang(ml), .mw-body-content:lang(ml), #content:lang(ml),
.mw-parser-output:lang(ml), .article-content:lang(ml), .article-content *,
.intro-box:lang(ml), p:lang(ml), span:lang(ml), div:lang(ml),
h1:lang(ml), h2:lang(ml), h3:lang(ml), h4:lang(ml),
#firstHeading, .mw-first-heading, .firstHeading {
font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', 'Nirmala UI', sans-serif !important;
}
/* GLOBAL MINOR TWEAKS */
body {
line-height: 1.7;
}
.article-content * {
line-height: 1.85 !important;
}
/* ==========================================================================
2. HEADINGS & TITLES
========================================================================== */
#firstHeading, .mw-first-heading, .firstHeading {
font-size: 2.35em !important;
font-weight: 700 !important;
margin-bottom: 0.4em !important;
color: #222;
border-bottom: solid 4px #36c;
}
:lang(en) #firstHeading, :lang(en) .mw-first-heading {
font-size: 2.45em !important;
}
/* HIDE NAMESPACE SUBTITLE FOR PUBLISHED ARTICLES */
.mw-displaytitle-subtitle {
display: none !important;
}
/* ==========================================================================
3. LAYOUT & SIDEBARS (FULL WIDTH)
========================================================================== */
#mw-site-navigation, #mw-related-navigation {
display: none !important;
}
#mw-content-container {
margin-left: 0 !important;
margin-right: 0 !important;
padding-left: 2rem !important;
padding-right: 2rem !important;
max-width: 100% !important;
}
#content {
max-width: 100% !important;
}
/* ==========================================================================
4. FIXED: HIDE PAGE TABS FOR ANONYMOUS USERS (View Source, History etc.)
========================================================================== */
body.mw-anon #p-views,
body.mw-anon .mw-portlet-views,
body.mw-anon #mw-page-header-links,
body.mw-anon #ca-viewsource,
body.mw-anon #ca-history {
display: none !important;
}
/* ==========================================================================
5. LOGO INTEGRATION FOR DISPLAY NAME PLACE
========================================================================== */
.mw-wiki-title {
font-family: 'Manjari', sans-serif !important;
font-weight: bold;
font-size: 22px;
color: #002B49 !important; /* Deep Navy */
}