MediaWiki:Common.css: Difference between revisions
From AbhiprayaVedi
No edit summary |
No edit summary |
||
| Line 23: | Line 23: | ||
ARTICLE CONTAINER | ARTICLE CONTAINER | ||
------------------------------------------------ */ | ------------------------------------------------ */ | ||
/* Scope all rules to article-container so they don't bleed */ | |||
.article-container { | .article-container { | ||
max-width: | max-width: 1000px; | ||
margin: 0 auto; | margin: 0 auto; | ||
} | } | ||
/* 1. Author section inline, narrow margins */ | /* 1. Author section inline, narrow margins */ | ||
.article-header { | .article-container .article-header { | ||
margin: 0 0 8px 0; | |||
padding: 4px 0; | |||
border: none; | |||
background: none; | background: none; | ||
} | |||
.author-info { | .article-container .author-info { | ||
display: flex; | display: flex; | ||
align-items: | flex-wrap: nowrap; | ||
gap: 12px; | align-items: baseline; | ||
gap: 12px; | |||
font-size: 0.95em; | font-size: 0.95em; | ||
color: #444; | color: #444; | ||
} | } | ||
.article-container .author-name { | |||
.author-name { | |||
font-weight: 600; | font-weight: 600; | ||
} | } | ||
.date-info { | .article-container .date-info { | ||
font-size: 0.9em; | font-size: 0.9em; | ||
color: #666; | color: #666; | ||
} | } | ||
.category-badge { | .article-container .category-badge { | ||
background: #e0e7ff; | background: #e0e7ff; | ||
color: #333; | color: #333; | ||
| Line 76: | Line 63: | ||
} | } | ||
/* 2. Introduction section subtle block */ | /* 2. Introduction section subtle block */ | ||
.introduction-section { | .article-container .introduction-section { | ||
background: #f9fafb; | background: #f9fafb; | ||
border-left: 3px solid #667eea; | border-left: 3px solid #667eea; | ||
padding: 8px 12px; | padding: 8px 12px; | ||
| Line 90: | Line 74: | ||
color: #333; | color: #333; | ||
} | } | ||
/* 3. First paragraph alignment */ | /* 3. First paragraph alignment */ | ||
.article-text p:first-of-type { | .article-container .article-text p:first-of-type { | ||
margin-top: 0; | margin-top: 0; | ||
text-indent: 0; | text-indent: 0; /* no indent */ | ||
} | } | ||
/* | /* Do NOT add indent to subsequent paragraphs — MediaWiki uses : :: for that */ | ||
/* Restore right sidebar two-column layout */ | |||
.content-wrapper { | .article-container .content-wrapper { | ||
display: flex; | display: flex; | ||
flex-direction: row; | |||
gap: 20px; | |||
flex | |||
} | } | ||
.article-container .main-content { | |||
flex: 3; | |||
.article- | |||
} | } | ||
.article- | .article-container .right-sidebar { | ||
flex: 1; | |||
max-width: 300px; | |||
} | } | ||
/* Restore highlight box colors */ | /* Restore highlight box colors */ | ||
.highlight-box { | .article-container .highlight-box { | ||
background: #fff3cd; | background: #fff3cd; | ||
border-left: 5px solid #ffc107; | border-left: 5px solid #ffc107; | ||
padding: 10px; | padding: 10px; | ||
| Line 136: | Line 108: | ||
} | } | ||
.highlight-title { | .article-container .highlight-title { | ||
font-weight: bold; | font-weight: bold; | ||
color: #856404; | color: #856404; | ||
} | } | ||
.highlight-text { | .article-container .highlight-text { | ||
color: #333; | color: #333; | ||
font-size: 0.95em; | font-size: 0.95em; | ||
Revision as of 18:50, 17 April 2026
/* ================================================================
MediaWiki:CommonTest.css
Test stylesheet for AbhiprayaVedi
================================================================ */
/* ------------------------------------------------
BASE TYPOGRAPHY
------------------------------------------------ */
:lang(en) {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
:lang(ml) {
font-family: 'Manjari', 'Meera', 'Rachana', 'AnjaliOldLipi', 'Noto Sans Malayalam', sans-serif;
line-height: 1.75;
}
body {
font-size: 17px;
}
/* ------------------------------------------------
ARTICLE CONTAINER
------------------------------------------------ */
/* Scope all rules to article-container so they don't bleed */
.article-container {
max-width: 1000px;
margin: 0 auto;
}
/* 1. Author section inline, narrow margins */
.article-container .article-header {
margin: 0 0 8px 0;
padding: 4px 0;
border: none;
background: none;
}
.article-container .author-info {
display: flex;
flex-wrap: nowrap;
align-items: baseline;
gap: 12px;
font-size: 0.95em;
color: #444;
}
.article-container .author-name {
font-weight: 600;
}
.article-container .date-info {
font-size: 0.9em;
color: #666;
}
.article-container .category-badge {
background: #e0e7ff;
color: #333;
padding: 2px 8px;
border-radius: 12px;
font-size: 0.85em;
}
/* 2. Introduction section subtle block */
.article-container .introduction-section {
background: #f9fafb;
border-left: 3px solid #667eea;
padding: 8px 12px;
margin: 0 0 12px 0;
border-radius: 4px;
font-size: 1.05em;
line-height: 1.5;
color: #333;
}
/* 3. First paragraph alignment */
.article-container .article-text p:first-of-type {
margin-top: 0;
text-indent: 0; /* no indent */
}
/* Do NOT add indent to subsequent paragraphs — MediaWiki uses : :: for that */
/* Restore right sidebar two-column layout */
.article-container .content-wrapper {
display: flex;
flex-direction: row;
gap: 20px;
}
.article-container .main-content {
flex: 3;
}
.article-container .right-sidebar {
flex: 1;
max-width: 300px;
}
/* Restore highlight box colors */
.article-container .highlight-box {
background: #fff3cd;
border-left: 5px solid #ffc107;
padding: 10px;
margin: 10px 0;
border-radius: 6px;
}
.article-container .highlight-title {
font-weight: bold;
color: #856404;
}
.article-container .highlight-text {
color: #333;
font-size: 0.95em;
}
/* ------------------------------------------------
FEATURED SECTION (Magazine Index)
------------------------------------------------ */
.av-featured {
display: flex;
gap: 20px;
align-items: flex-start;
background: #f8f9fa;
border-left: 5px solid #667eea;
border-radius: 8px;
padding: 16px;
margin-bottom: 8px;
}
.av-featured-image {
flex: 0 0 260px;
max-width: 260px;
}
.av-featured-image img {
width: 260px;
height: auto;
border-radius: 6px;
display: block;
}
.av-featured-body {
flex: 1 1 auto;
min-width: 0;
display: -webkit-box;
-webkit-line-clamp: 8; /* Adjust lines */
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.av-featured-title {
font-size: 1.45em;
font-weight: 700;
line-height: 1.4;
margin-bottom: 10px;
}
.av-featured-intro {
font-size: 1.05em;
line-height: 1.75;
color: #495057;
margin-bottom: 12px;
max-height: 200px;
overflow: hidden;
}
/* ------------------------------------------------
RESPONSIVE BREAKPOINTS
------------------------------------------------ */
@media (max-width: 960px) {
.content-wrapper { flex-direction: column; }
.right-sidebar { max-width: 100%; }
.av-cards-row { flex-direction: column; }
.av-latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
.av-featured { flex-direction: column; }
.av-featured-image img { max-width: 100%; }
.av-latest-grid { grid-template-columns: 1fr; }
}
/* ------------------------------------------------
ACCESSIBILITY
------------------------------------------------ */
a:focus-visible,
button:focus-visible {
outline: 2px solid #667eea;
outline-offset: 2px;
}
/* Hidden text for emoji headers */
.highlight-title::before {
content: "Highlight ";
position: absolute;
left: -9999px;
}
.keypoints-header::before {
content: "Key Points ";
position: absolute;
left: -9999px;
}