MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
mNo edit summary
 
(132 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ================================================================
/* Load Malayalam Google Fonts */
  AbhiprayaVedi Article Styles - Sober Redesign
@import url('https://fonts.googleapis.com/css2?family=Manjari:wght@400;700&family=Meera:wght@400;700&display=swap');
  ================================================================ */


/* Malayalam Font Support */
:lang(ml),
.article-container {
:lang(ml) * {
    max-width: 1200px;
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
    margin: 0 auto;
    padding: 20px;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
}


/* Apply Malayalam fonts for Malayalam articles */
/* Hide namespace subtitle for published articles */
.article-container[data-language="Malayalam"],
.mw-displaytitle-subtitle {
.article-container.malayalam-article {
     display: none !important;
     font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Noto Sans Malayalam', 'Lohit Malayalam', sans-serif;
    line-height: 1.9;
}
}


/* ================================================================
/* Global minor tweaks only */
  HEADER - Simple and Clean
body {
  ================================================================ */
  line-height: 1.7;
 
.article-header {
    background: #f8f9fa;
    border-bottom: 3px solid #495057;
    padding: 25px 30px;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
}
 
.article-header h1 {
    margin: 0;
    color: #212529;
    font-size: 2.2em;
    font-weight: 600;
}
 
/* ================================================================
  AUTHOR LINE - Single Line, Sober
  ================================================================ */
 
.author-line {
    background: #e9ecef;
    padding: 12px 30px;
    margin-bottom: 20px;
    border-radius: 0 0 8px 8px;
    font-size: 0.95em;
    color: #495057;
}
 
.author-line .author-info {
    font-weight: 600;
}
 
.author-line .date-info,
.author-line .category-info {
    color: #6c757d;
}
 
/* ================================================================
  INTRODUCTION - Directly After Author Line
  ================================================================ */
 
.introduction-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-size: 1.1em;
    line-height: 1.7;
    color: #856404;
}
 
/* ================================================================
  TWO COLUMN LAYOUT
  ================================================================ */
 
.two-column-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}
 
.main-content {
    flex: 1 1 70%;
    min-width: 0;
}
 
.right-sidebar {
    flex: 0 0 280px;
}
 
/* Mobile Responsive */
@media (max-width: 968px) {
    .two-column-layout {
        flex-direction: column;
    }
   
    .right-sidebar {
        flex: 1 1 auto;
        max-width: 100%;
    }
}
 
/* ================================================================
  MAIN CONTENT
  ================================================================ */
 
.article-text {
    font-size: 1.05em;
    line-height: 1.8;
    color: #212529;
    text-align: justify;
}
 
.article-text p {
    margin-bottom: 1.2em;
}
 
/* Image 1 - Left Aligned */
.image-left {
    float: left;
    margin: 0 20px 15px 0;
    max-width: 400px;
}
 
.image-left .thumb {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}
 
/* Content Images */
.content-image {
    margin: 25px 0;
    clear: both;
}
 
/* ================================================================
  AUTHOR INFOBOX - Like MediaWiki Style
  ================================================================ */
 
.infobox {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}
 
.author-box .author-photo {
    text-align: center;
    padding: 15px;
    background: white;
    border-bottom: 1px solid #dee2e6;
}
 
.author-box .author-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
 
.author-box .author-name {
    text-align: center;
    padding: 12px;
    font-size: 1.1em;
    font-weight: 600;
    color: #212529;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}
 
.author-box .author-name a {
    color: #0056b3;
    text-decoration: none;
}
 
.author-box .author-name a:hover {
    text-decoration: underline;
}
 
.author-box .author-bio-short {
    padding: 15px;
    font-size: 0.9em;
    line-height: 1.6;
    color: #495057;
}
 
/* ================================================================
  HIGHLIGHTS - Separated Boxes
  ================================================================ */
 
.highlight-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}
 
.highlight-title {
    background: #28a745;
    color: white;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.9em;
}
 
.highlight-content {
    padding: 12px;
    font-size: 0.9em;
    line-height: 1.6;
    color: #155724;
}
 
/* ================================================================
  FLOATING KEY POINTS
  ================================================================ */
 
.floating-keypoints {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px 20px;
    margin: 25px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
 
.keypoints-title {
    font-weight: 600;
    font-size: 1.05em;
    color: #856404;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ffeaa7;
}
 
.keypoints-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
 
.keypoints-list li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: #856404;
    line-height: 1.6;
}
 
.keypoints-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ffc107;
    font-weight: bold;
}
 
/* ================================================================
  SOURCE BOX
  ================================================================ */
 
.source-box {
    background: #e7f3ff;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
    border-radius: 6px;
    margin: 25px 0;
    overflow: hidden;
}
}


.source-title {
/* Main Article Title (Skin H1) */
     background: #17a2b8;
#firstHeading,
     color: white;
.mw-first-heading {
     padding: 10px 15px;
     font-size: 2.4em !important;
     font-weight: 600;
    font-weight: bold !important;
     margin-bottom: 0.4em !important;
     color: #222;
     border-bottom: solid 4px #36c;
}
}
/* ================ FORCE MALAYALAM FONTS - HIGHEST PRIORITY ================ */


.source-content {
body:lang(ml),
    padding: 15px;
.mw-body:lang(ml),
     font-size: 0.95em;
.mw-body-content:lang(ml),
     line-height: 1.7;
#content:lang(ml),
    color: #0c5460;
.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;
}
}


.source-content a {
/* Extra force for article body */
     color: #0056b3;
.article-content * {
    text-decoration: underline;
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}
}


/* ================================================================
/* Malayalam Headings */
  THEME SUPPORT - Viewer Preferences
h1:lang(ml), h2:lang(ml), h3:lang(ml), h4:lang(ml) {
  ================================================================ */
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
 
/* Green Theme */
.theme-green .article-header {
     background: #e8f5e9;
    border-bottom-color: #4caf50;
}
}


.theme-green .author-line {
/* Force Malayalam Font on Main Article Title */
     background: #c8e6c9;
#firstHeading,
.mw-first-heading,
.firstHeading {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
     font-weight: bold !important;
}
}


.theme-green .introduction-box {
/* Also for Malayalam in general headings */
    background: #e8f5e9;
:lang(ml) h1,
    border-left-color: #4caf50;
:lang(ml) h2,
     color: #2e7d32;
:lang(ml) h3 {
     font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}
}


.theme-green .highlight-box {
/* Hide top tabs (Submissions, Discussion, Edit, etc.) for anonymous users */
    background: #e8f5e9;
.anon .mw-indicators,
    border-color: #c8e6c9;
.anon #mw-content-subtitle,
     border-left-color: #4caf50;
.anon .vector-page-toolbar,
.anon .mw-editsection,
.anon #ca-edit,
.anon #ca-edit-source,
.anon #ca-history,
.anon #ca-view {
     display: none !important;
}
}


.theme-green .highlight-title {
/* Force Malayalam on Main Title */
     background: #4caf50;
#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;
}
}


.theme-green .highlight-content {
/* English Title Size */
     color: #2e7d32;
:lang(en) #firstHeading,
:lang(en) .mw-first-heading {
     font-size: 2.45em !important;
}
}


/* Blue Theme */
/* ================ HIDE SIDE PANELS FOR ANONYMOUS USERS ================ */
.theme-blue .article-header {
    background: #e3f2fd;
    border-bottom-color: #2196f3;
}


.theme-blue .author-line {
/* വായനക്കാർ ലോഗിൻ ചെയ്തിട്ടില്ലെങ്കിൽ (Anonymous) മാത്രം ഈ സ്റ്റൈലുകൾ ബാധകമാകും */
     background: #bbdefb;
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;
}
}


.theme-blue .introduction-box {
/*
     background: #e3f2fd;
* സൈഡ് പാനൽ മറയ്ക്കുമ്പോൾ പ്രധാന ലേഖന ഭാഗം (Main Content Area)
     border-left-color: #2196f3;
* പേജിന്റെ മുഴുവൻ വീതിയിലേക്കും (Full Width) മനോഹരമായി വ്യാപിച്ചു നിൽക്കാൻ താഴെ പറയുന്നവ സഹായിക്കും.
     color: #1565c0;
*/
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;
}
}


.theme-blue .highlight-box {
/* ആർട്ടിക്കിൾ പേജിനുള്ളിലെ മെയിൻ കണ്ടെന്റ് ഏരിയയുടെ വീതി ക്രമീകരണം */
    background: #e3f2fd;
body.user-anonymous .article-main-wrapper {
    border-color: #bbdefb;
     width: 100% !important;
    border-left-color: #2196f3;
     float: none !important;
}
 
.theme-blue .highlight-title {
    background: #2196f3;
}
 
.theme-blue .highlight-content {
    color: #1565c0;
}
 
/* Grey Theme */
.theme-grey .article-header {
    background: #f5f5f5;
    border-bottom-color: #757575;
}
 
.theme-grey .author-line {
    background: #eeeeee;
}
 
.theme-grey .introduction-box {
    background: #fafafa;
    border-left-color: #757575;
    color: #424242;
}
 
.theme-grey .highlight-box {
    background: #fafafa;
    border-color: #e0e0e0;
    border-left-color: #757575;
}
 
.theme-grey .highlight-title {
    background: #757575;
}
 
.theme-grey .highlight-content {
     color: #424242;
}
 
/* ================================================================
  PRINT STYLES
  ================================================================ */
 
@media print {
    .article-container {
        max-width: 100%;
     }
   
    .two-column-layout {
        display: block;
    }
   
    .right-sidebar {
        float: right;
        width: 250px;
        margin-left: 20px;
    }
   
    .floating-keypoints {
        page-break-inside: avoid;
    }
}
 
/* ================================================================
  UTILITY CLASSES
  ================================================================ */
 
/* Text alignment for manual image placement */
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
 
/* Clear floats */
.clear { clear: both; }
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
}

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