MediaWiki:Common.css
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.
/* ==============================
GLOBAL LAYOUT / PAGE STYLES
============================== */
/* Base page container */
.mp-container {
display: flex;
align-items: flex-start;
gap: 20px;
box-sizing: border-box;
}
.mp-left {
flex: 1 1 auto;
min-width: 0;
}
/* Right sidebar */
.mp-right {
flex: 0 0 320px;
max-width: 100%;
box-sizing: border-box;
border-left: 1px solid #e0e0e0;
padding-left: 16px;
margin-left: 4px;
}
.mp-right > * {
width: 100%;
}
@media (max-width: 900px) {
.mp-container {
flex-direction: column;
}
.mp-right {
flex: none;
width: 100%;
border-left: 0;
border-top: 1px solid #e0e0e0;
padding-left: 0;
padding-top: 12px;
margin-left: 0;
margin-top: 12px;
}
}
/* ==============================
CONTRIBUTION CTA BUTTON
============================== */
.wp-contrib-cta {
display: flex;
justify-content: center;
margin: 1rem 0;
}
.wp-contrib-cta__btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
width: min(100%, 28rem);
padding: 0.9rem 1.2rem;
background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
color: #fff;
border-radius: 999px;
font-weight: 700;
font-size: clamp(14px, 2.8vw, 18px);
text-decoration: none;
box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35),
0 2px 6px rgba(0, 0, 0, 0.15);
border: 1px solid rgba(255, 255, 255, 0.18);
transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.wp-contrib-cta__btn:hover {
transform: translateY(-1px);
box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45),
0 4px 10px rgba(0, 0, 0, 0.18);
filter: brightness(1.03);
}
.wp-contrib-cta__btn:active {
transform: translateY(0);
box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35),
0 2px 6px rgba(0, 0, 0, 0.14);
}
.wp-contrib-cta__btn:focus-visible {
outline: 3px solid #a5b4fc;
outline-offset: 3px;
}
.wp-contrib-cta__icon,
.wp-contrib-cta__arrow {
width: 1.5em;
height: 1.5em;
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 1.5em;
line-height: 1;
}
.wp-contrib-cta__text {
text-align: center;
flex: 0 1 auto;
line-height: 1.2;
}
@media (prefers-reduced-motion: no-preference) {
.wp-contrib-cta__btn:hover .wp-contrib-cta__arrow {
transform: translateX(2px);
transition: transform 120ms ease;
}
}
@media (prefers-color-scheme: dark) {
.wp-contrib-cta__btn {
border-color: rgba(255, 255, 255, 0.22);
}
}
/* ==============================
MAIN PAGE HEADING HIDES
============================== */
body.page-Main_Page #firstHeading,
body.page-Main_Page .firstHeading,
body.page-Main_Page h1.firstHeading {
display: none !important;
}
body.page-Main_Page #siteSub,
body.page-Main_Page .mw-body h1,
body.page-Main_Page #contentSub {
display: none !important;
margin: 0 !important;
padding: 0 !important;
border: none !important;
}
/* ==============================
INFOBOX REDESIGN (v2)
============================== */
/* container */
.infobox {
position: relative;
float: right;
width: 300px;
margin: -2em 0 1em 1em;
font-size: 90%;
background: #fff;
border: 1px solid #b8d4f1;
border-radius: 6px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
overflow: hidden;
clear: none !important;
border-collapse: collapse !important;
}
@media (max-width: 511px) {
.infobox {
float: none;
margin: 0 0 1em 0;
width: auto;
}
}
@media (max-width: 337px) {
.infobox {
margin-left: -16px;
margin-right: -16px;
border-left: none;
border-right: none;
}
}
/* title */
.infobox-title {
text-align: center;
font-weight: bold;
font-size: 120%;
background: #3b82f6;
color: #fff;
padding: 8px;
border-radius: 4px 4px 0 0;
}
/* image */
.infobox-imagearea {
text-align: center;
padding: 6px;
background: #fafcff;
border-bottom: 1px solid #d5e4f6;
}
.infobox-imagearea img {
max-width: 100%;
height: auto;
border-radius: 3px;
}
/* rows */
.infobox .infobox-rows {
display: table;
width: 100%;
border-collapse: collapse !important;
}
.infobox-rows tr {
border-bottom: 1px solid #e6effb;
}
.infobox-rows tr:last-child {
border-bottom: none;
}
.infobox-rows tr:nth-child(2n) {
background-color: #f4f8ff;
}
/* labels (left column) */
.infobox-rows th {
text-align: left;
white-space: nowrap;
color: #0d47a1;
background-color: #f1f6ff;
padding: 4px 6px;
width: 35%;
font-weight: 600;
border-right: 1px solid #d8e5fb;
vertical-align: middle;
}
/* values (right column) */
.infobox-rows td {
padding: 4px 6px;
line-height: 1.1em;
vertical-align: middle;
color: #222;
background: #fff;
}
/* eliminate extra whitespace */
.infobox td > div,
.infobox td > p {
margin: 0 !important;
padding: 0 !important;
display: inline !important;
}
/* optional alternating hover for clarity */
.infobox-rows tr:hover {
background-color: #e8f1ff;
}
/* footer / bottom text */
.infobox-footer {
text-align: center;
color: #0d47a1;
background: #e8f2ff;
border-top: 1px solid #b8d4f1;
padding: 5px;
font-style: italic;
font-size: 90%;
}
/* remove stray p spacing and cleanup */
.mw-parser-output > .infobox + p:empty,
.mw-parser-output > .infobox + p:has(> br:only-child) {
display: none !important;
}
.mw-parser-output > .infobox + p {
margin-top: 0 !important;
}
/* debug hiding */
.history-json {
display: none;
}