MediaWiki:Common.css: Difference between revisions
From AbhiprayaVedi
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ================================================================ | /* ================================================================ | ||
AbhiprayaVedi - | AbhiprayaVedi - Ver4 — Timeless Skin Compatible | ||
================================================================ */ | ================================================================ */ | ||
/* Reduce gap between | |||
/* ---------------------------------------------------------------- | |||
TIMELESS SKIN: Reduce gap between page title and article content | |||
In Timeless, the content sits inside .mw-body-content > .mw-parser-output | |||
---------------------------------------------------------------- */ | |||
#firstHeading { | #firstHeading { | ||
margin-bottom: | margin-bottom: 4px !important; | ||
padding-bottom: | padding-bottom: 2px !important; | ||
} | |||
.mw-body-content { | |||
margin-top: 0 !important; | |||
padding-top: 0 !important; | |||
} | } | ||
.mw-parser-output { | |||
margin-top: | margin-top: 0 !important; | ||
padding-top: 0 !important; | |||
} | } | ||
/* ================================================================ | |||
BASE FONT SIZE | |||
================================================================ */ | |||
body { | body { | ||
font-size: 17px; | font-size: 17px; | ||
} | } | ||
#content { | /* Timeless skin content area selector (replaces #content) */ | ||
font-size: 1. | .mw-body { | ||
font-size: 1.05em; | |||
} | } | ||
| Line 29: | Line 43: | ||
max-width: 1200px; | max-width: 1200px; | ||
margin: 0 auto; | margin: 0 auto; | ||
padding: 20px; | padding: 0 20px 20px 20px; /* FIX: top padding 0 — removes gap under title */ | ||
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; | ||
| Line 37: | Line 51: | ||
.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 - Timeless: force compact, override any skin defaults | ||
================================================================ */ | ================================================================ */ | ||
| Line 47: | Line 61: | ||
background: #f8f9fa; | background: #f8f9fa; | ||
border-bottom: 2px solid #495057; | border-bottom: 2px solid #495057; | ||
padding: 6px 16px; | padding: 6px 16px !important; /* !important to override Timeless defaults */ | ||
margin-bottom: 10px; | margin-top: 0 !important; | ||
margin-bottom: 10px !important; | |||
border-radius: 6px; | border-radius: 6px; | ||
} | } | ||
.author-info { | .author-info { | ||
display: flex; | display: flex !important; | ||
align-items: center; | align-items: center !important; | ||
justify-content: space-between; | justify-content: space-between !important; | ||
gap: 15px; | gap: 15px; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
| Line 72: | Line 87: | ||
font-size: 1.05em; | font-size: 1.05em; | ||
flex: 1 1 auto; | flex: 1 1 auto; | ||
text-align: center; | text-align: center; | ||
} | } | ||
| Line 86: | Line 101: | ||
/* ================================================================ | /* ================================================================ | ||
INTRODUCTION | INTRODUCTION | ||
================================================================ */ | ================================================================ */ | ||
| Line 92: | Line 107: | ||
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 !important; /* !important to override Timeless */ | ||
margin-bottom: 20px; | margin-top: 0 !important; | ||
margin-bottom: 20px !important; | |||
border-radius: 6px; | border-radius: 6px; | ||
font-size: 1.12em; | font-size: 1.12em; | ||
line-height: 1.65; | line-height: 1.65; | ||
color: #78350f; | color: #78350f; | ||
font-weight: 500; | font-weight: 500; | ||
| Line 136: | Line 152: | ||
.article-text { | .article-text { | ||
font-size: 1.15em; | font-size: 1.15em; | ||
line-height: 1.85; | line-height: 1.85; | ||
color: #212529; | color: #212529; | ||
text-align: left; | text-align: left; | ||
} | } | ||
.article-text p { | .article-text p { | ||
margin-bottom: 1.2em; | margin-bottom: 1.2em; | ||
} | } | ||
| Line 162: | Line 178: | ||
/* ================================================================ | /* ================================================================ | ||
IMAGES | IMAGES | ||
================================================================ */ | ================================================================ */ | ||
.image-left { | .image-left { | ||
float: left; | float: left; | ||
margin: 0 20px 8px 0; | margin: 0 20px 8px 0; | ||
max-width: 420px; | max-width: 420px; | ||
} | } | ||
| Line 177: | Line 193: | ||
.content-image { | .content-image { | ||
margin: 15px 0 8px 0; | margin: 15px 0 8px 0; | ||
clear: both; | clear: both; | ||
} | } | ||
.thumb { | .thumb { | ||
margin-bottom: 6px !important; | margin-bottom: 6px !important; | ||
| Line 193: | Line 208: | ||
font-size: 0.95em !important; | font-size: 0.95em !important; | ||
line-height: 1.45 !important; | line-height: 1.45 !important; | ||
padding: 5px 6px !important; | padding: 5px 6px !important; | ||
} | } | ||
| Line 210: | Line 225: | ||
.author-photo { | .author-photo { | ||
text-align: center; | text-align: center; | ||
padding: 12px; | padding: 12px; | ||
background: white; | background: white; | ||
border-bottom: 1px solid #dee2e6; | border-bottom: 1px solid #dee2e6; | ||
| Line 223: | Line 238: | ||
.author-name-box { | .author-name-box { | ||
text-align: center; | text-align: center; | ||
padding: 10px 15px; | padding: 10px 15px; | ||
font-size: 1.2em; | font-size: 1.2em; | ||
font-weight: 500; | font-weight: 500; | ||
| Line 241: | Line 256: | ||
.author-bio { | .author-bio { | ||
padding: 12px 15px; | padding: 12px 15px; | ||
font-size: 1em; | font-size: 1em; | ||
line-height: 1.65; | line-height: 1.65; | ||
| Line 248: | Line 263: | ||
/* ================================================================ | /* ================================================================ | ||
HIGHLIGHTS | HIGHLIGHTS | ||
================================================================ */ | ================================================================ */ | ||
| Line 256: | Line 271: | ||
border-left: 4px solid #28a745; | border-left: 4px solid #28a745; | ||
border-radius: 6px; | border-radius: 6px; | ||
margin-bottom: 12px; | margin-bottom: 12px; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
| Line 269: | Line 284: | ||
.highlight-text { | .highlight-text { | ||
padding: 12px 14px; | padding: 12px 14px; | ||
font-size: 1em; | font-size: 1em; | ||
line-height: 1.65; | line-height: 1.65; | ||
| Line 276: | Line 291: | ||
/* ================================================================ | /* ================================================================ | ||
KEY POINTS | KEY POINTS | ||
================================================================ */ | ================================================================ */ | ||
| Line 310: | Line 325: | ||
} | } | ||
.keypoints-list li:nth-child(1) { | .keypoints-list li:nth-child(1) { | ||
margin-bottom: 4px; | margin-bottom: 4px; | ||
} | } | ||
| Line 347: | Line 361: | ||
color: #0056b3; | color: #0056b3; | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
| Line 407: | Line 382: | ||
/* ================================================================ | /* ================================================================ | ||
PRINT | PRINT | ||
================================================================ */ | ================================================================ */ | ||
| Line 422: | Line 397: | ||
width: 250px; | width: 250px; | ||
margin-left: 20px; | margin-left: 20px; | ||
} | } | ||
} | } | ||
Revision as of 21:22, 7 April 2026
/* ================================================================
AbhiprayaVedi - Ver4 — Timeless Skin Compatible
================================================================ */
/* ----------------------------------------------------------------
TIMELESS SKIN: Reduce gap between page title and article content
In Timeless, the content sits inside .mw-body-content > .mw-parser-output
---------------------------------------------------------------- */
#firstHeading {
margin-bottom: 4px !important;
padding-bottom: 2px !important;
}
.mw-body-content {
margin-top: 0 !important;
padding-top: 0 !important;
}
.mw-parser-output {
margin-top: 0 !important;
padding-top: 0 !important;
}
/* ================================================================
BASE FONT SIZE
================================================================ */
body {
font-size: 17px;
}
/* Timeless skin content area selector (replaces #content) */
.mw-body {
font-size: 1.05em;
}
/* ================================================================
ARTICLE CONTAINER
================================================================ */
.article-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px 20px 20px; /* FIX: top padding 0 — removes gap under title */
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 1.05em;
}
/* Malayalam Font Support */
.article-container[data-language="Malayalam"] {
font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Noto Sans Malayalam', sans-serif;
line-height: 1.75;
}
/* ================================================================
HEADER - Timeless: force compact, override any skin defaults
================================================================ */
.article-header {
background: #f8f9fa;
border-bottom: 2px solid #495057;
padding: 6px 16px !important; /* !important to override Timeless defaults */
margin-top: 0 !important;
margin-bottom: 10px !important;
border-radius: 6px;
}
.author-info {
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
gap: 15px;
flex-wrap: wrap;
font-size: 1.1em;
}
.author-name {
font-weight: 700;
font-size: 1.3em;
color: #212529;
flex: 0 0 auto;
}
.date-info {
color: #6c757d;
font-size: 1.05em;
flex: 1 1 auto;
text-align: center;
}
.category-badge {
background: #667eea;
color: white;
padding: 5px 12px;
border-radius: 20px;
font-size: 0.88em;
font-weight: 600;
flex: 0 0 auto;
}
/* ================================================================
INTRODUCTION
================================================================ */
.introduction-section {
background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
border-left: 5px solid #f59e0b;
padding: 10px 16px !important; /* !important to override Timeless */
margin-top: 0 !important;
margin-bottom: 20px !important;
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-top: 1.5em;
margin-bottom: 0.8em;
color: #212529;
border-bottom: 2px solid #dee2e6;
padding-bottom: 0.3em;
}
.article-text h3 {
font-size: 1.3em;
margin-top: 1.3em;
margin-bottom: 0.7em;
color: #495057;
}
/* ================================================================
IMAGES
================================================================ */
.image-left {
float: left;
margin: 0 20px 8px 0;
max-width: 420px;
}
.image-left .thumb {
background: #f8f9fa;
border: 1px solid #dee2e6;
}
.content-image {
margin: 15px 0 8px 0;
clear: both;
}
.thumb {
margin-bottom: 6px !important;
}
.thumbinner {
padding-bottom: 4px !important;
}
.thumbcaption {
font-size: 0.95em !important;
line-height: 1.45 !important;
padding: 5px 6px !important;
}
/* ================================================================
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;
}
/* ================================================================
HIGHLIGHTS
================================================================ */
.highlight-box {
background: #d4edda;
border: 1px solid #c3e6cb;
border-left: 4px solid #28a745;
border-radius: 6px;
margin-bottom: 12px;
overflow: hidden;
}
.highlight-title {
background: #28a745;
color: white;
padding: 7px 14px;
font-size: 1.3em;
text-align: center;
}
.highlight-text {
padding: 12px 14px;
font-size: 1em;
line-height: 1.65;
color: #155724;
}
/* ================================================================
KEY POINTS
================================================================ */
.keypoints-float {
background: #fff3cd;
border: 1px solid #ffc107;
border-radius: 6px;
overflow: hidden;
margin-bottom: 20px;
}
.keypoints-header {
background: #ffc107;
color: #212529;
padding: 7px 14px;
font-size: 1.3em;
text-align: center;
}
.keypoints-list {
list-style: none;
padding: 0;
margin: 0;
}
.keypoints-list li {
padding: 11px 14px 11px 30px;
border-bottom: 1px solid #ffeaa7;
position: relative;
font-size: 1em;
line-height: 1.6;
color: #856404;
}
.keypoints-list li:nth-child(1) {
margin-bottom: 4px;
}
.keypoints-list li:last-child {
border-bottom: none;
}
.keypoints-list li:before {
content: "▸";
position: absolute;
left: 12px;
color: #f59e0b;
font-weight: bold;
font-size: 1.1em;
}
/* ================================================================
SOURCE ATTRIBUTION
================================================================ */
.source-attribution {
background: #e7f3ff;
border: 1px solid #bee5eb;
border-left: 4px solid #17a2b8;
padding: 12px 16px;
margin: 20px 0;
border-radius: 6px;
font-size: 1em;
line-height: 1.65;
color: #0c5460;
}
.source-attribution a {
color: #0056b3;
text-decoration: underline;
}
/* ================================================================
MOBILE RESPONSIVE
================================================================ */
@media (max-width: 768px) {
.author-info {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.date-info {
text-align: left;
}
.category-badge {
align-self: flex-start;
}
}
/* ================================================================
PRINT
================================================================ */
@media print {
.article-container {
max-width: 100%;
font-size: 12pt;
}
.content-wrapper {
display: block;
}
.right-sidebar {
float: right;
width: 250px;
margin-left: 20px;
}
}
/* ================================================================
ACCESSIBILITY
================================================================ */
a:focus,
button:focus {
outline: 2px solid #667eea;
outline-offset: 2px;
}
@media (prefers-contrast: high) {
.article-container {
border: 2px solid currentColor;
}
.article-header {
border-bottom: 3px solid currentColor;
}
}