Skip to content

Commit

Permalink
Merge pull request #12172 from vince-roll20/PFC
Browse files Browse the repository at this point in the history
Pathfinder Community Sheet - font fix for popped out chat
  • Loading branch information
BronsonHall authored Sep 21, 2023
2 parents 8934860 + 3625c80 commit 700a39e
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 35 deletions.
112 changes: 77 additions & 35 deletions Pathfinder Community/pathfinder_community.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,7 @@
display: inline-grid;
}

.charsheet html,
.charsheet .pf-wrapper,
.sheet-rolltemplate-pf_generic,
.sheet-rolltemplate-pf_ability,
.sheet-rolltemplate-pf_defense,
.sheet-rolltemplate-pf_attack,
.sheet-rolltemplate-pf_spell,
.sheet-rolltemplate-pf_block {
.charsheet .pf-wrapper {
box-sizing: border-box;
}

Expand Down Expand Up @@ -4529,6 +4522,7 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
.sheet-rolltemplate-pf_spell,
.sheet-rolltemplate-pf_block {
box-sizing: border-box;
font-size: 12px;
}

/* Dark Mode */
Expand Down Expand Up @@ -4560,22 +4554,22 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
color: initial;
}

.sheet-rolltemplate-pf_generic .sheet-roll-header,
.sheet-rolltemplate-pf_ability .sheet-roll-header,
.sheet-rolltemplate-pf_defense .sheet-roll-header,
.sheet-rolltemplate-pf_attack .sheet-roll-header,
.sheet-rolltemplate-pf_spell .sheet-roll-header,
.sheet-rolltemplate-pf_block .sheet-roll-header {
border-width: 0.1rem;
.sheet-rolltemplate-pf_generic .sheet-rolltemplate-pf_generic .sheet-roll-header,
.sheet-rolltemplate-pf_ability .sheet-rolltemplate-pf_ability .sheet-roll-header,
.sheet-rolltemplate-pf_defense .sheet-rolltemplate-pf_defense .sheet-roll-header,
.sheet-rolltemplate-pf_attack .sheet-rolltemplate-pf_attack .sheet-roll-header,
.sheet-rolltemplate-pf_spell .sheet-rolltemplate-pf_spell .sheet-roll-header,
.sheet-rolltemplate-pf_block .sheet-rolltemplate-pf_block .sheet-roll-header {
border-style: solid;
display: table;
border-width: 0.1rem;
caption-side: top;
width: 100%;
font-size: initial;
line-height: 1.75rem;
display: table;
font-size: 14px;
font-weight: bold;
line-height: 1.5;
overflow: hidden;
vertical-align: bottom;
font-weight: bold;
width: 100%;
}

.sheet-rolltemplate-pf_generic .sheet-roll-header a,
Expand All @@ -4594,6 +4588,9 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
.sheet-rolltemplate-pf_attack .sheet-roll-header span.sheet-left,
.sheet-rolltemplate-pf_spell .sheet-roll-header span.sheet-left,
.sheet-rolltemplate-pf_block .sheet-roll-header span.sheet-left {
font-size: 14px;
font-weight: bold;
line-height: 1.5;
padding: 2px;
vertical-align: baseline;
}
Expand Down Expand Up @@ -4623,7 +4620,7 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
.sheet-rolltemplate-pf_attack .sheet-subtitle,
.sheet-rolltemplate-pf_spell .sheet-subtitle,
.sheet-rolltemplate-pf_block .sheet-subtitle {
font-size: 1.3rem;
font-size: 12px;
font-weight: normal !important;
text-align: left;
font-variant: small-caps;
Expand Down Expand Up @@ -4703,8 +4700,8 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
.sheet-rolltemplate-pf_attack .sheet-roll-cell,
.sheet-rolltemplate-pf_spell .sheet-roll-cell,
.sheet-rolltemplate-pf_block .sheet-roll-cell {
line-height: 1.1em;
font-size: 1.3rem;
line-height: normal;
font-size: 12px;
overflow: hidden;
display: inline-block;
}
Expand Down Expand Up @@ -4782,7 +4779,7 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
.sheet-rolltemplate-pf_ability .sheet-pfctracking span.sheet-pictos a .sheet-strong,
.sheet-rolltemplate-pf_attack .sheet-pfctracking span.sheet-pictos a .sheet-strong,
.sheet-rolltemplate-pf_block .sheet-pfctracking span.sheet-pictos a .sheet-strong {
font-size: .85em;
font-size: 10px;
vertical-align: bottom;
font-weight: normal;
}
Expand Down Expand Up @@ -4867,7 +4864,6 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
display: inline-block;
border: 0.1rem solid #789;
border-radius: 0.2rem;
font-size: 1.2rem;
}

.sheet-rolltemplate-pf_generic a[href^="~"]:hover,
Expand Down Expand Up @@ -4902,11 +4898,11 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
.sheet-rolltemplate-pf_attack .sheet-roll-accessible .sheet-roll-header,
.sheet-rolltemplate-pf_spell .sheet-roll-accessible .sheet-roll-header,
.sheet-rolltemplate-pf_block .sheet-roll-accessible .sheet-roll-header {
margin: 0 0 0.2rem 0;
font-size: 1.3rem;
line-height: 1.75rem;
display: block;
border: none;
display: block;
font-size: 14px;
line-height: 1.5;
margin: 0 0 0.2rem 0;
padding: 0 0 0.2rem 0.2rem;
}

Expand All @@ -4916,9 +4912,8 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
.sheet-rolltemplate-pf_attack .sheet-roll-accessible .sheet-subtitle,
.sheet-rolltemplate-pf_spell .sheet-roll-accessible .sheet-subtitle,
.sheet-rolltemplate-pf_block .sheet-roll-accessible .sheet-subtitle {
font-size: 1.2em;
font-size: 12px;
padding: 0 0 0 0.2rem;
/*border-bottom:1pt #CCCCCC solid;*/
}

.sheet-rolltemplate-pf_generic .sheet-roll-accessible > label,
Expand All @@ -4927,7 +4922,8 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
.sheet-rolltemplate-pf_attack .sheet-roll-accessible > label,
.sheet-rolltemplate-pf_spell .sheet-roll-accessible > label,
.sheet-rolltemplate-pf_block .sheet-roll-accessible > label {
line-height: 1.4em;
display: flow-root;
line-height: 16px;
margin: 0 .2em 0 .2em;
}

Expand All @@ -4947,8 +4943,8 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
.sheet-rolltemplate-pf_attack .sheet-roll-accessible > label span,
.sheet-rolltemplate-pf_spell .sheet-roll-accessible > label span,
.sheet-rolltemplate-pf_block .sheet-roll-accessible > label span {
line-height: 1em;
font-size: 1.3rem;
font-size: 12px;
line-height: 12px;
display: inline-block;
}

Expand Down Expand Up @@ -5543,6 +5539,52 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp
background-color: #222;
}

/* fixes font-size in roll template when chat is popped out*/

.sheet-rolltemplate-pf_generic .sheet-rolltemplate-pf_generic.sheet-roll-table,
.sheet-rolltemplate-pf_ability .sheet-rolltemplate-pf_ability.sheet-roll-table,
.sheet-rolltemplate-pf_defense .sheet-rolltemplate-pf_defense.sheet-roll-table,
.sheet-rolltemplate-pf_attack .sheet-rolltemplate-pf_attack.sheet-roll-table,
.sheet-rolltemplate-pf_spell .sheet-rolltemplate-pf_spell.sheet-roll-table,
.sheet-rolltemplate-pf_block .sheet-rolltemplate-pf_block.sheet-roll-table,
.sheet-rolltemplate-pf_generic .sheet-rolltemplate-pf_generic.sheet-roll-table *,
.sheet-rolltemplate-pf_ability .sheet-rolltemplate-pf_ability.sheet-roll-table *,
.sheet-rolltemplate-pf_defense .sheet-rolltemplate-pf_defense.sheet-roll-table *,
.sheet-rolltemplate-pf_attack .sheet-rolltemplate-pf_attack.sheet-roll-table *,
.sheet-rolltemplate-pf_spell .sheet-rolltemplate-pf_spell.sheet-roll-table *,
.sheet-rolltemplate-pf_block .sheet-rolltemplate-pf_block.sheet-roll-table *,
.sheet-rolltemplate-pf_generic .sheet-rolltemplate-pf_generic.sheet-roll-accessible,
.sheet-rolltemplate-pf_ability .sheet-roll-accessible,
.sheet-rolltemplate-pf_defense .sheet-roll-accessible,
.sheet-rolltemplate-pf_attack .sheet-roll-accessible,
.sheet-rolltemplate-pf_spell .sheet-roll-accessible,
.sheet-rolltemplate-pf_block .sheet-roll-accessible,
.sheet-rolltemplate-pf_generic .sheet-roll-accessible *,
.sheet-rolltemplate-pf_ability .sheet-roll-accessible *,
.sheet-rolltemplate-pf_defense .sheet-roll-accessible *,
.sheet-rolltemplate-pf_attack .sheet-roll-accessible *,
.sheet-rolltemplate-pf_spell .sheet-roll-accessible *,
.sheet-rolltemplate-pf_block .sheet-roll-accessible * {
font-size: 12px;
line-height: normal;
}

.sheet-rolltemplate-pf_generic .sheet-rolltemplate-pf_generic.sheet-roll-table .sheet-roll-header .sheet-left,
.sheet-rolltemplate-pf_ability .sheet-rolltemplate-pf_ability.sheet-roll-table .sheet-roll-header .sheet-left,
.sheet-rolltemplate-pf_defense .sheet-rolltemplate-pf_defense.sheet-roll-table .sheet-roll-header .sheet-left,
.sheet-rolltemplate-pf_attack .sheet-rolltemplate-pf_attack.sheet-roll-table .sheet-roll-header .sheet-left,
.sheet-rolltemplate-pf_spell .sheet-rolltemplate-pf_spell.sheet-roll-table .sheet-roll-header .sheet-left,
.sheet-rolltemplate-pf_block .sheet-rolltemplate-pf_block.sheet-roll-table .sheet-roll-header .sheet-left,
.sheet-rolltemplate-pf_generic .sheet-rolltemplate-pf_generic.sheet-roll-table .sheet-roll-header .sheet-left a,
.sheet-rolltemplate-pf_ability .sheet-rolltemplate-pf_ability.sheet-roll-table .sheet-roll-header .sheet-left a,
.sheet-rolltemplate-pf_defense .sheet-rolltemplate-pf_defense.sheet-roll-table .sheet-roll-header .sheet-left a,
.sheet-rolltemplate-pf_attack .sheet-rolltemplate-pf_attack.sheet-roll-table .sheet-roll-header .sheet-left a,
.sheet-rolltemplate-pf_spell .sheet-rolltemplate-pf_spell.sheet-roll-table .sheet-roll-header .sheet-left a,
.sheet-rolltemplate-pf_block .sheet-rolltemplate-pf_block.sheet-roll-table .sheet-roll-header .sheet-left a {
font-size: 14px;
line-height: 1.5;
}

/*doubled up the class to increase specificity*/
.sheet-rolltemplate-pf_attack .sheet-roll-accessible > label.sheet-atk.sheet-atk,
.sheet-rolltemplate-pf_attack .sheet-roll-accessible > label.sheet-confirm,
Expand Down Expand Up @@ -5574,7 +5616,7 @@ equipmentnav ~ tabinputtab99:not(:checked) ~ tabinputtab9:not(:checked) ~ tabinp

.sheet-rolltemplate-pf_attack span.sheet-vs,
.sheet-rolltemplate-pf_attack .sheet-roll-accessible > label span.sheet-vs {
font-size: 1.1rem;
font-size: 80%;
font-weight: bold;
}

Expand Down
1 change: 1 addition & 0 deletions Pathfinder Community/pathfinder_community.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ <h2 style="margin-top:0;margin-bottom:1em;">
<span data-i18n="new-features">New Features and Updates</span>
</h2>
<ol>
<li>Fix font-size of roll templates when chat is popped out.</li>
<li>Fix for fonts not showing bold text in roll templates.</li>
<li>Fixed extra macro code showing for NPC saves.</li>
<li>Fixed a bug with a Buff to CMD(type:Dodge) that applied the Dodge bonus to Flat Footed CMD.</li>
Expand Down

0 comments on commit 700a39e

Please sign in to comment.