MediaWiki:Common.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* =========================================================
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;
}
}