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.
/*
* Menhirs Fate Wiki – Functional CSS + Custom Header/Footer
* Default Citizen theme colours preserved — no colour overrides
*/
/* ═══════════════════════════════════════════════════════════════════════════
IMAGE SIZING — constrain external images
═══════════════════════════════════════════════════════════════════════════ */
.mw-body-content img:not(.mw-file-element):not([class*="citizen"]):not([class*="oo-ui"]) {
max-width: 350px;
max-height: 450px;
height: auto;
width: auto;
object-fit: cover;
border-radius: 6px;
float: right;
margin: 0 0 1em 1.5em;
}
@media (max-width: 768px) {
.mw-body-content img:not(.mw-file-element):not([class*="citizen"]):not([class*="oo-ui"]) {
float: none;
display: block;
margin: 1em auto !important;
max-width: 100%;
}
}
/* ═══════════════════════════════════════════════════════════════════════════
NATION IMAGE GRID
═══════════════════════════════════════════════════════════════════════════ */
.nation-grid {
display: grid !important;
grid-template-columns: repeat(3, 1fr) !important;
gap: 12px;
margin: 1.5em 0;
max-width: 900px;
clear: both;
}
.nation-grid-item {
position: relative;
overflow: hidden;
border-radius: 8px;
aspect-ratio: 2/3;
background-color: var(--color-surface-2, #1c1c1f);
background-size: cover;
background-position: center top;
transition: transform 0.3s ease;
}
.nation-grid-item:hover { transform: scale(1.03); }
.nation-grid-item p { margin: 0 !important; padding: 0 !important; height: 100%; }
.nation-grid-item a {
display: flex !important;
align-items: flex-end !important;
justify-content: center !important;
width: 100%; height: 100%;
text-decoration: none !important;
position: absolute; top: 0; left: 0;
background: linear-gradient(transparent 50%, rgba(0,0,0,0.7)) !important;
padding: 0 0 15px 0;
}
.nation-grid-item .nation-label {
color: #f6f6f6 !important;
font-size: 1.1rem; font-weight: 600; font-style: italic;
text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.nation-grid-item a:hover .nation-label { color: var(--color-primary, #36c) !important; }
@media (max-width: 600px) {
.nation-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
/* ─── Nation grid background images ─────────────────────────────────────── */
.nation-avereaux { background-image: url('https://www.menhirsfate.com/wp-content/uploads/2024/11/DSC02283-684x1024.jpg'); }
.nation-wonder { background-image: url('https://www.menhirsfate.com/wp-content/uploads/2024/11/DSC02033-684x1024.jpg'); }
.nation-valdraeth { background-image: url('https://www.menhirsfate.com/wp-content/uploads/2024/11/DSC02067-684x1024.jpg'); }
.nation-portavas { background-image: url('https://www.menhirsfate.com/wp-content/uploads/2024/11/MF_13_IntroRules-684x1024.jpg'); }
.nation-hammerstadt { background-image: url('https://www.menhirsfate.com/wp-content/uploads/2024/11/MF_11_DamageGameEffects-681x1024.jpg'); }
.nation-urdrevan { background-image: url('https://www.menhirsfate.com/wp-content/uploads/2024/10/DSC03197-684x1024.jpg'); }
.nation-kairos { background-image: url('https://www.menhirsfate.com/wp-content/uploads/2024/10/DSC02402-684x1024.jpg'); }
.nation-syradonia { background-image: url('https://www.menhirsfate.com/wp-content/uploads/2024/10/DSC02552-684x1024.jpg'); }
.nation-morvalis { background-image: url('https://www.menhirsfate.com/wp-content/uploads/2024/10/DSC02441-684x1024.jpg'); }
/* ═══════════════════════════════════════════════════════════════════════════
CUSTOM HEADER
═══════════════════════════════════════════════════════════════════════════ */
#mf-header {
position: relative;
z-index: 200;
width: 100%;
font-family: 'Crimson Text', Georgia, serif;
}
/* ─── Dark top bar with logo ────────────────────────────────────────────── */
#mf-header-top {
background: #111;
display: flex;
align-items: center;
justify-content: center;
padding: 10px 20px;
position: relative;
}
#mf-logo {
height: 55px;
width: auto;
}
#mf-logo-link {
display: inline-flex;
align-items: center;
}
/* ─── Parchment ribbon navigation ───────────────────────────────────────── */
#mf-ribbon {
background: #e8ddc4;
position: relative;
z-index: 200;
}
#mf-ribbon::before {
content: '';
position: absolute;
left: -20px;
top: 0;
bottom: 0;
width: 20px;
background: #e8ddc4;
clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
#mf-ribbon::after {
content: '';
position: absolute;
right: -20px;
top: 0;
bottom: 0;
width: 20px;
background: #e8ddc4;
clip-path: polygon(0 0, 100% 50%, 0 100%);
}
#mf-ribbon-inner {
display: flex;
align-items: center;
justify-content: center;
padding: 0;
margin: 0 auto;
max-width: 1200px;
flex-wrap: wrap;
}
/* ─── Nav items (slim, matching WP: line-height 50px, 0 vert padding) ─── */
.mf-nav-item {
color: #844725 !important;
text-decoration: none !important;
font-size: 17px;
font-weight: 600;
padding: 0 17px;
line-height: 50px;
display: inline-flex;
align-items: center;
cursor: pointer;
white-space: nowrap;
transition: color 0.2s ease, background 0.2s ease;
}
.mf-nav-item:hover {
color: #5c2e12 !important;
background: rgba(0, 0, 0, 0.06);
}
.mf-nav-back {
margin-right: auto;
font-style: italic;
font-weight: 400;
font-size: 15px;
opacity: 0.85;
}
.mf-nav-back:hover { opacity: 1; }
/* ─── Dropdown menus ────────────────────────────────────────────────────── */
.mf-has-dropdown { position: relative; }
.mf-nav-label {
color: #844725;
font-size: 17px;
font-weight: 600;
padding: 0 17px;
line-height: 50px;
display: inline-flex;
align-items: center;
cursor: pointer;
transition: color 0.2s ease, background 0.2s ease;
}
.mf-nav-label:hover {
color: #5c2e12;
background: rgba(0, 0, 0, 0.06);
}
.mf-caret {
font-size: 10px;
margin-left: 5px;
transition: transform 0.2s ease;
}
.mf-dropdown {
display: none;
position: absolute;
top: 100%;
left: 0;
min-width: 220px;
background: #f5efe4;
border: 1px solid #d4c9b0;
border-radius: 4px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
z-index: 9999;
padding: 6px 0;
}
.mf-dropdown a {
display: block !important;
padding: 9px 20px !important;
color: #844725 !important;
text-decoration: none !important;
font-size: 15px;
font-weight: 400;
transition: background 0.15s ease;
}
.mf-dropdown a:hover {
background: rgba(132, 71, 37, 0.1) !important;
color: #5c2e12 !important;
}
.mf-has-dropdown:hover > .mf-dropdown { display: block; }
.mf-has-dropdown:hover .mf-caret { transform: rotate(180deg); }
.mf-has-dropdown.mf-dropdown-open > .mf-dropdown { display: block; }
.mf-has-dropdown.mf-dropdown-open .mf-caret { transform: rotate(180deg); }
/* ─── Hamburger button (hidden on desktop) ──────────────────────────────── */
#mf-burger {
display: none;
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
padding: 6px;
z-index: 300;
}
#mf-burger span {
display: block;
width: 26px;
height: 3px;
background: #ddd;
margin: 5px 0;
border-radius: 2px;
transition: transform 0.3s ease, opacity 0.3s ease;
}
#mf-burger.mf-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#mf-burger.mf-open span:nth-child(2) { opacity: 0; }
#mf-burger.mf-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* ─── Keep Citizen link colours inside wiki content ─────────────────────── */
.mw-body-content a:not(.new) { color: var(--color-link) !important; }
.mw-body-content a:hover { color: var(--color-link-active) !important; }
#citizen-page-header, .citizen-header { z-index: 100; }
/* ═══════════════════════════════════════════════════════════════════════════
CUSTOM FOOTER
═══════════════════════════════════════════════════════════════════════════ */
#mf-footer {
font-family: 'Crimson Text', Georgia, serif;
width: 100%;
position: relative;
z-index: 10;
margin-top: 40px;
}
#mf-footer-main {
background: #111;
display: flex;
justify-content: space-around;
align-items: flex-start;
flex-wrap: wrap;
padding: 50px 40px 40px;
gap: 30px;
}
.mf-footer-col {
text-align: center;
min-width: 200px;
flex: 1;
}
.mf-footer-col h4 {
color: #fff !important;
font-family: 'Crimson Text', Georgia, serif;
font-size: 20px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
margin: 0 0 18px 0;
}
.mf-footer-col a {
display: block;
color: #8b7355 !important;
text-decoration: none !important;
font-size: 16px;
padding: 4px 0;
transition: color 0.2s ease;
}
.mf-footer-col a:hover { color: #c4a97d !important; }
.mf-social-icons {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 6px;
}
.mf-social-icons a {
display: inline-flex !important;
padding: 0 !important;
border-radius: 50%;
transition: transform 0.2s ease;
}
.mf-social-icons a:hover { transform: scale(1.15); }
.mf-social-yt { color: #cd201f !important; }
.mf-social-dc { color: #7289da !important; }
.mf-social-fb { color: #8b8b8b !important; }
.mf-social-yt:hover { color: #ff3330 !important; }
.mf-social-dc:hover { color: #99aab5 !important; }
.mf-social-fb:hover { color: #bbb !important; }
#mf-footer-copy {
background: #111;
border-top: 1px solid #333;
text-align: center;
padding: 20px;
color: #999;
font-size: 14px;
font-family: 'Crimson Text', Georgia, serif;
}
/* ═══════════════════════════════════════════════════════════════════════════
MOBILE RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 800px) {
#mf-burger { display: block; }
#mf-ribbon-inner {
display: none;
flex-direction: column;
align-items: stretch;
background: #e8ddc4;
padding: 10px 0;
}
#mf-ribbon-inner.mf-open { display: flex; }
#mf-ribbon::before,
#mf-ribbon::after { display: none; }
.mf-nav-item,
.mf-nav-label {
padding: 0 24px;
line-height: 44px;
width: 100%;
box-sizing: border-box;
}
.mf-nav-back {
margin-right: 0;
border-bottom: 1px solid rgba(132, 71, 37, 0.15);
}
.mf-has-dropdown { width: 100%; }
.mf-dropdown {
position: static;
box-shadow: none;
border: none;
border-radius: 0;
background: rgba(0, 0, 0, 0.05);
padding: 0;
}
.mf-dropdown a {
padding: 10px 40px !important;
font-size: 14px;
}
.mf-has-dropdown:hover > .mf-dropdown { display: none; }
.mf-has-dropdown.mf-dropdown-open > .mf-dropdown { display: block; }
#mf-footer-main {
flex-direction: column;
align-items: center;
padding: 30px 20px;
}
}