MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
Madammagicka (talk | contribs) No edit summary |
Madammagicka (talk | contribs) No edit summary |
||
| Line 208: | Line 208: | ||
text-align: center; | text-align: center; | ||
box-shadow: inset 0 0 25px rgba(0,0,0,0.7), 0 6px 30px rgba(0,0,0,0.85); | box-shadow: inset 0 0 25px rgba(0,0,0,0.7), 0 6px 30px rgba(0,0,0,0.85); | ||
transition: transform 0.25s ease, box-shadow 0.25s ease; | transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease; | ||
overflow: visible; | overflow: visible; | ||
position: relative; | position: relative; | ||
font-size: 1em; | font-size: 1em; | ||
text-shadow: 0 1px 3px #000000aa; | text-shadow: 0 1px 3px #000000aa; | ||
background-size: cover; | background-size: cover; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-blend-mode: multiply; | background-blend-mode: multiply; | ||
cursor: pointer; | |||
} | |||
/* Hover effect for all race cards */ | |||
.race-card:hover { | .race-card:hover { | ||
transform: scale(1.05); | transform: scale(1.05); | ||
box-shadow: 0 | box-shadow: inset 0 0 25px rgba(0,0,0,0.7), 0 10px 40px rgba(0,0,0,0.9); | ||
filter: brightness(1.1); | filter: brightness(1.1); | ||
} | } | ||
/* | /* Optional: title and info styling inside card */ | ||
.race-card .race-title { | .race-card .race-title { | ||
font-weight: bold; | font-weight: bold; | ||
color: | font-size: 1.2em; | ||
text-shadow: 1px 1px 4px rgba(0,0,0,0.7); | margin-bottom: 10px; | ||
color: #fff; | |||
text-shadow: 1px 1px 4px rgba(0,0,0,0.8); | |||
} | |||
.race-card .race-info { | |||
color: #eee; | |||
text-shadow: 0 1px 3px rgba(0,0,0,0.7); | |||
} | } | ||
Revision as of 21:46, 27 November 2025
@import url('https://fonts.cdnfonts.com/css/warsaw-gothic');
/* ---------- IMAGE-ONLY BUTTONS – 4 PER ROW + TIGHT SPACING ---------- */
.cat-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 16px; /* ← CLOSER HORIZONTAL & VERTICAL */
max-width: 960px;
margin: 30px auto;
padding: 0 12px;
}
/* DIV button – FULL RESET + ROUNDED + ZOOM CONTAINER */
.cat-button {
position: relative;
display: inline-block; /* <- REQUIRED for proper shrink-to-content */
line-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
border: none !important;
border-radius: 10px !important;
background: none !important;
box-shadow: none !important;
overflow: hidden !important;
transition: transform 0.25s ease;
cursor: pointer;
/* ← MAX 4 PER ROW: 25% width minus gap */
flex: 0 1 calc(25% - 12px); /* 4 × (25% - gap/4) */
min-width: 180px; /* prevent too small */
height: auto;
}
.cat-button p {
margin: 0 !important;
padding: 0 !important;
line-height: 0 !important;
display: contents !important; /* ← removes box but keeps children */
}
/* HOVER: lift */
.cat-button:hover,
.cat-button:focus {
transform: translateY(-4px);
outline: none !important;
}
/* IMAGE: zoom inside rounded */
.cat-button img {
width: 100%;
height: auto;
display: block;
margin: 0;
padding: 0;
border: 0;
border-radius: 10px;
transform-origin: 50% 50% !important; /* FULL CENTER */
vertical-align: center;
transition: transform 0.3s ease;
transform-origin: center center;
object-fit: cover; /* prevents letterboxing */
box-shadow: inset 0 0 6px rgba(0,0,0,0.07);
}
.cat-button:hover img {
transform: scale(1.08);
}
/* TEXT OVERLAY: BOLD + CLEAN BLACK OUTLINE */
.cat-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: white;
padding: 8px;
font-weight: 700 !important;
font-size: 1.1em;
text-align: center;
pointer-events: none;
background: rgba(0, 0, 0, 0.08);
border-radius: 10px;
transition: background 0.3s ease, text-shadow 0.3s ease;
text-shadow:
-1.2px -1.2px 0 #000,
1.2px -1.2px 0 #000,
-1.2px 1.2px 0 #000,
1.2px 1.2px 0 #000,
-1.2px 0 0 #000,
1.2px 0 0 #000,
0 -1.2px 0 #000,
0 1.2px 0 #000,
0 0 6px rgba(0,0,0,0.6);
}
.cat-button:hover .cat-overlay {
background: transparent;
text-shadow:
-1.5px -1.5px 0 #000,
1.5px -1.5px 0 #000,
-1.5px 1.5px 0 #000,
1.5px 1.5px 0 #000,
-1.5px 0 0 #000,
1.5px 0 0 #000,
0 -1.5px 0 #000,
0 1.5px 0 #000,
0 0 10px rgba(0,0,0,0.7);
}
/* RESPONSIVE: 2 per row on tablets, 1 on mobile */
@media (max-width: 768px) {
.cat-grid { gap: 12px; } /* ← EVEN TIGHTER when stacked */
.cat-button { flex: 0 1 calc(50% - 9px); } /* 2 per row */
}
@media (max-width: 480px) {
.cat-button { flex: 0 1 100%; } /* 1 per row */
.cat-overlay { font-size: 1em; }
}
.page-Main_Page .full-bg {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
max-width: 960px;
height: 100%;
width: 100%;
background: url('/images/3/3c/Indexbg.png') center top/contain no-repeat;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
z-index: -1;
}
#footer-info-lastmod {
display: none;
}
/* ======= WARHAMMER FANTASY RACE CARDS ======= */
/* Page heading */
.race-page h2 {
text-align: center;
font-size: 0.5em;
font-family: "Warsaw Gothic", serif;
margin-bottom: 50px;
letter-spacing: 3px;
}
/* Page styling */
.race-page {
font-family: "Cinzel", serif;
padding: 40px;
border: 3px double #7a4b2f;
border-radius: 12px;
box-shadow: 0 0 40px rgba(0,0,0,0.85);
background-size: cover;
background-blend-mode: multiply;
}
/* ====== DIFFERENT BACKGROUNDS PER DROPDOWN ====== */
.race-page.order {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/PLACEHOLDER');
background-color: rgba(0, 0, 0, 0.5);
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-blend-mode: multiply;
}
.race-page.chaos {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/PLACEHOLDER');
background-color: rgba(0, 0, 0, 0.5);
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-blend-mode: multiply;
}
.race-page.destruction {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/PLACEHOLDER');
background-color: rgba(0, 0, 0, 0.5);
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-blend-mode: multiply;
}
/* Grid layout */
.race-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 30px;
margin-top: 30px;
}
.race-card {
border: 2px solid #8b3c2f;
border-radius: 12px;
padding: 20px;
text-align: center;
box-shadow: inset 0 0 25px rgba(0,0,0,0.7), 0 6px 30px rgba(0,0,0,0.85);
transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
overflow: visible;
position: relative;
font-size: 1em;
text-shadow: 0 1px 3px #000000aa;
background-size: cover;
background-repeat: no-repeat;
background-blend-mode: multiply;
cursor: pointer;
}
/* Hover effect for all race cards */
.race-card:hover {
transform: scale(1.05);
box-shadow: inset 0 0 25px rgba(0,0,0,0.7), 0 10px 40px rgba(0,0,0,0.9);
filter: brightness(1.1);
}
/* Optional: title and info styling inside card */
.race-card .race-title {
font-weight: bold;
font-size: 1.2em;
margin-bottom: 10px;
color: #fff;
text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}
.race-card .race-info {
color: #eee;
text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
/* ===== Per-Race Backgrounds (Centered Images) ===== */
.race-card.dwarf {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Dwarfart.jpg');
background-position: 80% 50%;
}
.race-card.elf {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Elfart.jpg');
background-position: 20% 50%;
}
.race-card.human {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Empreart.jpg');
background-position: 30% 50%;
}
.race-card.araby {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Arabyart.jpg');
background-position: 50% 50%;
}
.race-card.druchii {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Druchiiart.jpg');
background-position: 50% 50%;
}
.race-card.chaos {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Forcesofchaosart.jpg');
background-position: 70% 50%;
}
.race-card.greenskins {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Orcart.jpg');
background-position: 50% 50%;
}
.race-card.vampire {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Vampireart.jpg');
background-position: 50% 50%;
}
.race-card.pirates {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Pirateart.jpg');
background-position: 20% 50%;
}
/* ===== Per-Race Backgrounds (Centered Images) ===== */
.race-card.high-elves {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/HighElvesart.jpg');
background-position: 50% 50%;
}
.race-card.wood-elves {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/WoodElvesart.jpg');
background-position: 50% 50%;
}
.race-card.bretonnia {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Bretonniaart.jpg');
background-position: 50% 50%;
}
.race-card.kislev {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Kislevart.jpg');
background-position: 50% 50%;
}
.race-card.cathay {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Cathayart.jpg');
background-position: 50% 50%;
}
.race-card.chaos-dwarfs {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/ChaosDwarfsart.jpg');
background-position: 50% 50%;
}
.race-card.beastmen {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Beastmenart.jpg');
background-position: 50% 50%;
}
.race-card.norsca {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Norscaart.jpg');
background-position: 50% 50%;
}
.race-card.ogre {
background-image: url('https://irontide.info/index.php/Special:Redirect/file/Ogreart.jpg');
background-position: 50% 50%;
}
/* Race title */
.race-title {
color: white;
font-size: 1.8em;
font-family: "Warsaw Gothic", serif;
margin-bottom: 12px;
letter-spacing: 2px;
border-bottom: 2px solid #a64c3c; /* dark rusty red underline */
padding-bottom: 6px;
text-shadow: 2px 2px 6px #000000bb;
}
/* Body text */
.race-body {
font-size: 1em;
line-height: 1.55em;
text-align: justify;
white-space: normal;
overflow: visible;
width: 100%;
text-shadow: 0 1px 3px #000000aa;
}
.race-info {
margin-top: 10px;
padding: 12px;
border: 1px solid #7a4b2f;
border-radius: 6px;
font-size: 0.95em;
/* Background color for readability */
background-color: rgba(31, 20, 14, 0.85);
color: #d8c18a;
text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.info-row {
margin: 6px 0;
}
.info-label {
font-weight: bold;
}
.race-card a {
display: inline-block;
padding: 8px 18px;
margin-top: 12px;
background: rgba(0, 0, 0, 0.6);
color: #fff !important;
border-radius: 25px;
font-weight: bold;
text-decoration: none;
border: 1px solid rgba(255, 255, 255, 0.4);
transition: 0.2s;
}
.race-card a:hover {
background: rgba(255, 255, 255, 0.85);
color: #000 !important;
border-color: #fff;
}