MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 127: | Line 127: | ||
--sv-modules-band-b: var(--sv-module-box-b); | --sv-modules-band-b: var(--sv-module-box-b); | ||
/* | /* Pills */ | ||
--sv-pill-a: rgba(120, 175, 255, 0.92); | --sv-pill-a: rgba(120, 175, 255, 0.92); | ||
--sv-pill-b: rgba(70, 140, 255, 0.88); | --sv-pill-b: rgba(70, 140, 255, 0.88); | ||
/* Text tuning */ | |||
--sv-text-soft: rgba(255, 255, 255, 0.92); | --sv-text-soft: rgba(255, 255, 255, 0.92); | ||
--sv-text-outline: | --sv-text-outline: | ||
| Line 138: | Line 138: | ||
1px 0 0 rgba(0,0,0,0.55), | 1px 0 0 rgba(0,0,0,0.55), | ||
-1px 0 0 rgba(0,0,0,0.55); | -1px 0 0 rgba(0,0,0,0.55); | ||
} | |||
table.spiritvale-skill-infobox, | table.spiritvale-skill-infobox, | ||
| Line 243: | Line 243: | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
SKILLS: Hero Bar (2-slot top bar) | SKILLS: Hero Bar (2-slot top bar) | ||
- | - Desktop: 2 columns (two real cells) | ||
- | - Mobile: 1 column (module 2 stacks under module 1) | ||
--------------------------------------------------------- */ | --------------------------------------------------------- */ | ||
table.spiritvale-skill-infobox .hero-bar-grid { | table.spiritvale-skill-infobox .hero-bar-grid { | ||
width: 100%; | width: 100%; | ||
display: | display: grid; | ||
grid-template-columns: 1fr 1fr; | |||
align-items: center; | align-items: center; | ||
gap: 0.9em; | gap: 0.9em; | ||
} | } | ||
table.spiritvale-skill-infobox .hero-bar-module { | table.spiritvale-skill-infobox .hero-bar-module { | ||
min-width: 0; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; /* center inside its own herobar cell */ | |||
text-align: center; | |||
justify-content: | |||
text-align: | |||
} | } | ||
| Line 274: | Line 265: | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: | justify-content: center; | ||
gap: 0.65em; | gap: 0.65em; | ||
} | } | ||
table.spiritvale-skill-infobox .sv-herobar-icon { | table.spiritvale-skill-infobox .sv-herobar-icon { line-height: 0; } | ||
table.spiritvale-skill-infobox .sv-herobar-icon img { vertical-align: middle; } | |||
} | |||
table.spiritvale-skill-infobox .sv-herobar-icon img { | |||
} | |||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
| Line 362: | Line 348: | ||
/* Desktop grid borders */ | /* Desktop grid borders */ | ||
table.spiritvale-skill-infobox .hero-module:nth-child(-n + 2) { | table.spiritvale-skill-infobox .hero-module:nth-child(-n + 2) { border-top: none; } | ||
table.spiritvale-skill-infobox .hero-module:nth-child(odd) { border-left: none; } | |||
} | |||
table.spiritvale-skill-infobox .hero-module:nth-child(odd) { | |||
} | |||
table.spiritvale-skill-infobox .hero-module-empty .hero-module-body { | table.spiritvale-skill-infobox .hero-module-empty .hero-module-body { | ||
| Line 374: | Line 356: | ||
/* ------------------------------------------------------------ | /* ------------------------------------------------------------ | ||
Centering: each tile centers its own contents | |||
--------------------------------------------------------- */ | --------------------------------------------------------- */ | ||
table.spiritvale-skill-infobox .hero-module .hero-module-body { | |||
width: 100%; | |||
- | height: 100%; | ||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
text-align: center; | |||
} | } | ||
/* Text tuning: soften white + subtle outline (hero tiles + herobar) */ | /* ------------------------------------------------------------ | ||
Text tuning: soften white + subtle outline (hero tiles + herobar) | |||
--------------------------------------------------------- */ | |||
table.spiritvale-skill-infobox .hero-module, | table.spiritvale-skill-infobox .hero-module, | ||
table.spiritvale-skill-infobox .hero-module *, | table.spiritvale-skill-infobox .hero-module *, | ||
| Line 393: | Line 378: | ||
} | } | ||
table.spiritvale-skill-infobox > tbody > tr.sv-hero-title-row, | table.spiritvale-skill-infobox > tbody > tr.sv-hero-title-row, | ||
table.spiritvale-skill-infobox > tbody > tr.sv-hero-desc-row { | table.spiritvale-skill-infobox > tbody > tr.sv-hero-desc-row { | ||
| Line 423: | Line 407: | ||
table.spiritvale-skill-infobox .module-level-selector .sv-level-ui-single .sv-level-slider-single { | table.spiritvale-skill-infobox .module-level-selector .sv-level-ui-single .sv-level-slider-single { | ||
min-height: 0.45em; | min-height: 0.45em; | ||
} | } | ||
| Line 440: | Line 414: | ||
table.spiritvale-skill-infobox .hero-module.module-skill-type .hero-module-body { | table.spiritvale-skill-infobox .hero-module.module-skill-type .hero-module-body { | ||
height: 100%; | height: 100%; | ||
width: 100%; | width: 100%; | ||
} | } | ||
| Line 480: | Line 451: | ||
line-height: 1.15; | line-height: 1.15; | ||
background: linear-gradient(180deg, var(--sv-pill-a), var(--sv-pill-b)); | background: linear-gradient(180deg, var(--sv-pill-a), var(--sv-pill-b)); | ||
} | } | ||
| Line 500: | Line 470: | ||
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%; | ||
width: 100%; | |||
} | } | ||
| Line 554: | Line 522: | ||
line-height: 1.15; | line-height: 1.15; | ||
background: linear-gradient(180deg, var(--sv-pill-a), var(--sv-pill-b)); | background: linear-gradient(180deg, var(--sv-pill-a), var(--sv-pill-b)); | ||
} | } | ||
| Line 590: | Line 557: | ||
table.spiritvale-skill-infobox .hero-module.module-quick-stats .hero-module-body { | table.spiritvale-skill-infobox .hero-module.module-quick-stats .hero-module-body { | ||
height: 100%; | height: 100%; | ||
width: 100%; | width: 100%; | ||
} | } | ||
| Line 630: | Line 594: | ||
line-height: 1.15; | line-height: 1.15; | ||
background: linear-gradient(180deg, var(--sv-pill-a), var(--sv-pill-b)); | background: linear-gradient(180deg, var(--sv-pill-a), var(--sv-pill-b)); | ||
} | } | ||
| Line 648: | Line 611: | ||
Mobile behavior | Mobile behavior | ||
- KEEP the hero modules as a 2x2 grid (four squares) | - KEEP the hero modules as a 2x2 grid (four squares) | ||
- | - Herobar 2 stacks under herobar 1 (above description) | ||
- Pills shrink in WIDTH (not font size) | - Pills shrink in WIDTH (not font size) | ||
- Module 4 stays 2 columns | - Module 4 stays 2 columns | ||
--------------------------------------------------------- */ | --------------------------------------------------------- */ | ||
@media (max-width: 560px) { | @media (max-width: 560px) { | ||
/* | /* Herobar: stack slot 2 under slot 1 (still inside title bar) */ | ||
table.spiritvale-skill-infobox .hero-bar-grid { | table.spiritvale-skill-infobox .hero-bar-grid { | ||
grid-template-columns: 1fr; | |||
row-gap: 0.45em; | |||
} | } | ||