MediaWiki:Common.css: Difference between revisions

From AbhiprayaVedi
No edit summary
No edit summary
Line 1: Line 1:
.page-title {
/* META DISPLAY - TARGETS YOUR EXISTING STRUCTURE */
   font-family: Georgia, serif;
.article-wrapper span:first-child,
   font-size: 2.2em;
.article-wrapper > *:first-child {
   text-align: center;
   display: block !important;
   margin: 0 0 0.15em 0;
  text-align: center !important;
   line-height: 1.1;
   font-size: 1.15em !important;
   font-weight: bold !important;
  color: #444 !important;
  background: #f8f9fa !important;
  padding: 6px 12px !important;
   margin: 0.1em auto 0.6em auto !important;
  border-radius: 4px !important;
   line-height: 1.2 !important;
  max-width: 300px !important;
}
}


.article-meta {
/* META SEPARATOR SPACING */
  text-align: center;
.article-wrapper .meta-sep {
  background: #f8f9fa;
   margin: 0 0.8em !important;
  color: #444;
   font-weight: normal !important;
  font-size: 1.15em;
  font-weight: bold;
  padding: 6px 12px;
   margin: 0 0 0.8em 0;
   border-radius: 4px;
  display: inline-block;
}
}


.meta-line {
/* PROTECT ALL WORKING FIXES */
   display: inline-flex;
.article-content p {
   align-items: center;
   margin-top: 0.2em !important;
  gap: 0.6em;
   margin-bottom: 0.8em !important;
}
}


.meta-sep {
.article-content p:first-child {
  font-weight: normal;
   margin-top: 0 !important;
  margin: 0 0.2em;
}
 
.article-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: Georgia, serif;
  line-height: 1.6;
}
 
.article-main p {
  margin: 0.2em 0 0.8em 0;
}
 
.article-main p:first-child {
   margin-top: 0;
}
}


.article-floatbox {
.article-floatbox {
   float: right;
   float: right !important;
  width: 220px;
   margin-top: -15px !important;
   margin: 0 0 1em 1.5em;
   position: relative !important;
  background: #f8f9fa;
   z-index: 2;
  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-intro {
  background: #f8f9fa;
  padding: 16px;
  border-left: 5px solid #adb5bd;
  margin-bottom: 1em;
}
 
.article-author-bio {
  clear: both;
  margin-top: 2em;
  background: #f1f3f4;
  padding: 15px;
   border-radius: 6px;
   border-top: 2px solid #dee2e6;
}
}


Line 84: Line 41:
   float: left !important;
   float: left !important;
   margin: 0.2em 1em 0.5em 0 !important;
   margin: 0.2em 1em 0.5em 0 !important;
}
@media (max-width: 768px) {
  .article-wrapper { padding: 10px; }
  .article-floatbox { float: none; width: 100%; margin: 1em 0; }
}
}

Revision as of 13:34, 2 February 2026

/* META DISPLAY - TARGETS YOUR EXISTING STRUCTURE */
.article-wrapper span:first-child,
.article-wrapper > *:first-child {
  display: block !important;
  text-align: center !important;
  font-size: 1.15em !important;
  font-weight: bold !important;
  color: #444 !important;
  background: #f8f9fa !important;
  padding: 6px 12px !important;
  margin: 0.1em auto 0.6em auto !important;
  border-radius: 4px !important;
  line-height: 1.2 !important;
  max-width: 300px !important;
}

/* META SEPARATOR SPACING */
.article-wrapper .meta-sep {
  margin: 0 0.8em !important;
  font-weight: normal !important;
}

/* PROTECT ALL WORKING FIXES */
.article-content p {
  margin-top: 0.2em !important;
  margin-bottom: 0.8em !important;
}

.article-content p:first-child {
  margin-top: 0 !important;
}

.article-floatbox {
  float: right !important;
  margin-top: -15px !important;
  position: relative !important;
  z-index: 2;
}

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