MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
Tag: Reverted
mNo edit summary
 
(157 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* FORCE OVERRIDE - Place FIRST in Common.css */
/* Load Malayalam Google Fonts */
.mw-body-content .content-body p {
@import url('https://fonts.googleapis.com/css2?family=Manjari:wght@400;700&family=Meera:wght@400;700&display=swap');
  margin-top: 0.3em !important;
  margin-bottom: 0.6em !important;
  text-indent: 0 !important;
}
 
/* Target ALL article content directly */
.article-content p {
  text-indent: 0 !important;
  margin: 0.6em 0 !important;
}


.article-content p:first-of-type {
:lang(ml),
  margin-top: 0 !important;
:lang(ml) * {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}
}


firstHeading {
/* Hide namespace subtitle for published articles */
  font-family: Georgia, "Times New Roman", serif;
.mw-displaytitle-subtitle {
  font-size: 2.4em;
    display: none !important;
  text-align: center;
  margin-bottom: 10px;
}
}


.firstHeading { margin-bottom: 0.3em !important; }
/* Global minor tweaks only */
.article-meta { margin-bottom: 0.4em !important; line-height: 1.1; }
body {
 
 
.article-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  font-family: Georgia, serif;
   line-height: 1.7;
   line-height: 1.7;
}
}


/* MOBILE RESPONSIVE */
/* Main Article Title (Skin H1) */
@media (max-width: 768px) {
#firstHeading,
  .article-wrapper { max-width: 100%; padding: 0 15px; }
.mw-first-heading {
}
     font-size: 2.4em !important;
 
     font-weight: bold !important;
  .article-floatbox {
     margin-bottom: 0.4em !important;
     float: none !important;
    color: #222;
     width: 100% !important;
    border-bottom: solid 4px #36c;
     margin: 10px 0;
  }
}
 
 
.article-meta {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.25em;
  font-weight: bold;
  color: #444;
}
.article-meta p {
  display: inline !important;
  margin: 0 !important;
}
.meta-sep {
  margin: 0 1em;
}
}
/* ================ FORCE MALAYALAM FONTS - HIGHEST PRIORITY ================ */


 
body:lang(ml),
.article-intro {
.mw-body:lang(ml),
  font-size: 1.2em;
.mw-body-content:lang(ml),
  background: #f2f2f2;
#content:lang(ml),
  padding: 14px;
.mw-parser-output:lang(ml),
  border-left: 5px solid #bbb;
.article-content:lang(ml),
  margin-bottom: 18px;
.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;
}
}


.article-floatbox {
/* Extra force for article body */
  float: right;
.article-content * {
  width: 220px;
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
  margin: 0 0 15px 20px;
  background: #fafafa;
  padding: 10px;
  border-left: 4px solid #ccc;
  overflow: hidden; /* Contain floats */
}
}


.article-floatbox h3 {
/* Malayalam Headings */
  margin: 0 0 8px 0;
h1:lang(ml), h2:lang(ml), h3:lang(ml), h4:lang(ml) {
  font-size: 1em;
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}
}


/* Fix 1: Prevent highlights filling thumbnail gap */
/* Force Malayalam Font on Main Article Title */
.article-highlights {
#firstHeading,
  margin-top: 10px; /* Space after thumbnail */
.mw-first-heading,
  clear: both;
.firstHeading {
  border-bottom: 2px solid #ccc;
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
    font-weight: bold !important;
}
}


/* Fix 2: Horizontal lines + spacing between highlights */
/* Also for Malayalam in general headings */
.article-highlights  {
:lang(ml) h1,
  margin: 0;
:lang(ml) h2,
  padding: 0;
:lang(ml) h3 {
  list-style: none;
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
  border-bottom: 2px solid #ccc;
}
}


.article-highlights li {
/* Hide top tabs (Submissions, Discussion, Edit, etc.) for anonymous users */
  margin-bottom: 8px;
.anon .mw-indicators,
  padding-bottom: 6px;
.anon #mw-content-subtitle,
  border-bottom: 2px solid #ccc; /* Horizontal line */
.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 li:last-child {
/* Force Malayalam on Main Title */
  margin-bottom: 0;
#firstHeading,
  border-bottom: none; /* No line on last item */
.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 */
/* COMPLETE RESET - OVERRIDES EVERYTHING */
:lang(en) #firstHeading,
.mw-parser-output .content-body,
:lang(en) .mw-first-heading {
.mw-parser-output .content-body * {
    font-size: 2.45em !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
}


.mw-parser-output .content-body p {
/* ================ HIDE SIDE PANELS FOR ANONYMOUS USERS ================ */
  text-indent: 0 !important;
  margin: 0.8em 0 !important;
}


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


/* Empty content-body */
/*  
.mw-parser-output .content-body:empty {
* സൈഡ് പാനൽ മറയ്ക്കുമ്പോൾ പ്രധാന ലേഖന ഭാഗം (Main Content Area)
  display: none !important;
* പേജിന്റെ മുഴുവൻ വീതിയിലേക്കും (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;
}
}


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

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;
}