MediaWiki:Common.css: Difference between revisions

From QME Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* === Top fixed banner === */
 
/* === Site-wide black background with fixed top gradient banner === */
 
/* Fixed-position top banner */
.qme-top-banner {
.qme-top-banner {
   background-image: url("/wiki/Special:Redirect/file/Top-gradient.png");
   background-image: url("/wiki/Special:Redirect/file/Top-gradient.png");
Line 16: Line 12:
}
}


/* Body adjustments to accommodate fixed banner */
/* Remove white spacer and apply top spacing only to content area */
body {
body {
   background-color: #000 !important;
   background-color: #000 !important;
   color: #fff !important;
   color: #fff !important;
   padding-top: 15px; /* Prevent content from being covered by banner */
   margin: 0;
}
}


/* === QME Wiki Responsive Two-Column Layout === */
/* Offset the top banner only where needed */
.qme-flex-wrapper {
#content {
   display: flex;
   padding-top: 15px;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 -8px;
  align-items: stretch;
}
}


/* Base styles for each column */
/* Eliminate margin or background from base elements */
.qme-column {
#mw-page-base,
   flex: 1 1 100%;
#mw-head-base {
  min-height: 600px;
   margin: 0;
   padding: 12px;
   padding: 0;
  border: 1px solid #0000B6;
   background: transparent !important;
   background: #fcfcfc;
   height: 0 !important;
   color: #000;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
}
 
/* === Top fixed banner === */
/* ✅ Force consistent font size in all nested elements */
.qme-top-banner {
.qme-column * {
   background-image: url("/wiki/Special:Redirect/file/Top-gradient.png");
   font-size: 16px !important;
  background-repeat: repeat-x;
   line-height: 1.5 !important;
  background-size: 300px 15px;
   box-sizing: border-box;
   height: 15px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
   z-index: 9999;
}
}


/* ✅ Specifically target lists for mobile consistency */
/* Remove white spacer and apply top spacing only to content area */
.qme-column ul {
body {
   padding-left: 1.2em;
   background-color: #000 !important;
   margin-bottom: 1em;
   color: #fff !important;
   list-style-type: disc;
   margin: 0;
}
}


.qme-column ul li {
/* Offset the top banner only where needed */
   margin-bottom: 0.5em;
#content {
   padding-top: 15px;
}
}


/* Responsive: switch to 2-column layout at tablet width */
/* Eliminate margin or background from base elements */
@media (min-width: 600px) {
#mw-page-base,
   .qme-column {
#mw-head-base {
    flex: 1 1 48%;
  margin: 0;
   }
   padding: 0;
  background: transparent !important;
   height: 0 !important;
}
}

Revision as of 12:55, 9 July 2025

/* === Top fixed banner === */
.qme-top-banner {
  background-image: url("/wiki/Special:Redirect/file/Top-gradient.png");
  background-repeat: repeat-x;
  background-size: 300px 15px;
  height: 15px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* Remove white spacer and apply top spacing only to content area */
body {
  background-color: #000 !important;
  color: #fff !important;
  margin: 0;
}

/* Offset the top banner only where needed */
#content {
  padding-top: 15px;
}

/* Eliminate margin or background from base elements */
#mw-page-base,
#mw-head-base {
  margin: 0;
  padding: 0;
  background: transparent !important;
  height: 0 !important;
}
/* === Top fixed banner === */
.qme-top-banner {
  background-image: url("/wiki/Special:Redirect/file/Top-gradient.png");
  background-repeat: repeat-x;
  background-size: 300px 15px;
  height: 15px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* Remove white spacer and apply top spacing only to content area */
body {
  background-color: #000 !important;
  color: #fff !important;
  margin: 0;
}

/* Offset the top banner only where needed */
#content {
  padding-top: 15px;
}

/* Eliminate margin or background from base elements */
#mw-page-base,
#mw-head-base {
  margin: 0;
  padding: 0;
  background: transparent !important;
  height: 0 !important;
}
By using this site, you agree to the Terms of Use. © 1996–2025 The Quincy Examiner / MTB. All rights reserved.