Skip to content

Commit

Permalink
Merge pull request #13684 from vince-roll20/PF_Community
Browse files Browse the repository at this point in the history
Pathfinder Community
  • Loading branch information
davidroll20 authored Jan 16, 2025
2 parents e80247a + 6fa84bf commit 5233a02
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 72 deletions.
106 changes: 50 additions & 56 deletions Pathfinder Community/pathfinder_community.css
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,8 @@ pf-wrapper,

.charsheet .monster-indicator label:has(.condition-exists.npc-show:checked):hover,
.charsheet .monster-indicator label:has(.condition-exists.pc-only:not(:checked)):hover {
background-color: #4a648670;
/* background-color: #4a648670; */
background-color: #fff;
outline: 1px solid #4a6486;
}

Expand Down Expand Up @@ -1410,11 +1411,11 @@ also need 1 more level in selector or base css will override border */
background-color: #737373;
margin-bottom: -11rem;
margin-inline: auto;
outline: 4px solid #e20c0c;
outline: 3px solid #e20c0c;
outline-offset: -1px;
position: relative;
top: -2.65em;
width: 93%;
top: -3.5em;
width: 95%;
z-index: 3;
}

Expand Down Expand Up @@ -1708,6 +1709,10 @@ also need 1 more level in selector or base css will override border */
border-radius: 0.4rem;
}

.charsheet button[type="roll"].text-button.sect {
min-width: -webkit-fill-available;
}

.charsheet .skills .table-row .table-cell:first-child {
font-size: 1.6rem;
padding-left: 0;
Expand Down Expand Up @@ -2674,8 +2679,7 @@ also need 1 more level in selector or base css will override border */
.charsheet .showarrow:hover + .showsect::before,
.charsheet .counted:hover + span,
.charsheet .counted:hover + span::before,
.charsheet .mode:hover,
.charsheet .mode:hover ~ span[data-i18n-title="edit-mode-title"],
.charsheet input.readonly-show:hover + span::before,
span[data-i18n-title="recalculate-cmd"]:has(.cssbutton:hover) ~ span[data-i18n-title="recalculate-cmd"],
span[data-i18n-title="display-settings-config"]:has(.cssbutton:checked) ~ span[data-i18n-title="display-settings-config"],
span[data-i18n-title="display-settings-config"]:has(.cssbutton:hover) ~ span[data-i18n-title="display-settings-config"] {
Expand All @@ -2697,7 +2701,6 @@ span[data-i18n-title="display-settings-config"]:has(input.cssbutton:not(:checked

.charsheet .csstextbutton:hover,
.charsheet .csstextbutton:hover + span,
.charsheet .mode:hover ~ span[data-i18n-title="edit-mode-title"] .cssbutton + span::before,
.charsheet .cssbutton:hover,
.charsheet .cssbutton:hover + span::before,
.charsheet .merge-buffs label:has(.cssbutton + .newbuff):hover {
Expand Down Expand Up @@ -2844,54 +2847,36 @@ span[data-i18n-title="display-settings-config"]:has(input.cssbutton:not(:checked
}

.charsheet .configbutton + span::before {
content: '⛭';
content: 'y';
font-family: 'Pictos';
}

.charsheet .cssbutton.readonly-show:checked:hover + span::before,
.charsheet input.readonly-show:hover + span::before,
.charsheet span:has(input.readonly-show:hover) ~ .mode span,
.charsheet .configbutton:checked:hover + span::before {
background-color: white !important;
color: #e20c0c;
}

.charsheet .readonly-show + span::before {
background-color: white !important;
background: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Pathfinder%20Community/Images/edit_mode.png");
content: ' ';
background-repeat: no-repeat !important;
vertical-align: top;
margin: auto;
background-position: center;
background-size: contain;
color: transparent;
}

.charsheet .mode:hover ~ span[data-i18n-title="edit-mode-title"] .readonly-show + span::before,
.charsheet .readonly-show:hover + span::before {
background-color: white !important;
background: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Pathfinder%20Community/Images/edit_mode_red.png");
background-position: center;
background-size: contain;
color: transparent;
.charsheet .cssbutton.readonly-show + span::before {
background-color: white;
content: 'W';
font-family: 'Pictos';
color: initial;
}

.charsheet .readonly-show:checked + span::before {
background: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Pathfinder%20Community/Images/compact_mode.png");
background-color: #4a6486 !important;
background-position: center;
background-size: contain;
color: transparent;
display: grid;
margin: auto;
place-items: center;
position: relative;
border-color: transparent;
.charsheet .cssbutton.readonly-show:checked:hover + span::before,
.charsheet .cssbutton.readonly-show:hover + span::before {
background-color: white;
border: 1px solid #808080;
}

.charsheet .readonly-show:checked:hover + span::before {
background-color: white !important;
background: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Pathfinder%20Community/Images/compact_mode_red.png");
background-position: center;
background-size: contain;
color: transparent;
.charsheet .cssbutton.readonly-show:checked + span::before {
content: 'p';
font-family: 'Pictos';
background-color: #4a6486;
color: #fff;
border: transparent;
}

.charsheet .merge-buffs {
Expand Down Expand Up @@ -3456,8 +3441,8 @@ span[data-i18n-title="display-settings-config"]:has(input.cssbutton:not(:checked
}

/* outline when a condition is in effect */
.charsheet .status-panel:first-child .options:has(input:checked) {
outline: 2px solid #e20c0c;
.charsheet .status-panel:first-child .options:has(.condition-exists:checked) {
outline: 1px solid #e20c0c;
}

.charsheet .status-panel .options div {
Expand Down Expand Up @@ -4402,6 +4387,7 @@ span[data-i18n-title="display-settings-config"]:has(input.cssbutton:not(:checked
font-size: 1.6rem;
margin: auto;
margin-right: 1rem;
margin-top: 0;
max-width: fit-content;
}

Expand Down Expand Up @@ -7178,13 +7164,25 @@ also if multiple repeating sects inside h2 they are 100% wide and only h2 is nar
font-size: .95em;
}

.charsheet .pf-logo {
bottom: -2px;
float: right;
position: relative;
}

.charsheet .pf-logo img {
margin-top: -7px;
max-height: 70px;
width: 175px;
}

.charsheet .mode-and-settings {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
position: relative;
width: 8.5em;
grid-template-columns: 1fr minmax(3.5em, 1fr) 1fr;
margin: auto;
margin-right: 0;
position: relative;
width: 7.75em;
}

.charsheet .mode-and-settings span {
Expand All @@ -7195,10 +7193,6 @@ also if multiple repeating sects inside h2 they are 100% wide and only h2 is nar
}

/*styles sheet mode note*/
.charsheet .mode {
grid-column: 1/-1;
padding-bottom: 1px;
}

.charsheet .mode input.readonly-show {
height: 4em;
Expand All @@ -7210,11 +7204,11 @@ also if multiple repeating sects inside h2 they are 100% wide and only h2 is nar
}

/*hides edit-mode note*/
.charsheet .readonly-show:not(:checked) + span.mode {
.charsheet span:has(.readonly-show:not(:checked)) ~ .mode .edit-mode {
display: none;
}

/*hides compact-mode note*/
.charsheet .readonly-show:checked + span.mode + span.mode {
.charsheet span:has(.readonly-show:checked) ~ .mode .compact-mode {
display: none;
}
31 changes: 15 additions & 16 deletions Pathfinder Community/pathfinder_community.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ <h2 style="margin-top:0;margin-bottom:1em;">
<span data-i18n="new-features">New Features and Updates</span>
</h2>
<ol>
<li>Further refined the view mode, recalc and sheet settings buttons at the top of the sheet.</li>
<li>Fixed the red border on the Conditions panel showing even when there were no active conditions. Also made the border thinner.</li>
<li>Fixed Monster Statblock parser button. The hot spot(hidden input) was no longer located under the button.</li>
<li>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)</li>
<li>Moved the PF logo, sheet type label(ie PC || NPC/Monster), recalc, mode, and settings buttons to the upper right of the sheet.</li>
Expand Down Expand Up @@ -82,11 +84,6 @@ <h2 style="margin-top:0;margin-bottom:1em;">
</div>
<!-- SHEET MODE, RESET, SETTINGS -->
<span class="mode-and-settings">
<span class="mode" data-i18n-title="edit-mode-title" data-i18n-aria-label="edit-mode-title" title="Toggle Expanded mode(full editing) or Compact mode(important fields only)" aria-label="Toggle Expanded mode(full editing) or Compact mode(important fields only)">
<input type="checkbox" name="attr_readonly_show" value="1" class="readonly-show" checked />
<span class="mode cssbutton-label" data-i18n="edit">Edit</span>
<span class="mode cssbutton-label" data-i18n="compact">Compact</span>
</span>
<input type="checkbox" name="attr_migrate1" value="1" class="noshow" aria-label="for the API to ensure sheets up to date" />
<span data-i18n-title="recalculate-cmd">
<input type="checkbox" name="attr_recalc1" value="1" class="cssbutton refreshbutton progress-show" data-i18n-aria-label="recalculate-cmd" /><span></span>
Expand All @@ -100,9 +97,10 @@ <h2 style="margin-top:0;margin-bottom:1em;">
<input type="checkbox" name="attr_config-show" value="1" class="cssbutton configbutton config-show" data-i18n-aria-label="display-settings-config" checked /><span></span>
</span>
<span class="cssbutton-label" data-i18n-title="recalculate-cmd" data-i18n-aria-label="recalculate-cmd" data-i18n="recalculate-abbrv">Recalc</span>
<span class="cssbutton-label" data-i18n-title="edit-mode-title" data-i18n-aria-label="edit-mode-title" data-i18n="mode">Mode</span>
<span class="cssbutton-label display-settings" data-i18n-title="display-settings-config" data-i18n-aria-label="display-settings-config" data-i18n="settings">Settings</span>
<span class="cssbutton-label display-sheet" data-i18n-title="display-settings-config" data-i18n-aria-label="display-settings-config" data-i18n="sheet">Sheet</span>
<span class="mode" data-i18n-title="edit-mode-title" data-i18n-aria-label="edit-mode-title" title="Toggle Expanded mode(full editing) or Compact mode(important fields only)" aria-label="Toggle Expanded mode(full editing) or Compact mode(important fields only)">
<span class="edit-mode cssbutton-label" data-i18n="edit-mode">Edit</span>
<span class="compact-mode cssbutton-label" data-i18n="compact-mode">Compact</span>
</span>
</span>
</div>
<span class="offscreen" data-i18n="instru-a-3">Screenreader users should check expand all to ensure all content is visible to the reader. It is the second checkbox on this page.</span>
Expand All @@ -120,8 +118,8 @@ <h2 style="margin-top:0;margin-bottom:1em;">
<label class="small-label2 npc-only narrow-numbers"><input title="@{npc-hd-num}" type="number" name="attr_npc-hd-num" value="0" /><span data-i18n="hit-dice-abbrv">HD</span></label>
<label class="small-label2 pc-only narrow-numbers"><input title="@{level}" type="number" name="attr_level" value="0" style="text-align:right;" class="calc" readonly data-i18n-placeholder="level" /><span data-i18n="level">Level</span></label>
<!-- PF LOGO -->
<div role="presentation" style="float:right;">
<img src="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Pathfinder%20Community/Images/pf_logo.png" style="max-height: 70px; width: 175px; margin-top: -7px;" data-i18n-alt="pathfinder-logo" alt="Pathfinder RPG Logo &copy; Paizo" />
<div class="pf-logo" role="presentation">
<img src="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Pathfinder%20Community/Images/pf_logo.png" data-i18n-alt="pathfinder-logo" alt="Pathfinder RPG Logo &copy; Paizo" />
</div>
</div>
<div class="pfsheet">
Expand Down Expand Up @@ -320,7 +318,10 @@ <h2 class="showsect" style="margin-bottom:0;"><label data-i18n="buffs-set">Set B
<input type="checkbox" class="split-column-show cssbutton" data-i18n-title="column-cmd" data-i18n-aria-label="column-cmd" title="Split into two columns" name="attr_buff-column-show" value="1" /><span></span>
<input class="deletebutton oldbuff cssbutton deletesect-show" type="checkbox" name="attr_delete_rep_buff_btn" value="1" data-i18n-title="delete-buff" data-i18n-aria-label="delete-buff-must-confirm-next-checkbox" /><span class="oldbuff"></span><label class="deletesect allrows-note oldbuff"><input type="checkbox" class="selectedlabel-check" name="attr_delete_rep_buff" data-i18n-aria-label="confirm-delete-buff" data-i18n-title="confirm-delete-buff" value="1" /><b data-i18n="delete-all-rows-are-you-sure">Deletes ALL rows, are you sure?</b></label>
<input class="deletebutton newbuff cssbutton deletesect-show" type="checkbox" name="attr_delete_rep_buff2_btn" value="1" data-i18n-title="delete-buff" data-i18n-aria-label="delete-buff-must-confirm-next-checkbox" /><span class="newbuff"></span><label class="deletesect allrows-note newbuff"><input type="checkbox" class="selectedlabel-check" name="attr_delete_rep_buff2" data-i18n-aria-label="confirm-delete-buff" data-i18n-title="confirm-delete-buff" value="1" /><b data-i18n="delete-all-rows-are-you-sure">Deletes ALL rows, are you sure?</b></label>
<span class="compendium-note newbuff" style="margin-right:2em;">
<span class="compendium-note newbuff">
<label>
<span data-i18n="common-buff" data-i18n-title="common-buff-title" data-i18n-aria-label="common-buff-title">Add a Common Buff</span>:&nbsp;
</label>
<label class="small-label2">
<select name="attr_common_buff_toadd" class="select-small">
<option value="" data-i18n="select-one-default" selected>Select one</option>
Expand Down Expand Up @@ -364,9 +365,8 @@ <h2 class="showsect" style="margin-bottom:0;"><label data-i18n="buffs-set">Set B
<option value="stardust" data-i18n="buff-stardust">Stardust</option>
<option value="ward" data-i18n="buff-ward">Ward</option>
</select>
<span data-i18n="common-buff" data-i18n-title="common-buff-title" data-i18n-aria-label="common-buff-title">Add a Common Buff</span>
</label>
<label class="small-label2" style="margin-top:0;">
<label class="small-label2" style="margin-top:3px;">
<input type="checkbox" class="newbuff-button cssbutton" value="1" name="attr_add_common_buff" title="@{add_common_buff}" /><span></span>
<span class="cssbutton-label" data-i18n="add">Add</span>
</label>
Expand Down Expand Up @@ -1988,8 +1988,7 @@ <h2 class="clickheader showsect"><label data-i18n-title="showsect-cmd" data-i18n
<div class="table-row">
<label class="table-cell small-label" style="width:4em;">
<input type="checkbox" class="cssbutton maxhealbutton" name="attr_HP_reset" value="1" data-i18n-title="recalculate-hit-points" data-i18n-aria-label="recalculate-hit-points"><span></span>
<br />
<span data-i18n-title="recalculate-hit-points" data-i18n-aria-label="recalculate-hit-points" data-i18n="maximum-abbrv" style="margin-left: -0.75rem;">Max</span>
<span style="display: block; margin-top: 2px;" data-i18n-title="recalculate-hit-points" data-i18n-aria-label="recalculate-hit-points" data-i18n="maximum-abbrv">Max</span>
</label>
<span class="table-cell" style="vertical-align:top;"><input type="number" title="@{HP-temp}" name="attr_HP-temp" value="0"></span>
<span class="divider" style="vertical-align:top;padding-top:0.8rem;">/</span>
Expand Down Expand Up @@ -15659,7 +15658,7 @@ <h2 class="clickheader showsect"><label data-i18n-title="showsect-cmd" data-i18n
</div>
<div data-i18n-aria-label="footer-aria" class="footer" aria-label="Help links and footer information">
<div class="table">
<span data-i18n="footer-info">Created by Samuel Marino w/contributions by Vince, Chris Buchholz, Magik, James W. | Last updated:&nbsp;</span> <i>Fri, 10 Jan 2025 22:56:30 GMT&nbsp;</i>v.<input type="text" name="attr_PFSheet_Version" value="0" class="calc number" readonly="" title="A non-blank version indicates attributes have been successfully recalculated.">
<span data-i18n="footer-info">Created by Samuel Marino w/contributions by Vince, Chris Buchholz, Magik, James W. | Last updated:&nbsp;</span> <i>Thu, 16 Jan 2025 07:21:44 GMT&nbsp;</i>v.<input type="text" name="attr_PFSheet_Version" value="0" class="calc number" readonly="" title="A non-blank version indicates attributes have been successfully recalculated.">
</div>
<div class="three-columns" style="margin-top:-.5em;">
<span><button type="roll" class="no-decoration" data-i18n-title="url-link" name="roll_blank" value="https://app.roll20.net/forum/category/277980"><b style="font-size:1.1rem;" data-i18n="questions-feedback">Questions/Feedback?</b></button></span>
Expand Down
1 change: 1 addition & 0 deletions Pathfinder Community/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@
"common-buff-title": "Quickly add common buff/debuff.",
"common-buff": "Add a Common Buff",
"compact": "Compact",
"compact-mode": "Compact",
"compendium-drag-drop-compatible": " Compendium drag-n-drop compatible ",
"compendium-drag-n-drop-desc": "Drag items, spells, etc from the compendium to an empty row below to auto populate the information Compendium is at the italic i icon above the chat",
"competence": "Competence",
Expand Down

0 comments on commit 5233a02

Please sign in to comment.