Skip to content

Commit

Permalink
Adjust portrait to horse sheet, and adjust input font sizes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcglincy committed Mar 28, 2023
1 parent ec876fb commit 471016e
Show file tree
Hide file tree
Showing 9 changed files with 245 additions and 152 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.1.0

- Adjust portrait to horse sheet, and adjust input font sizes.

# 1.0.1

- Fix system.json for v10 warnings.
Expand Down
62 changes: 43 additions & 19 deletions css/frontierscum.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
background: transparent;
border-bottom: 1px dotted black;
font-family: "Inconsolata", monospace;
font-size: 0.9rem;
font-size: 1rem;
text-align: center;
}
.frontierscum textarea {
Expand Down Expand Up @@ -397,6 +397,10 @@ body.sheet-darkmode .charsheet .frontierscum .scumsheet-body .equipment-block .e
.frontierscum .scumsheet-body .equipment-block {
display: flex;
}
.frontierscum .scumsheet-body .equipment-block input[type=number],
.frontierscum .scumsheet-body .equipment-block input[type=text] {
font-size: 0.9rem;
}
.frontierscum .scumsheet-body .equipment-block .eq-col-1 {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -529,6 +533,36 @@ body.sheet-darkmode .charsheet .frontierscum .scumsheet-body .equipment-block .e
padding-left: 10px;
text-align: left;
}
.frontierscum .horsesheet .horsesheet-body .bottom-cols {
display: flex;
}
.frontierscum .horsesheet .horsesheet-body .bottom-cols .left-col {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
padding-left: 10px;
padding-right: 20px;
}
.frontierscum .horsesheet .horsesheet-body .bottom-cols .left-col .portrait-block {
border: 2px solid black;
display: flex;
align-items: center;
justify-content: center;
height: 264px;
width: 264px;
margin-bottom: 10px;
}
.frontierscum .horsesheet .horsesheet-body .bottom-cols .left-col .portrait-block img {
border: 2px solid black;
height: 254px;
width: 254px;
padding: 0;
margin: 0;
}
.frontierscum .horsesheet .horsesheet-body .bottom-cols .right-col {
flex: 1;
}
.frontierscum .horsesheet .horsesheet-body .on-your-horse {
display: flex;
flex-direction: column;
Expand All @@ -538,9 +572,17 @@ body.sheet-darkmode .charsheet .frontierscum .scumsheet-body .equipment-block .e
flex: 0 0 20px;
padding: 2px;
}
.frontierscum .horsesheet .horsesheet-body .on-your-horse .on-horse-row input[type=number],
.frontierscum .horsesheet .horsesheet-body .on-your-horse .on-horse-row input[type=text] {
font-size: 0.9rem;
}
.frontierscum .horsesheet .horsesheet-body .on-your-horse .on-horse-row:nth-child(10), .frontierscum .horsesheet .horsesheet-body .on-your-horse .on-horse-row:nth-child(11), .frontierscum .horsesheet .horsesheet-body .on-your-horse .on-horse-row:nth-child(12) {
padding-left: 10px;
}
.frontierscum .horsesheet .horsesheet-body .stolen-block {
display: flex;
justify-content: center;
margin-bottom: 10px;
}
.frontierscum .horsesheet .horsesheet-body .stolen-block .stats {
width: 300px;
Expand Down Expand Up @@ -576,24 +618,6 @@ body.sheet-darkmode .charsheet .frontierscum .scumsheet-body .equipment-block .e
.frontierscum .horsesheet .horsesheet-body .stolen-block .stats .stat-row .stat-block:last-child label {
width: 80px;
}
.frontierscum .horsesheet .horsesheet-body .horse1 {
background-image: url("https://raw.githubusercontent.com/mcglincy/frontierscum-roll20/main/img/horsehead1.png");
background-size: 100% 100%;
height: 170px;
width: 170px;
position: absolute;
left: 10px;
top: 700px;
}
.frontierscum .horsesheet .horsesheet-body .horse2 {
background-image: url("https://raw.githubusercontent.com/mcglincy/frontierscum-roll20/main/img/horsehead2.png");
background-size: 100% 100%;
width: 170px;
height: 170px;
position: absolute;
left: 498px;
top: 700px;
}

.frontierscum .npcsheet {
display: flex;
Expand Down
62 changes: 43 additions & 19 deletions css/frontierscum.raw.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
background: transparent;
border-bottom: 1px dotted black;
font-family: "Inconsolata", monospace;
font-size: 0.9rem;
font-size: 1rem;
text-align: center;
}
.frontierscum textarea {
Expand Down Expand Up @@ -398,6 +398,10 @@ body.sheet-darkmode .charsheet .frontierscum .scumsheet-body .equipment-block .e
.frontierscum .scumsheet-body .equipment-block {
display: flex;
}
.frontierscum .scumsheet-body .equipment-block input[type=number],
.frontierscum .scumsheet-body .equipment-block input[type=text] {
font-size: 0.9rem;
}
.frontierscum .scumsheet-body .equipment-block .eq-col-1 {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -530,6 +534,36 @@ body.sheet-darkmode .charsheet .frontierscum .scumsheet-body .equipment-block .e
padding-left: 10px;
text-align: left;
}
.frontierscum .horsesheet .horsesheet-body .bottom-cols {
display: flex;
}
.frontierscum .horsesheet .horsesheet-body .bottom-cols .left-col {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
padding-left: 10px;
padding-right: 20px;
}
.frontierscum .horsesheet .horsesheet-body .bottom-cols .left-col .portrait-block {
border: 2px solid black;
display: flex;
align-items: center;
justify-content: center;
height: 264px;
width: 264px;
margin-bottom: 10px;
}
.frontierscum .horsesheet .horsesheet-body .bottom-cols .left-col .portrait-block img {
border: 2px solid black;
height: 254px;
width: 254px;
padding: 0;
margin: 0;
}
.frontierscum .horsesheet .horsesheet-body .bottom-cols .right-col {
flex: 1;
}
.frontierscum .horsesheet .horsesheet-body .on-your-horse {
display: flex;
flex-direction: column;
Expand All @@ -539,9 +573,17 @@ body.sheet-darkmode .charsheet .frontierscum .scumsheet-body .equipment-block .e
flex: 0 0 20px;
padding: 2px;
}
.frontierscum .horsesheet .horsesheet-body .on-your-horse .on-horse-row input[type=number],
.frontierscum .horsesheet .horsesheet-body .on-your-horse .on-horse-row input[type=text] {
font-size: 0.9rem;
}
.frontierscum .horsesheet .horsesheet-body .on-your-horse .on-horse-row:nth-child(10), .frontierscum .horsesheet .horsesheet-body .on-your-horse .on-horse-row:nth-child(11), .frontierscum .horsesheet .horsesheet-body .on-your-horse .on-horse-row:nth-child(12) {
padding-left: 10px;
}
.frontierscum .horsesheet .horsesheet-body .stolen-block {
display: flex;
justify-content: center;
margin-bottom: 10px;
}
.frontierscum .horsesheet .horsesheet-body .stolen-block .stats {
width: 300px;
Expand Down Expand Up @@ -577,24 +619,6 @@ body.sheet-darkmode .charsheet .frontierscum .scumsheet-body .equipment-block .e
.frontierscum .horsesheet .horsesheet-body .stolen-block .stats .stat-row .stat-block:last-child label {
width: 80px;
}
.frontierscum .horsesheet .horsesheet-body .horse1 {
background-image: url("https://raw.githubusercontent.com/mcglincy/frontierscum-roll20/main/img/horsehead1.png");
background-size: 100% 100%;
height: 170px;
width: 170px;
position: absolute;
left: 10px;
top: 700px;
}
.frontierscum .horsesheet .horsesheet-body .horse2 {
background-image: url("https://raw.githubusercontent.com/mcglincy/frontierscum-roll20/main/img/horsehead2.png");
background-size: 100% 100%;
width: 170px;
height: 170px;
position: absolute;
left: 498px;
top: 700px;
}

.frontierscum .npcsheet {
display: flex;
Expand Down
3 changes: 2 additions & 1 deletion module/actor/sheet/horse-sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export class FSHorseSheet extends FSActorSheet {
classes: ["frontierscum", "sheet", "actor", "horse"],
template: "systems/frontierscum/templates/actor/horse-sheet.html",
width: 685,
height: 880,
// height: 880,
height: 835,
tabs: [
{
navSelector: ".sheet-tabs",
Expand Down
67 changes: 35 additions & 32 deletions src/pug/actor/_horse-body.pug
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,49 @@
.name-block
.field-row.name-row
label name
input(type='text', name='name', value='{{actor.name}}', placeholder='Lightning Bolt', spellcheck='false')
input(type='text', name='name', value='{{actor.name}}', spellcheck='false')
.field-row
label likes
input(type='text', name='system.likes', value='{{data.system.likes}}', placeholder='Daily baths', spellcheck='false')
input(type='text', name='system.likes', value='{{data.system.likes}}', spellcheck='false')
label type
input(type='text', name='system.type', value='{{data.system.type}}', placeholder='Brown riding horse', spellcheck='false')
input(type='text', name='system.type', value='{{data.system.type}}', spellcheck='false')
.field-row
label notes
input(type='text', name='system.notes', value='{{data.system.notes}}', spellcheck='false')
.field-row
label vehicle
input(type='text', name='system.vehicle', value='{{data.system.vehicle}}', spellcheck='false')
.on-your-horse
.top-label(data-i18n='on_your_horse') on your horse
each val in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
.on-horse-row
input(type='text', name=`system.slot${val}`, value=`{{data.system.slot${val}}}`, spellcheck='false')
.stolen-block
.stats
.stat-row
.stat-block
label stolen
.horseshoe
label(class='check-container')
| <input type="checkbox" name="system.stolen" {{#if data.system.stolen}}checked{{/if}} />
span(class='checkmark')
.stat-block
label hp
.horseshoe
input(type='number', name='system.hp.value', value='{{data.system.hp.value}}', placeholder=0)
.stat-row
.stat-block
label morale
.horseshoe
input(type='number', name='system.morale', value='{{data.system.morale}}', placeholder=0)
.stat-block
label(data-i18n='max') max
.horseshoe
input(type='number', name='system.hp.max', value='{{data.system.hp.max}}', placeholder=0)
.horse1
.horse2
.bottom-cols
.left-col
.portrait-block
img(src='{{actor.img}}', title='{{actor.name}}', data-edit="img")
.stolen-block
.stats
.stat-row
.stat-block
label stolen
.horseshoe
label(class='check-container')
| <input type="checkbox" name="system.stolen" {{#if data.system.stolen}}checked{{/if}} />
span(class='checkmark')
.stat-block
label hp
.horseshoe
input(type='number', name='system.hp.value', value='{{data.system.hp.value}}', placeholder=0)
.stat-row
.stat-block
label morale
.horseshoe
input(type='number', name='system.morale', value='{{data.system.morale}}', placeholder=0)
.stat-block
label(data-i18n='max') max
.horseshoe
input(type='number', name='system.hp.max', value='{{data.system.hp.max}}', placeholder=0)
.right-col
.on-your-horse
.top-label(data-i18n='on_your_horse') on your horse
each val in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
.on-horse-row
input(type='text', name=`system.slot${val}`, value=`{{data.system.slot${val}}}`, spellcheck='false')


2 changes: 1 addition & 1 deletion src/scss/common/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
background: transparent;
border-bottom: $dotted;
font-family: $mono-font;
font-size: 0.9rem;
font-size: 1.0rem;
text-align: center;
}

Expand Down
63 changes: 44 additions & 19 deletions src/scss/horsesheet/_body.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,62 @@
}
}
}
.bottom-cols {
display: flex;
.left-col {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
padding-left: 10px;
padding-right: 20px;
.portrait-block {
border: 2px solid black;
// padding: 4px;
display: flex;
align-items: center;
justify-content: center;
// height: 234px;
// width: 234px;
height: 264px;
width: 264px;
margin-bottom: 10px;
img {
border: 2px solid black;
height: 254px;
width: 254px;
padding: 0;
margin: 0;
}
}
}
.right-col {
flex: 1;
}
}
.on-your-horse {
display: flex;
flex-direction: column;
width: 100%;
.on-horse-row {
flex: 0 0 20px;
padding: 2px;
input[type='number'],
input[type='text'] {
font-size: 0.9rem;
}
&:nth-child(10),
&:nth-child(11),
&:nth-child(12)
{
padding-left: 10px;
}
}
}
.stolen-block {
display: flex;
justify-content: center;
margin-bottom: 10px;
.stats {
width: 300px;
.stat-row {
Expand Down Expand Up @@ -80,23 +124,4 @@
}
}
}
.horse1 {
background-image: url('https://raw.githubusercontent.com/mcglincy/frontierscum-roll20/main/img/horsehead1.png');
background-size: 100% 100%;
height: 170px;
width: 170px;
position: absolute;
left: 10px;
top: 700px;
}
.horse2 {
background-image: url('https://raw.githubusercontent.com/mcglincy/frontierscum-roll20/main/img/horsehead2.png');
background-size: 100% 100%;
width: 170px;
height: 170px;
position: absolute;
left: 498px;
top: 700px;
}

}
Loading

0 comments on commit 471016e

Please sign in to comment.