MediaWiki:Common.css: Difference between revisions

From അഭിപ്രായവേദി
mNo edit summary
mNo edit summary
Line 94: Line 94:
}
}


/* ================ HIDE SIDEBARS & PANELS FOR ANONYMOUS USERS ================ */
/* ================ TIMELESS SKIN SIDEBAR HIDING FOR ANONYMOUS ================ */


/* 1. ലോഗിൻ ചെയ്യാത്തവർക്ക് (Anonymous) വശങ്ങളിലെ എല്ലാ പാനലുകളും പൂർണ്ണമായി മറയ്ക്കുന്നു */
/* 1. ലോഗിൻ ചെയ്യാത്തവർക്ക് (Anonymous) ഇടത്-വലത് വശങ്ങളിലെ പ്രധാന സൈഡ്ബാറുകൾ പൂർണ്ണമായി മറയ്ക്കുന്നു */
body.user-anonymous #mw-panel,        /* Vector സ്കിന്നിലെ റൈറ്റ്/ലെഫ്റ്റ് സൈഡ്ബാറുകൾ */
body.user-anonymous #mw-site-navigation,
body.user-anonymous .mw-sidebar,      /* പുതിയ Vector (2022) സൈഡ്ബാർ */
body.user-anonymous #mw-related-navigation {
body.user-anonymous #mw-site-navigation, /* Timeless സ്കിന്നിലെ നാവിഗേഷൻ പാനൽ */
body.user-anonymous #mw-related-navigation, /* Timeless സ്കിന്നിലെ റിലേറ്റഡ് പാനൽ */
body.user-anonymous .article-sidebar,  /* നമ്മൾ നിർമ്മിച്ച കസ്റ്റം ആർട്ടിക്കിൾ സൈഡ്ബാർ */
body.user-anonymous #p-navigation,    /* ഡിഫോൾട്ട് നാവിഗേഷൻ ലിങ്കുകൾ */
body.user-anonymous #p-tb {           /* ഡിഫോൾട്ട് ടൂൾബോക്സ് ലിങ്കുകൾ */
     display: none !important;
     display: none !important;
     width: 0 !important;
     width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
     visibility: hidden !important;
     visibility: hidden !important;
}
}


/*  
/*  
  * 2. LAYOUT ADJUSTMENT FOR VECTOR SKIN
  * 2. LAYOUT GRID FIX FOR TIMELESS SKIN
  * സൈഡ്ബാർ മാറുമ്പോൾ പ്രധാന കണ്ടെന്റ് ഏരിയ ഇടതുവശത്തേക്ക് ഒട്ടിപ്പോകാതെ
  * സൈഡ്ബാറുകൾ മാറുമ്പോൾ പ്രധാന ലേഖന ഭാഗം (Main Content) ഇടതുവലത്
  * പേജിന്റെ മധ്യത്തിലായി മുഴുവൻ വീതിയിലും (Full Width) മനോഹരമായി വിന്യസിക്കാൻ താഴെ പറയുന്നവ സഹായിക്കും.
  * മാർജിനുകൾ ഒഴിഞ്ഞുമാറി പേജിന്റെ 100% ഫുൾ വീതിയിൽ വരാൻ താഴെ പറയുന്നവ സഹായിക്കും.
  */
  */
body.user-anonymous #content,
body.user-anonymous #mw-content-container {
body.user-anonymous .mw-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
 
body.user-anonymous #mw-content {
     margin-left: 0 !important;
     margin-left: 0 !important;
     margin-right: 0 !important;
     margin-right: 0 !important;
    padding-left: 2em !important;
     width: 100% !important;
    padding-right: 2em !important;
     width: auto !important;
     max-width: 100% !important;
     max-width: 100% !important;
    float: none !important;
}
}


/* 3. LAYOUT ADJUSTMENT FOR TIMELESS SKIN */
body.user-anonymous #content,
body.user-anonymous #mw-content-container {
body.user-anonymous .mw-body {
     padding-left: 0 !important;
     margin-left: auto !important;
     padding-right: 0 !important;
     margin-right: auto !important;
    width: 92% !important; /* വായനാ സുഖത്തിനായി ഇരുവശങ്ങളിലും ചെറിയൊരു ഗ്യാപ്പ് നൽകിയത് */
    max-width: 1200px !important; /* അമിതമായി വീതി കൂടിപ്പോകാതിരിക്കാൻ */
    float: none !important;
}
}
body.user-anonymous #p-logo {
 
     display: block !important; /* ലോഗോ മാത്രം നിലനിർത്തുന്നു */
/* 3. നമ്മൾ കസ്റ്റം ആയി നിർമ്മിച്ച ആർട്ടിക്കിൾ പേജിലെ റൈറ്റ് സൈഡ്ബാറും മറയ്ക്കുന്നു */
body.user-anonymous .article-sidebar {
     display: none !important;
    width: 0 !important;
}
}


/* 4. ആർട്ടിക്കിൾ പേജുകളിലെ കസ്റ്റം കണ്ടെന്റ് ഏരിയ മുഴുവൻ വീതിയിലാക്കുന്നു */
body.user-anonymous .article-content,
body.user-anonymous .article-content,
body.user-anonymous .article-main-wrapper {
body.user-anonymous .article-main-wrapper {

Revision as of 18:24, 12 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;
}

/* ================ TIMELESS SKIN SIDEBAR HIDING FOR ANONYMOUS ================ */

/* 1. ലോഗിൻ ചെയ്യാത്തവർക്ക് (Anonymous) ഇടത്-വലത് വശങ്ങളിലെ പ്രധാന സൈഡ്ബാറുകൾ പൂർണ്ണമായി മറയ്ക്കുന്നു */
body.user-anonymous #mw-site-navigation,
body.user-anonymous #mw-related-navigation {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* 
 * 2. LAYOUT GRID FIX FOR TIMELESS SKIN
 * സൈഡ്ബാറുകൾ മാറുമ്പോൾ പ്രധാന ലേഖന ഭാഗം (Main Content) ഇടതുവലത് 
 * മാർജിനുകൾ ഒഴിഞ്ഞുമാറി പേജിന്റെ 100% ഫുൾ വീതിയിൽ വരാൻ താഴെ പറയുന്നവ സഹായിക്കും.
 */
body.user-anonymous #mw-content-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.user-anonymous #mw-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

body.user-anonymous #content,
body.user-anonymous .mw-body {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 92% !important; /* വായനാ സുഖത്തിനായി ഇരുവശങ്ങളിലും ചെറിയൊരു ഗ്യാപ്പ് നൽകിയത് */
    max-width: 1200px !important; /* അമിതമായി വീതി കൂടിപ്പോകാതിരിക്കാൻ */
    float: none !important;
}

/* 3. നമ്മൾ കസ്റ്റം ആയി നിർമ്മിച്ച ആർട്ടിക്കിൾ പേജിലെ റൈറ്റ് സൈഡ്ബാറും മറയ്ക്കുന്നു */
body.user-anonymous .article-sidebar {
    display: none !important;
    width: 0 !important;
}

body.user-anonymous .article-content,
body.user-anonymous .article-main-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}