MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
No edit summary
Line 1: Line 1:
<!-- Custom CSS with Malayalam Font Support -->
/* ================================================================
<style>
  AbhiprayaVedi Article Styles - Sober Redesign
/* Malayalam Font Stack */
  ================================================================ */
.malayalam-text {
    font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Chilanka', 'Dyuthi', 'Gayathri', 'Karumbi', 'Keraleeyam', 'Lohit Malayalam', 'Noto Sans Malayalam', 'Noto Serif Malayalam', sans-serif;
}


/* Malayalam Font Support */
.article-container {
.article-container {
     max-width: 1200px;
     max-width: 1200px;
     margin: 0 auto;
     margin: 0 auto;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 20px;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
 
/* Apply Malayalam fonts for Malayalam articles */
.article-container[data-language="Malayalam"],
.article-container.malayalam-article {
    font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Noto Sans Malayalam', 'Lohit Malayalam', sans-serif;
    line-height: 1.9;
}
 
/* ================================================================
  HEADER - Simple and Clean
  ================================================================ */
 
.article-header {
    background: #f8f9fa;
    border-bottom: 3px solid #495057;
    padding: 25px 30px;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
}
}


/* Apply Malayalam fonts when Language=Malayalam */
.article-header h1 {
{{#ifeq:{{{Language|}}}|Malayalam|
    margin: 0;
.article-container {
    color: #212529;
     font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Chilanka', 'Dyuthi', 'Gayathri', 'Karumbi', 'Keraleeyam', 'Lohit Malayalam', 'Noto Sans Malayalam', 'Noto Serif Malayalam', sans-serif;
    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%;
    }
}
}


.article-header h1,
/* ================================================================
.article-content,
  MAIN CONTENT
.introduction-box,
  ================================================================ */
.sidebar-title,
 
.keypoint-list li,
.article-text {
.highlight-box,
     font-size: 1.05em;
.source-box,
.author-bio-box {
     font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Chilanka', 'Dyuthi', 'Gayathri', 'Karumbi', 'Keraleeyam', 'Lohit Malayalam', 'Noto Sans Malayalam', 'Noto Serif Malayalam', sans-serif;
     line-height: 1.8;
     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;
}
}
|}}


.article-header {
.image-left .thumb {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     background: #f8f9fa;
    color: white;
     border: 1px solid #dee2e6;
    padding: 40px;
     border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
}


.article-meta-box {
/* Content Images */
    background: linear-gradient(135deg, #e0e7ff 0%, #cfd9ff 100%);
.content-image {
    border-left: 5px solid #4c51bf;
    padding: 20px;
     margin: 25px 0;
     margin: 25px 0;
     border-radius: 8px;
     clear: both;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
}


.introduction-box {
/* ================================================================
     background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  AUTHOR INFOBOX - Like MediaWiki Style
     border-left: 5px solid #f59e0b;
  ================================================================ */
    padding: 25px;
 
    margin: 25px 0;
.infobox {
     border-radius: 8px;
     background: #f8f9fa;
     font-size: 1.15em;
     border: 1px solid #ced4da;
    line-height: 1.9;
     border-radius: 6px;
     color: #78350f;
     margin-bottom: 20px;
    font-weight: 500;
     overflow: hidden;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
}


.left-sidebar {
.author-box .author-photo {
     background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
     text-align: center;
    border: 2px solid #fbbf24;
     padding: 15px;
     border-radius: 10px;
     background: white;
     padding: 20px;
     border-bottom: 1px solid #dee2e6;
     box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}
}


.right-sidebar {
.author-box .author-photo img {
     background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
     max-width: 100%;
     border: 2px solid #34d399;
     height: auto;
     border-radius: 10px;
     border-radius: 4px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.2);
}
}


.sidebar-title {
.author-box .author-name {
     font-weight: bold;
     text-align: center;
     margin-bottom: 15px;
     padding: 12px;
     font-size: 1.1em;
     font-size: 1.1em;
     padding-bottom: 10px;
     font-weight: 600;
     border-bottom: 2px solid rgba(0,0,0,0.1);
    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 {
.highlight-box {
     background: white;
     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;
     padding: 12px;
     margin-bottom: 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;
     border-radius: 6px;
     border-left: 4px solid #10b981;
     padding: 15px 20px;
    margin: 25px 0;
     box-shadow: 0 2px 4px rgba(0,0,0,0.05);
     box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
}


.keypoint-list {
.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;
     list-style: none;
     padding: 0;
     padding: 0;
Line 101: Line 245:
}
}


.keypoint-list li {
.keypoints-list li {
     padding: 10px;
     padding: 8px 0 8px 20px;
    margin-bottom: 8px;
     position: relative;
     background: white;
     color: #856404;
    border-radius: 6px;
     line-height: 1.6;
     border-left: 4px solid #f59e0b;
     box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
}


.keypoint-list li:before {
.keypoints-list li:before {
     content: "▸ ";
     content: "▸";
     color: #f59e0b;
    position: absolute;
    left: 0;
     color: #ffc107;
     font-weight: bold;
     font-weight: bold;
    margin-right: 8px;
}
}
/* ================================================================
  SOURCE BOX
  ================================================================ */


.source-box {
.source-box {
     background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
     background: #e7f3ff;
     border: 2px solid #fbbf24;
     border: 1px solid #bee5eb;
     border-radius: 8px;
     border-left: 4px solid #17a2b8;
     padding: 18px;
     border-radius: 6px;
     margin: 30px 0;
     margin: 25px 0;
     box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
     overflow: hidden;
}
}


.author-bio-box {
.source-title {
     background: linear-gradient(135deg, #e0e7ff 0%, #cfd9ff 100%);
     background: #17a2b8;
     padding: 25px;
     color: white;
     margin: 35px 0 25px 0;
     padding: 10px 15px;
    border-top: 4px solid #667eea;
     font-weight: 600;
    border-radius: 8px;
     box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}
}


.article-content {
.source-content {
     font-size: 1.08em;
    padding: 15px;
     line-height: 1.9;
     font-size: 0.95em;
     color: #1f2937;
     line-height: 1.7;
     text-align: justify;
     color: #0c5460;
}
 
.source-content a {
    color: #0056b3;
     text-decoration: underline;
}
 
/* ================================================================
  THEME SUPPORT - Viewer Preferences
  ================================================================ */
 
/* Green Theme */
.theme-green .article-header {
    background: #e8f5e9;
    border-bottom-color: #4caf50;
}
 
.theme-green .author-line {
    background: #c8e6c9;
}
 
.theme-green .introduction-box {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}
 
.theme-green .highlight-box {
    background: #e8f5e9;
    border-color: #c8e6c9;
    border-left-color: #4caf50;
}
 
.theme-green .highlight-title {
    background: #4caf50;
}
 
.theme-green .highlight-content {
    color: #2e7d32;
}
 
/* 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;
}
}


.article-content p {
.theme-grey .highlight-title {
     margin-bottom: 1.2em;
     background: #757575;
}
}


/* Language Badge */
.theme-grey .highlight-content {
.language-badge {
     color: #424242;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
     color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-left: 10px;
}
}


@media (max-width: 768px) {
/* ================================================================
     .article-layout {
  PRINT STYLES
         flex-direction: column !important;
  ================================================================ */
 
@media print {
     .article-container {
         max-width: 100%;
     }
     }
      
      
     .left-sidebar, .right-sidebar {
     .two-column-layout {
         flex: 1 1 auto !important;
         display: block;
        margin-bottom: 20px;
     }
     }
   
    .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;
}
}
</style>

Revision as of 22:47, 31 March 2026

/* ================================================================
   AbhiprayaVedi Article Styles - Sober Redesign
   ================================================================ */

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

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

/* ================================================================
   HEADER - Simple and Clean
   ================================================================ */

.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 {
    background: #17a2b8;
    color: white;
    padding: 10px 15px;
    font-weight: 600;
}

.source-content {
    padding: 15px;
    font-size: 0.95em;
    line-height: 1.7;
    color: #0c5460;
}

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

/* ================================================================
   THEME SUPPORT - Viewer Preferences
   ================================================================ */

/* Green Theme */
.theme-green .article-header {
    background: #e8f5e9;
    border-bottom-color: #4caf50;
}

.theme-green .author-line {
    background: #c8e6c9;
}

.theme-green .introduction-box {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.theme-green .highlight-box {
    background: #e8f5e9;
    border-color: #c8e6c9;
    border-left-color: #4caf50;
}

.theme-green .highlight-title {
    background: #4caf50;
}

.theme-green .highlight-content {
    color: #2e7d32;
}

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

/* ================================================================
   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;
}