Template:MalayalamArticle/styles.css: Difference between revisions
From AbhiprayaVedi
Created page with ".article-header { margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; } .author-name { font-weight: bold; font-size: 1.45em; } .article-date { margin-left: 16px; font-size: 1.18em; color: #555; } .article-sidebar { float: right; width: 320px; margin: 0 0 30px 35px; padding: 18px; background: #f9f9f9; border: 1px solid #e5e5e5; border-radius: 8px; } .intro-box { margin: 26px 0 34p..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
/* ================ MALAYALAM ARTICLE STYLES ================ */ | |||
.article-header { | .article-header { | ||
margin-bottom: | margin-bottom: 20px; | ||
padding-bottom: | padding-bottom: 10px; | ||
border-bottom: 1px solid #f0f0f0; | border-bottom: 1px solid #f0f0f0; | ||
} | |||
.article-byline { | |||
color: #333; | |||
font-size: 1.16em; | |||
} | } | ||
.author-name { | .author-name { | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 1. | font-size: 1.48em; | ||
color: #1e3a8a; | |||
} | |||
.meta-separator { | |||
margin: 0 10px; | |||
color: #888; | |||
} | } | ||
.article-date { | .article-date { | ||
font-size: 1.18em; | font-size: 1.18em; | ||
color: #555; | 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 */ | |||
.article-sidebar { | .article-sidebar { | ||
float: right; | float: right; | ||
width: | width: 310px; | ||
margin: 0 0 30px | margin: 0 0 30px 25px; | ||
padding: 18px; | padding: 16px 14px 18px 14px; | ||
background: #f9f9f9; | background: #f9f9f9; | ||
border: 1px solid #e5e5e5; | border: 1px solid #e5e5e5; | ||
| Line 26: | Line 59: | ||
} | } | ||
. | /* Highlights - Warm earthy tone */ | ||
margin: | .highlight-box { | ||
padding: | margin: 14px 0; | ||
background: # | padding: 16px; | ||
border-left: | background: #fff4e6; | ||
border-left: 5px solid #e67e22; | |||
line-height: 1. | color: #333; | ||
line-height: 1.6; | |||
} | } | ||
/* Image */ | |||
.article-image1 { | .article-image1 { | ||
margin: 12px | margin: 12px 24px 24px 0; | ||
float: left; | float: left; | ||
max-width: | max-width: 310px; | ||
} | } | ||
.image-caption { | .image-caption { | ||
font-size: 1. | font-size: 1.04em !important; | ||
color: #444; | color: #444; | ||
margin-top: | margin-top: 10px; | ||
line-height: 1.5; | |||
} | } | ||
/* Content */ | |||
.article-content { | .article-content { | ||
line-height: 1.85; | line-height: 1.85; | ||
font-size: 1.04em; | font-size: 1.04em; | ||
margin-right: 20px; | |||
} | } | ||
/* Malayalam | /* Malayalam Font Priority */ | ||
:lang(ml) .article-content, | :lang(ml) .article-content, | ||
:lang(ml) .intro-box { | :lang(ml) .intro-box, | ||
:lang(ml) .highlight-box { | |||
font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif; | 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; | |||
} | |||
} | } | ||
Revision as of 23:07, 30 May 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 */
.article-sidebar {
float: right;
width: 310px;
margin: 0 0 30px 25px;
padding: 16px 14px 18px 14px;
background: #f9f9f9;
border: 1px solid #e5e5e5;
border-radius: 8px;
}
/* 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;
}
}