MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* ========================================================= | ||
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 */ | ||
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;
}
}