MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
mNo edit summary
 
(134 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Custom CSS for Modern Design -->
/* Load Malayalam Google Fonts */
<style>
@import url('https://fonts.googleapis.com/css2?family=Manjari:wght@400;700&family=Meera:wght@400;700&display=swap');
.article-container {
 
    max-width: 1200px;
:lang(ml),
    margin: 0 auto;
:lang(ml) * {
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}
}


.article-header {
/* Hide namespace subtitle for published articles */
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
.mw-displaytitle-subtitle {
    color: white;
     display: none !important;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
}


.article-meta-box {
/* Global minor tweaks only */
    background: linear-gradient(135deg, #e0e7ff 0%, #cfd9ff 100%);
body {
    border-left: 5px solid #4c51bf;
  line-height: 1.7;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
}


.introduction-box {
/* Main Article Title (Skin H1) */
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
#firstHeading,
    border-left: 5px solid #f59e0b;
.mw-first-heading {
     padding: 25px;
     font-size: 2.4em !important;
    margin: 25px 0;
     font-weight: bold !important;
    border-radius: 8px;
     margin-bottom: 0.4em !important;
     font-size: 1.15em;
     color: #222;
     line-height: 1.9;
     border-bottom: solid 4px #36c;
     color: #78350f;
     font-weight: 500;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
}
/* ================ FORCE MALAYALAM FONTS - HIGHEST PRIORITY ================ */


.left-sidebar {
body:lang(ml),
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
.mw-body:lang(ml),
    border: 2px solid #fbbf24;
.mw-body-content:lang(ml),
    border-radius: 10px;
#content:lang(ml),
    padding: 20px;
.mw-parser-output:lang(ml),
     box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
.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;
}
}


.right-sidebar {
/* Extra force for article body */
     background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
.article-content * {
    border: 2px solid #34d399;
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.2);
}
}


.sidebar-title {
/* Malayalam Headings */
    font-weight: bold;
h1:lang(ml), h2:lang(ml), h3:lang(ml), h4:lang(ml) {
    margin-bottom: 15px;
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
    font-size: 1.1em;
    padding-bottom: 10px;
     border-bottom: 2px solid rgba(0,0,0,0.1);
}
}


.highlight-box {
/* Force Malayalam Font on Main Article Title */
     background: white;
#firstHeading,
    padding: 12px;
.mw-first-heading,
    margin-bottom: 12px;
.firstHeading {
    border-radius: 6px;
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
     border-left: 4px solid #10b981;
     font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
}


.keypoint-list {
/* Also for Malayalam in general headings */
    list-style: none;
:lang(ml) h1,
    padding: 0;
:lang(ml) h2,
     margin: 0;
:lang(ml) h3 {
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}
}


.keypoint-list li {
/* Hide top tabs (Submissions, Discussion, Edit, etc.) for anonymous users */
    padding: 10px;
.anon .mw-indicators,
    margin-bottom: 8px;
.anon #mw-content-subtitle,
    background: white;
.anon .vector-page-toolbar,
    border-radius: 6px;
.anon .mw-editsection,
    border-left: 4px solid #f59e0b;
.anon #ca-edit,
     box-shadow: 0 2px 4px rgba(0,0,0,0.05);
.anon #ca-edit-source,
.anon #ca-history,
.anon #ca-view {
     display: none !important;
}
}


.keypoint-list li:before {
/* Force Malayalam on Main Title */
     content: "▸ ";
#firstHeading,
     color: #f59e0b;
.mw-first-heading,
     font-weight: bold;
.firstHeading {
    margin-right: 8px;
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
     font-size: 2.35em !important;
     font-weight: 700 !important;
}
}


.source-box {
/* English Title Size */
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
:lang(en) #firstHeading,
    border: 2px solid #fbbf24;
:lang(en) .mw-first-heading {
    border-radius: 8px;
     font-size: 2.45em !important;
    padding: 18px;
     margin: 30px 0;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}
}


.author-bio-box {
/* ================ HIDE SIDE PANELS FOR ANONYMOUS USERS ================ */
    background: linear-gradient(135deg, #e0e7ff 0%, #cfd9ff 100%);
    padding: 25px;
    margin: 35px 0 25px 0;
    border-top: 4px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}


.article-content {
/* വായനക്കാർ ലോഗിൻ ചെയ്തിട്ടില്ലെങ്കിൽ (Anonymous) മാത്രം ഈ സ്റ്റൈലുകൾ ബാധകമാകും */
    font-size: 1.08em;
body.user-anonymous .article-sidebar,
     line-height: 1.9;
body.user-anonymous #mw-panel,
     color: #1f2937;
body.user-anonymous .mw-sidebar,
     text-align: justify;
body.user-anonymous #sidebar,
body.user-anonymous .right-sidebar {
     display: none !important; /* സൈഡ് പാനലുകൾ പൂർണ്ണമായി മറയ്ക്കുന്നു */
     width: 0 !important;
     visibility: hidden !important;
}
}


.article-content p {
/*
     margin-bottom: 1.2em;
* സൈഡ് പാനൽ മറയ്ക്കുമ്പോൾ പ്രധാന ലേഖന ഭാഗം (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;
}
}


@media (max-width: 768px) {
/* ആർട്ടിക്കിൾ പേജിനുള്ളിലെ മെയിൻ കണ്ടെന്റ് ഏരിയയുടെ വീതി ക്രമീകരണം */
    .article-layout {
body.user-anonymous .article-main-wrapper {
        flex-direction: column !important;
    width: 100% !important;
     }
     float: none !important;
   
    .left-sidebar, .right-sidebar {
        flex: 1 1 auto !important;
        margin-bottom: 20px;
    }
}
}
</style>

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;
}