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 78: | Line 78: | ||
} | } | ||
/* | /* ========================= | ||
.vpvg- | Requirement Mini Table | ||
width: | ========================= */ | ||
.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; | vertical-align: middle; | ||
} | } | ||
/* Text | /* Left game column */ | ||
.vpvg- | .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; | |||
} | |||
/* ========================= | |||
Icon + Text | |||
========================= */ | |||
.vpvg-item { | |||
display: inline-flex; | |||
align-items: center; | |||
gap: 4px; | |||
margin-right: 6px; | |||
} | |||
.vpvg-item img { | |||
width: 18px; | |||
height: 18px; | |||
} | } | ||
.vpvg-qty { | .vpvg-qty { | ||
font-size: 0.85em; | font-size: 0.85em; | ||
| Line 97: | Line 146: | ||
} | } | ||
.vpvg-plus { | .vpvg-plus { | ||
margin: 0 6px; | margin: 0 6px; | ||
font-weight: bold; | font-weight: bold; | ||
opacity: 0. | opacity: 0.6; | ||
} | } | ||
Revision as of 12:51, 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;
}
/* =========================
Icon + Text
========================= */
.vpvg-item {
display: inline-flex;
align-items: center;
gap: 4px;
margin-right: 6px;
}
.vpvg-item img {
width: 18px;
height: 18px;
}
.vpvg-qty {
font-size: 0.85em;
margin-left: 2px;
margin-right: 6px;
}
.vpvg-plus {
margin: 0 6px;
font-weight: bold;
opacity: 0.6;
}