Jump to content

MediaWiki:Common.css

From Eldrasil Wiki

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: MINIMALIST TILE THEME --- */

/* 1. Hide default headers */
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. Color Palette */
: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;
}

/* 3. Hero Section */
.eld-hero-container {
    text-align: center;
    padding: 80px 20px 40px;
    background: radial-gradient(circle at top, rgba(144, 86, 198, 0.1) 0%, rgba(10, 11, 16, 0) 70%);
    border-bottom: 1px solid var(--eld-border);
    margin-bottom: 50px;
}

.eld-hero-title {
    font-family: 'Cinzel', serif; 
    font-size: 3rem;
    font-weight: 900;
    margin: 15px 0 5px;
    color: var(--eld-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(144, 86, 198, 0.5);
}

.eld-hero-subtitle {
    color: var(--eld-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* --- THE GRID --- */
.eld-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

/* --- THE CARD CONTAINER (Layout Only - Invisible) --- */
.eld-card {
    /* Make the wrapper transparent so we don't see a "double box" */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    
    /* Set the size here */
    height: 200px; 
    position: relative;
    /* Move transition to the link */
}

/* Hover effects now happen on the LINK, not the wrapper div */
.eld-card:hover {
    transform: none; /* Disable transform on wrapper to prevent jitter */
}

/* --- THE CLICKABLE LINK (This becomes the visible card) --- */
.eld-card a,
.eld-card a:visited,
.eld-card a:active {
    /* 1. Visuals moved here */
    background-color: var(--eld-card-bg) !important;
    border: 1px solid var(--eld-border) !important;
    border-radius: 0px !important; /* Squared corners */
    
    /* 2. Layout */
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box; /* Ensures padding doesn't expand size */
    
    /* 3. Text Styles */
    text-decoration: none !important;
    color: var(--eld-text) !important;
    padding: 20px; 
    
    /* 4. Animation */
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* HOVER STATE (Applied to the link) */
.eld-card a:hover {
    transform: translateY(-5px);
    background-color: #1a1c29 !important; /* Slightly lighter gray on hover */
    border-color: var(--eld-gold) !important;
    box-shadow: 0 10px 20px rgba(246, 206, 104, 0.15);
    z-index: 10; /* Bring to front */
}

/* --- ICONS & TEXT --- */
.eld-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block; 
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
    transition: transform 0.3s ease;
}

/* Scale icon on hover */
.eld-card a:hover .eld-card-icon {
    transform: scale(1.1);
}

.eld-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.2;
}

/* Remove default image borders */
.eld-card a img {
    border: none !important;
    background: none !important;
    margin: 0 auto !important;
}

/* 6. Footer Links */
.eld-footer {
    text-align: center;
    border-top: 1px solid var(--eld-border);
    padding-top: 30px;
    margin-bottom: 50px;
}

.eld-footer a {
    color: #6b7280;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.2s;
}

.eld-footer a:hover {
    color: var(--eld-gold);
}