diff --git a/css/journal.css b/css/journal.css index 6f6a19dec..08bb3769c 100644 --- a/css/journal.css +++ b/css/journal.css @@ -922,3 +922,190 @@ div.ddbimporter-image-popout img { .mcdm-epigraph-red p:not(:last-of-type) { --theme-page-fg-color: #6b2424; } + +.ddb .stat-block { + --sb-monster-header-underline: #7a3c2f; + border: 1px solid #a7a3a0; + background-color: #fefcef; + padding: 10px; + position: relative; + background-repeat: no-repeat; + box-shadow: 0 5px 8px 0 var(--sb-stat-block-shadow, #aaa); + background-position: top; + background: var(--sb-stat-block-bg-override, #f6f3ee); + font-size: 16px; + line-height: 19.6px; + border-radius: 8px; + outline: 1px solid #a7a3a0; + outline-offset: -4px; + font-family: var(--sb-stat-block-font, Roboto, Helvetica, sans-serif); + columns: 2 384px; + + :is(h2, h3, h4, h5) { + font-size: 22px; + font-family: "Roboto Condensed"; + text-transform: uppercase; + font-weight: bold; + margin-right: 8px; + margin-block-start: 0.45rem; + margin-block-end: 0; + + &::after { + content: ""; + display: block; + width: 100%; + margin: 2px auto 8px; + height: 1px; + background: var(--sb-monster-header-underline, #7a3c2f); + column-span: all; + } + } + + p { + break-inside: avoid; + font-size: 15px; + line-height: 1.4; + margin-bottom: 0; + + + p { + margin-top: 10px; + } + } + + p:first-of-type { + margin-top: 0; + font-style: italic; + opacity: 0.7; + + + p { + margin-top: 16px; + } + } + + :is(ol, ul, dl) { + margin-bottom: 0; + padding-top: 0; + } + + .monster-header { + padding-top: 4px; + letter-spacing: 0.35px; + font-weight: 500; + color: var(--sb-monster-header-color, #5b160c); + font-size: var(--sb-monster-trait-header-size, 18px); + font-family: var( + --sb-monster-trait-header-font, + "Roboto Condensed", + Helvetica, + sans-serif + ); + border-bottom: 2px solid var(--sb-monster-header-underline, #7a3c2f); + + + p { + break-before: avoid; + } + } + + .stats { + display: flex; + gap: 10px; + + table.abilities-saves { + --sb-theme-table-row-color: transparent; + flex: 1 1 auto; + line-height: 24px; + background: revert; + border: none; + font-size: 14px; + break-inside: avoid; + + &.physical { + --sb-stats-score: #ede6d9; + --sb-stats-mods: #ded4cc; + --sb-stats-score-hover: #997f6d7d; + --sb-stats-mods-hover: #996d727d; + } + + &.mental { + --sb-stats-score: #d8dad1; + --sb-stats-mods: #d0caca; + --sb-stats-score-hover: #6d8d997d; + --sb-stats-mods-hover: #756d997d; + } + + thead { + border: none; + height: revert; + min-height: 45px; + + tr { + height: revert; + min-height: 45px; + } + + tr th { + padding: 5px 2px 0 !important; + background: inherit; + color: inherit; + vertical-align: bottom; + border: none; + text-transform: uppercase; + font-weight: 500; + font-size: 14px; + } + } + + tbody { + border: none; + + tr { + background-color: var(--sb-theme-table-row-color, #fdfdfd); + color: var(--sb-theme-table-header-fg-color, #222); + + &:hover { + background-color: var(--sb-stats-hover); + + *:nth-child(-n + 3) { + background-color: var(--sb-stats-score-hover); + } + + *:nth-child(n + 3) { + background-color: var(--sb-stats-mods-hover); + } + } + + *:nth-child(-n + 3) { + background-color: var(--sb-stats-score); + } + + *:nth-child(n + 3) { + background-color: var(--sb-stats-mods); + } + } + + th { + text-transform: uppercase; + font-weight: bold; + border: none; + padding-left: 3px; + font-size: 15px; + } + + td { + min-width: revert; + padding: 5px 6px !important; + border: none; + font-size: 15px; + } + } + + tr :is(th, td) { + transition: 0.3s; + } + } + } + + p:nth-of-type(2) strong + strong { + margin-left: 30px; + } +} diff --git a/src/parser/spells/DDBSpell.js b/src/parser/spells/DDBSpell.js index 8b1403d5e..2308f3d5c 100644 --- a/src/parser/spells/DDBSpell.js +++ b/src/parser/spells/DDBSpell.js @@ -725,7 +725,7 @@ export default class DDBSpell { this.ddbCompanionFactory = new DDBCompanionFactory(this.spellDefinition.description, { type: "spell", originDocument: this.data, - is204: this.is2014, + is2014: this.is2014, }); await this.ddbCompanionFactory.parse(); // always update compendium imports, but respect player import disable