MediaWiki:Common.css: Difference between revisions
From AbhiprayaVedi
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
================================================================ */ | ================================================================ */ | ||
/* | /* Reduce gap between tab bar and article content */ | ||
#firstHeading { | #firstHeading { | ||
margin-bottom: 4px | margin-bottom: 4px; | ||
padding-bottom: 2px | padding-bottom: 2px; | ||
} | } | ||
.mw-body-content | #mw-content-text, | ||
.mw-body-content, | |||
.mw-parser-output, | |||
.mw-parser-output | |||
.page-content { | .page-content { | ||
padding-top: 0 | padding-top: 0; | ||
margin-top: 0 | margin-top: 0; | ||
} | } | ||
| Line 39: | Line 20: | ||
BASE FONT SIZE | BASE FONT SIZE | ||
================================================================ */ | ================================================================ */ | ||
body { | body { | ||
font-size: 17px; | font-size: 17px; | ||
} | } | ||
.mw-body { | .mw-body { | ||
font-size: 1.05em; | font-size: 1.05em; | ||
| Line 52: | Line 30: | ||
ARTICLE CONTAINER | ARTICLE CONTAINER | ||
================================================================ */ | ================================================================ */ | ||
.article-container { | .article-container { | ||
max-width: 1200px; | max-width: 1200px; | ||
margin: 0 auto; | margin: 0 auto; | ||
padding: 0 20px 20px 20px; /* | padding: 0 20px 20px 20px; /* top padding 0 */ | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | ||
font-size: 1.05em; | font-size: 1.05em; | ||
} | } | ||
.article-container[data-language="Malayalam"] { | .article-container[data-language="Malayalam"] { | ||
font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Noto Sans Malayalam', sans-serif; | font-family: 'Manjari','Meera','Rachana','AnjaliOldLipi','Noto Sans Malayalam',sans-serif; | ||
line-height: 1.75; | line-height: 1.75; | ||
} | } | ||
/* ================================================================ | /* ================================================================ | ||
HEADER | HEADER | ||
================================================================ */ | ================================================================ */ | ||
.article-container .article-header { | |||
.article-header { | |||
background: #f8f9fa; | background: #f8f9fa; | ||
border-bottom: 2px solid #495057; | border-bottom: 2px solid #495057; | ||
padding: 6px 16px | padding: 6px 16px; | ||
margin-top: 0 | margin-top: 0; | ||
margin-bottom: 10px | margin-bottom: 10px; | ||
border-radius: 6px; | border-radius: 6px; | ||
} | } | ||
.article-container .author-info { | |||
.author-info { | display: flex; | ||
display: flex | align-items: center; | ||
align-items: center | justify-content: space-between; | ||
justify-content: space-between | flex-wrap: wrap; | ||
gap: 15px; | gap: 15px; | ||
padding: 0; | |||
margin: 0; | |||
width: 100%; | |||
} | } | ||
.article-container .author-info > * { | |||
.author- | |||
flex: 0 0 auto; | flex: 0 0 auto; | ||
width: auto; | |||
float: none; | |||
} | } | ||
.article-container .author-info .date-info { | |||
.date-info { | |||
flex: 1 1 auto; | flex: 1 1 auto; | ||
text-align: center; | text-align: center; | ||
} | } | ||
| Line 116: | Line 76: | ||
INTRODUCTION | INTRODUCTION | ||
================================================================ */ | ================================================================ */ | ||
.article-container .introduction-section { | |||
.introduction-section { | |||
background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%); | background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%); | ||
border-left: 5px solid #f59e0b; | border-left: 5px solid #f59e0b; | ||
padding: 10px 16px | padding: 10px 16px; | ||
margin-top: 0 | margin-top: 0; | ||
margin-bottom: 20px | margin-bottom: 20px; | ||
border-radius: 6px; | border-radius: 6px; | ||
font-size: 1.12em; | font-size: 1.12em; | ||
| Line 133: | Line 92: | ||
CONTENT LAYOUT | CONTENT LAYOUT | ||
================================================================ */ | ================================================================ */ | ||
.content-wrapper { | .content-wrapper { | ||
display: flex; | display: flex; | ||
| Line 139: | Line 97: | ||
margin-bottom: 30px; | margin-bottom: 30px; | ||
} | } | ||
.main-content { flex: 1 1 70%; min-width: 0; } | |||
.main-content { | .right-sidebar { flex: 0 0 300px; } | ||
} | |||
.right-sidebar { | |||
} | |||
@media (max-width: 968px) { | @media (max-width: 968px) { | ||
.content-wrapper { | .content-wrapper { flex-direction: column; } | ||
.right-sidebar { flex: 1 1 auto; max-width: 100%; } | |||
.right-sidebar { | |||
} | } | ||
| Line 162: | Line 107: | ||
ARTICLE TEXT | ARTICLE TEXT | ||
================================================================ */ | ================================================================ */ | ||
.article-text { | .article-text { | ||
font-size: 1.15em; | font-size: 1.15em; | ||
| Line 169: | Line 113: | ||
text-align: left; | text-align: left; | ||
} | } | ||
.article-text p { margin-bottom: 1.2em; } | |||
.article-text p { | |||
} | |||
.article-text h2 { | .article-text h2 { | ||
font-size: 1.6em; | font-size: 1.6em; | ||
margin | margin: 1.5em 0 0.8em; | ||
color: #212529; | color: #212529; | ||
border-bottom: 2px solid #dee2e6; | border-bottom: 2px solid #dee2e6; | ||
padding-bottom: 0.3em; | padding-bottom: 0.3em; | ||
} | } | ||
.article-text h3 { | .article-text h3 { | ||
font-size: 1.3em; | font-size: 1.3em; | ||
margin | margin: 1.3em 0 0.7em; | ||
color: #495057; | color: #495057; | ||
} | } | ||
| Line 227: | Line 130: | ||
AUTHOR INFOBOX | AUTHOR INFOBOX | ||
================================================================ */ | ================================================================ */ | ||
.author-infobox { | .author-infobox { | ||
background: #f8f9fa; | background: #f8f9fa; | ||
| Line 235: | Line 137: | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.author-photo { text-align: center; padding: 12px; background: white; border-bottom: 1px solid #dee2e6; } | |||
.author-photo { | .author-photo img { max-width: 100%; height: auto; border-radius: 6px; } | ||
} | |||
.author-photo img { | |||
} | |||
.author-name-box { | .author-name-box { | ||
text-align: center; | text-align: center; | ||
| Line 258: | Line 148: | ||
border-bottom: 1px solid #dee2e6; | border-bottom: 1px solid #dee2e6; | ||
} | } | ||
.author-name-box a { color: #0056b3; text-decoration: none; } | |||
.author-name-box a { | .author-name-box a:hover { text-decoration: underline; } | ||
.author-bio { padding: 12px 15px; font-size: 1em; line-height: 1.65; color: #495057; } | |||
} | |||
.author-name-box a:hover { | |||
} | |||
.author-bio { | |||
} | |||
/* ================================================================ | /* ================================================================ | ||
RESPONSIVE | |||
================================================================ */ | ================================================================ */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.author-info { | .article-container .author-info { | ||
flex-direction: column; | flex-direction: column; | ||
align-items: flex-start; | align-items: flex-start; | ||
gap: 10px; | gap: 10px; | ||
} | } | ||
.article-container .author-info .date-info { text-align: left; } | |||
.article-container .author-info .category-badge { align-self: flex-start; } | |||
.article-container .author-info | |||
. | |||
.article-container .author-info . | |||
} | } | ||
Revision as of 17:32, 8 April 2026
/* ================================================================
AbhiprayaVedi - Ver4.1 — Timeless Skin, Gap Fix
================================================================ */
/* Reduce gap between tab bar and article content */
#firstHeading {
margin-bottom: 4px;
padding-bottom: 2px;
}
#mw-content-text,
.mw-body-content,
.mw-parser-output,
.page-content {
padding-top: 0;
margin-top: 0;
}
/* ================================================================
BASE FONT SIZE
================================================================ */
body {
font-size: 17px;
}
.mw-body {
font-size: 1.05em;
}
/* ================================================================
ARTICLE CONTAINER
================================================================ */
.article-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px 20px 20px; /* top padding 0 */
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 1.05em;
}
.article-container[data-language="Malayalam"] {
font-family: 'Manjari','Meera','Rachana','AnjaliOldLipi','Noto Sans Malayalam',sans-serif;
line-height: 1.75;
}
/* ================================================================
HEADER
================================================================ */
.article-container .article-header {
background: #f8f9fa;
border-bottom: 2px solid #495057;
padding: 6px 16px;
margin-top: 0;
margin-bottom: 10px;
border-radius: 6px;
}
.article-container .author-info {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 15px;
padding: 0;
margin: 0;
width: 100%;
}
.article-container .author-info > * {
flex: 0 0 auto;
width: auto;
float: none;
}
.article-container .author-info .date-info {
flex: 1 1 auto;
text-align: center;
}
/* ================================================================
INTRODUCTION
================================================================ */
.article-container .introduction-section {
background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
border-left: 5px solid #f59e0b;
padding: 10px 16px;
margin-top: 0;
margin-bottom: 20px;
border-radius: 6px;
font-size: 1.12em;
line-height: 1.65;
color: #78350f;
font-weight: 500;
}
/* ================================================================
CONTENT LAYOUT
================================================================ */
.content-wrapper {
display: flex;
gap: 30px;
margin-bottom: 30px;
}
.main-content { flex: 1 1 70%; min-width: 0; }
.right-sidebar { flex: 0 0 300px; }
@media (max-width: 968px) {
.content-wrapper { flex-direction: column; }
.right-sidebar { flex: 1 1 auto; max-width: 100%; }
}
/* ================================================================
ARTICLE TEXT
================================================================ */
.article-text {
font-size: 1.15em;
line-height: 1.85;
color: #212529;
text-align: left;
}
.article-text p { margin-bottom: 1.2em; }
.article-text h2 {
font-size: 1.6em;
margin: 1.5em 0 0.8em;
color: #212529;
border-bottom: 2px solid #dee2e6;
padding-bottom: 0.3em;
}
.article-text h3 {
font-size: 1.3em;
margin: 1.3em 0 0.7em;
color: #495057;
}
/* ================================================================
AUTHOR INFOBOX
================================================================ */
.author-infobox {
background: #f8f9fa;
border: 1px solid #ced4da;
border-radius: 8px;
margin-bottom: 20px;
overflow: hidden;
}
.author-photo { text-align: center; padding: 12px; background: white; border-bottom: 1px solid #dee2e6; }
.author-photo img { max-width: 100%; height: auto; border-radius: 6px; }
.author-name-box {
text-align: center;
padding: 10px 15px;
font-size: 1.2em;
font-weight: 500;
color: #212529;
background: #e9ecef;
border-bottom: 1px solid #dee2e6;
}
.author-name-box a { color: #0056b3; text-decoration: none; }
.author-name-box a:hover { text-decoration: underline; }
.author-bio { padding: 12px 15px; font-size: 1em; line-height: 1.65; color: #495057; }
/* ================================================================
RESPONSIVE
================================================================ */
@media (max-width: 768px) {
.article-container .author-info {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.article-container .author-info .date-info { text-align: left; }
.article-container .author-info .category-badge { align-self: flex-start; }
}