Template:Variants/styles.css: Difference between revisions
Template page
More actions
Admin Jeremy (talk | contribs) No edit summary |
Admin Jeremy (talk | contribs) No edit summary |
||
| Line 130: | Line 130: | ||
.vpvg-reqcell { | .vpvg-reqcell { | ||
text-align: left; | text-align: left; | ||
} | } | ||
| Line 170: | Line 164: | ||
} | } | ||
/* | /* ========================= | ||
.vpvg-mini-box .vpvg- | Links inside mini boxes | ||
========================= */ | |||
.vpvg-mini-box a:not(.new):not(.mw-new) { | |||
color: #ffe680; | |||
} | |||
.vpvg-mini-box a:not(.new):not(.mw-new):visited { | |||
color: #dbaf39; | |||
} | |||
.vpvg-mini-box a:not(.new):not(.mw-new):hover, | |||
.vpvg-mini-box a:not(.new):not(.mw-new):focus { | |||
color: #fff; | |||
text-decoration: underline; | |||
} | } | ||
/* | /* Redlinks stay standard */ | ||
.vpvg- | .vpvg-mini-box a.new, | ||
.vpvg-mini-box a.mw-new { | |||
color: #ff6b6b; | |||
} | } | ||
Revision as of 13:38, 5 March 2026
/* Main grid layout */
.vpvg-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1.2em;
margin: 1em 0;
}
/* Individual variant column */
.vpvg-col {
background: #f8f6f1;
border: 2px solid #c7bfae;
border-radius: 10px;
padding: 0.8em;
text-align: center;
}
/* Variant title */
.vpvg-title {
font-weight: bold;
font-size: 1.15em;
margin-bottom: 0.5em;
}
/* Image block */
.vpvg-image img {
max-width: 160px;
height: auto;
margin-bottom: 0.6em;
}
/* Requirement rows */
.vpvg-req {
font-weight: 600;
margin: 0.3em 0;
line-height: 1.3;
}
/* Game label */
.vpvg-game {
font-weight: bold;
}
/* Game color coding */
.vpvg-req.vp1 {
color: #2c6b4f;
}
.vpvg-req.tip {
color: #4a4fb8;
}
.vpvg-req.pp {
color: #a67c00;
}
/* Item icons inside requirements */
.vpvg-req img {
width: 28px;
height: 28px;
vertical-align: middle;
margin-right: 0.3em;
}
/* Icon + quantity styling */
.vpvg-req img {
width: 24px;
height: 24px;
vertical-align: middle;
}
/* Item container */
.vpvg-item {
display: inline-flex;
align-items: center;
gap: 4px;
margin-right: 6px;
}
/* =========================
Requirement Mini Table
========================= */
.vpvg-reqtable {
width: 100%;
border-collapse: collapse;
margin-top: 0.6em;
font-weight: 600;
font-size: 0.95em;
}
.vpvg-reqtable td {
padding: 4px 6px;
vertical-align: middle;
}
/* Left game column */
.vpvg-gamecell {
width: 48px;
text-align: center;
font-weight: bold;
color: #222;
border-right: 1px solid #ddd;
}
/* Right requirement column */
.vpvg-reqcell {
text-align: left;
}
/* VP1 — Green */
.vpvg-row.vp1 .vpvg-gamecell {
background: #d6eee0;
}
/* TIP — Blue */
.vpvg-row.tip .vpvg-gamecell {
background: #dde0f7;
}
/* PP — Yellow */
.vpvg-row.pp .vpvg-gamecell {
background: #fff0c9;
}
/* =========================
Variant Mini Requirement Boxes
========================= */
.vpvg-reqcell {
text-align: left;
}
/* Icon outside the box */
.vpvg-icon {
margin-right: 4px;
}
.vpvg-icon img {
width: 22px;
height: 22px;
vertical-align: middle;
filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.4));
}
/* Mini requirement box */
.vpvg-mini-box {
display: inline-block;
background: var(--vp-journal-bg);
color: var(--vp-journal-text);
border: 2px solid var(--vp-journal-border);
border-radius: 6px;
padding: 2px 6px;
margin-right: 4px;
font-weight: 600;
font-size: 0.9em;
line-height: 1.2;
text-shadow: 1px 1px 2px #003366;
}
/* =========================
Links inside mini boxes
========================= */
.vpvg-mini-box a:not(.new):not(.mw-new) {
color: #ffe680;
}
.vpvg-mini-box a:not(.new):not(.mw-new):visited {
color: #dbaf39;
}
.vpvg-mini-box a:not(.new):not(.mw-new):hover,
.vpvg-mini-box a:not(.new):not(.mw-new):focus {
color: #fff;
text-decoration: underline;
}
/* Redlinks stay standard */
.vpvg-mini-box a.new,
.vpvg-mini-box a.mw-new {
color: #ff6b6b;
}