MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
No edit summary
Line 1: Line 1:
/* ===== CLEAN TIMESS SKIN CSS - NO DUPLICATIONS ===== */
/* 1. TITLE - CENTERED, TIGHT SPACING */
h1#firstHeading,
#mw-content-text .firstHeading,
.mw-parser-output .firstHeading {
  font-family: Georgia, serif !important;
  font-size: 2.2em !important;
  text-align: center !important;
  margin: 0 0 0.1em 0 !important;
  line-height: 1.1 !important;
}
/* 2. META - SINGLE LINE, MINIMAL SPACE */
#mw-content-text .article-meta,
.mw-parser-output .article-meta {
  text-align: center !important;
  margin: 0 0 0.4em 0 !important;
  font-size: 1.1em !important;
  font-weight: bold !important;
  color: #444 !important;
  line-height: 1.1 !important;
}
.article-meta p { display: inline !important; margin: 0 !important; }
.meta-line {
  display: inline-flex !important;
  align-items: baseline !important;
  white-space: nowrap !important;
  gap: 0.5em !important;
}
.meta-sep { margin: 0 0.3em !important; }
/* 3. MAIN WRAPPER */
.article-wrapper {
.article-wrapper {
   max-width: 900px;
   max-width: 900px; margin: 0 auto; padding: 20px;
  margin: 0 auto;
   font-family: Georgia, serif; line-height: 1.6;
  padding: 15px;
   font-family: Georgia, serif;
  line-height: 1.6;
  background: #fdfcfc;
}
}


/* 4. CONTENT - PERFECT FLOW */
.article-wrapper > span:first-child {
.article-content {
  display: block; text-align: center;
   font-size: 1.1em;
   font-size: 1.1em; font-weight: bold;  
  overflow: visible !important;
   margin: 0 0 1em 0; line-height: 1.1;
   margin-top: 0 !important;
  padding-top: 0 !important;
  clear: both !important;
}
}


.article-content p {
.article-intro {  
   text-indent: 0 !important;
   background: #f8f9fa; padding: 16px;  
   margin: 0.1em 0 0.8em 0 !important;
   border-left: 5px solid #adb5bd; margin: 0 0 1em 0;
  padding: 0 !important;
}
}


.article-content p:first-of-type,
.article-floatbox {
.article-content p:first-child,
  float: right; width: 220px; margin: 0 0 1em 1em;
#mw-content-block .article-content p:first-child {
   background: #f8f9fa; padding: 12px; border-left: 4px solid #dee2e6;
  margin-top: 0 !important;
   padding-top: 0 !important;
}
}


/* 5. FLOATBOX - RIGHT SIDE */
.article-highlights div {  
.article-floatbox {
   margin: 8px 0; padding-bottom: 6px;  
  float: right !important;
   border-bottom: 1px solid #dee2e6;  
  width: 220px !important;
   margin: -10px 0 1em 1.5em !important;
  background: #f8f9fa;
  padding: 12px;
   border-left: 4px solid #dee2e6;
  position: relative;
  z-index: 2;
}
}


.article-floatbox h3 {
.article-highlights div:last-child { border-bottom: none; }
  margin: 0 0 8px 0 !important;
  font-size: 0.95em !important;
}


/* HIGHLIGHTS BELOW THUMBNAIL */
.article-author-bio {  
.article-highlights {
   clear: both; margin-top: 2em;  
   margin-top: 12px !important;
   background: #f1f3f4; padding: 15px;  
   float: none !important;
   border-radius: 6px; border-top: 2px solid #dee2e6;
   width: 100% !important;
}
}


.article-highlights ul {
.thumb { float: left !important; margin: 0 1em 0.5em 0 !important; }
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
 
.article-highlights li {
  margin-bottom: 10px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid #dee2e6 !important;
  font-size: 0.9em;
}
 
.article-highlights li:last-child {
  margin-bottom: 0 !important;
  border-bottom: none !important;
}
 
/* 6. IMAGE1 - TEXT WRAP */
.thumb {
  float: left !important;
  margin: 0.1em 1em 0.5em 0 !important;
  clear: none !important;
}
 
/* 7. OTHER SECTIONS */
.article-intro {
  font-size: 1.2em;
  background: #f8f9fa;
  padding: 16px;
  border-left: 5px solid #adb5bd;
  margin-bottom: 18px;
}
 
.article-author-bio {
  margin-top: 30px;
  font-size: 0.9em;
  font-style: normal !important;
  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;
}


/* 8. MOBILE */
@media (max-width: 768px) {
@media (max-width: 768px) {
   .article-wrapper { max-width: 100%; padding: 10px; }
   .article-wrapper { padding: 10px; }
   .article-floatbox {  
   .article-floatbox { float: none; width: 100%; margin: 1em 0; }
    float: none !important;  
    width: 100% !important;  
    margin: 10px 0 !important;  
  }
}
}

Revision as of 13:33, 1 February 2026

.article-wrapper {
  max-width: 900px; margin: 0 auto; padding: 20px;
  font-family: Georgia, serif; line-height: 1.6;
}

.article-wrapper > span:first-child {
  display: block; text-align: center; 
  font-size: 1.1em; font-weight: bold; 
  margin: 0 0 1em 0; line-height: 1.1;
}

.article-intro { 
  background: #f8f9fa; padding: 16px; 
  border-left: 5px solid #adb5bd; margin: 0 0 1em 0;
}

.article-floatbox { 
  float: right; width: 220px; margin: 0 0 1em 1em;
  background: #f8f9fa; padding: 12px; border-left: 4px solid #dee2e6;
}

.article-highlights div { 
  margin: 8px 0; padding-bottom: 6px; 
  border-bottom: 1px solid #dee2e6; 
}

.article-highlights div:last-child { border-bottom: none; }

.article-author-bio { 
  clear: both; margin-top: 2em; 
  background: #f1f3f4; padding: 15px; 
  border-radius: 6px; border-top: 2px solid #dee2e6;
}

.thumb { float: left !important; margin: 0 1em 0.5em 0 !important; }

@media (max-width: 768px) {
  .article-wrapper { padding: 10px; }
  .article-floatbox { float: none; width: 100%; margin: 1em 0; }
}