MediaWiki:Common.css: Difference between revisions

From അഭിപ്രായവേദി
mNo edit summary
mNo edit summary
Line 99: Line 99:
}
}
/* മീഡിയവിക്കി 1.43+ അനോണിമസ് വായനക്കാർക്ക് മാത്രം പേജ് ടാബുകളും ആ വരിയും പൂർണ്ണമായി നീക്കം ചെയ്യാൻ */
/* മീഡിയവിക്കി 1.43+ അനോണിമസ് വായനക്കാർക്ക് മാത്രം പേജ് ടാബുകളും ആ വരിയും പൂർണ്ണമായി നീക്കം ചെയ്യാൻ */
/* First, ensure it shows for everyone by default */
body.mw-anon #mw-page-header-links {
#mw-page-header-links {
  display: none;
    display: block;
}
 
/* Then hide it for anonymous users only using a class */
body.mw.anon #mw-page-header-links {
    display: none;
}
}

Revision as of 16:10, 13 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;
}

/* 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 both sidebars for everyone by default */
#mw-site-navigation, #mw-related-navigation {
    display: none !important;
}
/* ഉള്ളടക്ക ഭാഗം സ്ക്രീനിന്റെ ഇരുവശങ്ങളിലേക്കും പരമാവധി വ്യാപിപ്പിക്കുക */
#mw-content-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    max-width: 100% !important; /* ലിമിറ്റ് ഒഴിവാക്കി ഫുൾ വൈഡ് ആക്കുന്നു */
}

#content {
    max-width: 100% !important;
}
/* മീഡിയവിക്കി 1.43+ അനോണിമസ് വായനക്കാർക്ക് മാത്രം പേജ് ടാബുകളും ആ വരിയും പൂർണ്ണമായി നീക്കം ചെയ്യാൻ */
body.mw-anon #mw-page-header-links {
  display: none;
}