MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
Madammagicka (talk | contribs) No edit summary Tag: Manual revert |
Madammagicka (talk | contribs) No edit summary |
||
| Line 137: | Line 137: | ||
} | } | ||
/* ======= WARHAMMER FANTASY RACE CARDS ======= */ | |||
/* ======= WARHAMMER FANTASY RACE CARDS (FULL-CARD IMAGE VERSION) ======= */ | |||
/* Page heading */ | /* Page heading */ | ||
| Line 144: | Line 146: | ||
font-size: 3.5em; | font-size: 3.5em; | ||
font-family: 'Warsaw', serif; | font-family: 'Warsaw', serif; | ||
color: #d8a86e; | color: #d8a86e; | ||
text-shadow: 3px 3px 6px #000000cc; | text-shadow: 3px 3px 6px #000000cc; | ||
margin-bottom: 50px; | margin-bottom: 50px; | ||
| Line 163: | Line 165: | ||
} | } | ||
/* Grid layout: 4 columns */ | |||
/* Grid layout */ | |||
.race-grid { | .race-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, 1fr); | ||
gap: 20px; | gap: 20px; | ||
} | } | ||
/* ===== Base Card Styling ===== */ | /* ===== Base Card Styling ===== */ | ||
.race-card { | .race-card { | ||
position: relative; | |||
overflow: hidden; | |||
border-radius: 12px; | border-radius: 12px; | ||
cursor: pointer; /* makes entire card clickable */ | |||
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; | ||
} | |||
/* Full-card background image */ | |||
.race-card .race-image-background { | |||
position: absolute; | |||
top: 0; left: 0; right: 0; bottom: 0; | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
filter: blur(4px) brightness(0.6); | |||
z-index: 0; | |||
} | |||
/* Overlay info */ | |||
.race-card .race-info { | |||
position: relative; | position: relative; | ||
color: | z-index: 1; | ||
padding: 15px; | |||
color: white; | |||
display: flex; | |||
flex-direction: column; | |||
background | justify-content: flex-start; | ||
height: 100%; | |||
background: rgba(0,0,0,0.3); /* semi-transparent overlay */ | |||
backdrop-filter: blur(6px); | |||
} | } | ||
/* Race title */ | /* Race title */ | ||
.race-title { | .race-card .race-title { | ||
font-size: 1.8em; | font-size: 1.8em; | ||
font-weight: bold; | font-weight: bold; | ||
margin-bottom: 10px; | |||
margin-bottom: | color: white; | ||
text-shadow: 2px 2px 6px #000000bb; | text-shadow: 2px 2px 6px #000000bb; | ||
} | } | ||
.info-row { | /* Info rows */ | ||
margin: 6px | .race-card .info-row { | ||
margin-bottom: 6px; | |||
} | } | ||
.info-label { | .race-card .info-label { | ||
font-weight: bold; | font-weight: bold; | ||
color: #e0b77a; | color: #e0b77a; | ||
} | } | ||
Revision as of 18:41, 27 November 2025
/* ---------- 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 (FULL-CARD IMAGE VERSION) ======= */
/* Page heading */
.race-page h2 {
text-align: center;
font-size: 3.5em;
font-family: 'Warsaw', serif;
color: #d8a86e;
text-shadow: 3px 3px 6px #000000cc;
margin-bottom: 50px;
letter-spacing: 3px;
}
/* Page styling */
.race-page {
font-family: 'Warsaw', "Blackletter", "Cinzel", serif;
padding: 40px;
background: linear-gradient(135deg, #1a0f07, #2a1b0d);
border: 3px double #7a4b2f;
border-radius: 12px;
box-shadow: 0 0 40px rgba(0,0,0,0.85);
color: #d8c18a;
background-size: cover;
background-blend-mode: multiply;
}
/* Grid layout: 4 columns */
.race-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
/* ===== Base Card Styling ===== */
.race-card {
position: relative;
overflow: hidden;
border-radius: 12px;
cursor: pointer; /* makes entire card clickable */
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;
}
/* Full-card background image */
.race-card .race-image-background {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
width: 100%;
height: 100%;
object-fit: cover;
filter: blur(4px) brightness(0.6);
z-index: 0;
}
/* Overlay info */
.race-card .race-info {
position: relative;
z-index: 1;
padding: 15px;
color: white;
display: flex;
flex-direction: column;
justify-content: flex-start;
height: 100%;
background: rgba(0,0,0,0.3); /* semi-transparent overlay */
backdrop-filter: blur(6px);
}
/* Race title */
.race-card .race-title {
font-size: 1.8em;
font-weight: bold;
margin-bottom: 10px;
color: white;
text-shadow: 2px 2px 6px #000000bb;
}
/* Info rows */
.race-card .info-row {
margin-bottom: 6px;
}
.race-card .info-label {
font-weight: bold;
color: #e0b77a;
}