MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 51: | Line 51: | ||
.eld-grid { | .eld-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); | grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); | ||
gap: 20px; | gap: 20px; | ||
| Line 59: | Line 58: | ||
} | } | ||
/* --- THE CARD CONTAINER --- */ | /* --- THE CARD CONTAINER (SQUARED & GRAY) --- */ | ||
.eld-card { | .eld-card { | ||
/* 1. The Gray Background */ | |||
background-color: var(--eld-card-bg); | |||
/* 2. Sharp Corners (Squares) */ | |||
border-radius: 0px; | |||
border: 1px solid var(--eld-border); | border: 1px solid var(--eld-border); | ||
padding: 0; | padding: 0; | ||
height: 200px; | height: 200px; | ||
position: relative; | position: relative; | ||
transition: all 0. | transition: all 0.2s ease; /* Faster transition for button feel */ | ||
box-shadow: 0 4px 6px rgba(0,0,0,0.2); | box-shadow: 0 4px 6px rgba(0,0,0,0.2); | ||
} | } | ||
| Line 79: | Line 82: | ||
/* --- THE CLICKABLE LINK (Fills the card) --- */ | /* --- THE CLICKABLE LINK (Fills the card) --- */ | ||
.eld-card a, | .eld-card a, | ||
.eld-card a:visited, | .eld-card a:visited, | ||
| Line 89: | Line 91: | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
color: var(--eld-text) !important; | color: var(--eld-text) !important; | ||
padding: 20px; | padding: 20px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
| Line 99: | Line 101: | ||
font-size: 3rem; | font-size: 3rem; | ||
margin-bottom: 15px; | margin-bottom: 15px; | ||
display: block; | display: block; | ||
filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); | filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); | ||
transition: transform 0.3s ease; | transition: transform 0.3s ease; | ||
| Line 105: | Line 107: | ||
.eld-card:hover .eld-card-icon { | .eld-card:hover .eld-card-icon { | ||
transform: scale(1.1 | transform: scale(1.1); | ||
} | } | ||
Revision as of 21:39, 7 December 2025
/* --- 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 (SQUARED & GRAY) --- */
.eld-card {
/* 1. The Gray Background */
background-color: var(--eld-card-bg);
/* 2. Sharp Corners (Squares) */
border-radius: 0px;
border: 1px solid var(--eld-border);
padding: 0;
height: 200px;
position: relative;
transition: all 0.2s ease; /* Faster transition for button feel */
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) --- */
.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;
color: var(--eld-text) !important;
padding: 20px;
box-sizing: border-box;
}
/* --- 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;
}
.eld-card: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;
}
.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);
}