Template:Article/styles.css: Difference between revisions

From AbhiprayaVedi
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 14: Line 14:
     border-bottom: 2px solid #e0e0e0;
     border-bottom: 2px solid #e0e0e0;
     padding-bottom: 4px;
     padding-bottom: 4px;
     margin-bottom: 5px;
     margin-bottom: 0px;
}
}



Revision as of 16:31, 27 April 2026

/* Template:Article/styles.css */
/* Separate CSS from wiki markup to prevent conflicts */

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Noto Sans Malayalam', 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.article-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 4px;
    margin-bottom: 0px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.author-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #2c3e50;
}

.date-info {
    color: #7f8c8d;
    font-size: 0.9em;
}

.category-badge {
    background: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Introduction */
.introduction-section {
    font-size: 1.1em;
    font-style: italic;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin-bottom: 30px;
    background: #f8f9fa;
}

/* Two Column Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 25px;
}

.main-content {
    min-width: 0; /* Prevent overflow */
}

/* Image Styles - Fixed alignment */
.image-left {
    float: left;
    margin: 0 20px 20px 0;
    max-width: 400px;
    clear: left;
}

.image-left figure,
.image-left .thumb {
    margin: 0 !important;
}

.image-left figcaption,
.image-left .thumbcaption {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    padding: 5px;
    background: #f8f9fa;
}

.content-image {
    clear: both;
    margin: 25px 0;
    text-align: center;
}

.content-image figure {
    display: inline-block;
    margin: 0 auto;
}

.content-image figcaption,
.content-image .thumbcaption {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    padding: 8px;
    background: #f8f9fa;
}

/* Article Text */
.article-text {
    overflow: hidden; /* Clear floats */
}

/* Source Attribution */
.source-attribution {
    margin-top: 30px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Sidebar */
.right-sidebar {
    min-width: 0;
}

/* Author Infobox */
.author-infobox {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.author-photo {
    text-align: center;
    margin-bottom: 10px;
}

.author-photo img {
    border-radius: 50%;
    max-width: 150px;
}

.author-name-box {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.author-bio {
    font-size: 0.9em;
    line-height: 1.4;
    color: #555;
}

/* Highlights */
.highlight-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.highlight-title {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.highlight-text {
    font-size: 0.95em;
    line-height: 1.4;
}

/* Key Points */
.keypoints-float {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.keypoints-header {
    font-size: 1.5em;
    margin-bottom: 10px;
}

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

.keypoints-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .right-sidebar {
        order: -1; /* Move sidebar to top on mobile */
    }
    
    .image-left {
        float: none;
        margin: 0 auto 20px;
        max-width: 100%;
    }
}

/* Print Styles */
@media print {
    .right-sidebar {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-container {
        max-width: 100%;
    }
}