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:
/* === Top fixed banner === */
/* CSS placed here will be applied to all skins */
 
/* === Site-wide black background with repeating top banner === */
 
/* Fixed top banner using a working MediaWiki image path */
.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 12: Line 16:
}
}


/* Remove white spacer and apply top spacing only to content area */
/* Body styling */
body {
body {
   background-color: #000 !important;
   background-color: #000 !important;
Line 19: Line 23:
}
}


/* Offset the top banner only where needed */
/* Add top padding only inside the main content wrapper */
#content {
.mw-body-content {
   padding-top: 15px;
   padding-top: 15px;
}
}


/* Eliminate margin or background from base elements */
/* Remove default spacing from base divs */
#mw-page-base,
#mw-page-base,
#mw-head-base {
#mw-head-base {
Line 32: Line 36:
   height: 0 !important;
   height: 0 !important;
}
}
/* === Top fixed banner === */
 
.qme-top-banner {
/* === QME Wiki Responsive Two-Column Layout === */
   background-image: url("/wiki/Special:Redirect/file/Top-gradient.png");
.qme-flex-wrapper {
   background-repeat: repeat-x;
   display: flex;
   background-size: 300px 15px;
  flex-wrap: wrap;
   height: 15px;
  gap: 16px;
   width: 100%;
  margin: 0 -8px;
   position: fixed;
  align-items: stretch;
   top: 0;
}
   left: 0;
 
   z-index: 9999;
/* Base styles for each column */
.qme-column {
  flex: 1 1 100%;
   min-height: 600px;
  padding: 12px;
  border: 1px solid #0000B6; /* your aqua green border */
   background: #fcfcfc;
  color: #000;
  font-size: 16px;
   line-height: 1.5;
   display: flex;
  flex-direction: column;
  justify-content: space-between;
 
   position: relative;  /* make sure content is above fixed banner */
  z-index: 1;
}
 
/* ✅ Force consistent font size in all nested elements */
.qme-column * {
   font-size: 16px !important;
   line-height: 1.5 !important;
   box-sizing: border-box;
}
}


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


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


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

Revision as of 12:57, 9 July 2025

/* CSS placed here will be applied to all skins */

/* === Site-wide black background with repeating top banner === */

/* Fixed top banner using a working MediaWiki image path */
.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;
}

/* Body styling */
body {
  background-color: #000 !important;
  color: #fff !important;
  margin: 0;
}

/* Add top padding only inside the main content wrapper */
.mw-body-content {
  padding-top: 15px;
}

/* Remove default spacing from base divs */
#mw-page-base,
#mw-head-base {
  margin: 0;
  padding: 0;
  background: transparent !important;
  height: 0 !important;
}

/* === QME Wiki Responsive Two-Column Layout === */
.qme-flex-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 -8px;
  align-items: stretch;
}

/* Base styles for each column */
.qme-column {
  flex: 1 1 100%;
  min-height: 600px;
  padding: 12px;
  border: 1px solid #0000B6; /* your aqua green border */
  background: #fcfcfc;
  color: #000;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: relative;  /* make sure content is above fixed banner */
  z-index: 1;
}

/* ✅ Force consistent font size in all nested elements */
.qme-column * {
  font-size: 16px !important;
  line-height: 1.5 !important;
  box-sizing: border-box;
}

/* ✅ Specifically target lists for mobile consistency */
.qme-column ul {
  padding-left: 1.2em;
  margin-bottom: 1em;
  list-style-type: disc;
}

.qme-column ul li {
  margin-bottom: 0.5em;
}

/* Responsive: switch to 2-column layout at tablet width */
@media (min-width: 600px) {
  .qme-column {
    flex: 1 1 48%;
  }
}
By using this site, you agree to the Terms of Use. © 1996–2025 The Quincy Examiner / MTB. All rights reserved.