Template:EnglishArticle/styles.css: Difference between revisions

From AbhiprayaVedi
mNo edit summary
mNo edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
.article-header {
.article-header {
     margin-bottom: 22px;
     margin-bottom: 20px;
    border-bottom: 1px solid #eee;
     padding-bottom: 10px;
     padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
}


.article-byline {
.article-byline {
     color: #333;
     color: #333;
    font-size: 1.16em;
}
}


.author-name {
.author-name {
     font-weight: bold;
     font-weight: bold;
     font-size: 1.38em;
     font-size: 1.48em;
}
 
.meta-separator {
    margin: 0 10px;
    color: #888;
}
}


.article-date {
.article-date {
    margin-left: 15px;
     font-size: 1.18em;
     font-size: 1.12em;
     color: #555;
     color: #555;
}
.article-meta-category {
    color: #2c5282;
    font-weight: 600;
}
.intro-box {
    margin: 20px 0 32px 0;
    padding: 22px 26px;
    background: #f0f8ff;
    border-left: 6px solid #4682b4;
    border-top: 1px solid #b0d0e8;  /* Thin top border as requested */
    font-size: 1.18em;
    line-height: 1.68;
}
.intro-box p {
    margin: 0 0 0 0 !important;  /* Remove default paragraph margins */
}
}


.article-sidebar {
.article-sidebar {
     float: right;
     float: right;
     width: 320px;
     width: 310px;
     margin: 0 0 25px 30px;
     margin: 0 0 30px 25px;       /* Reduced left margin */
     padding: 16px;
     padding: 16px 14px 18px 14px; /* Reduced top padding */
     background: #f9f9f9;
     background: #f9f9f9;
     border: 1px solid #e5e5e5;
     border: 1px solid #e5e5e5;
     border-radius: 8px;
     border-radius: 8px;
}
/* Fix thumbnail caption alignment */
.article-sidebar .thumbcaption::before,
.article-sidebar figcaption::before {
    content: none !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Ensure clean centered caption */
.article-sidebar .thumbcaption,
.article-sidebar figcaption {
    text-align: center !important;
    font-weight: bold;
    margin-top: 8px;
    padding-top: 4px;
    color: #333;
}
/* Reduce gap between content and sidebar on smaller screens */
@media (max-width: 1024px) {
    .article-sidebar {
        margin-left: 20px;
        width: 290px;
    }
}
@media (max-width: 720px) {
    .article-sidebar {
        float: none;
        width: 100%;
        margin: 20px 0 25px 0;
    }
}
}


.highlight-box {
.highlight-box {
     margin: 14px 0;
     margin: 14px 0;
     padding: 14px;
     padding: 16px;
     background: #fff9e6;
     background: #fff9e6;
     border-left: 5px solid #f4a261;
     border-left: 5px solid #f4a261;
     color: #333;
     color: #333;
     line-height: 1.5;
     line-height: 1.6;
}
}


.intro-box {
    margin: 26px 0 32px 0;
    padding: 24px;
    background: #f0f8ff;
    border-left: 6px solid #4682b4;
    font-size: 1.18em;
    line-height: 1.65;
}


.article-image1 {
.article-image1 {
     margin: 10px 20px 20px 0;
     margin: 12px 24px 24px 0;
     float: left;
     float: left;
     max-width: 320px;
     max-width: 310px;
}
}


.image-caption {
.image-caption {
     font-size: 0.98em;
     font-size: 1.04em !important;
     color: #444;
     color: #444;
     margin-top: 8px;
     margin-top: 10px;
     line-height: 1.5;
     line-height: 1.5;
}
.article-meta-category {
    margin: 30px 0 20px 0;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 6px;
    display: inline-block;
    font-weight: bold;
    color: #2c5282;
    font-size: 1.05em;
}
}


.article-content {
.article-content {
     line-height: 1.78;
     line-height: 1.85;
     font-size: 1.03em;
     font-size: 1.04em;
    margin-right: 20px;  /* Gives breathing space when sidebar is present */
}
}

Latest revision as of 22:59, 28 May 2026

.article-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.article-byline {
    color: #333;
    font-size: 1.16em;
}

.author-name {
    font-weight: bold;
    font-size: 1.48em;
}

.meta-separator {
    margin: 0 10px;
    color: #888;
}

.article-date {
    font-size: 1.18em;
    color: #555;
}

.article-meta-category {
    color: #2c5282;
    font-weight: 600;
}

.intro-box {
    margin: 20px 0 32px 0;
    padding: 22px 26px;
    background: #f0f8ff;
    border-left: 6px solid #4682b4;
    border-top: 1px solid #b0d0e8;   /* Thin top border as requested */
    font-size: 1.18em;
    line-height: 1.68;
}

.intro-box p {
    margin: 0 0 0 0 !important;   /* Remove default paragraph margins */
}

.article-sidebar {
    float: right;
    width: 310px;
    margin: 0 0 30px 25px;        /* Reduced left margin */
    padding: 16px 14px 18px 14px; /* Reduced top padding */
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

/* Fix thumbnail caption alignment */
.article-sidebar .thumbcaption::before,
.article-sidebar figcaption::before {
    content: none !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure clean centered caption */
.article-sidebar .thumbcaption,
.article-sidebar figcaption {
    text-align: center !important;
    font-weight: bold;
    margin-top: 8px;
    padding-top: 4px;
    color: #333;
}

/* Reduce gap between content and sidebar on smaller screens */
@media (max-width: 1024px) {
    .article-sidebar {
        margin-left: 20px;
        width: 290px;
    }
}

@media (max-width: 720px) {
    .article-sidebar {
        float: none;
        width: 100%;
        margin: 20px 0 25px 0;
    }
}

.highlight-box {
    margin: 14px 0;
    padding: 16px;
    background: #fff9e6;
    border-left: 5px solid #f4a261;
    color: #333;
    line-height: 1.6;
}


.article-image1 {
    margin: 12px 24px 24px 0;
    float: left;
    max-width: 310px;
}

.image-caption {
    font-size: 1.04em !important;
    color: #444;
    margin-top: 10px;
    line-height: 1.5;
}

.article-content {
    line-height: 1.85;
    font-size: 1.04em;
    margin-right: 20px;   /* Gives breathing space when sidebar is present */
}