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.
/* =========================================================
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;
}
}