Jump to content

MediaWiki:Common.css

From Eldrasil Wiki
Revision as of 21:36, 7 December 2025 by Admin (talk | contribs)

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;
    /* This creates the responsive layout */
    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 --- */
.eld-card {
    background-color: var(--eld-card-bg);
    border: 1px solid var(--eld-border);
    border-radius: 16px;
    /* Remove padding here so the link can fill the edge */
    padding: 0; 
    height: 200px; /* Force a consistent height for alignment */
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Hover Effect on the Container */
.eld-card:hover {
    transform: translateY(-5px);
    border-color: var(--eld-gold);
    box-shadow: 0 10px 20px rgba(246, 206, 104, 0.15);
}

/* --- THE CLICKABLE LINK (Fills the card) --- */
/* We target the 'a' tag specifically to make it the flex container */
.eld-card a,
.eld-card a:visited,
.eld-card a:active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none !important; /* Kill the underline */
    color: var(--eld-text) !important; /* Force white text */
    padding: 20px; /* Add padding inside the link */
    box-sizing: border-box;
}

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

.eld-card:hover .eld-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.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;
}

/* If you use images instead of emoji, this removes the ugly default border */
.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);
}