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 navigation cells */
.navcell {
margin: 1.5em 0;
max-width: 380px; /* slightly tighter column */
margin-left: auto;
margin-right: auto;
}
/* 3×3 compass grid */
.nav-grid {
display: grid;
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 {
display: flex;
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 {
background: #333;
border-color: #777;
}
.nav-empty {
background: transparent;
border: none;
}
/* Up / Down row */
.nav-vertical-row {
display: flex;
justify-content: center;
gap: 10px;
margin: 0.6em 0 1.1em 0;
}
.nav-vertical {
min-width: 95px; /* trimmed horizontally */
min-height: 38px; /* visually balanced height */
}
/* Make link fill button */
.nav-btn a {
text-decoration: none !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 {
width: 90% !important;
height: auto !important;
object-fit: contain;
opacity: 1;
}
/* Remove hover effects for center */
.nav-center:hover {
background: transparent !important;
border: none !important;
box-shadow: none !important;
}