Template:MalayalamArticle/styles.css: Difference between revisions

From അഭിപ്രായവേദി
mNo edit summary
mNo edit summary
 
Line 168: Line 168:
     padding: 0 !important;
     padding: 0 !important;
     height: 0 !important;
     height: 0 !important;
}
/* 🛠️ റിലേറ്റഡ് ആർട്ടിക്കിൾ കാർഡുകൾ വരിവരിയായി 3 കോളങ്ങളിൽ ക്രമീകരിക്കുന്നു */
.related-articles-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* കൃത്യമായി ഒരു വരിയിൽ 3 എണ്ണം */
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 15px;
}
/* മീഡിയവിക്കി ജനറേറ്റ് ചെയ്യുന്ന ശൂന്യമായ ടാഗുകൾ ഗ്രിഡിനെ തകർക്കാതിരിക്കാൻ */
.related-articles-grid > div {
    display: flex !important;
}
.related-articles-grid .article-card {
    width: 100% !important;
    height: 100% !important;
}
/* മൊബൈൽ ഫോണുകളിൽ കാർഡുകൾ ഒന്നിന് താഴെ ഒന്നായി കാണിക്കാൻ */
@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: 1fr !important;
    }
}
}

Latest revision as of 21:56, 14 June 2026

/* ================ MALAYALAM ARTICLE STYLES ================ */

.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;
    color: #1e3a8a;
}

.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 - Slightly warmer tone for Malayalam */
.intro-box {
    margin: 20px 0 32px 0;
    padding: 22px 26px;
    background: #f0f9f4;           /* Soft green tint */
    border-left: 6px solid #4a9c6e;
    border-top: 1px solid #b0e0c8;
    font-size: 1.18em;
    line-height: 1.68;
}

.intro-box p {
    margin: 0 !important;
}

/* ================ SIDEBAR & HIGHLIGHTS FIX ================ */
.article-sidebar {
    float: right;
    width: 310px;
    margin: 0 0 20px 20px; /* മുകളിലെ മാർജിൻ ഒഴിവാക്കി, ഇടതുവശത്തെ അകലം കുറച്ചു */
    padding: 0 !important; /* അനാവശ്യമായ പശ്ചാത്തലവും പാഡിങ്ങും ഒഴിവാക്കി */
    background: transparent !important;
    border: none !important;
}

.article-sidebar .highlight-box:first-child {
    margin-top: 0 !important; /* കണ്ടെന്റിന്റെ ഒപ്പത്തിനൊപ്പം വരാൻ ടോപ്പ് മാർജിൻ ഒഴിവാക്കി */
    padding-top: 16px !important;
}

/* Highlights - Warm earthy tone */
.highlight-box {
    margin: 14px 0;
    padding: 16px;
    background: #fff4e6;
    border-left: 5px solid #e67e22;
    color: #333;
    line-height: 1.6;
}

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


/* Content */
.article-content {
    line-height: 1.85;
    font-size: 1.04em;
    margin-right: 20px;
}

/* Malayalam Font Priority */
:lang(ml) .article-content,
:lang(ml) .intro-box,
:lang(ml) .highlight-box {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif;
}

/* Responsive */
@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;
    }
}
/* Malayalam Font Enforcement */
.article-content,
.intro-box,
.highlight-box {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}

/* ================ AUTHOR & RELATED SECTIONS RESET ================ */

/* ഹെഡിംഗിന് മുന്നിലെ അനാവശ്യ സ്പേസും ബ്ലോക്ക് ലുക്കും ഒഴിവാക്കുന്നു */
.author-profile-bottom {
    display: block;
    clear: both;
    margin-top: 40px;
}

.author-heading {
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    display: inline-block; /* ബ്ലോക്ക് തകരാർ പരിഹരിക്കുന്നു */
    color: #718096;
    text-transform: uppercase;
    font-size: 0.85em;
    font-family: 'Manjari', sans-serif !important;
}

/* റിലേറ്റഡ് ഹെഡിങ്ങും കാർഡുകളും തമ്മിലുള്ള അകലം കുറയ്ക്കുന്നു */
.related-articles-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    clear: both;
}

.related-heading {
    font-family: 'Manjari', sans-serif !important;
    font-size: 1.3em;
    color: #2d3748;
    margin: 0 0 12px 0 !important; /* താഴെയുള്ള അകലം 12px ആയി കുറച്ചു */
    padding: 0 !important;
}

/* മീഡിയവിക്കി ജനറേറ്റ് ചെയ്യുന്ന ശൂന്യമായ ടാഗുകളെ പൂർണ്ണമായി ഇല്ലാതാക്കുന്നു */
.author-profile-bottom p:empty,
.related-articles-section p:empty,
.author-profile-bottom br,
.related-articles-section br {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}
/* 🛠️ റിലേറ്റഡ് ആർട്ടിക്കിൾ കാർഡുകൾ വരിവരിയായി 3 കോളങ്ങളിൽ ക്രമീകരിക്കുന്നു */
.related-articles-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* കൃത്യമായി ഒരു വരിയിൽ 3 എണ്ണം */
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 15px;
}

/* മീഡിയവിക്കി ജനറേറ്റ് ചെയ്യുന്ന ശൂന്യമായ ടാഗുകൾ ഗ്രിഡിനെ തകർക്കാതിരിക്കാൻ */
.related-articles-grid > div {
    display: flex !important;
}

.related-articles-grid .article-card {
    width: 100% !important;
    height: 100% !important;
}

/* മൊബൈൽ ഫോണുകളിൽ കാർഡുകൾ ഒന്നിന് താഴെ ഒന്നായി കാണിക്കാൻ */
@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: 1fr !important;
    }
}