Difference between revisions of "MediaWiki:Common.css"

From Holdfast: Nations At War
Jump to navigation Jump to search
Line 1: Line 1:
/* TOP-LEFT BANNER ONLY (minimal, safe) */
+
/* === Holdfast top-left banner (final, safe) === */
#mw-head,               /* legacy Vector */
+
 
.vector-header-container,/* Vector 2022 */
+
/* Works for both Vector and Vector-2022 */
.mw-body-header {       /* other skins that expose a header */
+
#mw-head,
   background-image: url("File/BannerImage.png");
+
.vector-header-container {
 +
   background-image: url("https://wiki.holdfastgame.com/wiki/Special:FilePath/BannerImage.png");
 
   background-repeat: no-repeat;
 
   background-repeat: no-repeat;
 
   background-position: left top;
 
   background-position: left top;
   background-size: 420px 140px; /* adjust width/height to your image */
+
   background-size: 420px 140px; /* Adjust width/height to your image */
   min-height: 140px;            /* match the height above */
+
   min-height: 140px;            /* Match the image height */
 
}
 
}
  
/* If your skin paints a base behind the header, make it transparent */
+
/* Remove background strips some skins add */
#mw-page-base, #mw-head-base { background: transparent !important; }
+
#mw-page-base,
 +
#mw-head-base {
 +
  background: transparent !important;
 +
}

Revision as of 09:30, 10 October 2025

/* === Holdfast top-left banner (final, safe) === */

/* Works for both Vector and Vector-2022 */
#mw-head,
.vector-header-container {
  background-image: url("https://wiki.holdfastgame.com/wiki/Special:FilePath/BannerImage.png");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 420px 140px; /* Adjust width/height to your image */
  min-height: 140px;            /* Match the image height */
}

/* Remove background strips some skins add */
#mw-page-base,
#mw-head-base {
  background: transparent !important;
}