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.
/* CSS placed here will be applied to all skins */
/* === Wiki UI components === */
/* Buttons --------------------------------------------------------- */
.wiki-button {
display: inline-block;
padding: 10px 22px;
background: var(--color-progressive, #36c);
color: var(--color-base--inverted, #fff);
border: 1px solid transparent;
border-radius: 6px;
font-weight: 600;
text-decoration: none !important;
transition: filter 0.15s ease;
}
.wiki-button:hover,
.wiki-button:focus {
filter: brightness(1.08);
text-decoration: none !important;
}
.wiki-button-secondary {
background: var(--background-color-neutral-subtle, #f0f1f2);
color: var(--color-base, #202122);
border-color: var(--border-color-base, #d1d9e0);
}
/* Layout helper for a row of buttons */
.wiki-button-row {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin: 20px 0;
}
/* Cards ----------------------------------------------------------- */
.wiki-card {
padding: 16px;
border: 1px solid var(--border-color-base, #d1d9e0);
border-radius: 8px;
background: var(--background-color-neutral-subtle, #f8f9fa);
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wiki-card:hover {
border-color: var(--color-progressive, #36c);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.wiki-card .card-icon {
display: inline-block;
font-size: 1.4em;
margin-right: 8px;
vertical-align: middle;
color: var(--color-progressive, #36c);
}
.wiki-card .card-title {
font-size: 1.15em;
font-weight: 600;
}
.wiki-card .card-title a,
.wiki-card .card-title a:visited {
color: var(--color-base, #202122);
}
.wiki-card .card-desc {
margin-top: 6px;
color: var(--color-subtle, #54595d);
line-height: 1.45;
}
/* Layout helper for a card grid */
.wiki-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 16px;
margin: 24px 0;
}