MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 474: | Line 474: | ||
word-break: break-word; | word-break: break-word; | ||
} | } | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
SKILLS: Module 3 – Skill Source ( | SKILLS: Module 3 – Skill Source (Modifier + Source + Scaling) | ||
- Optional Modifier column (hidden if empty) | |||
- Titles aligned (no drifting when scaling list grows) | |||
- Modifier value and Source value match in size/weight | |||
--------------------------------------------------------- */ | --------------------------------------------------------- */ | ||
/* Center the entire module contents within the tile */ | |||
table.spiritvale-skill-infobox .hero-module.skill-source-module .hero-module-body { | table.spiritvale-skill-infobox .hero-module.skill-source-module .hero-module-body { | ||
height: 100%; | height: 100%; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; /* vertical center of the grid block */ | ||
justify-content: center; | justify-content: center; /* horizontal center */ | ||
} | } | ||
/* | /* Grid container */ | ||
table.spiritvale-skill-infobox .skill-source-module .sv-source-grid { | table.spiritvale-skill-infobox .skill-source-module .sv-source-grid { | ||
width: 100%; | width: 100%; | ||
| Line 496: | Line 496: | ||
display: grid; | display: grid; | ||
gap: 0.55em; | |||
align-items: | /* Critical: keep pill titles aligned across columns */ | ||
align-items: start; | |||
justify-items: center; | justify-items: center; | ||
} | } | ||
/* | /* Layout variants (driven by classes from Lua) */ | ||
table.spiritvale-skill-infobox .skill-source-module .sv-source- | table.spiritvale-skill-infobox .hero-module.skill-source-module.sv-has-mod .sv-source-grid { | ||
grid-template-columns: 0.85fr 1fr 1fr; /* Modifier | Source | Scaling */ | |||
} | |||
table.spiritvale-skill-infobox .hero-module.skill-source-module.sv-no-mod .sv-source-grid { | |||
grid-template-columns: 1fr 1fr; /* Source | Scaling */ | |||
} | } | ||
/* | /* Only one content column (Source-only or Scaling-only) */ | ||
table.spiritvale-skill-infobox .skill-source-module .sv-source | table.spiritvale-skill-infobox .hero-module.skill-source-module.sv-only-source.sv-no-mod .sv-source-grid, | ||
table.spiritvale-skill-infobox .hero-module.skill-source-module.sv-only-scaling.sv-no-mod .sv-source-grid { | |||
grid-template-columns: 1fr; | |||
table.spiritvale-skill-infobox .skill-source-module .sv- | |||
grid-template-columns: | |||
} | } | ||
/* | /* Modifier + only one content column */ | ||
table.spiritvale-skill-infobox .skill-source-module.sv- | table.spiritvale-skill-infobox .hero-module.skill-source-module.sv-only-source.sv-has-mod .sv-source-grid, | ||
table.spiritvale-skill-infobox .skill-source-module.sv- | table.spiritvale-skill-infobox .hero-module.skill-source-module.sv-only-scaling.sv-has-mod .sv-source-grid { | ||
grid-template-columns: 0.95fr 1.05fr; | |||
} | } | ||
/* | /* Each column is centered, but pinned to the top for title alignment */ | ||
table.spiritvale-skill-infobox .skill-source-module .sv-source- | table.spiritvale-skill-infobox .skill-source-module .sv-source-col { | ||
width: 100%; | width: 100%; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
justify-content: | justify-content: flex-start; /* keeps pill titles parallel */ | ||
text-align: center; | text-align: center; | ||
gap: 0.35em; | |||
} | } | ||
/* Pill styling | /* Pill styling: match Module 2 label treatment */ | ||
table.spiritvale-skill-infobox .skill-source-module .sv-source-pill { | table.spiritvale-skill-infobox .skill-source-module .sv-source-pill { | ||
width: 100%; | width: 100%; | ||
| Line 561: | Line 556: | ||
} | } | ||
/* | /* Modifier value + Source value (MATCHED) */ | ||
table.spiritvale-skill-infobox .skill-source-module .sv- | table.spiritvale-skill-infobox .skill-source-module .sv-modifier-value, | ||
font-weight: | table.spiritvale-skill-infobox .skill-source-module .sv-source-value { | ||
font-weight: 800; | |||
line-height: 1.05; | line-height: 1.05; | ||
font-size: clamp(1.05em, 2.2vw, 1.35em); | |||
/* Wrap “Magic Attack” nicely */ | |||
white-space: normal; | white-space: normal; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
word-break: break-word; | word-break: break-word; | ||
opacity: 0.98; | |||
} | } | ||
/* Scaling list */ | /* Scaling list (smaller than the big values, centered) */ | ||
table.spiritvale-skill-infobox .skill-source-module .sv-scaling-list { | table.spiritvale-skill-infobox .skill-source-module .sv-scaling-list { | ||
display: flex; | display: flex; | ||
| Line 597: | Line 585: | ||
opacity: 0.95; | opacity: 0.95; | ||
} | } | ||