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.
/* --- ELDRASIL WIKI MAIN PAGE THEME --- */
:root {
--eld-bg: #0a0b10;
--eld-card-bg: #13151f;
--eld-border: rgba(255, 255, 255, 0.1);
--eld-gold: #f6ce68;
--eld-purple: #9056c6;
--eld-text: #f3f0f7;
--eld-text-muted: #d8c4f8;
}
/* Hide the default "Main Page" title and site tagline */
.page-Main_Page #firstHeading,
.page-Main_Page #siteSub,
.page-Main_Page #contentSub {
display: none !important;
}
/* Main Container */
.eld-main-container {
font-family: 'Inter', sans-serif;
color: var(--eld-text);
max-width: 1200px;
margin: 0 auto;
}
/* Hero Section */
.eld-hero {
text-align: center;
padding: 4rem 2rem;
background: radial-gradient(circle at center, rgba(144, 86, 198, 0.15) 0%, rgba(10, 11, 16, 0) 70%);
border-bottom: 1px solid var(--eld-border);
margin-bottom: 2rem;
}
.eld-hero h1 {
font-family: 'Cinzel', serif; /* Fallback if not loaded, standard serif */
font-size: 3rem;
font-weight: 900;
margin-bottom: 0.5rem;
background: linear-gradient(to bottom, #ffffff, #9ca3af);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
border: none; /* Remove default MW h1 border */
}
.eld-hero p {
color: var(--eld-gold);
text-transform: uppercase;
letter-spacing: 0.3em;
font-size: 0.9rem;
font-weight: bold;
}
/* Grid Layout */
.eld-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin-bottom: 3rem;
}
/* Card Styling */
.eld-card {
background-color: var(--eld-card-bg);
border: 1px solid var(--eld-border);
border-radius: 12px;
padding: 1.5rem;
transition: all 0.3s ease;
text-decoration: none; /* For links */
display: block;
position: relative;
overflow: hidden;
}
.eld-card:hover {
transform: translateY(-5px);
border-color: var(--eld-gold);
box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.5);
text-decoration: none;
}
.eld-card h2 {
font-family: serif;
color: var(--eld-gold);
font-size: 1.5rem;
border-bottom: none;
margin-top: 0;
}
.eld-card p {
color: var(--eld-text-muted);
font-size: 0.9rem;
line-height: 1.5;
}
/* Feature Icons in Cards */
.eld-icon-box {
width: 40px;
height: 40px;
background: rgba(255,255,255,0.05);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
font-size: 1.5rem;
}
/* Quick Links Section (Row of buttons) */
.eld-links {
display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
margin-top: 2rem;
}
.eld-btn {
background: rgba(255,255,255,0.05);
border: 1px solid var(--eld-border);
padding: 0.75rem 1.5rem;
border-radius: 50px;
color: var(--eld-text);
font-weight: bold;
text-transform: uppercase;
font-size: 0.8rem;
letter-spacing: 0.1em;
transition: all 0.2s;
text-decoration: none;
}
.eld-btn:hover {
background: var(--eld-gold);
color: #000;
text-decoration: none;
}
/* Mobile Adjustments */
@media (max-width: 768px) {
.eld-hero h1 { font-size: 2rem; }
.eld-grid { grid-template-columns: 1fr; }
}
/* --- ELDRASIL WIKI LANDING PAGE --- */
/* 1. Clean up the Main Page interface */
body.page-Main_Page #firstHeading,
body.page-Main_Page #siteSub,
body.page-Main_Page #contentSub,
body.page-Main_Page .mw-indicators {
display: none !important;
}
/* 2. Variables based on your globals.css */
:root {
--eld-bg-dark: #0a0b10;
--eld-card-bg: #13151f;
--eld-border: rgba(255, 255, 255, 0.08);
--eld-gold: #f6ce68;
--eld-purple: #9056c6;
--eld-text: #f3f0f7;
--eld-muted: #9ca3af;
}
/* 3. Hero Section */
.eld-hero-container {
text-align: center;
padding: 60px 20px;
background: radial-gradient(circle at top, rgba(144, 86, 198, 0.15) 0%, rgba(10, 11, 16, 0) 60%);
border-bottom: 1px solid var(--eld-border);
margin-bottom: 40px;
}
.eld-hero-title {
font-family: 'Cinzel', serif; /* Falls back to serif if Cinzel isn't loaded */
font-size: 3.5rem;
font-weight: 900;
margin: 10px 0;
background: linear-gradient(to bottom, #ffffff 40%, #9ca3af 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-transform: uppercase;
letter-spacing: -0.02em;
}
.eld-hero-subtitle {
color: var(--eld-gold);
font-size: 0.85rem;
font-weight: bold;
letter-spacing: 0.3em;
text-transform: uppercase;
margin-top: 0;
}
/* 4. The Grid */
.eld-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
max-width: 1200px;
margin: 0 auto 60px auto;
}
/* 5. Feature Cards */
.eld-card {
background-color: var(--eld-card-bg);
border: 1px solid var(--eld-border);
border-radius: 16px;
padding: 24px;
display: flex;
flex-direction: column;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.eld-card:hover {
transform: translateY(-4px);
border-color: rgba(246, 206, 104, 0.4); /* Gold glow */
box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
/* Inner glow effect on hover */
.eld-card::before {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
opacity: 0;
transition: opacity 0.5s;
pointer-events: none;
}
.eld-card:hover::before {
opacity: 1;
}
.eld-card-icon {
font-size: 2rem;
margin-bottom: 15px;
filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}
.eld-card h2 {
font-family: sans-serif;
color: var(--eld-text);
font-size: 1.25rem;
font-weight: 700;
margin: 0 0 8px 0;
border: none;
}
/* Wiki Links inside cards */
.eld-card a {
color: inherit;
text-decoration: none;
}
.eld-card a:hover {
color: var(--eld-gold);
}
.eld-card p {
color: var(--eld-muted);
font-size: 0.9rem;
line-height: 1.6;
margin: 0;
flex-grow: 1;
}
/* 6. Footer Links */
.eld-footer-links {
display: flex;
justify-content: center;
gap: 15px;
flex-wrap: wrap;
padding-top: 20px;
border-top: 1px solid var(--eld-border);
max-width: 800px;
margin: 0 auto;
}
.eld-pill-link {
background: rgba(255,255,255,0.03);
border: 1px solid var(--eld-border);
padding: 8px 16px;
border-radius: 50px;
font-size: 0.8rem;
font-weight: 600;
color: var(--eld-muted);
text-decoration: none !important;
transition: 0.2s;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.eld-pill-link:hover {
background: var(--eld-gold);
color: #000;
border-color: var(--eld-gold);
}