Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Join the Playtest on Steam Now: SpiritVale

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
(12 intermediate revisions by the same user not shown)
Line 91: Line 91:
}
}


/* Optional: float single infoboxes on wide screens.
/* Top "hero" row: icon+name on left, description on right */
  (Lists of many boxes will still stack nicely.) */
table.spiritvale-skill-infobox > tbody > tr.spiritvale-infobox-main > th,
/*
table.spiritvale-skill-infobox > tbody > tr.spiritvale-infobox-main > td,
@media (min-width: 960px) {
table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > th,
    table.spiritvale-skill-infobox,
table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > td {
    table.spiritvale-passive-infobox {
        float: right;
        margin: 0 0 1.5em 1.5em;
    }
}
*/
 
/* Header row: icon + name */
table.spiritvale-skill-infobox > tbody > tr:first-child > th,
table.spiritvale-passive-infobox > tbody > tr:first-child > th {
     background: linear-gradient(135deg, #7a6fb0, #372b54);
     background: linear-gradient(135deg, #7a6fb0, #372b54);
     color: #fff;
     color: #fff;
     padding: 0.75em 1em;
     padding: 0.9em 1.1em;
    font-size: 1.1em;
     text-align: center;
     line-height: 1.3;
     vertical-align: middle;
     text-align: left;
}
}


Line 132: Line 121:
}
}


/* Default label cells */
/* Default label cells (exclude hero row so names never clip) */
table.spiritvale-skill-infobox tbody tr th:not(.spiritvale-infobox-section-header),
table.spiritvale-skill-infobox tbody tr:not(.spiritvale-infobox-main) th:not(.spiritvale-infobox-section-header),
table.spiritvale-passive-infobox tbody tr th:not(.spiritvale-infobox-section-header) {
table.spiritvale-passive-infobox tbody tr:not(.spiritvale-infobox-main) th:not(.spiritvale-infobox-section-header) {
     width: 26%;
     width: 26%;
     padding: 0.45em 0.85em;
     padding: 0.45em 0.85em;
Line 155: Line 144:
table.spiritvale-passive-infobox tbody tr:nth-child(odd) th:not(.spiritvale-infobox-section-header) {
table.spiritvale-passive-infobox tbody tr:nth-child(odd) th:not(.spiritvale-infobox-section-header) {
     background-color: rgba(148, 163, 184, 0.05);
     background-color: rgba(148, 163, 184, 0.05);
}
/* Section headers inside infobox (e.g. "General", "Type", "Mechanics") */
.spiritvale-infobox-section-header {
    background: linear-gradient(135deg, #5a4e7c, #372b54);
    color: #fff;
    text-align: left;
    padding: 0.5em 0.9em;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
/* Left side: icon + name */
.spiritvale-infobox-main-left-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
}
.spiritvale-infobox-title {
    font-size: 1.25em;
    font-weight: 600;
}
/* Right side: big italic description */
.spiritvale-infobox-main-right-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}
.spiritvale-infobox-description {
    font-size: 1.05em;
    font-style: italic;
    text-align: center;
    max-width: 32em;
    margin: 0 auto;
}
/* ============================================================
  SpiritVale: Passives (single source of truth)
  - Fixed, consistent desktop width
  - Centered body cells
  - Mobile hero stays side-by-side (no stacking)
  ========================================================== */
/* Desktop tooltip width knob */
:root { --sv-passive-width: 540px; }
/* Consistent tooltip footprint for ALL passives (desktop) */
table.spiritvale-passive-infobox {
    width: var(--sv-passive-width);
    max-width: var(--sv-passive-width); /* <-- important: makes desktop actually widen */
    margin: 1em auto;
    table-layout: fixed;
}
/* Keep hero row healthy: allow wrapping in the hero title area */
table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > th {
    width: 42%;
    white-space: normal;
}
table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > td {
    width: 58%;
}
/* Center + wrap ALL non-hero rows */
table.spiritvale-passive-infobox tbody tr:not(.spiritvale-infobox-main) th,
table.spiritvale-passive-infobox tbody tr:not(.spiritvale-infobox-main) td {
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* Allow label column to wrap (generic CSS defaults it to nowrap) */
table.spiritvale-passive-infobox tbody tr:not(.spiritvale-infobox-main)
th:not(.spiritvale-infobox-section-header) {
    white-space: normal;
}
/* Center section headers for passives */
table.spiritvale-passive-infobox .spiritvale-infobox-section-header {
    text-align: center;
}
/* Prevent description max-width from pushing weird layout at small widths */
table.spiritvale-passive-infobox .spiritvale-infobox-description {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* Passive list layout */
.spiritvale-passive-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25em;
}
/* Citizen/table wrappers: remove the “mystery outline” around some passives in lists */
.spiritvale-passive-list .mw-table-wrapper,
.spiritvale-passive-list .table-overflow,
.spiritvale-passive-list .table-scroll,
.spiritvale-passive-list .citizen-table {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* Mobile / portrait / small tablets (Citizen): keep hero row side-by-side */
@media (max-width: 768px) {
    body.skin-citizen table.spiritvale-passive-infobox {
        width: 100%;
        max-width: 100%;
        display: table !important;
    }
    body.skin-citizen table.spiritvale-passive-infobox > tbody {
        display: table-row-group !important;
    }
    body.skin-citizen table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main {
        display: table-row !important;
    }
    body.skin-citizen table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > th,
    body.skin-citizen table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > td {
        display: table-cell !important;
        float: none !important;
        box-sizing: border-box;
        vertical-align: middle;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    body.skin-citizen table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > th {
        width: 46% !important;
        padding: 0.75em 0.75em;
    }
    body.skin-citizen table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > td {
        width: 54% !important;
        padding: 0.75em 0.75em;
    }
    body.skin-citizen table.spiritvale-passive-infobox > tbody > tr.spiritvale-infobox-main > th .image img {
        width: 64px !important;
        height: auto !important;
    }
    body.skin-citizen table.spiritvale-passive-infobox .spiritvale-infobox-title,
    body.skin-citizen table.spiritvale-passive-infobox .spiritvale-infobox-description {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
}