MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
mNo edit summary
 
(147 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ===== CLEAN TIMESS SKIN CSS - NO DUPLICATIONS ===== */
/* Load Malayalam Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manjari:wght@400;700&family=Meera:wght@400;700&display=swap');


/* 1. TITLE - CENTERED, TIGHT SPACING */
:lang(ml),
h1#firstHeading,
:lang(ml) * {
#mw-content-text .firstHeading,
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
.mw-parser-output .firstHeading {
  font-family: Georgia, serif !important;
  font-size: 2.2em !important;
  text-align: center !important;
  margin: 0 0 0.1em 0 !important;
  line-height: 1.1 !important;
}
}


/* 2. META - SINGLE LINE, MINIMAL SPACE */
/* Hide namespace subtitle for published articles */
#mw-content-text .article-meta,
.mw-displaytitle-subtitle {
.mw-parser-output .article-meta {
    display: none !important;
  text-align: center !important;
  margin: 0 0 0.4em 0 !important;
  font-size: 1.1em !important;
  font-weight: bold !important;
  color: #444 !important;
  line-height: 1.1 !important;
}
}


.article-meta p { display: inline !important; margin: 0 !important; }
/* Global minor tweaks only */
.meta-line {
body {
   display: inline-flex !important;
   line-height: 1.7;
  align-items: baseline !important;
  white-space: nowrap !important;
  gap: 0.5em !important;
}
}
.meta-sep { margin: 0 0.3em !important; }


/* 3. MAIN WRAPPER */
/* Main Article Title (Skin H1) */
.article-wrapper {
#firstHeading,
  max-width: 900px;
.mw-first-heading {
  margin: 0 auto;
    font-size: 2.4em !important;
  padding: 15px;
    font-weight: bold !important;
  font-family: Georgia, serif;
    margin-bottom: 0.4em !important;
  line-height: 1.6;
    color: #222;
  background: #fdfcfc;
    border-bottom: solid 4px #36c;
}
}
/* ================ FORCE MALAYALAM FONTS - HIGHEST PRIORITY ================ */


/* 4. CONTENT - PERFECT FLOW */
body:lang(ml),
.article-content {
.mw-body:lang(ml),
  font-size: 1.1em;
.mw-body-content:lang(ml),
  overflow: visible !important;
#content:lang(ml),
  margin-top: 0 !important;
.mw-parser-output:lang(ml),
  padding-top: 0 !important;
.article-content:lang(ml),
  clear: both !important;
.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-content p {
/* Extra force for article body */
  text-indent: 0 !important;
.article-content * {
  margin: 0.1em 0 0.8em 0 !important;
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
  padding: 0 !important;
}
}


.article-content p:first-of-type,
/* Malayalam Headings */
.article-content p:first-child,
h1:lang(ml), h2:lang(ml), h3:lang(ml), h4:lang(ml) {
#mw-content-block .article-content p:first-child {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
}


/* 5. FLOATBOX - RIGHT SIDE */
/* Force Malayalam Font on Main Article Title */
.article-floatbox {
#firstHeading,
  float: right !important;
.mw-first-heading,
  width: 220px !important;
.firstHeading {
  margin: -10px 0 1em 1.5em !important;
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
  background: #f8f9fa;
    font-weight: bold !important;
  padding: 12px;
  border-left: 4px solid #dee2e6;
  position: relative;
  z-index: 2;
}
}


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


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


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


.article-highlights li {
/* English Title Size */
  margin-bottom: 10px !important;
:lang(en) #firstHeading,
  padding-bottom: 6px !important;
:lang(en) .mw-first-heading {
  border-bottom: 1px solid #dee2e6 !important;
    font-size: 2.45em !important;
  font-size: 0.9em;
}
}


.article-highlights li:last-child {
/* ================ HIDE SIDE PANELS FOR ANONYMOUS USERS ================ */
  margin-bottom: 0 !important;
  border-bottom: none !important;
}
 
/* 6. IMAGE1 - TEXT WRAP */
.thumb {
  float: left !important;
  margin: 0.1em 1em 0.5em 0 !important;
  clear: none !important;
}
 
/* 7. OTHER SECTIONS */
.article-intro {
  font-size: 1.2em;
  background: #f8f9fa;
  padding: 16px;
  border-left: 5px solid #adb5bd;
  margin-bottom: 18px;
}


.article-author-bio {
/* വായനക്കാർ ലോഗിൻ ചെയ്തിട്ടില്ലെങ്കിൽ (Anonymous) മാത്രം ഈ സ്റ്റൈലുകൾ ബാധകമാകും */
  margin-top: 30px;
body.user-anonymous .article-sidebar,
  font-size: 0.9em;
body.user-anonymous #mw-panel,
  font-style: normal !important;
body.user-anonymous .mw-sidebar,
  background: #f1f3f4;
body.user-anonymous #sidebar,
  padding: 15px;
body.user-anonymous .right-sidebar {
  border-radius: 6px;
    display: none !important; /* സൈഡ് പാനലുകൾ പൂർണ്ണമായി മറയ്ക്കുന്നു */
  border-top: 2px solid #dee2e6;
    width: 0 !important;
    visibility: hidden !important;
}
}


.article-source {
/*
  margin-top: 25px;
* സൈഡ് പാനൽ മറയ്ക്കുമ്പോൾ പ്രധാന ലേഖന ഭാഗം (Main Content Area)
  font-size: 0.9em;
* പേജിന്റെ മുഴുവൻ വീതിയിലേക്കും (Full Width) മനോഹരമായി വ്യാപിച്ചു നിൽക്കാൻ താഴെ പറയുന്നവ സഹായിക്കും.
  border-top: 1px solid #dee2e6;
*/
  padding-top: 15px;
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;
}
}


/* 8. MOBILE */
/* ആർട്ടിക്കിൾ പേജിനുള്ളിലെ മെയിൻ കണ്ടെന്റ് ഏരിയയുടെ വീതി ക്രമീകരണം */
@media (max-width: 768px) {
body.user-anonymous .article-main-wrapper {
  .article-wrapper { max-width: 100%; padding: 10px; }
     width: 100% !important;
  .article-floatbox {  
     float: none !important;
    float: none !important;
     width: 100% !important;  
     margin: 10px 0 !important;  
  }
}
}

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