MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 316: | Line 316: | ||
/* ============================================================ | /* ============================================================ | ||
SpiritVale: Skills | SpiritVale: Skills | ||
- Fixed max width ( | - Fixed max width (no min width) | ||
- | - List-mode uses ONE wrapper panel (table-like) | ||
- Top band | - Top band (Level Select + Type) centered + balanced | ||
========================================================== */ | ========================================================== */ | ||
/* Desktop width knob for skills | /* Desktop width knob for skills */ | ||
:root { --sv-skill | :root { --sv-skill-width: 660px; } /* tweak as desired */ | ||
/* | /* Single-skill (normal) */ | ||
table.spiritvale-skill-infobox { | table.spiritvale-skill-infobox { | ||
width: 100%; | width: 100%; | ||
max-width: var(--sv-skill | max-width: var(--sv-skill-width); | ||
margin: 1. | margin: 1.25em auto; | ||
table-layout: fixed; | |||
} | } | ||
/* | /* ========================= | ||
. | List-mode wrapper (ONE panel) | ||
========================= */ | |||
.sv-skill-collection { | |||
width: 100%; | |||
max-width: var(--sv-skill-width); | |||
margin: 1.25em auto; | |||
border-radius: 12px; | |||
overflow: hidden; | |||
border: 1px solid rgba(55, 43, 84, 0.65); | |||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); | |||
/* | /* in case something set this to flex elsewhere */ | ||
display: block !important; | |||
} | } | ||
/* Citizen/table wrappers | /* Neutralize Citizen/table wrappers so everything aligns flush */ | ||
. | .sv-skill-collection .mw-table-wrapper, | ||
. | .sv-skill-collection .table-overflow, | ||
. | .sv-skill-collection .table-scroll, | ||
. | .sv-skill-collection .citizen-table { | ||
border: none !important; | border: none !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
| Line 357: | Line 362: | ||
} | } | ||
/* -------- | /* Every skill table inside the wrapper becomes "row-like" */ | ||
.sv-skill-collection table.spiritvale-skill-infobox { | |||
width: 100%; | |||
max-width: 100%; | |||
margin: 0 !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
border-radius: 0 !important; | |||
} | |||
/* Divider between skills (works even if Citizen wraps each table) */ | |||
.sv-skill-collection > * + * { | |||
border-top: 1px solid rgba(148, 163, 184, 0.25); | |||
} | |||
/* ========================= | |||
Skill top band (Level + Type) | |||
========================= */ | |||
table.spiritvale-skill-infobox .sv-topband-cell { | table.spiritvale-skill-infobox .sv-topband-cell { | ||
padding: 0 !important; | padding: 0 !important; | ||
background: linear-gradient( | background: linear-gradient( | ||
135deg, | 135deg, | ||
rgba(90, 78, 124, 0.55), | rgba(90, 78, 124, 0.55), | ||
rgba(55, 43, 84, 0.55) | rgba(55, 43, 84, 0.55) | ||
) !important; /* | ) !important; /* beat zebra */ | ||
} | } | ||
| Line 378: | Line 395: | ||
display: grid; | display: grid; | ||
grid-template-columns: 1fr 1fr; | grid-template-columns: 1fr 1fr; | ||
align-items: stretch; | |||
} | } | ||
/* Left | /* Left/right panels */ | ||
table.spiritvale-skill-infobox .sv-topband-left, | table.spiritvale-skill-infobox .sv-topband-left, | ||
table.spiritvale-skill-infobox .sv-topband-right { | table.spiritvale-skill-infobox .sv-topband-right { | ||
padding: 0.75em 0.9em; | padding: 0.75em 0.9em; | ||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | } | ||
| Line 392: | Line 411: | ||
} | } | ||
/* Level UI */ | /* Level UI: center the whole block so it doesn't hug the left edge */ | ||
table.spiritvale-skill-infobox .sv-level-ui { | table.spiritvale-skill-infobox .sv-level-ui { | ||
width: 100%; | |||
max-width: 280px; /* keeps it centered + avoids wide empty right space */ | |||
margin: 0 auto; | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Line 411: | Line 433: | ||
} | } | ||
table.spiritvale-skill-infobox .sv-level-slider input[type="range"] { | table.spiritvale-skill-infobox .sv-level-slider input[type="range"] { | ||
width: 100%; | width: 100%; | ||
} | } | ||
/* Type list | /* Type list: center the list block within the right half */ | ||
table.spiritvale-skill-infobox .sv-type-box { | table.spiritvale-skill-infobox .sv-type-box { | ||
width: 100%; | |||
max-width: 320px; /* centers it; reduces “dead space” on the right */ | |||
margin: 0 auto; | |||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: 0. | gap: 0.55em; | ||
} | } | ||
table.spiritvale-skill-infobox .sv-type-row { | table.spiritvale-skill-infobox .sv-type-row { | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: auto 1fr; | ||
column-gap: 0. | column-gap: 0.9em; | ||
align-items: baseline; | align-items: baseline; | ||
} | } | ||
table.spiritvale-skill-infobox .sv-type-key { | table.spiritvale-skill-infobox .sv-type-key { | ||
font-weight: 700; | font-weight: 700; | ||
white-space: nowrap; | white-space: nowrap; | ||
| Line 437: | Line 461: | ||
table.spiritvale-skill-infobox .sv-type-val { | table.spiritvale-skill-infobox .sv-type-val { | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
word-break: break-word; | word-break: break-word; | ||
} | } | ||
/* | /* Mobile: stack Level + Type */ | ||
@media (max-width: 560px) { | @media (max-width: 560px) { | ||
table.spiritvale-skill-infobox .sv-skill-topband { | table.spiritvale-skill-infobox .sv-skill-topband { | ||
| Line 451: | Line 474: | ||
border-right: none; | border-right: none; | ||
border-bottom: 1px solid rgba(148, 163, 184, 0.25); | border-bottom: 1px solid rgba(148, 163, 184, 0.25); | ||
} | |||
table.spiritvale-skill-infobox .sv-level-ui, | |||
table.spiritvale-skill-infobox .sv-type-box { | |||
max-width: 100%; | |||
} | } | ||
} | } | ||