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
Adding Compass Rose in center styling
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* SK navigation cells */
/* =========================================================
  SK NAVPAD: ALWAYS ON TOP, NEVER UNDER CITIZEN FOOTER
  Put ONLY in MediaWiki:Common.css
  ========================================================= */


.navcell {
/* Always force the navpad to be fixed and above everything */
  margin: 1.5em 0;
body.sk-navpad-on #sk-navpad,
   max-width: 380px;       /* slightly tighter column */
body.sk-navpad-on #sk-navpad.navcell-ui,
   margin-left: auto;
body.sk-navpad-on .navcell-ui#sk-navpad {
   margin-right: auto;
   position: fixed !important;
}
   left: 50% !important;
   transform: translateX(-50%) !important;


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


.nav-grid {
   /* absurdly high, higher than any theme UI */
  display: grid;
   z-index: 2147483647 !important;
  grid-template-columns: 70px 70px 70px;  /* smaller directional buttons */
   grid-template-rows: 70px 70px 70px;      /* smaller directional buttons */
   gap: 8px;
  justify-content: center;
  margin: 1em 0;
}


.nav-btn {
   /* create a new stacking context so it cannot get trapped */
  display: flex;
   isolation: isolate !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;                            /* smaller padding */
  background: #222;
   border: 1px solid #444;
  border-radius: 6px;
  font-size: 0.72em;                        /* slightly smaller font */
   line-height: 1.15em;
  text-decoration: none !important;
  color: #eee !important;
}


.nav-btn:hover {
   margin: 0 !important;
  background: #333;
   border-color: #777;
}
}


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


/* Up / Down row */
/* Force any footer like thing to never sit on top of the navpad */
 
footer,
.nav-vertical-row {
#footer,
  display: flex;
.mw-footer,
  justify-content: center;
.citizen-footer,
  gap: 10px;
[class*="footer"],
  margin: 0.6em 0 1.1em 0;
[id*="footer"],
}
.citizen-ui,
 
.citizen-ui__footer,
.nav-vertical {
.citizen-ui-footer,
  min-width: 95px;        /* trimmed horizontally */
.citizen-toolbar,
  min-height: 38px;      /* visually balanced height */
.citizen-drawer,
}
[class*="toolbar"],
 
[id*="toolbar"],
/* Make link fill button */
[class*="drawer"],
 
[id*="drawer"] {
.nav-btn a {
   position: relative !important;
  text-decoration: none !important;
   z-index: 0 !important;
  color: inherit !important;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
 
/* Center compass tile styling */
.nav-center {
   display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
   border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  height: 100%;
  pointer-events: none; /* ensure it's not clickable */
}
}


.nav-center img {
/* If Citizen has a fixed bottom bar, keep it under everything */
   width: 90% !important;
[class*="sticky"],
  height: auto !important;
[id*="sticky"],
  object-fit: contain;
[class*="bottom"],
  opacity: 1;
[id*="bottom"] {
   z-index: 0 !important;
}
}


/* Remove hover effects for center */
/* Hide the pad when you turn it off */
.nav-center:hover {
@media (max-width: 759px) {
   background: transparent !important;
   body.sk-navpad-off #sk-navpad,
   border: none !important;
   body.sk-navpad-off #sk-navpad.navcell-ui,
   box-shadow: none !important;
   body.sk-navpad-off .navcell-ui#sk-navpad {
    display: none !important;
  }
}
}

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;
  }
}