MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 468: | Line 468: | ||
line-height: 1.25; | line-height: 1.25; | ||
white-space: normal; | |||
overflow-wrap: anywhere; | |||
word-break: break-word; | |||
} | |||
/* ------------------------------------------------------------ | |||
SKILLS: Module 3 – Source + Scaling (skill-source-module) | |||
- Two columns: | |||
Left: Source type + BIG value | |||
Right: Scaling list (slightly smaller) | |||
- If only one side exists, becomes single-column | |||
--------------------------------------------------------- */ | |||
/* Center module content inside the tile */ | |||
table.spiritvale-skill-infobox .hero-module.skill-source-module .hero-module-body { | |||
height: 100%; | |||
display: flex; | |||
align-items: center; /* vertical center */ | |||
justify-content: center; /* horizontal center */ | |||
} | |||
/* Two-column grid by default */ | |||
table.spiritvale-skill-infobox .hero-module.skill-source-module .sv-source-grid { | |||
width: 100%; | |||
display: grid; | |||
grid-template-columns: 1fr 1fr; | |||
gap: 0.75em; | |||
align-items: center; | |||
} | |||
/* If only Source OR only Scaling exists, use one column */ | |||
table.spiritvale-skill-infobox .hero-module.skill-source-module.sv-source-only .sv-source-grid { | |||
grid-template-columns: 1fr; | |||
} | |||
/* Column layout */ | |||
table.spiritvale-skill-infobox .hero-module.skill-source-module .sv-source-col { | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: center; | |||
gap: 0.35em; | |||
min-width: 0; | |||
} | |||
/* Titles */ | |||
table.spiritvale-skill-infobox .hero-module.skill-source-module .sv-source-title, | |||
table.spiritvale-skill-infobox .hero-module.skill-source-module .sv-scaling-title { | |||
font-weight: 800; | |||
text-transform: uppercase; | |||
letter-spacing: 0.03em; | |||
font-size: 0.72em; | |||
line-height: 1.15; | |||
opacity: 0.95; | |||
text-align: center; | |||
} | |||
/* BIG source value */ | |||
table.spiritvale-skill-infobox .hero-module.skill-source-module .sv-source-value { | |||
font-size: 1.35em; | |||
font-weight: 800; | |||
line-height: 1.05; | |||
text-align: center; | |||
white-space: normal; | |||
overflow-wrap: anywhere; | |||
word-break: break-word; | |||
} | |||
/* Scaling list (smaller) */ | |||
table.spiritvale-skill-infobox .hero-module.skill-source-module .sv-scaling-list { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 0.25em; | |||
font-size: 0.82em; | |||
line-height: 1.15; | |||
} | |||
/* Scaling rows */ | |||
table.spiritvale-skill-infobox .hero-module.skill-source-module .sv-scaling-item { | |||
text-align: left; | |||
white-space: normal; | white-space: normal; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||