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 | ||
================================================================ */ | ================================================================ */ | ||
/* English articles */ | |||
.mw-body[lang="en"], | .mw-body[lang="en"], | ||
.article-container[lang="en"], | .article-container[lang="en"], | ||
.right-sidebar[lang="en"], | .right-sidebar[lang="en"], | ||
#mw-content-text[lang="en"], | #mw-content-text[lang="en"], | ||
.form-container[lang="en"] { | .form-container[lang="en"] { | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | ||
| Line 16: | Line 17: | ||
} | } | ||
/* Malayalam articles */ | |||
.mw-body[lang="ml"], | .mw-body[lang="ml"], | ||
.article-container[lang="ml"], | .article-container[lang="ml"], | ||
.right-sidebar[lang="ml"], | .right-sidebar[lang="ml"], | ||
#mw-content-text[lang="ml"], | #mw-content-text[lang="ml"], | ||
.form-container[lang="ml"] { | .form-container[lang="ml"] { | ||
font-family: 'Manjari','Meera','Rachana','AnjaliOldLipi','Noto Sans Malayalam',sans-serif; | font-family: 'Manjari','Meera','Rachana','AnjaliOldLipi','Noto Sans Malayalam',sans-serif; | ||
| Line 31: | Line 32: | ||
/* ================================================================ | /* ================================================================ | ||
ARTICLE | ARTICLE HEADER | ||
================================================================ */ | ================================================================ */ | ||
.article-container | .article-container .author-name { | ||
font-size: 1.3rem; | |||
.author-name { | |||
font-size: 1. | |||
font-weight: 700; | font-weight: 700; | ||
color: var(--color-primary); | color: var(--color-primary); | ||
line-height: 1.4; | |||
margin: 0; | |||
} | } | ||
.date-info { | .article-container .date-info { | ||
font-size: 1rem; | font-size: 1rem; | ||
color: #6c757d; | color: #6c757d; | ||
text-align: center; | |||
line-height: 1.4; | |||
margin: 0; | |||
} | } | ||
.category-badge { | .article-container .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: 5px 12px; | ||
border-radius: 20px; | border-radius: 20px; | ||
line-height: 1.4; | |||
margin: 0; | |||
} | } | ||
/* | /* ================================================================ | ||
INTRODUCTION SECTION | |||
================================================================ */ | |||
.introduction-section { | .introduction-section { | ||
background: var(--color-neutral); | background: var(--color-neutral); | ||
| Line 83: | Line 73: | ||
} | } | ||
.introduction-section p { | |||
.introduction-section | |||
margin: 0; | margin: 0; | ||
text-indent: 0; | text-indent: 0; | ||
} | } | ||
/* ================================================================ | |||
ARTICLE TEXT | |||
================================================================ */ | |||
.article-text { | .article-text { | ||
font-size: 1rem; | font-size: 1rem; | ||
| Line 115: | Line 87: | ||
} | } | ||
.article-text p { | |||
. | margin: 0; | ||
text-indent: 0; | |||
} | } | ||
.article-text p:first-of-type { | |||
margin-top: 0; | |||
} | } | ||
/* ================================================================ | /* ================================================================ | ||
FIRST HEADING | FIRST HEADING | ||
================================================================ */ | ================================================================ */ | ||
.mw-body h1.firstHeading { | .mw-body h1.firstHeading { | ||
| Line 147: | Line 107: | ||
/* ================================================================ | /* ================================================================ | ||
SIDEBAR | SIDEBAR | ||
================================================================ */ | ================================================================ */ | ||
.right-sidebar | .right-sidebar { | ||
background: var(--color-neutral); | |||
padding: 12px; | |||
border-radius: 6px; | |||
display: flex; | |||
flex-direction: column; | |||
gap: 15px; | |||
} | |||
.right-sidebar .mw-category, | .right-sidebar .mw-category, | ||
.right-sidebar .mw-list-item { | .right-sidebar .mw-list-item { | ||
| Line 158: | Line 126: | ||
/* ================================================================ | /* ================================================================ | ||
FORM USABILITY | |||
FORM USABILITY | |||
================================================================ */ | ================================================================ */ | ||
.form-container { | .form-container { | ||
| Line 205: | Line 151: | ||
.form-required { | .form-required { | ||
border-left: 5px solid #dc3545; | border-left: 5px solid #dc3545; | ||
} | } | ||
.form-optional { | .form-optional { | ||
border-left: 5px solid #28a745; | border-left: 5px solid #28a745; | ||
} | } | ||
| Line 245: | Line 191: | ||
} | } | ||
.form-controls { | .form-controls { | ||
text-align: center; | text-align: center; | ||
Revision as of 05:09, 10 April 2026
/* ================================================================
LANGUAGE-AWARE TYPOGRAPHY & COLOR VARIABLES
================================================================ */
/* English articles */
.mw-body[lang="en"],
.article-container[lang="en"],
.right-sidebar[lang="en"],
#mw-content-text[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;
}
/* Malayalam articles */
.mw-body[lang="ml"],
.article-container[lang="ml"],
.right-sidebar[lang="ml"],
#mw-content-text[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 HEADER
================================================================ */
.article-container .author-name {
font-size: 1.3rem;
font-weight: 700;
color: var(--color-primary);
line-height: 1.4;
margin: 0;
}
.article-container .date-info {
font-size: 1rem;
color: #6c757d;
text-align: center;
line-height: 1.4;
margin: 0;
}
.article-container .category-badge {
font-size: 0.9rem;
font-weight: 600;
background: var(--color-secondary);
color: #fff;
padding: 5px 12px;
border-radius: 20px;
line-height: 1.4;
margin: 0;
}
/* ================================================================
INTRODUCTION 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;
}
.introduction-section p {
margin: 0;
text-indent: 0;
}
/* ================================================================
ARTICLE TEXT
================================================================ */
.article-text {
font-size: 1rem;
line-height: 1.6;
margin-bottom: 20px;
}
.article-text p {
margin: 0;
text-indent: 0;
}
.article-text p:first-of-type {
margin-top: 0;
}
/* ================================================================
FIRST HEADING
================================================================ */
.mw-body h1.firstHeading {
font-weight: 700;
line-height: 1.3;
margin: 0.4em 0;
color: var(--color-primary);
}
/* ================================================================
SIDEBAR
================================================================ */
.right-sidebar {
background: var(--color-neutral);
padding: 12px;
border-radius: 6px;
display: flex;
flex-direction: column;
gap: 15px;
}
.right-sidebar .mw-category,
.right-sidebar .mw-list-item {
font-size: 0.95rem;
line-height: 1.5;
color: var(--color-primary);
}
/* ================================================================
FORM USABILITY
================================================================ */
.form-container {
max-width: 900px;
margin: 0 auto;
padding: 20px;
}
.form-header {
background: var(--color-primary);
color: #fff;
padding: 25px;
border-radius: 8px;
margin-bottom: 25px;
text-align: center;
}
.form-section {
background: #fff;
padding: 25px;
border-radius: 8px;
margin-bottom: 20px;
}
.form-required {
border-left: 5px solid #dc3545;
}
.form-optional {
border-left: 5px solid #28a745;
}
.form-table {
width: 100%;
border-collapse: separate;
border-spacing: 0 12px;
}
.form-label {
width: 180px;
text-align: right;
padding: 10px 15px 10px 0;
vertical-align: top;
}
.form-field {
padding: 10px 0;
}
.form-hint {
color: #666;
font-size: 0.85rem;
margin-top: 4px;
display: block;
}
/* Tightened rhythm for inputs */
.mw-htmlform-field label,
.mw-htmlform-field input,
.mw-htmlform-field textarea,
.mw-htmlform-field select {
line-height: 1.3;
font-size: 1rem;
}
.form-controls {
text-align: center;
padding: 25px;
background: var(--color-neutral);
border-radius: 8px;
}
.form-controls p {
margin-bottom: 15px;
color: #666;
}