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.
/* --- Navigation Pill (Navpill) Style --- */
/* This is the container for a full bar of pills */
.navpill-bar {
display: flex;
flex-wrap: wrap; /* Lets them wrap to the next line on small screens */
justify-content: center;
gap: 10px; /* Space between the pills */
margin-bottom: 1em;
}
/* 1. The main container for a single pill */
.template-navpill {
display: flex;
flex-direction: column; /* Stacks the image on top of the text */
align-items: center; /* Centers everything */
min-width: 180px; /* Set a minimum width for each pill */
padding: 10px;
border-radius: 8px;
background-color: #f0f3f9; /* A light, neutral background */
border: 1px solid #ccd9ea;
transition: all 0.2s ease;
}
.template-navpill:hover {
background-color: #e4e9f1;
border-color: #a4b3c7;
}
/* 2. The background for the image/icon */
.template-navpill-background {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 50px; /* Ensures space for the image */
margin-bottom: 8px;
}
/* 3. The image itself. We make sure it doesn't overflow */
.template-navpill-background .mw-file-element {
max-width: 100%;
height: auto;
object-fit: contain;
}
/* 4. The text link at the bottom */
.template-navpill-link {
font-size: 1.1em;
font-weight: bold;
color: #0645ad; /* Standard MediaWiki link color */
text-align: center;
}