Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
 
Line 1: Line 1:
/* =========================================================
/* =========================================================
   NavCell floating pad: always above Citizen footer + bars
   SK NAVPAD: ALWAYS ON TOP, NEVER UNDER CITIZEN FOOTER
   This MUST be in Common.css (TemplateStyles cannot do fixed)
   Put ONLY in MediaWiki:Common.css
   ========================================================= */
   ========================================================= */


/* 1) Make sure the fixed pad is always on top */
/* Always force the navpad to be fixed and above everything */
body.sk-navpad-on #sk-navpad,
body.sk-navpad-on #sk-navpad.navcell-ui,
body.sk-navpad-on #sk-navpad.navcell-ui,
body.sk-navpad-on .navcell-ui#sk-navpad {
body.sk-navpad-on .navcell-ui#sk-navpad {
Line 11: Line 12:
   transform: translateX(-50%) !important;
   transform: translateX(-50%) !important;


   /* sit above phone safe area and Citizen bottom UI */
   /* lift it above phone UI a bit */
   bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
   bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;


   z-index: 2147483000 !important;
  /* absurdly high, higher than any theme UI */
   z-index: 2147483647 !important;
 
  /* create a new stacking context so it cannot get trapped */
  isolation: isolate !important;


   margin: 0 !important;
   margin: 0 !important;
  padding: 10px 12px !important;
  background: rgba(0,0,0,0.88) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45) !important;
}
}


/* 2) Reserve space so page content and footer do not sit under it */
/* Reserve space so page content does not sit under it */
body.sk-navpad-on {
body.sk-navpad-on {
   padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px)) !important;
   padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important;
}
}


/* 3) If Citizen’s footer or bottom elements are overlaying, push them below */
/* Force any footer like thing to never sit on top of the navpad */
footer,
footer,
#footer,
.mw-footer,
.citizen-footer,
.citizen-footer,
.mw-footer,
[class*="footer"],
#footer,
[id*="footer"],
.citizen-ui,
.citizen-ui,
.citizen-ui__footer,
.citizen-ui__footer,
.citizen-ui-footer,
.citizen-ui-footer,
.citizen-toolbar,
.citizen-drawer,
.citizen-drawer,
.citizen-toolbar {
[class*="toolbar"],
  z-index: 1 !important;
[id*="toolbar"],
[class*="drawer"],
[id*="drawer"] {
   position: relative !important;
   position: relative !important;
  z-index: 0 !important;
}
/* If Citizen has a fixed bottom bar, keep it under everything */
[class*="sticky"],
[id*="sticky"],
[class*="bottom"],
[id*="bottom"] {
  z-index: 0 !important;
}
}


/* 4) When navpad is off, keep it hidden on mobile */
/* Hide the pad when you turn it off */
@media (max-width: 759px) {
@media (max-width: 759px) {
  body.sk-navpad-off #sk-navpad,
   body.sk-navpad-off #sk-navpad.navcell-ui,
   body.sk-navpad-off #sk-navpad.navcell-ui,
   body.sk-navpad-off .navcell-ui#sk-navpad {
   body.sk-navpad-off .navcell-ui#sk-navpad {

Latest revision as of 07:47, 21 December 2025

/* =========================================================
   SK NAVPAD: ALWAYS ON TOP, NEVER UNDER CITIZEN FOOTER
   Put ONLY in MediaWiki:Common.css
   ========================================================= */

/* Always force the navpad to be fixed and above everything */
body.sk-navpad-on #sk-navpad,
body.sk-navpad-on #sk-navpad.navcell-ui,
body.sk-navpad-on .navcell-ui#sk-navpad {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  /* lift it above phone UI a bit */
  bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;

  /* absurdly high, higher than any theme UI */
  z-index: 2147483647 !important;

  /* create a new stacking context so it cannot get trapped */
  isolation: isolate !important;

  margin: 0 !important;
}

/* Reserve space so page content does not sit under it */
body.sk-navpad-on {
  padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Force any footer like thing to never sit on top of the navpad */
footer,
#footer,
.mw-footer,
.citizen-footer,
[class*="footer"],
[id*="footer"],
.citizen-ui,
.citizen-ui__footer,
.citizen-ui-footer,
.citizen-toolbar,
.citizen-drawer,
[class*="toolbar"],
[id*="toolbar"],
[class*="drawer"],
[id*="drawer"] {
  position: relative !important;
  z-index: 0 !important;
}

/* If Citizen has a fixed bottom bar, keep it under everything */
[class*="sticky"],
[id*="sticky"],
[class*="bottom"],
[id*="bottom"] {
  z-index: 0 !important;
}

/* Hide the pad when you turn it off */
@media (max-width: 759px) {
  body.sk-navpad-off #sk-navpad,
  body.sk-navpad-off #sk-navpad.navcell-ui,
  body.sk-navpad-off .navcell-ui#sk-navpad {
    display: none !important;
  }
}