MediaWiki:Common.css: Difference between revisions

From അഭിപ്രായവേദി
mNo edit summary
mNo edit summary
 
(58 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Load Malayalam Google Fonts */
/* ==========================================================================
@import url('https://fonts.googleapis.com/css2?family=Manjari:wght@400;700&family=Meera:wght@400;700&display=swap');
  1. LOAD MALAYALAM GOOGLE FONTS
  ========================================================================== */
@import url('https://smc.org.in/fonts/manjari.css');
@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;
}
}


/* Hide namespace subtitle for published articles */
/* ഫയൽ എറർ ഒഴിവാക്കാൻ ഗൂഗിൾ വെബ് ഫോണ്ടുകൾ ഫോഴ്സ് ചെയ്യുക */
.mw-displaytitle-subtitle {
@font-face {
     display: none !important;
     font-family: 'Meera';
    src: url('https://gstatic.com') format('woff2'); /* സെർവർ എറർ മറികടക്കാൻ */
}
}


/* Global minor tweaks only */
/* GLOBAL MINOR TWEAKS */
body {
body {
  line-height: 1.7;
    line-height: 1.7;
}
.article-content * {
    line-height: 1.85 !important;
}
}


/* Main Article Title (Skin H1) */
/* ==========================================================================
#firstHeading,
  2. HEADINGS & TITLES
.mw-first-heading {
  ========================================================================== */
     font-size: 2.4em !important;
#firstHeading, .mw-first-heading, .firstHeading {
     font-weight: bold !important;
     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;
}
}
/* ================ FORCE MALAYALAM FONTS - HIGHEST PRIORITY ================ */
:lang(en) #firstHeading, :lang(en) .mw-first-heading {
 
     font-size: 2.45em !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),
.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 */
/* HIDE NAMESPACE SUBTITLE FOR PUBLISHED ARTICLES */
.article-content * {
.mw-displaytitle-subtitle {
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
     display: none !important;
}
}


/* Malayalam Headings */
/* ==========================================================================
h1:lang(ml), h2:lang(ml), h3:lang(ml), h4:lang(ml) {
  3. LAYOUT & SIDEBARS (FULL WIDTH)
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
  ========================================================================== */
#mw-site-navigation, #mw-related-navigation {
     display: none !important;
}
}
 
#mw-content-container {
/* Force Malayalam Font on Main Article Title */
    margin-left: 0 !important;
#firstHeading,
    margin-right: 0 !important;
.mw-first-heading,
     padding-left: 1rem !important;
.firstHeading {
    padding-right: 1rem !important;
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
     max-width: 100% !important;
     font-weight: bold !important;
}
}
 
#content {
/* Also for Malayalam in general headings */
     max-width: 100% !important;
: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,
  4. FIXED: HIDE PAGE TABS FOR ANONYMOUS USERS ONLY
.anon #mw-content-subtitle,
  ========================================================================== */
.anon .vector-page-toolbar,
.anon-visitor #mw-page-header-links,
.anon .mw-editsection,
.anon-visitor #siteSub {
.anon #ca-edit,
.anon #ca-edit-source,
.anon #ca-history,
.anon #ca-view {
     display: none !important;
     display: none !important;
}
}
 
.anon-visitor #mw-site-navigation,
/* Force Malayalam on Main Title */
.anon-visitor #mw-related-navigation {
#firstHeading,
     display: none !important;
.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 */
  5. LOGO INTEGRATION FOR DISPLAY NAME PLACE
:lang(en) #firstHeading,
  ========================================================================== */
:lang(en) .mw-first-heading {
.mw-wiki-title {
     font-size: 2.45em !important;
    font-family: 'Manjari', sans-serif !important;
    font-weight: bold;
     font-size: 22px;
    color: #002B49 !important; /* Deep Navy */
}
}
@media (max-width: 768px) {


/* ================ TIMELESS SKIN SIDEBAR HIDING FOR ANONYMOUS ================ */
    #mw-content-container {
 
        padding-left: 8px !important;
/* 1. ലോഗിൻ ചെയ്യാത്തവർക്ക് (Anonymous) ഇടത്-വലത് വശങ്ങളിലെ പ്രധാന സൈഡ്ബാറുകൾ പൂർണ്ണമായി മറയ്ക്കുന്നു */
        padding-right: 8px !important;
body.user-anonymous #mw-site-navigation,
    }
body.user-anonymous #mw-related-navigation {
     display: none !important;
#p-logo-text {
     width: 0 !important;
     width: 300px !important;
     max-width: 0 !important;
     min-width: 300px !important;
     overflow: hidden !important;
     max-width: 300px !important;
    visibility: hidden !important;
     background: rgba(255,0,0,.15);
}
}


/*
* 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 {
@media (max-width: 768px) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}


body.user-anonymous #content,
    #p-banner {
body.user-anonymous .mw-body {
        width: 240px !important;
    margin-left: auto !important;
        height: 38px !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,
    #simpleSearch {
body.user-anonymous .article-main-wrapper {
        margin-left: 30px !important;
    width: 100% !important;
     }
    max-width: 100% !important;
     float: none !important;
}
}

Latest revision as of 21:20, 19 June 2026

/* ==========================================================================
   1. LOAD MALAYALAM GOOGLE FONTS
   ========================================================================== */
@import url('https://smc.org.in/fonts/manjari.css');
@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;
}

/* ഫയൽ എറർ ഒഴിവാക്കാൻ ഗൂഗിൾ വെബ് ഫോണ്ടുകൾ ഫോഴ്സ് ചെയ്യുക */
@font-face {
    font-family: 'Meera';
    src: url('https://gstatic.com') format('woff2'); /* സെർവർ എറർ മറികടക്കാൻ */
}

/* 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: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
}
#content {
    max-width: 100% !important;
}

/* ==========================================================================
   4. FIXED: HIDE PAGE TABS FOR ANONYMOUS USERS ONLY
   ========================================================================== */
.anon-visitor #mw-page-header-links,
.anon-visitor #siteSub {
    display: none !important;
}
.anon-visitor #mw-site-navigation,
.anon-visitor #mw-related-navigation {
    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 */
}
@media (max-width: 768px) {

    #mw-content-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
 
#p-logo-text {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    background: rgba(255,0,0,.15);
}

}

@media (max-width: 768px) {

    #p-banner {
        width: 240px !important;
        height: 38px !important;
    }

}

    #simpleSearch {
        margin-left: 30px !important;
    }
}