MediaWiki:Common.css: Difference between revisions
From AbhiprayaVedi
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
LANGUAGE-AWARE TYPOGRAPHY & COLOR VARIABLES | LANGUAGE-AWARE TYPOGRAPHY & COLOR VARIABLES | ||
================================================================ */ | ================================================================ */ | ||
.mw-body[lang="en"], | .mw-body[lang="en"], | ||
.article-container[lang="en"], | .article-container[lang="en"], | ||
| Line 18: | Line 16: | ||
} | } | ||
.mw-body[lang="ml"], | .mw-body[lang="ml"], | ||
.article-container[lang="ml"], | .article-container[lang="ml"], | ||
| Line 34: | Line 31: | ||
/* ================================================================ | /* ================================================================ | ||
ARTICLE | ARTICLE LAYOUT | ||
================================================================ */ | ================================================================ */ | ||
.article-container .article-header { | .article-container { | ||
display: flex; | |||
flex-direction: column; | |||
gap: 20px; | |||
} | |||
/* Header: single line, styled */ | |||
.article-header { | |||
background: var(--color-neutral); | background: var(--color-neutral); | ||
border-bottom: 2px solid var(--color-primary); | border-bottom: 2px solid var(--color-primary); | ||
padding: | padding: 8px 16px; | ||
border-radius: 6px; | border-radius: 6px; | ||
} | |||
.article-header .author-info { | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 12px; /* keeps author, date, category inline */ | ||
} | } | ||
.author-name { | |||
font-size: 1. | font-size: 1.2rem; | ||
font-weight: 700; | font-weight: 700; | ||
color: var(--color-primary); | color: var(--color-primary); | ||
} | } | ||
.date-info { | |||
font-size: 1rem; | font-size: 1rem; | ||
color: #6c757d; | color: #6c757d; | ||
} | } | ||
.category-badge { | |||
font-size: 0.9rem; | font-size: 0.9rem; | ||
font-weight: 600; | font-weight: 600; | ||
background: var(--color-secondary); | background: var(--color-secondary); | ||
color: #fff; | color: #fff; | ||
padding: | padding: 4px 10px; | ||
border-radius: 20px; | border-radius: 20px; | ||
} | } | ||
/* Intro section */ | |||
.introduction-section { | |||
background: var(--color-neutral); | |||
border-left: 4px solid var(--color-secondary); | |||
padding: 12px 16px; | |||
border-radius: 4px; | |||
font-size: 1rem; | |||
font-size: | |||
line-height: 1.5; | line-height: 1.5; | ||
} | } | ||
/* | /* Content wrapper: two-column layout */ | ||
.content-wrapper { | |||
display: flex; | |||
gap: 20px; | |||
} | } | ||
/* Main content */ | |||
.main-content { | |||
flex: 3; | |||
} | } | ||
.article-text { | |||
font-size: 1rem; | |||
line-height: 1.6; | |||
. | |||
margin-bottom: 20px; | margin-bottom: 20px; | ||
} | } | ||
/* Sidebar fixed to the right */ | |||
.right-sidebar { | |||
flex: 1; | |||
. | |||
background: var(--color-neutral); | background: var(--color-neutral); | ||
border-radius: | padding: 12px; | ||
border-radius: 6px; | |||
display: flex; | |||
flex-direction: column; | |||
gap: 15px; | |||
} | } | ||
. | /* Responsive: stack sidebar below on small screens */ | ||
@media (max-width: 768px) { | |||
.content-wrapper { | |||
flex-direction: column; | |||
} | |||
.right-sidebar { | |||
order: 2; | |||
} | |||
} | } | ||
Revision as of 04:53, 10 April 2026
/* ================================================================
LANGUAGE-AWARE TYPOGRAPHY & COLOR VARIABLES
================================================================ */
.mw-body[lang="en"],
.article-container[lang="en"],
.right-sidebar[lang="en"],
#mw-content-text[lang="en"],
#mw-navigation[lang="en"],
.form-container[lang="en"] {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
line-height: 1.6;
--color-primary: #212529;
--color-secondary: #667eea;
--color-accent: #17a2b8;
--color-neutral: #f8f9fa;
}
.mw-body[lang="ml"],
.article-container[lang="ml"],
.right-sidebar[lang="ml"],
#mw-content-text[lang="ml"],
#mw-navigation[lang="ml"],
.form-container[lang="ml"] {
font-family: 'Manjari','Meera','Rachana','AnjaliOldLipi','Noto Sans Malayalam',sans-serif;
line-height: 1.75;
--color-primary: #4a2f87;
--color-secondary: #f59e0b;
--color-accent: #78350f;
--color-neutral: #f8f9fa;
}
/* ================================================================
ARTICLE LAYOUT
================================================================ */
.article-container {
display: flex;
flex-direction: column;
gap: 20px;
}
/* Header: single line, styled */
.article-header {
background: var(--color-neutral);
border-bottom: 2px solid var(--color-primary);
padding: 8px 16px;
border-radius: 6px;
}
.article-header .author-info {
display: flex;
align-items: center;
gap: 12px; /* keeps author, date, category inline */
}
.author-name {
font-size: 1.2rem;
font-weight: 700;
color: var(--color-primary);
}
.date-info {
font-size: 1rem;
color: #6c757d;
}
.category-badge {
font-size: 0.9rem;
font-weight: 600;
background: var(--color-secondary);
color: #fff;
padding: 4px 10px;
border-radius: 20px;
}
/* Intro section */
.introduction-section {
background: var(--color-neutral);
border-left: 4px solid var(--color-secondary);
padding: 12px 16px;
border-radius: 4px;
font-size: 1rem;
line-height: 1.5;
}
/* Content wrapper: two-column layout */
.content-wrapper {
display: flex;
gap: 20px;
}
/* Main content */
.main-content {
flex: 3;
}
.article-text {
font-size: 1rem;
line-height: 1.6;
margin-bottom: 20px;
}
/* Sidebar fixed to the right */
.right-sidebar {
flex: 1;
background: var(--color-neutral);
padding: 12px;
border-radius: 6px;
display: flex;
flex-direction: column;
gap: 15px;
}
/* Responsive: stack sidebar below on small screens */
@media (max-width: 768px) {
.content-wrapper {
flex-direction: column;
}
.right-sidebar {
order: 2;
}
}