MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
Undo revision 468 by VijayanPN (talk)
Tag: Undo
No edit summary
Line 1: Line 1:
/* FORCE OVERRIDE - Place FIRST in Common.css */
/* ===== 1. FORCE OVERRIDES (TOP PRIORITY - KEEP FIRST) ===== */
.mw-parser-output .content-body p,
.mw-body-content .content-body p {
.mw-body-content .content-body p {
  margin-top: 0.3em !important;
  margin-bottom: 0.6em !important;
   text-indent: 0 !important;
   text-indent: 0 !important;
  margin: 0.4em 0 0.8em 0 !important;
}
}


.mw-parser-output .content-body > p:first-child,
.mw-body-content .content-body > p:first-child {
.mw-body-content .content-body > p:first-child {
   margin-top: 0 !important;
   margin-top: 0 !important;
}
}


/* Kill title/meta spacing */
/* Title & Meta - FORCE CENTER ALIGNMENT */
.mw-parser-output .firstHeading,
.mw-body-content .firstHeading {
.mw-body-content .firstHeading {
   margin-bottom: 0.2em !important;
  font-family: Georgia, serif !important;
  font-size: 2.4em !important;
  text-align: center !important;
   margin-bottom: 0.3em !important;
}
}


.mw-parser-output .article-meta,
.mw-body-content .article-meta {
.mw-body-content .article-meta {
   margin-bottom: 0.5em !important;
   text-align: center !important;
   padding-bottom: 0 !important;
   margin-bottom: 0.8em !important;
   line-height: 1.2 !important;
   line-height: 1.2 !important;
}
}


.content-body:empty {
/* ===== 2. BASE LAYOUT ===== */
   display: none !important;
.article-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: Georgia, serif;
  line-height: 1.7;
   background: #fdfcfc;
}
}
.


firstHeading {
.article-content {
  font-family: Georgia, "Times New Roman", serif;
   font-size: 1.1em;
   font-size: 2.4em;
   overflow: hidden;
   text-align: center;
  margin-bottom: 10px;
}
}


.article-wrapper {
.content-body {
  max-width: 900px;
  margin: auto;
  font-family: Georgia, "Times New Roman", serif;
   line-height: 1.7;
   line-height: 1.7;
}
}


.article-meta {
.content-body:empty {
   text-align: center;
   display: none !important;
  margin-bottom: 10px;
  font-size: 1.25em;
  font-weight: bold;
  color: #444;
}
}
.article-meta p {
 
   display: inline !important;
/* ===== 3. META LINE FIX ===== */
   margin: 0 !important;
.meta-line {
   display: inline-flex !important;
   align-items: center;
  gap: 1em;
}
}
.meta-sep {
.meta-sep {
   margin: 0 1em;
   margin: 0 0.5em;
}
 
 
.article-intro {
  font-size: 1.2em;
  background: #f2f2f2;
  padding: 14px;
  border-left: 5px solid #bbb;
  margin-bottom: 18px;
}
}


/* ===== 4. FLOATBOX & HIGHLIGHTS ===== */
.article-floatbox {
.article-floatbox {
   float: right;
   float: right !important;
   width: 220px;
   width: 220px;
   margin: 0 0 15px 20px;
   margin: 0 0 15px 20px;
   background: #fafafa;
   background: #f8f9fa;
   padding: 10px;
   padding: 12px;
   border-left: 4px solid #ccc;
   border-left: 4px solid #dee2e6;
  overflow: hidden; /* Contain floats */
}
}


.article-floatbox h3 {
.article-highlights {
   margin: 0 0 8px 0;
   margin-top: 12px;
   font-size: 1em;
   clear: both;
}
}


/* Fix 1: Prevent highlights filling thumbnail gap */
.article-highlights h3 {
.article-highlights {
   margin: 0 0 10px 0;
   margin-top: 10px; /* Space after thumbnail */
   font-size: 0.95em;
   clear: both;
   color: #495057;
   border-bottom: 2px solid #ccc;
}
}


/* Fix 2: Horizontal lines + spacing between highlights */
.article-highlights ul {
.article-highlights {
   margin: 0;
   margin: 0;
   padding: 0;
   padding: 0;
   list-style: none;
   list-style: none;
  border-bottom: 2px solid #ccc;
}
}


.article-highlights li {
.article-highlights li {
   margin-bottom: 8px;
   margin-bottom: 10px;
   padding-bottom: 6px;
   padding-bottom: 8px;
   border-bottom: 2px solid #ccc; /* Horizontal line */
   border-bottom: 1px solid #dee2e6;
  font-size: 0.9em;
}
}


.article-highlights li:last-child {
.article-highlights li:last-child {
  border-bottom: none;
   margin-bottom: 0;
   margin-bottom: 0;
  border-bottom: none; /* No line on last item */
}
}


 
/* ===== 5. OTHER SECTIONS ===== */
/* COMPLETE RESET - OVERRIDES EVERYTHING */
.article-intro {
.mw-parser-output .content-body,
  font-size: 1.2em;
.mw-parser-output .content-body * {
  background: #f8f9fa;
   margin-top: 0 !important;
  padding: 16px;
   padding-top: 0 !important;
   border-left: 5px solid #adb5bd;
   margin-bottom: 20px;
}
}


.mw-parser-output .content-body p {
.article-author-bio {
   text-indent: 0 !important;
   margin-top: 30px;
   margin: 0.8em 0 !important;
   font-size: 0.9em;
}
  font-style: normal;
 
  background: #f1f3f4;
.mw-parser-output .content-body > p:first-of-type,
   padding: 15px;
.mw-parser-output .content-body p:first-child {
   border-radius: 6px;
   margin-top: 0 !important;
  border-top: 2px solid #dee2e6;
   margin-bottom: 0.6em !important;
}
 
/* Empty content-body */
.mw-parser-output .content-body:empty {
  display: none !important;
}
}


Line 132: Line 122:
   margin-top: 25px;
   margin-top: 25px;
   font-size: 0.9em;
   font-size: 0.9em;
   border-top: 1px solid #ddd;
   border-top: 1px solid #dee2e6;
   padding-top: 10px;
   padding-top: 15px;
}
 
.article-author-bio {
  margin-top: 20px;
  font-size: 0.9em;
  background: #f4f4f4;
  padding: 10px;
  border-radius: 4px;
}
}

Revision as of 19:25, 31 January 2026

/* ===== 1. FORCE OVERRIDES (TOP PRIORITY - KEEP FIRST) ===== */
.mw-parser-output .content-body p,
.mw-body-content .content-body p {
  text-indent: 0 !important;
  margin: 0.4em 0 0.8em 0 !important;
}

.mw-parser-output .content-body > p:first-child,
.mw-body-content .content-body > p:first-child {
  margin-top: 0 !important;
}

/* Title & Meta - FORCE CENTER ALIGNMENT */
.mw-parser-output .firstHeading,
.mw-body-content .firstHeading {
  font-family: Georgia, serif !important;
  font-size: 2.4em !important;
  text-align: center !important;
  margin-bottom: 0.3em !important;
}

.mw-parser-output .article-meta,
.mw-body-content .article-meta {
  text-align: center !important;
  margin-bottom: 0.8em !important;
  line-height: 1.2 !important;
}

/* ===== 2. BASE LAYOUT ===== */
.article-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: Georgia, serif;
  line-height: 1.7;
  background: #fdfcfc;
}

.article-content {
  font-size: 1.1em;
  overflow: hidden;
}

.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 ===== */
.article-floatbox {
  float: right !important;
  width: 220px;
  margin: 0 0 15px 20px;
  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;
}