MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
No edit summary
Line 1: Line 1:
/* ===== 1. FORCE OVERRIDES (TOP PRIORITY - KEEP FIRST) ===== */
/* 1. TITLE - FORCE CENTER (HIGHEST SPECIFICITY) */
.mw-parser-output .content-body p,
#mw-content-text .firstHeading {
.mw-body-content .content-body p {
  text-align: center !important;
   text-indent: 0 !important;
  font-family: Georgia, serif !important;
   margin: 0.4em 0 0.8em 0 !important;
  font-size: 2.2em !important;
   margin-bottom: 0.2em !important;
   line-height: 1.1 !important;
}
}


.mw-parser-output .content-body > p:first-child,
/* 2. META - SINGLE LINE, MINIMAL SPACE */
.mw-body-content .content-body > p:first-child {
#mw-content-text .article-meta {
   margin-top: 0 !important;
  text-align: center !important;
  margin: 0.3em 0 0.8em 0 !important;
  font-size: 1.1em !important;
  line-height: 1.1 !important;
   height: auto !important;
}
}


/* Title & Meta - FORCE CENTER ALIGNMENT */
#mw-content-text .meta-line {
.mw-parser-output .firstHeading,
   display: inline-flex !important;
.mw-body-content .firstHeading {
   align-items: baseline !important;
   font-family: Georgia, serif !important;
   white-space: nowrap !important;
   font-size: 2.4em !important;
   gap: 0.5em !important;
   text-align: center !important;
   margin-bottom: 0.3em !important;
}
}


.mw-parser-output .article-meta,
/* 3. FIRST PARAGRAPH - NO BLOCK */
.mw-body-content .article-meta {
#mw-content-text .article-content p {
   text-align: center !important;
   margin-top: 0.1em !important;
   margin-bottom: 0.8em !important;
   margin-bottom: 0.8em !important;
   line-height: 1.2 !important;
   text-indent: 0 !important;
}
}


/* ===== 2. BASE LAYOUT ===== */
#mw-content-text .article-content p:first-of-type {
  margin-top: 0 !important;
}
 
/* 4. BASE LAYOUT */
.article-wrapper {
.article-wrapper {
   max-width: 900px;
   max-width: 900px;
   margin: 0 auto;
   margin: 0 auto;
   padding: 20px;
   padding: 15px;
   font-family: Georgia, serif;
   font-family: Georgia, serif;
   line-height: 1.7;
   line-height: 1.6;
  background: #fdfcfc;
}
}


.article-content {
.article-content {
   font-size: 1.1em;
   font-size: 1.1em;
   overflow: hidden;
   clear: both;
}
 
.content-body {
  line-height: 1.7;
}
 
.content-body:empty {
  display: none !important;
}
 
/* ===== 3. META LINE FIX ===== */
.meta-line {
  display: inline-flex !important;
  align-items: center;
  gap: 1em;
}
 
.meta-sep {
  margin: 0 0.5em;
}
}


/* ===== 4. FLOATBOX & HIGHLIGHTS ===== */
/* 5. FLOATBOX */
.article-floatbox {
.article-floatbox {
   float: right !important;
   float: right !important;
   width: 220px;
   width: 220px !important;
   margin: 0 0 15px 20px;
   margin: 0 0 1em 1.5em !important;
  background: #f8f9fa;
  padding: 12px;
  border-left: 4px solid #dee2e6;
}
 
.article-highlights {
  margin-top: 12px;
  clear: both;
}
 
.article-highlights h3 {
  margin: 0 0 10px 0;
  font-size: 0.95em;
  color: #495057;
}
 
.article-highlights ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
 
.article-highlights li {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.9em;
}
 
.article-highlights li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
 
/* ===== 5. OTHER SECTIONS ===== */
.article-intro {
  font-size: 1.2em;
  background: #f8f9fa;
  padding: 16px;
  border-left: 5px solid #adb5bd;
  margin-bottom: 20px;
}
 
.article-author-bio {
  margin-top: 30px;
  font-size: 0.9em;
  font-style: normal;
  background: #f1f3f4;
  padding: 15px;
  border-radius: 6px;
  border-top: 2px solid #dee2e6;
}
 
.article-source {
  margin-top: 25px;
  font-size: 0.9em;
  border-top: 1px solid #dee2e6;
  padding-top: 15px;
}
}

Revision as of 19:34, 31 January 2026

/* 1. TITLE - FORCE CENTER (HIGHEST SPECIFICITY) */
#mw-content-text .firstHeading {
  text-align: center !important;
  font-family: Georgia, serif !important;
  font-size: 2.2em !important;
  margin-bottom: 0.2em !important;
  line-height: 1.1 !important;
}

/* 2. META - SINGLE LINE, MINIMAL SPACE */
#mw-content-text .article-meta {
  text-align: center !important;
  margin: 0.3em 0 0.8em 0 !important;
  font-size: 1.1em !important;
  line-height: 1.1 !important;
  height: auto !important;
}

#mw-content-text .meta-line {
  display: inline-flex !important;
  align-items: baseline !important;
  white-space: nowrap !important;
  gap: 0.5em !important;
}

/* 3. FIRST PARAGRAPH - NO BLOCK */
#mw-content-text .article-content p {
  margin-top: 0.1em !important;
  margin-bottom: 0.8em !important;
  text-indent: 0 !important;
}

#mw-content-text .article-content p:first-of-type {
  margin-top: 0 !important;
}

/* 4. BASE LAYOUT */
.article-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 15px;
  font-family: Georgia, serif;
  line-height: 1.6;
}

.article-content {
  font-size: 1.1em;
  clear: both;
}

/* 5. FLOATBOX */
.article-floatbox {
  float: right !important;
  width: 220px !important;
  margin: 0 0 1em 1.5em !important;
}