MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
No edit summary
Line 1: Line 1:
/* ================================================================
/* ================================================================
   AbhiprayaVedi Article Styles - Sober Redesign
   AbhiprayaVedi - Final Refined Styles
  ================================================================ */
 
/* Base Font Size Increase */
body {
    font-size: 16px; /* Increased from default 14px */
}
 
#content {
    font-size: 1.1em; /* Makes all content 17.6px */
}
 
/* ================================================================
  ARTICLE CONTAINER
   ================================================================ */
   ================================================================ */


/* Malayalam Font Support */
.article-container {
.article-container {
     max-width: 1200px;
     max-width: 1200px;
Line 9: Line 21:
     padding: 20px;
     padding: 20px;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.05em; /* 18.48px */
}
}


/* Apply Malayalam fonts for Malayalam articles */
/* Malayalam Font Support */
.article-container[data-language="Malayalam"],
.article-container[data-language="Malayalam"] {
.article-container.malayalam-article {
     font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Noto Sans Malayalam', sans-serif;
     font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Noto Sans Malayalam', 'Lohit Malayalam', sans-serif;
     line-height: 2; /* More line height for Malayalam */
     line-height: 1.9;
}
}


/* ================================================================
/* ================================================================
   HEADER - Simple and Clean
   HEADER - Compact, Author Prominent
   ================================================================ */
   ================================================================ */


.article-header {
.article-header {
     background: #f8f9fa;
     background: #f8f9fa;
     border-bottom: 3px solid #495057;
     border-bottom: 2px solid #495057;
     padding: 25px 30px;
     padding: 15px 25px;
     margin-bottom: 0;
     margin-bottom: 0;
     border-radius: 8px 8px 0 0;
     border-radius: 6px 6px 0 0;
}
}


.article-header h1 {
.author-info {
     margin: 0;
     display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 1.1em; /* 20.3px */
}
 
.author-name {
    font-weight: 700;
    font-size: 1.4em; /* 28.4px - PROMINENT */
     color: #212529;
     color: #212529;
    font-size: 2.2em;
    font-weight: 600;
}
}


/* ================================================================
.date-info {
  AUTHOR LINE - Single Line, Sober
     color: #6c757d;
  ================================================================ */
     font-size: 1em;
 
.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 {
.category-badge {
    background: #667eea;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
     font-weight: 600;
     font-weight: 600;
}
.author-line .date-info,
.author-line .category-info {
    color: #6c757d;
}
}


/* ================================================================
/* ================================================================
   INTRODUCTION - Directly After Author Line
   INTRODUCTION - Prominent but Compact
   ================================================================ */
   ================================================================ */


.introduction-box {
.introduction-section {
     background: #fff3cd;
     background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
     border-left: 4px solid #ffc107;
     border-left: 5px solid #f59e0b;
     padding: 20px 25px;
     padding: 20px 25px;
     margin-bottom: 25px;
     margin-bottom: 25px;
     border-radius: 6px;
     border-radius: 0 0 6px 6px;
     font-size: 1.1em;
     font-size: 1.15em; /* 21.3px */
     line-height: 1.7;
     line-height: 1.7;
     color: #856404;
     color: #78350f;
    font-weight: 500;
}
}


/* ================================================================
/* ================================================================
   TWO COLUMN LAYOUT
   CONTENT LAYOUT
   ================================================================ */
   ================================================================ */


.two-column-layout {
.content-wrapper {
     display: flex;
     display: flex;
     gap: 30px;
     gap: 30px;
Line 90: Line 102:


.right-sidebar {
.right-sidebar {
     flex: 0 0 280px;
     flex: 0 0 300px;
}
}


/* Mobile Responsive */
@media (max-width: 968px) {
@media (max-width: 968px) {
     .two-column-layout {
     .content-wrapper {
         flex-direction: column;
         flex-direction: column;
     }
     }
Line 106: Line 117:


/* ================================================================
/* ================================================================
   MAIN CONTENT
   ARTICLE TEXT
   ================================================================ */
   ================================================================ */


.article-text {
.article-text {
     font-size: 1.05em;
     font-size: 1.15em; /* 21.3px - LARGER */
     line-height: 1.8;
     line-height: 1.9;
     color: #212529;
     color: #212529;
     text-align: justify;
     text-align: justify;
Line 117: Line 128:


.article-text p {
.article-text p {
     margin-bottom: 1.2em;
     margin-bottom: 1.3em;
}
 
/* Headings in Article */
.article-text h2 {
    font-size: 1.6em; /* 34px */
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #212529;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.3em;
}
 
.article-text h3 {
    font-size: 1.3em; /* 27.7px */
    margin-top: 1.3em;
    margin-bottom: 0.7em;
    color: #495057;
}
}


/* Image 1 - Left Aligned */
/* ================================================================
  IMAGES
  ================================================================ */
 
.image-left {
.image-left {
     float: left;
     float: left;
     margin: 0 20px 15px 0;
     margin: 0 25px 20px 0;
     max-width: 400px;
     max-width: 420px;
}
}


Line 132: Line 163:
}
}


/* Content Images */
.content-image {
.content-image {
     margin: 25px 0;
     margin: 30px 0;
     clear: both;
     clear: both;
}
/* Image Captions - Larger */
.thumbcaption {
    font-size: 0.95em !important; /* Larger captions */
    line-height: 1.5 !important;
    padding: 8px !important;
}
}


/* ================================================================
/* ================================================================
   AUTHOR INFOBOX - Like MediaWiki Style
   AUTHOR INFOBOX
   ================================================================ */
   ================================================================ */


.infobox {
.author-infobox {
     background: #f8f9fa;
     background: #f8f9fa;
     border: 1px solid #ced4da;
     border: 1px solid #ced4da;
     border-radius: 6px;
     border-radius: 8px;
     margin-bottom: 20px;
     margin-bottom: 20px;
     overflow: hidden;
     overflow: hidden;
}
}


.author-box .author-photo {
.author-photo {
     text-align: center;
     text-align: center;
     padding: 15px;
     padding: 15px;
Line 157: Line 194:
}
}


.author-box .author-photo img {
.author-photo img {
     max-width: 100%;
     max-width: 100%;
     height: auto;
     height: auto;
     border-radius: 4px;
     border-radius: 6px;
}
}


.author-box .author-name {
.author-name-box {
     text-align: center;
     text-align: center;
     padding: 12px;
     padding: 15px;
     font-size: 1.1em;
     font-size: 1.2em; /* 22.2px */
     font-weight: 600;
     font-weight: 700;
     color: #212529;
     color: #212529;
     background: #e9ecef;
     background: #e9ecef;
Line 173: Line 210:
}
}


.author-box .author-name a {
.author-name-box a {
     color: #0056b3;
     color: #0056b3;
     text-decoration: none;
     text-decoration: none;
}
}


.author-box .author-name a:hover {
.author-name-box a:hover {
     text-decoration: underline;
     text-decoration: underline;
}
}


.author-box .author-bio-short {
.author-bio {
     padding: 15px;
     padding: 15px;
     font-size: 0.9em;
     font-size: 1em; /* 18.5px */
     line-height: 1.6;
     line-height: 1.7;
     color: #495057;
     color: #495057;
}
}


/* ================================================================
/* ================================================================
   HIGHLIGHTS - Separated Boxes
   HIGHLIGHTS
   ================================================================ */
   ================================================================ */


Line 205: Line 242:
     background: #28a745;
     background: #28a745;
     color: white;
     color: white;
     padding: 8px 12px;
     padding: 10px 14px;
     font-weight: 600;
     font-weight: 600;
     font-size: 0.9em;
     font-size: 1em;
}
}


.highlight-content {
.highlight-text {
     padding: 12px;
     padding: 14px;
     font-size: 0.9em;
     font-size: 1em; /* 18.5px */
     line-height: 1.6;
     line-height: 1.7;
     color: #155724;
     color: #155724;
}
}


/* ================================================================
/* ================================================================
   FLOATING KEY POINTS
   KEY POINTS - Floating Box in Sidebar
   ================================================================ */
   ================================================================ */


.floating-keypoints {
.keypoints-float {
     background: #fff3cd;
     background: #fff3cd;
     border: 1px solid #ffc107;
     border: 1px solid #ffc107;
     border-radius: 6px;
     border-radius: 6px;
     padding: 15px 20px;
     overflow: hidden;
     margin: 25px 0;
     margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
}


.keypoints-title {
.keypoints-header {
     font-weight: 600;
     background: #ffc107;
    font-size: 1.05em;
     color: #212529;
     color: #856404;
     padding: 10px 14px;
     margin-bottom: 12px;
     font-weight: 700;
     padding-bottom: 8px;
     font-size: 1em;
     border-bottom: 1px solid #ffeaa7;
}
}


Line 246: Line 281:


.keypoints-list li {
.keypoints-list li {
     padding: 8px 0 8px 20px;
     padding: 12px 14px;
    border-bottom: 1px solid #ffeaa7;
     position: relative;
     position: relative;
    padding-left: 30px;
    font-size: 1em; /* 18.5px */
    line-height: 1.6;
     color: #856404;
     color: #856404;
     line-height: 1.6;
}
 
.keypoints-list li:last-child {
     border-bottom: none;
}
}


Line 255: Line 297:
     content: "▸";
     content: "▸";
     position: absolute;
     position: absolute;
     left: 0;
     left: 12px;
     color: #ffc107;
     color: #f59e0b;
     font-weight: bold;
     font-weight: bold;
    font-size: 1.1em;
}
}


/* ================================================================
/* ================================================================
   SOURCE BOX
   SOURCE ATTRIBUTION
   ================================================================ */
   ================================================================ */


.source-box {
.source-attribution {
     background: #e7f3ff;
     background: #e7f3ff;
     border: 1px solid #bee5eb;
     border: 1px solid #bee5eb;
     border-left: 4px solid #17a2b8;
     border-left: 4px solid #17a2b8;
    padding: 15px 18px;
    margin: 25px 0;
     border-radius: 6px;
     border-radius: 6px;
    margin: 25px 0;
     font-size: 1em; /* 18.5px */
    overflow: hidden;
}
 
.source-title {
    background: #17a2b8;
    color: white;
    padding: 10px 15px;
     font-weight: 600;
}
 
.source-content {
    padding: 15px;
    font-size: 0.95em;
     line-height: 1.7;
     line-height: 1.7;
     color: #0c5460;
     color: #0c5460;
}
}


.source-content a {
.source-attribution a {
     color: #0056b3;
     color: #0056b3;
     text-decoration: underline;
     text-decoration: underline;
Line 293: Line 325:


/* ================================================================
/* ================================================================
   THEME SUPPORT - Viewer Preferences
   MODERN STYLE ALTERNATIVES
   ================================================================ */
   ================================================================ */


/* Green Theme */
/* Alternative 1: Card Style */
.theme-green .article-header {
.article-container.style-card .article-header {
     background: #e8f5e9;
     background: white;
     border-bottom-color: #4caf50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
     border-left: 5px solid #667eea;
}
}


.theme-green .author-line {
/* Alternative 2: Gradient Header */
     background: #c8e6c9;
.article-container.style-gradient .article-header {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}
}


.theme-green .introduction-box {
.article-container.style-gradient .author-info,
    background: #e8f5e9;
.article-container.style-gradient .author-name,
    border-left-color: #4caf50;
.article-container.style-gradient .date-info {
     color: #2e7d32;
     color: white;
}
}


.theme-green .highlight-box {
.article-container.style-gradient .category-badge {
     background: #e8f5e9;
     background: rgba(255,255,255,0.3);
     border-color: #c8e6c9;
     border: 1px solid white;
    border-left-color: #4caf50;
}
}


.theme-green .highlight-title {
/* Alternative 3: Minimal Style */
     background: #4caf50;
.article-container.style-minimal .article-header {
     background: transparent;
    border-bottom: 3px solid #212529;
    border-radius: 0;
}
}


.theme-green .highlight-content {
.article-container.style-minimal .introduction-section {
    color: #2e7d32;
     background: transparent;
}
     border-left: 5px solid #ffc107;
 
     border-radius: 0;
/* Blue Theme */
.theme-blue .article-header {
    background: #e3f2fd;
    border-bottom-color: #2196f3;
}
 
.theme-blue .author-line {
    background: #bbdefb;
}
 
.theme-blue .introduction-box {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1565c0;
}
 
.theme-blue .highlight-box {
    background: #e3f2fd;
    border-color: #bbdefb;
    border-left-color: #2196f3;
}
 
.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;
}
}


Line 393: Line 373:
     .article-container {
     .article-container {
         max-width: 100%;
         max-width: 100%;
        font-size: 12pt;
     }
     }
      
      
     .two-column-layout {
     .content-wrapper {
         display: block;
         display: block;
     }
     }
Line 405: Line 386:
     }
     }
      
      
     .floating-keypoints {
     .author-header,
         page-break-inside: avoid;
    .category-badge {
         color: #000 !important;
     }
     }
}
}


/* ================================================================
/* ================================================================
   UTILITY CLASSES
   ACCESSIBILITY
   ================================================================ */
   ================================================================ */


/* Text alignment for manual image placement */
/* Focus styles for keyboard navigation */
.text-left { text-align: left; }
a:focus,
.text-right { text-align: right; }
button:focus {
.text-center { text-align: center; }
    outline: 2px solid #667eea;
    outline-offset: 2px;
}


/* Clear floats */
/* High contrast mode support */
.clear { clear: both; }
@media (prefers-contrast: high) {
.clearfix::after {
    .article-container {
    content: "";
        border: 2px solid currentColor;
     display: table;
    }
    clear: both;
   
    .article-header {
        border-bottom: 3px solid currentColor;
     }
}
}

Revision as of 11:45, 3 April 2026

/* ================================================================
   AbhiprayaVedi - Final Refined Styles
   ================================================================ */

/* Base Font Size Increase */
body {
    font-size: 16px; /* Increased from default 14px */
}

#content {
    font-size: 1.1em; /* Makes all content 17.6px */
}

/* ================================================================
   ARTICLE CONTAINER
   ================================================================ */

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.05em; /* 18.48px */
}

/* Malayalam Font Support */
.article-container[data-language="Malayalam"] {
    font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Noto Sans Malayalam', sans-serif;
    line-height: 2; /* More line height for Malayalam */
}

/* ================================================================
   HEADER - Compact, Author Prominent
   ================================================================ */

.article-header {
    background: #f8f9fa;
    border-bottom: 2px solid #495057;
    padding: 15px 25px;
    margin-bottom: 0;
    border-radius: 6px 6px 0 0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 1.1em; /* 20.3px */
}

.author-name {
    font-weight: 700;
    font-size: 1.4em; /* 28.4px - PROMINENT */
    color: #212529;
}

.date-info {
    color: #6c757d;
    font-size: 1em;
}

.category-badge {
    background: #667eea;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

/* ================================================================
   INTRODUCTION - Prominent but Compact
   ================================================================ */

.introduction-section {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 5px solid #f59e0b;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 0 0 6px 6px;
    font-size: 1.15em; /* 21.3px */
    line-height: 1.7;
    color: #78350f;
    font-weight: 500;
}

/* ================================================================
   CONTENT LAYOUT
   ================================================================ */

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

/* ================================================================
   ARTICLE TEXT
   ================================================================ */

.article-text {
    font-size: 1.15em; /* 21.3px - LARGER */
    line-height: 1.9;
    color: #212529;
    text-align: justify;
}

.article-text p {
    margin-bottom: 1.3em;
}

/* Headings in Article */
.article-text h2 {
    font-size: 1.6em; /* 34px */
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #212529;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.3em;
}

.article-text h3 {
    font-size: 1.3em; /* 27.7px */
    margin-top: 1.3em;
    margin-bottom: 0.7em;
    color: #495057;
}

/* ================================================================
   IMAGES
   ================================================================ */

.image-left {
    float: left;
    margin: 0 25px 20px 0;
    max-width: 420px;
}

.image-left .thumb {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.content-image {
    margin: 30px 0;
    clear: both;
}

/* Image Captions - Larger */
.thumbcaption {
    font-size: 0.95em !important; /* Larger captions */
    line-height: 1.5 !important;
    padding: 8px !important;
}

/* ================================================================
   AUTHOR INFOBOX
   ================================================================ */

.author-infobox {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.author-photo {
    text-align: center;
    padding: 15px;
    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: 15px;
    font-size: 1.2em; /* 22.2px */
    font-weight: 700;
    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: 15px;
    font-size: 1em; /* 18.5px */
    line-height: 1.7;
    color: #495057;
}

/* ================================================================
   HIGHLIGHTS
   ================================================================ */

.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: 10px 14px;
    font-weight: 600;
    font-size: 1em;
}

.highlight-text {
    padding: 14px;
    font-size: 1em; /* 18.5px */
    line-height: 1.7;
    color: #155724;
}

/* ================================================================
   KEY POINTS - Floating Box in Sidebar
   ================================================================ */

.keypoints-float {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.keypoints-header {
    background: #ffc107;
    color: #212529;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 1em;
}

.keypoints-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.keypoints-list li {
    padding: 12px 14px;
    border-bottom: 1px solid #ffeaa7;
    position: relative;
    padding-left: 30px;
    font-size: 1em; /* 18.5px */
    line-height: 1.6;
    color: #856404;
}

.keypoints-list li:last-child {
    border-bottom: none;
}

.keypoints-list li:before {
    content: "▸";
    position: absolute;
    left: 12px;
    color: #f59e0b;
    font-weight: bold;
    font-size: 1.1em;
}

/* ================================================================
   SOURCE ATTRIBUTION
   ================================================================ */

.source-attribution {
    background: #e7f3ff;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
    padding: 15px 18px;
    margin: 25px 0;
    border-radius: 6px;
    font-size: 1em; /* 18.5px */
    line-height: 1.7;
    color: #0c5460;
}

.source-attribution a {
    color: #0056b3;
    text-decoration: underline;
}

/* ================================================================
   MODERN STYLE ALTERNATIVES
   ================================================================ */

/* Alternative 1: Card Style */
.article-container.style-card .article-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
    border-left: 5px solid #667eea;
}

/* Alternative 2: Gradient Header */
.article-container.style-gradient .article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.article-container.style-gradient .author-info,
.article-container.style-gradient .author-name,
.article-container.style-gradient .date-info {
    color: white;
}

.article-container.style-gradient .category-badge {
    background: rgba(255,255,255,0.3);
    border: 1px solid white;
}

/* Alternative 3: Minimal Style */
.article-container.style-minimal .article-header {
    background: transparent;
    border-bottom: 3px solid #212529;
    border-radius: 0;
}

.article-container.style-minimal .introduction-section {
    background: transparent;
    border-left: 5px solid #ffc107;
    border-radius: 0;
}

/* ================================================================
   PRINT STYLES
   ================================================================ */

@media print {
    .article-container {
        max-width: 100%;
        font-size: 12pt;
    }
    
    .content-wrapper {
        display: block;
    }
    
    .right-sidebar {
        float: right;
        width: 250px;
        margin-left: 20px;
    }
    
    .author-header,
    .category-badge {
        color: #000 !important;
    }
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .article-container {
        border: 2px solid currentColor;
    }
    
    .article-header {
        border-bottom: 3px solid currentColor;
    }
}