MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
mNo edit summary
 
(112 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ================================================================
/* Load Malayalam Google Fonts */
  AbhiprayaVedi - Ver4.1 — Timeless Skin, Gap Fix
@import url('https://fonts.googleapis.com/css2?family=Manjari:wght@400;700&family=Meera:wght@400;700&display=swap');
  ================================================================ */


/* Reduce gap between tab bar and article content */
:lang(ml),
#firstHeading {
:lang(ml) * {
     margin-bottom: 4px;
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
    padding-bottom: 2px;
}
}


#mw-content-text,
/* Hide namespace subtitle for published articles */
.mw-body-content,
.mw-displaytitle-subtitle {
.mw-parser-output,
     display: none !important;
.page-content {
     padding-top: 0;
    margin-top: 0;
}
}


/* ================================================================
/* Global minor tweaks only */
  BASE FONT SIZE
  ================================================================ */
body {
body {
    font-size: 17px;
  line-height: 1.7;
}
.mw-body {
    font-size: 1.05em;
}
 
/* ================================================================
  ARTICLE CONTAINER
  ================================================================ */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px 20px; /* top padding 0 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.05em;
}
.article-container[data-language="Malayalam"] {
    font-family: 'Manjari','Meera','Rachana','AnjaliOldLipi','Noto Sans Malayalam',sans-serif;
    line-height: 1.75;
}
}


/* ================================================================
/* Main Article Title (Skin H1) */
  HEADER
#firstHeading,
  ================================================================ */
.mw-first-heading {
.article-container .article-header {
     font-size: 2.4em !important;
     background: #f8f9fa;
     font-weight: bold !important;
    border-bottom: 2px solid #495057;
     margin-bottom: 0.4em !important;
     padding: 6px 16px;
     color: #222;
    margin-top: 0;
     border-bottom: solid 4px #36c;
     margin-bottom: 10px;
    border-radius: 6px;
}
.article-container .author-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 0;
    width: 100%;
}
.article-container .author-info > * {
    flex: 0 0 auto;
     width: auto;
     float: none;
}
.article-container .author-info .date-info {
    flex: 1 1 auto;
    text-align: center;
}
}
/* ================ FORCE MALAYALAM FONTS - HIGHEST PRIORITY ================ */


/* ================================================================
body:lang(ml),
  INTRODUCTION
.mw-body:lang(ml),
  ================================================================ */
.mw-body-content:lang(ml),
.article-container .introduction-section {
#content:lang(ml),
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
.mw-parser-output:lang(ml),
    border-left: 5px solid #f59e0b;
.article-content:lang(ml),
    padding: 10px 16px;
.intro-box:lang(ml),
    margin-top: 0;
p:lang(ml),
    margin-bottom: 20px;
span:lang(ml),
    border-radius: 6px;
div:lang(ml) {
     font-size: 1.12em;
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', 'Nirmala UI', sans-serif !important;
     line-height: 1.65;
     line-height: 1.85 !important;
    color: #78350f;
    font-weight: 500;
}
}


/* ================================================================
/* Extra force for article body */
  CONTENT LAYOUT
.article-content * {
  ================================================================ */
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
.content-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}
.main-content { flex: 1 1 70%; min-width: 0; }
.right-sidebar { flex: 0 0 300px; }
@media (max-width: 968px) {
     .content-wrapper { flex-direction: column; }
    .right-sidebar { flex: 1 1 auto; max-width: 100%; }
}
}


/* ================================================================
/* Malayalam Headings */
  ARTICLE TEXT
h1:lang(ml), h2:lang(ml), h3:lang(ml), h4:lang(ml) {
  ================================================================ */
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
.article-text {
    font-size: 1.15em;
    line-height: 1.85;
    color: #212529;
    text-align: left;
}
.article-text p { margin-bottom: 1.2em; }
.article-text h2 {
     font-size: 1.6em;
    margin: 1.5em 0 0.8em;
    color: #212529;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.3em;
}
.article-text h3 {
    font-size: 1.3em;
    margin: 1.3em 0 0.7em;
    color: #495057;
}
}


/* ================================================================
/* Force Malayalam Font on Main Article Title */
  AUTHOR INFOBOX
#firstHeading,
  ================================================================ */
.mw-first-heading,
.author-infobox {
.firstHeading {
     background: #f8f9fa;
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
    border: 1px solid #ced4da;
     font-weight: bold !important;
    border-radius: 8px;
     margin-bottom: 20px;
    overflow: hidden;
}
}
.author-photo { text-align: center; padding: 12px; background: white; border-bottom: 1px solid #dee2e6; }
.author-photo img { max-width: 100%; height: auto; border-radius: 6px; }
.author-name-box {
    text-align: center;
    padding: 10px 15px;
    font-size: 1.2em;
    font-weight: 500;
    color: #212529;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}
.author-name-box a { color: #0056b3; text-decoration: none; }
.author-name-box a:hover { text-decoration: underline; }
.author-bio { padding: 12px 15px; font-size: 1em; line-height: 1.65; color: #495057; }


/* ================================================================
/* Also for Malayalam in general headings */
  RESPONSIVE
:lang(ml) h1,
  ================================================================ */
:lang(ml) h2,
@media (max-width: 768px) {
:lang(ml) h3 {
    .article-container .author-info {
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .article-container .author-info .date-info { text-align: left; }
     .article-container .author-info .category-badge { align-self: flex-start; }
}
}


 
/* Hide top tabs (Submissions, Discussion, Edit, etc.) for anonymous users */
/* ================================================================
.anon .mw-indicators,
  DEBUG OUTLINES — temporary visual aid
.anon #mw-content-subtitle,
  ================================================================ */
.anon .vector-page-toolbar,
 
.anon .mw-editsection,
.article-container {
.anon #ca-edit,
     outline: 2px dashed red;       /* main container */
.anon #ca-edit-source,
.anon #ca-history,
.anon #ca-view {
     display: none !important;
}
}


.article-header {
/* Force Malayalam on Main Title */
     outline: 2px dashed blue;     /* header box */
#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;
}
}


.author-info {
/* English Title Size */
     outline: 2px dashed green;     /* author info flex container */
:lang(en) #firstHeading,
:lang(en) .mw-first-heading {
     font-size: 2.45em !important;
}
}


.author-info > * {
/* ================ HIDE SIDE PANELS FOR ANONYMOUS USERS ================ */
    outline: 1px solid orange;    /* each child inside author-info */
}


.introduction-section {
/* വായനക്കാർ ലോഗിൻ ചെയ്തിട്ടില്ലെങ്കിൽ (Anonymous) മാത്രം ഈ സ്റ്റൈലുകൾ ബാധകമാകും */
     outline: 2px dashed purple;   /* intro section */
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;
}
}


.content-wrapper {
/*
     outline: 2px dashed brown;    /* main content wrapper */
* സൈഡ് പാനൽ മറയ്ക്കുമ്പോൾ പ്രധാന ലേഖന ഭാഗം (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;
}
}


.right-sidebar {
/* ആർട്ടിക്കിൾ പേജിനുള്ളിലെ മെയിൻ കണ്ടെന്റ് ഏരിയയുടെ വീതി ക്രമീകരണം */
     outline: 2px dashed teal;     /* sidebar */
body.user-anonymous .article-main-wrapper {
     width: 100% !important;
    float: none !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;
}