MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
/* ================================================================
/* ================================================================
   AbhiprayaVedi - Final Refined Styles
   AbhiprayaVedi - Ver3 Refined Styles
   ================================================================ */
   ================================================================ */


/* Base Font Size Increase */
/* Base Font Size */
body {
body {
     font-size: 16px;
     font-size: 17px;
}
}


Line 27: Line 27:
.article-container[data-language="Malayalam"] {
.article-container[data-language="Malayalam"] {
     font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Noto Sans Malayalam', sans-serif;
     font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Noto Sans Malayalam', sans-serif;
     line-height: 2;
     line-height: 1.75;        /* FIX: Reduced from 2 — less stretched for Malayalam */
}
}


/* ================================================================
/* ================================================================
   HEADER - Compact with Reduced Padding
   HEADER - Compact, Author | Date | Category properly spread
   ================================================================ */
   ================================================================ */


Line 37: Line 37:
     background: #f8f9fa;
     background: #f8f9fa;
     border-bottom: 2px solid #495057;
     border-bottom: 2px solid #495057;
     padding: 10px 20px; /* Reduced from 15px 25px */
     padding: 6px 16px;       /* FIX: Further reduced padding (was 10px 20px) */
     margin-bottom: 15px; /* Added bottom margin */
     margin-bottom: 10px;     /* FIX: Tighter gap before introduction */
     border-radius: 6px;
     border-radius: 6px;
}
}
Line 45: Line 45:
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     justify-content: space-between; /* Spread items across */
     justify-content: space-between;
     gap: 15px;
     gap: 15px;
     flex-wrap: wrap;
     flex-wrap: wrap;
Line 53: Line 53:
.author-name {
.author-name {
     font-weight: 700;
     font-weight: 700;
     font-size: 1.4em; /* 28.4px - PROMINENT */
     font-size: 1.3em;
     color: #212529;
     color: #212529;
     flex: 0 0 auto; /* Don't grow, left aligned */
     flex: 0 0 auto;
}
}


.date-info {
.date-info {
     color: #6c757d;
     color: #6c757d;
     font-size: 1.1em; /* Slightly larger - was 1em */
     font-size: 1.05em;
     flex: 1 1 auto; /* Grow to take space */
     flex: 1 1 auto;
     text-align: center; /* Center aligned */
     text-align: center;       /* Centered between author and category */
}
}


Line 68: Line 68:
     background: #667eea;
     background: #667eea;
     color: white;
     color: white;
     padding: 6px 14px;
     padding: 5px 12px;
     border-radius: 20px;
     border-radius: 20px;
     font-size: 0.9em;
     font-size: 0.88em;
     font-weight: 600;
     font-weight: 600;
     flex: 0 0 auto; /* Don't grow, right aligned */
     flex: 0 0 auto;
}
}


Line 82: Line 82:
     background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
     background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
     border-left: 5px solid #f59e0b;
     border-left: 5px solid #f59e0b;
     padding: 15px 20px; /* Reduced from 20px 25px */
     padding: 10px 16px;       /* FIX: Further reduced from 15px 20px */
     margin-bottom: 25px;
     margin-bottom: 20px;
     border-radius: 6px;
     border-radius: 6px;
     font-size: 1.15em;
     font-size: 1.12em;
     line-height: 1.7;
     line-height: 1.65;       /* FIX: Reduced line-height */
     color: #78350f;
     color: #78350f;
     font-weight: 500;
     font-weight: 500;
Line 114: Line 114:
         flex-direction: column;
         flex-direction: column;
     }
     }
   
     .right-sidebar {
     .right-sidebar {
         flex: 1 1 auto;
         flex: 1 1 auto;
Line 127: Line 126:
.article-text {
.article-text {
     font-size: 1.15em;
     font-size: 1.15em;
     line-height: 1.9;
     line-height: 1.85;        /* FIX: Slightly reduced from 1.9 */
     color: #212529;
     color: #212529;
     text-align: justify;
     text-align: left;        /* FIX: Changed from justify — no unnatural stretching */
}
}


.article-text p {
.article-text p {
     margin-bottom: 1.3em;
     margin-bottom: 1.2em;     /* FIX: Slightly tighter paragraph spacing */
}
}


Line 153: Line 152:


/* ================================================================
/* ================================================================
   IMAGES
   IMAGES - Reduced bottom margins
   ================================================================ */
   ================================================================ */


.image-left {
.image-left {
     float: left;
     float: left;
     margin: 0 25px 20px 0;
     margin: 0 20px 8px 0;     /* FIX: Bottom margin reduced from 20px to 8px */
     max-width: 420px;
     max-width: 420px;
}
}
Line 168: Line 167:


.content-image {
.content-image {
     margin: 30px 0;
     margin: 15px 0 8px 0;     /* FIX: Reduced bottom margin from 30px to 8px */
     clear: both;
     clear: both;
}
/* FIX: Reduce bottom margin on all MediaWiki thumb wrappers */
.thumb {
    margin-bottom: 6px !important;
}
.thumbinner {
    padding-bottom: 4px !important;
}
}


.thumbcaption {
.thumbcaption {
     font-size: 0.95em !important;
     font-size: 0.95em !important;
     line-height: 1.5 !important;
     line-height: 1.45 !important;
     padding: 8px !important;
     padding: 5px 6px !important; /* FIX: Less padding below caption */
}
}


Line 192: Line 200:
.author-photo {
.author-photo {
     text-align: center;
     text-align: center;
     padding: 15px;
     padding: 12px;           /* FIX: Slightly tighter */
     background: white;
     background: white;
     border-bottom: 1px solid #dee2e6;
     border-bottom: 1px solid #dee2e6;
Line 205: Line 213:
.author-name-box {
.author-name-box {
     text-align: center;
     text-align: center;
     padding: 15px;
     padding: 10px 15px;       /* FIX: Reduced padding */
     font-size: 1.2em;
     font-size: 1.2em;
     font-weight: 500; /* Reduced from 700 */
     font-weight: 500;
     color: #212529;
     color: #212529;
     background: #e9ecef;
     background: #e9ecef;
Line 223: Line 231:


.author-bio {
.author-bio {
     padding: 15px;
     padding: 12px 15px;       /* FIX: Slightly tighter */
     font-size: 1em;
     font-size: 1em;
     line-height: 1.7;
     line-height: 1.65;
     color: #495057;
     color: #495057;
}
}


/* ================================================================
/* ================================================================
   HIGHLIGHTS - Icon Only, No Title Text
   HIGHLIGHTS - Icon Only, with bottom margin for separation
   ================================================================ */
   ================================================================ */


Line 238: Line 246:
     border-left: 4px solid #28a745;
     border-left: 4px solid #28a745;
     border-radius: 6px;
     border-radius: 6px;
     margin-bottom: 15px;
     margin-bottom: 12px;      /* FIX: Was 15px — slightly tighter but still separated */
     overflow: hidden;
     overflow: hidden;
}
}
Line 245: Line 253:
     background: #28a745;
     background: #28a745;
     color: white;
     color: white;
     padding: 8px 14px;
     padding: 7px 14px;
     font-size: 1.3em; /* Larger icon */
     font-size: 1.3em;
     text-align: center;
     text-align: center;
}
}


.highlight-text {
.highlight-text {
     padding: 14px;
     padding: 12px 14px;       /* FIX: Slightly tighter */
     font-size: 1em;
     font-size: 1em;
     line-height: 1.7;
     line-height: 1.65;
     color: #155724;
     color: #155724;
}
}


/* ================================================================
/* ================================================================
   KEY POINTS - Icon Only, No Title Text
   KEY POINTS - Separation between items
   ================================================================ */
   ================================================================ */


Line 272: Line 280:
     background: #ffc107;
     background: #ffc107;
     color: #212529;
     color: #212529;
     padding: 8px 14px;
     padding: 7px 14px;
     font-size: 1.3em; /* Larger icon */
     font-size: 1.3em;
     text-align: center;
     text-align: center;
}
}
Line 284: Line 292:


.keypoints-list li {
.keypoints-list li {
     padding: 12px 14px;
     padding: 11px 14px 11px 30px;
     border-bottom: 1px solid #ffeaa7;
     border-bottom: 1px solid #ffeaa7;
     position: relative;
     position: relative;
    padding-left: 30px;
     font-size: 1em;
     font-size: 1em;
     line-height: 1.6;
     line-height: 1.6;
     color: #856404;
     color: #856404;
}
/* FIX: Extra spacing between first two key points for visual separation */
.keypoints-list li:nth-child(1) {
    margin-bottom: 4px;      /* FIX: Small gap between KP1 and KP2 */
}
}


Line 314: Line 326:
     border: 1px solid #bee5eb;
     border: 1px solid #bee5eb;
     border-left: 4px solid #17a2b8;
     border-left: 4px solid #17a2b8;
     padding: 15px 18px;
     padding: 12px 16px;
     margin: 25px 0;
     margin: 20px 0;
     border-radius: 6px;
     border-radius: 6px;
     font-size: 1em;
     font-size: 1em;
     line-height: 1.7;
     line-height: 1.65;
     color: #0c5460;
     color: #0c5460;
}
}
Line 331: Line 343:
   ================================================================ */
   ================================================================ */


/* Card Style */
.article-container.style-card .article-header {
.article-container.style-card .article-header {
     background: white;
     background: white;
Line 339: Line 350:
}
}


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


/* Minimal Style */
.article-container.style-minimal .article-header {
.article-container.style-minimal .article-header {
     background: transparent;
     background: transparent;
Line 379: Line 388:
         gap: 10px;
         gap: 10px;
     }
     }
   
     .date-info {
     .date-info {
         text-align: left; /* Left align on mobile */
         text-align: left;
     }
     }
   
     .category-badge {
     .category-badge {
         align-self: flex-start;
         align-self: flex-start;
Line 398: Line 405:
         font-size: 12pt;
         font-size: 12pt;
     }
     }
   
     .content-wrapper {
     .content-wrapper {
         display: block;
         display: block;
     }
     }
   
     .right-sidebar {
     .right-sidebar {
         float: right;
         float: right;
Line 408: Line 413:
         margin-left: 20px;
         margin-left: 20px;
     }
     }
   
     .author-name,
     .author-name,
     .category-badge {
     .category-badge {
Line 429: Line 433:
         border: 2px solid currentColor;
         border: 2px solid currentColor;
     }
     }
   
     .article-header {
     .article-header {
         border-bottom: 3px solid currentColor;
         border-bottom: 3px solid currentColor;
     }
     }
}
}

Revision as of 23:26, 4 April 2026

/* ================================================================
   AbhiprayaVedi - Ver3 Refined Styles
   ================================================================ */

/* Base Font Size */
body {
    font-size: 17px;
}

#content {
    font-size: 1.1em;
}

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

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

/* ================================================================
   HEADER - Compact, Author | Date | Category properly spread
   ================================================================ */

.article-header {
    background: #f8f9fa;
    border-bottom: 2px solid #495057;
    padding: 6px 16px;        /* FIX: Further reduced padding (was 10px 20px) */
    margin-bottom: 10px;      /* FIX: Tighter gap before introduction */
    border-radius: 6px;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 1.1em;
}

.author-name {
    font-weight: 700;
    font-size: 1.3em;
    color: #212529;
    flex: 0 0 auto;
}

.date-info {
    color: #6c757d;
    font-size: 1.05em;
    flex: 1 1 auto;
    text-align: center;       /* Centered between author and category */
}

.category-badge {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.88em;
    font-weight: 600;
    flex: 0 0 auto;
}

/* ================================================================
   INTRODUCTION - Reduced Padding
   ================================================================ */

.introduction-section {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 5px solid #f59e0b;
    padding: 10px 16px;       /* FIX: Further reduced from 15px 20px */
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 1.12em;
    line-height: 1.65;        /* FIX: Reduced line-height */
    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;
    line-height: 1.85;        /* FIX: Slightly reduced from 1.9 */
    color: #212529;
    text-align: left;         /* FIX: Changed from justify — no unnatural stretching */
}

.article-text p {
    margin-bottom: 1.2em;     /* FIX: Slightly tighter paragraph spacing */
}

.article-text h2 {
    font-size: 1.6em;
    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;
    margin-top: 1.3em;
    margin-bottom: 0.7em;
    color: #495057;
}

/* ================================================================
   IMAGES - Reduced bottom margins
   ================================================================ */

.image-left {
    float: left;
    margin: 0 20px 8px 0;     /* FIX: Bottom margin reduced from 20px to 8px */
    max-width: 420px;
}

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

.content-image {
    margin: 15px 0 8px 0;     /* FIX: Reduced bottom margin from 30px to 8px */
    clear: both;
}

/* FIX: Reduce bottom margin on all MediaWiki thumb wrappers */
.thumb {
    margin-bottom: 6px !important;
}

.thumbinner {
    padding-bottom: 4px !important;
}

.thumbcaption {
    font-size: 0.95em !important;
    line-height: 1.45 !important;
    padding: 5px 6px !important;  /* FIX: Less padding below caption */
}

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

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

.author-photo {
    text-align: center;
    padding: 12px;            /* FIX: Slightly tighter */
    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: 10px 15px;       /* FIX: Reduced padding */
    font-size: 1.2em;
    font-weight: 500;
    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: 12px 15px;       /* FIX: Slightly tighter */
    font-size: 1em;
    line-height: 1.65;
    color: #495057;
}

/* ================================================================
   HIGHLIGHTS - Icon Only, with bottom margin for separation
   ================================================================ */

.highlight-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    border-radius: 6px;
    margin-bottom: 12px;      /* FIX: Was 15px — slightly tighter but still separated */
    overflow: hidden;
}

.highlight-title {
    background: #28a745;
    color: white;
    padding: 7px 14px;
    font-size: 1.3em;
    text-align: center;
}

.highlight-text {
    padding: 12px 14px;       /* FIX: Slightly tighter */
    font-size: 1em;
    line-height: 1.65;
    color: #155724;
}

/* ================================================================
   KEY POINTS - Separation between items
   ================================================================ */

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

.keypoints-header {
    background: #ffc107;
    color: #212529;
    padding: 7px 14px;
    font-size: 1.3em;
    text-align: center;
}

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

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

/* FIX: Extra spacing between first two key points for visual separation */
.keypoints-list li:nth-child(1) {
    margin-bottom: 4px;       /* FIX: Small gap between KP1 and KP2 */
}

.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: 12px 16px;
    margin: 20px 0;
    border-radius: 6px;
    font-size: 1em;
    line-height: 1.65;
    color: #0c5460;
}

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

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

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

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

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

/* ================================================================
   MOBILE RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    .author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .date-info {
        text-align: left;
    }
    .category-badge {
        align-self: flex-start;
    }
}

/* ================================================================
   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-name,
    .category-badge {
        color: #000 !important;
    }
}

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

a:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

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