MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
No edit summary
Line 41: Line 41:
   ARTICLE HEADER
   ARTICLE HEADER
   ------------------------------------------------ */
   ------------------------------------------------ */
/* 1. Author section inline, narrow margins */
.article-header {
.article-header {
   background: #f8f9fa;
   background: none;
   border-bottom: 2px solid #495057;
   border: none;
   padding: 6px 16px;
   padding: 4px 0;
   margin: 0 0 10px 0;
   margin: 0 0 8px 0;
  border-radius: 6px;
}


.author-info {
.author-info {
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
  justify-content: space-between;
   gap: 12px;             /* small spacing between items */
   gap: 15px;
   font-size: 0.95em;
   flex-wrap: wrap;
   color: #444;
   font-size: 1.1em;
}
}


.author-name {
.author-name {
   font-weight: 700;
   font-weight: 600;
   font-size: 1.3em;
   font-size: 1.3em;
   color: #212529;
   color: #212529;
Line 65: Line 64:


.date-info {
.date-info {
  color: #6c757d;
   font-size: 0.9em;
   font-size: 1.05em;
   color: #666;
   text-align: center;
  flex: 1 1 auto;
}
}


.category-badge {
.category-badge {
   background: #667eea;
   background: #e0e7ff;
   color: white;
   color: #333;
   padding: 5px 12px;
   padding: 2px 8px;
   border-radius: 20px;
   border-radius: 12px;
   font-size: 0.88em;
   font-size: 0.85em;
  font-weight: 600;
}
}


Line 83: Line 79:
   INTRODUCTION
   INTRODUCTION
   ------------------------------------------------ */
   ------------------------------------------------ */
/* 2. Introduction section subtle block */
.introduction-section {
.introduction-section {
   background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
   background: #f9fafb;     /* light neutral background */
   border-left: 5px solid #f59e0b;
   border-left: 3px solid #667eea;
   padding: 10px;
   padding: 8px 12px;
   margin: 0 0 10px 0;
   margin: 0 0 12px 0;
   border-radius: 6px;
   border-radius: 4px;
   font-size: 1.12em;
   font-size: 1.05em;
   line-height: 1.45;
   line-height: 1.5;
   color: #78350f;
   color: #333;
   font-weight: 550;
}
/* 3. First paragraph alignment */
.article-text p:first-of-type {
   margin-top: 0;          /* remove extra top margin */
  text-indent: 0;         /* prevent block-style indent */
}
}


Line 124: Line 125:
.article-text p {
.article-text p {
   margin-bottom: 1.2em;
   margin-bottom: 1.2em;
}
/* Restore highlight box colors */
.highlight-box {
  background: #fff3cd;    /* pale yellow background */
  border-left: 5px solid #ffc107;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
}
.highlight-title {
  font-weight: bold;
  color: #856404;
}
.highlight-text {
  color: #333;
  font-size: 0.95em;
}
}



Revision as of 16:09, 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
   ------------------------------------------------ */
.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px 20px;
  font-size: 1.05em;
}

/* Suppress empty <p> tags */
.article-container > p:empty,
.mw-parser-output > p:empty {
  display: none;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------
   ARTICLE HEADER
   ------------------------------------------------ */
/* 1. Author section inline, narrow margins */
.article-header {
  background: none;
  border: none;
  padding: 4px 0;
  margin: 0 0 8px 0;

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;              /* small spacing between items */
  font-size: 0.95em;
  color: #444;
}


.author-name {
  font-weight: 600;
  font-size: 1.3em;
  color: #212529;
}

.date-info {
  font-size: 0.9em;
  color: #666;
}

.category-badge {
  background: #e0e7ff;
  color: #333;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.85em;
}

/* ------------------------------------------------
   INTRODUCTION
   ------------------------------------------------ */
/* 2. Introduction section subtle block */
.introduction-section {
  background: #f9fafb;     /* light neutral background */
  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-text p:first-of-type {
  margin-top: 0;          /* remove extra top margin */
  text-indent: 0;         /* prevent block-style indent */
}

/* ------------------------------------------------
   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;
}

/* ------------------------------------------------
   ARTICLE TEXT
   ------------------------------------------------ */
.article-text {
  font-size: 1.15em;
  line-height: 1.85;
  color: #212529;
}

.article-text p {
  margin-bottom: 1.2em;
}

/* Restore highlight box colors */
.highlight-box {
  background: #fff3cd;     /* pale yellow background */
  border-left: 5px solid #ffc107;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
}

.highlight-title {
  font-weight: bold;
  color: #856404;
}

.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;
}