MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
mNo edit summary
 
(85 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ================================================================
/* Load Malayalam Google Fonts */
  MediaWiki:CommonTest.css
@import url('https://fonts.googleapis.com/css2?family=Manjari:wght@400;700&family=Meera:wght@400;700&display=swap');
  Test stylesheet for AbhiprayaVedi
  ================================================================ */


/* ------------------------------------------------
:lang(ml),
  BASE TYPOGRAPHY
:lang(ml) * {
  ------------------------------------------------ */
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
:lang(en) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
}


:lang(ml) {
/* Hide namespace subtitle for published articles */
  font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Noto Sans Malayalam', sans-serif;
.mw-displaytitle-subtitle {
  line-height: 1.75;
    display: none !important;
}
}


/* Global minor tweaks only */
body {
body {
   font-size: 17px;
   line-height: 1.7;
}
}


/* ------------------------------------------------
/* Main Article Title (Skin H1) */
  ARTICLE CONTAINER
#firstHeading,
  ------------------------------------------------ */
.mw-first-heading {
.article-container {
    font-size: 2.4em !important;
  max-width: 1200px;
    font-weight: bold !important;
  margin: 0 auto;
    margin-bottom: 0.4em !important;
  padding: 0 20px 20px 20px;
    color: #222;
  font-size: 1.05em;
    border-bottom: solid 4px #36c;
}
}
/* ================ FORCE MALAYALAM FONTS - HIGHEST PRIORITY ================ */


/* Suppress empty <p> tags */
body:lang(ml),
.article-container > p:empty,
.mw-body:lang(ml),
.mw-parser-output > p:empty {
.mw-body-content:lang(ml),
  display: none;
#content:lang(ml),
  margin: 0;
.mw-parser-output:lang(ml),
  padding: 0;
.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 HEADER
.article-content * {
  ------------------------------------------------ */
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
.article-header {
  background: #f8f9fa;
  border-bottom: 2px solid #495057;
  padding: 6px 16px;
  margin: 0 0 10px 0;
  border-radius: 6px;
}
}


.author-info {
/* Malayalam Headings */
  display: flex;
h1:lang(ml), h2:lang(ml), h3:lang(ml), h4:lang(ml) {
  align-items: center;
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 1.1em;
}
}


.author-name {
/* Force Malayalam Font on Main Article Title */
  font-weight: 700;
#firstHeading,
  font-size: 1.3em;
.mw-first-heading,
  color: #212529;
.firstHeading {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
    font-weight: bold !important;
}
}


.date-info {
/* Also for Malayalam in general headings */
  color: #6c757d;
:lang(ml) h1,
  font-size: 1.05em;
:lang(ml) h2,
  text-align: center;
:lang(ml) h3 {
  flex: 1 1 auto;
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}
}


.category-badge {
/* Hide top tabs (Submissions, Discussion, Edit, etc.) for anonymous users */
  background: #667eea;
.anon .mw-indicators,
  color: white;
.anon #mw-content-subtitle,
  padding: 5px 12px;
.anon .vector-page-toolbar,
  border-radius: 20px;
.anon .mw-editsection,
  font-size: 0.88em;
.anon #ca-edit,
  font-weight: 600;
.anon #ca-edit-source,
.anon #ca-history,
.anon #ca-view {
    display: none !important;
}
}


/* ------------------------------------------------
/* Force Malayalam on Main Title */
  INTRODUCTION
#firstHeading,
  ------------------------------------------------ */
.mw-first-heading,
.introduction-section {
.firstHeading {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
  border-left: 5px solid #f59e0b;
    font-size: 2.35em !important;
  padding: 10px;
    font-weight: 700 !important;
  margin: 0 0 10px 0;
  border-radius: 6px;
  font-size: 1.12em;
  line-height: 1.45;
  color: #78350f;
  font-weight: 550;
}
}


/* ------------------------------------------------
/* English Title Size */
  CONTENT LAYOUT
:lang(en) #firstHeading,
  ------------------------------------------------ */
:lang(en) .mw-first-heading {
.content-wrapper {
    font-size: 2.45em !important;
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}
}


.main-content {
/* ================ HIDE SIDE PANELS FOR ANONYMOUS USERS ================ */
  flex: 1 1 70%;
  min-width: 0;
}
 
.right-sidebar {
  flex: 0 0 300px;
}
 
/* ------------------------------------------------
  ARTICLE TEXT
  ------------------------------------------------ */
.article-text {
  font-size: 1.15em;
  line-height: 1.85;
  color: #212529;
}
 
.article-text p {
  margin-bottom: 1.2em;
}
 
/* ------------------------------------------------
  FEATURED SECTION (Magazine Index)
  ------------------------------------------------ */
.av-featured {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #f8f9fa;
  border-left: 5px solid #667eea;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 8px;
}
 
.av-featured-image {
  flex: 0 0 260px;
  max-width: 260px;
}
 
.av-featured-image img {
  width: 260px;
  height: auto;
  border-radius: 6px;
  display: block;
}
 
.av-featured-body {
  flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 8; /* Adjust lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
.av-featured-title {
  font-size: 1.45em;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
 
.av-featured-intro {
  font-size: 1.05em;
  line-height: 1.75;
  color: #495057;
  margin-bottom: 12px;
  max-height: 200px;
  overflow: hidden;
}
 
/* ------------------------------------------------
  RESPONSIVE BREAKPOINTS
  ------------------------------------------------ */
@media (max-width: 960px) {
  .content-wrapper { flex-direction: column; }
  .right-sidebar { max-width: 100%; }
  .av-cards-row { flex-direction: column; }
  .av-latest-grid { grid-template-columns: repeat(2, 1fr); }
}
 
@media (max-width: 768px) {
  .av-featured { flex-direction: column; }
  .av-featured-image img { max-width: 100%; }
  .av-latest-grid { grid-template-columns: 1fr; }
}


/* ------------------------------------------------
/* വായനക്കാർ ലോഗിൻ ചെയ്തിട്ടില്ലെങ്കിൽ (Anonymous) മാത്രം ഈ സ്റ്റൈലുകൾ ബാധകമാകും */
  ACCESSIBILITY
body.user-anonymous .article-sidebar,
  ------------------------------------------------ */
body.user-anonymous #mw-panel,
a:focus-visible,
body.user-anonymous .mw-sidebar,
button:focus-visible {
body.user-anonymous #sidebar,
  outline: 2px solid #667eea;
body.user-anonymous .right-sidebar {
  outline-offset: 2px;
    display: none !important; /* സൈഡ് പാനലുകൾ പൂർണ്ണമായി മറയ്ക്കുന്നു */
    width: 0 !important;
    visibility: hidden !important;
}
}


/* Hidden text for emoji headers */
/*  
.highlight-title::before {
* സൈഡ് പാനൽ മറയ്ക്കുമ്പോൾ പ്രധാന ലേഖന ഭാഗം (Main Content Area)
  content: "Highlight ";
* പേജിന്റെ മുഴുവൻ വീതിയിലേക്കും (Full Width) മനോഹരമായി വ്യാപിച്ചു നിൽക്കാൻ താഴെ പറയുന്നവ സഹായിക്കും.
  position: absolute;
*/
  left: -9999px;
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;
}
}


.keypoints-header::before {
/* ആർട്ടിക്കിൾ പേജിനുള്ളിലെ മെയിൻ കണ്ടെന്റ് ഏരിയയുടെ വീതി ക്രമീകരണം */
  content: "Key Points ";
body.user-anonymous .article-main-wrapper {
  position: absolute;
    width: 100% !important;
  left: -9999px;
    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;
}