MediaWiki:Common.css

From AbhiprayaVedi
Revision as of 22:47, 31 March 2026 by VijayanPN (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ================================================================
   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;
}