MediaWiki:Vector-2022.css: Difference between revisions

From openwfm
(Undo revision 8337 by Jmandel (talk))
Tag: Undo
(97.5)
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Add a banner image without creating layout shift */
/* Static contained banner above content */
body.skin-vector-2022::before {
body.skin-vector-2022 .mw-page-container::before {
   content: "";
   content: "";
   position: fixed;
   display: block;
  top: 0;
  left: 0;
   width: 100%;
   width: 100%;
   height: 110px;
   height: 97.5px; /* or adjust as needed */
   background: url("/images/c/cb/Openwfm.png") no-repeat center center;
   background: url("/images/c/cb/Openwfm.png") no-repeat center center;
   background-size: cover;
   background-size: contain;
   z-index: 0; /* below header */
   background-color: #fff; /* optional, ensures clean base */
   pointer-events: none;
   margin-bottom: -2em;
}
   margin-top: -1em;
 
/* Push page content below the banner */
body.skin-vector-2022 .mw-page-container {
  position: relative;
  z-index: 1;
   padding-top: 110px; /* match banner height */
  background: white;
}
 
/* Keep top nav above the image */
body.skin-vector-2022 .vector-header {
  position: relative;
  z-index: 2;
  background: transparent;
}
}

Latest revision as of 17:59, 7 August 2025

/* Static contained banner above content */
body.skin-vector-2022 .mw-page-container::before {
  content: "";
  display: block;
  width: 100%;
  height: 97.5px; /* or adjust as needed */
  background: url("/images/c/cb/Openwfm.png") no-repeat center center;
  background-size: contain;
  background-color: #fff; /* optional, ensures clean base */
  margin-bottom: -2em;
  margin-top: -1em;
}