From 5a8f36c2e0e7b87a2d4bf5046557d107c78f601f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=87ince?= Date: Fri, 10 Jan 2025 15:00:10 -0800 Subject: [PATCH] PF1 Community - monster statblock parse button fixed. - small css culling and combining - linter formatting adjustments to js modules --- Pathfinder Community/pathfinder_community.css | 48 ++--- .../pathfinder_community.html | 190 ++++++++++-------- 2 files changed, 114 insertions(+), 124 deletions(-) diff --git a/Pathfinder Community/pathfinder_community.css b/Pathfinder Community/pathfinder_community.css index 1fcf46a52e07..2a70cd1637f5 100644 --- a/Pathfinder Community/pathfinder_community.css +++ b/Pathfinder Community/pathfinder_community.css @@ -59,11 +59,6 @@ border-radius: 6px; } -.charsheet .details-box .small-label2 { - height: auto; - display: inline-grid; -} - .charsheet .section-roll_templates { display: none; opacity: 0; @@ -503,10 +498,6 @@ overflow-x: visible; } -.charsheet .experience { - margin-top: .5em; -} - /* in all pages mode, put margin above h1 except first page*/ .charsheet .tab99:checked ~ .section:not(.section-core) h1 { margin-top: 1em; @@ -522,17 +513,7 @@ margin-bottom: .5em; } -.charsheet .section-spellclass { - padding-top: .33em; -} - -.charsheet .iterative_attack_section { - margin-left: 0.2rem; -} - .charsheet .currency .table { - display: inline-block; - vertical-align: top; border: 0.1rem solid DarkGray; width: 50%; } @@ -585,9 +566,9 @@ .charsheet .pf-border { border: 0.1rem solid #d3d3d3; + border-radius: 0.5rem; box-sizing: content-box; padding: .5em .5em 0 .5em; - border-radius: 0.5rem; } .charsheet h1, @@ -2258,10 +2239,12 @@ also need 1 more level in selector or base css will override border */ position: relative; } -/* the label underneath button*/ -.charsheet .small-label2 > .csstextbutton + span + span, -.charsheet .small-label2 > .cssbutton + span + span { - display: block; +.charsheet label input.cssbutton, +.charsheet label input.csstextbutton { + display: flex; + min-width: -webkit-fill-available; + position: absolute; + width: -webkit-fill-available; } .charsheet .csstextbutton, @@ -2334,7 +2317,6 @@ also need 1 more level in selector or base css will override border */ color: darkslategray; } - .charsheet .showarrow.npc-details-show + .showsect::before { color: White; padding-left: .5em; @@ -2835,10 +2817,6 @@ span[data-i18n-title="display-settings-config"]:has(input.cssbutton:not(:checked .charsheet .newtemplate-button + span::before { content: '✚'; /*'⛨☤';*/ - vertical-align: top; - padding: 0.1rem 0.2rem 0.1rem 0.1rem; - width: 1.6em; - height: 1.6em; } .charsheet .newbuff-button + span::before { @@ -3214,9 +3192,11 @@ span[data-i18n-title="display-settings-config"]:has(input.cssbutton:not(:checked } .charsheet .compendium-note { + align-items: center; + display: flex; float: right; - text-align: right; - margin-top: .25em; + max-height: 2rem; + position: relative; } .charsheet .vertical-middle { @@ -3423,10 +3403,6 @@ span[data-i18n-title="display-settings-config"]:has(input.cssbutton:not(:checked white-space: normal; } -.charsheet .spell-options .table-row .table-cell label { - display: flex; -} - .charsheet .readonly-show:not(:checked) ~ .main .options-readonly, .charsheet .readonly-show:not(:checked) ~ .main .options-readonly .table-cell { background-color: WhiteSmoke; @@ -4395,6 +4371,7 @@ span[data-i18n-title="display-settings-config"]:has(input.cssbutton:not(:checked text-align: left; } +.charsheet .attack-options .table-row .table-cell label, .charsheet .spell-options .table-row .table-cell label { display: flex; } @@ -4642,6 +4619,7 @@ span[data-i18n-title="display-settings-config"]:has(input.cssbutton:not(:checked .charsheet .extra-show:checked ~ div .extra-sect-inverse, /* buttons */ .charsheet .progress-show:not(:checked) ~ .progress-icon, +.charsheet label:has(.progress-show:not(:checked)) ~ .progress-icon, .charsheet .use-size-show:not(:checked) ~ .use-size, .charsheet .use-size-show:checked ~ .dont-use-size, .charsheet .use-size-show:not(:checked) ~ .repeating-fields .use-size, diff --git a/Pathfinder Community/pathfinder_community.html b/Pathfinder Community/pathfinder_community.html index 815334b854fc..4c8a10a4a486 100644 --- a/Pathfinder Community/pathfinder_community.html +++ b/Pathfinder Community/pathfinder_community.html @@ -26,6 +26,7 @@

New Features and Updates

    +
  1. Fixed Monster Statblock parser button. The hot spot(hidden input) was no longer located under the button.
  2. Fixed a bug where adding a new spell would not show the spells #prep field. Found a typo in the PFSpells.js module that caused the caster type toggle from triggering the css to hide/show the #prep field for preppared casters. (thank you Polloneitor)
  3. Moved the PF logo, sheet type label(ie PC || NPC/Monster), recalc, mode, and settings buttons to the upper right of the sheet.
  4. Made adjustments to fix margin and padding issues when switching sheet backgrounds.
  5. @@ -1985,11 +1986,11 @@