MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
mNo edit summary
 
(153 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ===== 1. FORCE OVERRIDES (TOP PRIORITY - KEEP FIRST) ===== */
/* Load Malayalam Google Fonts */
.mw-parser-output .content-body p,
@import url('https://fonts.googleapis.com/css2?family=Manjari:wght@400;700&family=Meera:wght@400;700&display=swap');
.mw-body-content .content-body p {
  text-indent: 0 !important;
  margin: 0.4em 0 0.8em 0 !important;
}
 
.mw-parser-output .content-body > p:first-child,
.mw-body-content .content-body > p:first-child {
  margin-top: 0 !important;
}


/* Title & Meta - FORCE CENTER ALIGNMENT */
:lang(ml),
.mw-parser-output .firstHeading,
:lang(ml) * {
.mw-body-content .firstHeading {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
  font-family: Georgia, serif !important;
  font-size: 2.4em !important;
  text-align: center !important;
  margin-bottom: 0.3em !important;
}
}


.mw-parser-output .article-meta,
/* Hide namespace subtitle for published articles */
.mw-body-content .article-meta {
.mw-displaytitle-subtitle {
  text-align: center !important;
    display: none !important;
  margin-bottom: 0.8em !important;
  line-height: 1.2 !important;
}
}


/* ===== 2. BASE LAYOUT ===== */
/* Global minor tweaks only */
.article-wrapper {
body {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: Georgia, serif;
   line-height: 1.7;
   line-height: 1.7;
  background: #fdfcfc;
}
}


.article-content {
/* Main Article Title (Skin H1) */
  font-size: 1.1em;
#firstHeading,
  overflow: hidden;
.mw-first-heading {
    font-size: 2.4em !important;
    font-weight: bold !important;
    margin-bottom: 0.4em !important;
    color: #222;
    border-bottom: solid 4px #36c;
}
}
/* ================ FORCE MALAYALAM FONTS - HIGHEST PRIORITY ================ */


.content-body {
body:lang(ml),
  line-height: 1.7;
.mw-body:lang(ml),
.mw-body-content:lang(ml),
#content:lang(ml),
.mw-parser-output:lang(ml),
.article-content:lang(ml),
.intro-box:lang(ml),
p:lang(ml),
span:lang(ml),
div:lang(ml) {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', 'Nirmala UI', sans-serif !important;
    line-height: 1.85 !important;
}
}


.content-body:empty {
/* Extra force for article body */
  display: none !important;
.article-content * {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}
}


/* ===== 3. META LINE FIX ===== */
/* Malayalam Headings */
.meta-line {
h1:lang(ml), h2:lang(ml), h3:lang(ml), h4:lang(ml) {
  display: inline-flex !important;
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
  align-items: center;
  gap: 1em;
}
}


.meta-sep {
/* Force Malayalam Font on Main Article Title */
  margin: 0 0.5em;
#firstHeading,
.mw-first-heading,
.firstHeading {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
    font-weight: bold !important;
}
}


/* ===== 4. FLOATBOX & HIGHLIGHTS ===== */
/* Also for Malayalam in general headings */
.article-floatbox {
:lang(ml) h1,
  float: right !important;
:lang(ml) h2,
  width: 220px;
:lang(ml) h3 {
  margin: 0 0 15px 20px;
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
  background: #f8f9fa;
  padding: 12px;
  border-left: 4px solid #dee2e6;
}
}


.article-highlights {
/* Hide top tabs (Submissions, Discussion, Edit, etc.) for anonymous users */
  margin-top: 12px;
.anon .mw-indicators,
  clear: both;
.anon #mw-content-subtitle,
.anon .vector-page-toolbar,
.anon .mw-editsection,
.anon #ca-edit,
.anon #ca-edit-source,
.anon #ca-history,
.anon #ca-view {
    display: none !important;
}
}


.article-highlights h3 {
/* Force Malayalam on Main Title */
  margin: 0 0 10px 0;
#firstHeading,
  font-size: 0.95em;
.mw-first-heading,
  color: #495057;
.firstHeading {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
    font-size: 2.35em !important;
    font-weight: 700 !important;
}
}


.article-highlights ul {
/* English Title Size */
  margin: 0;
:lang(en) #firstHeading,
  padding: 0;
:lang(en) .mw-first-heading {
  list-style: none;
    font-size: 2.45em !important;
}
}


.article-highlights li {
/* ================ HIDE SIDE PANELS FOR ANONYMOUS USERS ================ */
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.9em;
}
 
.article-highlights li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}


/* ===== 5. OTHER SECTIONS ===== */
/* വായനക്കാർ ലോഗിൻ ചെയ്തിട്ടില്ലെങ്കിൽ (Anonymous) മാത്രം ഈ സ്റ്റൈലുകൾ ബാധകമാകും */
.article-intro {
body.user-anonymous .article-sidebar,
  font-size: 1.2em;
body.user-anonymous #mw-panel,
  background: #f8f9fa;
body.user-anonymous .mw-sidebar,
  padding: 16px;
body.user-anonymous #sidebar,
  border-left: 5px solid #adb5bd;
body.user-anonymous .right-sidebar {
  margin-bottom: 20px;
    display: none !important; /* സൈഡ് പാനലുകൾ പൂർണ്ണമായി മറയ്ക്കുന്നു */
    width: 0 !important;
    visibility: hidden !important;
}
}


.article-author-bio {
/*
  margin-top: 30px;
* സൈഡ് പാനൽ മറയ്ക്കുമ്പോൾ പ്രധാന ലേഖന ഭാഗം (Main Content Area)
  font-size: 0.9em;
* പേജിന്റെ മുഴുവൻ വീതിയിലേക്കും (Full Width) മനോഹരമായി വ്യാപിച്ചു നിൽക്കാൻ താഴെ പറയുന്നവ സഹായിക്കും.
  font-style: normal;
*/
  background: #f1f3f4;
body.user-anonymous #content,
  padding: 15px;
body.user-anonymous #mw-content-text,
  border-radius: 6px;
body.user-anonymous .article-content,
  border-top: 2px solid #dee2e6;
body.user-anonymous .mw-body {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
}


.article-source {
/* ആർട്ടിക്കിൾ പേജിനുള്ളിലെ മെയിൻ കണ്ടെന്റ് ഏരിയയുടെ വീതി ക്രമീകരണം */
  margin-top: 25px;
body.user-anonymous .article-main-wrapper {
  font-size: 0.9em;
    width: 100% !important;
  border-top: 1px solid #dee2e6;
    float: none !important;
  padding-top: 15px;
}
}

Latest revision as of 22:40, 11 June 2026

/* Load Malayalam Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manjari:wght@400;700&family=Meera:wght@400;700&display=swap');

:lang(ml),
:lang(ml) * {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}

/* Hide namespace subtitle for published articles */
.mw-displaytitle-subtitle {
    display: none !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;
}
/* ================ FORCE MALAYALAM FONTS - HIGHEST PRIORITY ================ */

body:lang(ml),
.mw-body:lang(ml),
.mw-body-content:lang(ml),
#content:lang(ml),
.mw-parser-output:lang(ml),
.article-content:lang(ml),
.intro-box:lang(ml),
p:lang(ml),
span:lang(ml),
div:lang(ml) {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', 'Nirmala UI', sans-serif !important;
    line-height: 1.85 !important;
}

/* Extra force for article body */
.article-content * {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}

/* Malayalam Headings */
h1:lang(ml), h2:lang(ml), h3:lang(ml), h4:lang(ml) {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}

/* Force Malayalam Font on Main Article Title */
#firstHeading,
.mw-first-heading,
.firstHeading {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
    font-weight: bold !important;
}

/* Also for Malayalam in general headings */
:lang(ml) h1,
:lang(ml) h2,
:lang(ml) h3 {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}

/* Hide top tabs (Submissions, Discussion, Edit, etc.) for anonymous users */
.anon .mw-indicators,
.anon #mw-content-subtitle,
.anon .vector-page-toolbar,
.anon .mw-editsection,
.anon #ca-edit,
.anon #ca-edit-source,
.anon #ca-history,
.anon #ca-view {
    display: none !important;
}

/* Force Malayalam on Main Title */
#firstHeading,
.mw-first-heading,
.firstHeading {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
    font-size: 2.35em !important;
    font-weight: 700 !important;
}

/* English Title Size */
:lang(en) #firstHeading,
:lang(en) .mw-first-heading {
    font-size: 2.45em !important;
}

/* ================ HIDE SIDE PANELS FOR ANONYMOUS USERS ================ */

/* വായനക്കാർ ലോഗിൻ ചെയ്തിട്ടില്ലെങ്കിൽ (Anonymous) മാത്രം ഈ സ്റ്റൈലുകൾ ബാധകമാകും */
body.user-anonymous .article-sidebar,
body.user-anonymous #mw-panel, 
body.user-anonymous .mw-sidebar,
body.user-anonymous #sidebar,
body.user-anonymous .right-sidebar {
    display: none !important; /* സൈഡ് പാനലുകൾ പൂർണ്ണമായി മറയ്ക്കുന്നു */
    width: 0 !important;
    visibility: hidden !important;
}

/* 
 * സൈഡ് പാനൽ മറയ്ക്കുമ്പോൾ പ്രധാന ലേഖന ഭാഗം (Main Content Area) 
 * പേജിന്റെ മുഴുവൻ വീതിയിലേക്കും (Full Width) മനോഹരമായി വ്യാപിച്ചു നിൽക്കാൻ താഴെ പറയുന്നവ സഹായിക്കും.
 */
body.user-anonymous #content,
body.user-anonymous #mw-content-text,
body.user-anonymous .article-content,
body.user-anonymous .mw-body {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ആർട്ടിക്കിൾ പേജിനുള്ളിലെ മെയിൻ കണ്ടെന്റ് ഏരിയയുടെ വീതി ക്രമീകരണം */
body.user-anonymous .article-main-wrapper {
    width: 100% !important;
    float: none !important;
}