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:
/* SK NavCell floating gamepad on mobile */
/* =========================================================
@media screen and (max-width: 759px) {
  NavCell floating pad: always above Citizen footer + bars
  This MUST be in Common.css (TemplateStyles cannot do fixed)
  ========================================================= */


  /* keep the pad above Citizen UI and above the footer */
/* 1) Make sure the fixed pad is always on top */
  body.sk-navpad-on .navcell-ui {
body.sk-navpad-on #sk-navpad.navcell-ui,
    position: fixed !important;
body.sk-navpad-on .navcell-ui#sk-navpad {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;


    /* lift it above phone browser bars */
  /* sit above phone safe area and Citizen bottom UI */
    left: 50% !important;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 72px) !important;
    transform: translateX(-50%) !important;


    z-index: 2147483647 !important;
  z-index: 2147483000 !important;


    margin: 0 !important;
  margin: 0 !important;
  padding: 10px 12px !important;


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


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


   /* optional hide mode */
/* 3) If Citizen’s footer or bottom elements are overlaying, push them below */
   body.sk-navpad-off .navcell-ui {
footer,
.citizen-footer,
.mw-footer,
#footer,
.citizen-ui,
.citizen-ui__footer,
.citizen-ui-footer,
.citizen-drawer,
.citizen-toolbar {
  z-index: 1 !important;
   position: relative !important;
}
 
/* 4) When navpad is off, keep it hidden on mobile */
@media (max-width: 759px) {
  body.sk-navpad-off #sk-navpad.navcell-ui,
   body.sk-navpad-off .navcell-ui#sk-navpad {
     display: none !important;
     display: none !important;
   }
   }
}
}

Revision as of 07:44, 21 December 2025

/* =========================================================
   NavCell floating pad: always above Citizen footer + bars
   This MUST be in Common.css (TemplateStyles cannot do fixed)
   ========================================================= */

/* 1) Make sure the fixed pad is always on top */
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;

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

  z-index: 2147483000 !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 */
body.sk-navpad-on {
  padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px)) !important;
}

/* 3) If Citizen’s footer or bottom elements are overlaying, push them below */
footer,
.citizen-footer,
.mw-footer,
#footer,
.citizen-ui,
.citizen-ui__footer,
.citizen-ui-footer,
.citizen-drawer,
.citizen-toolbar {
  z-index: 1 !important;
  position: relative !important;
}

/* 4) When navpad is off, keep it hidden on mobile */
@media (max-width: 759px) {
  body.sk-navpad-off #sk-navpad.navcell-ui,
  body.sk-navpad-off .navcell-ui#sk-navpad {
    display: none !important;
  }
}