Add party an army sheeets
This commit is contained in:
152
less/army-sheet.less
Normal file
152
less/army-sheet.less
Normal file
@@ -0,0 +1,152 @@
|
||||
// ============================================================
|
||||
// ARMY ACTOR SHEET
|
||||
// ============================================================
|
||||
|
||||
.oathhammer .army-main {
|
||||
|
||||
.army-header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 8px;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.army-portrait-wrap {
|
||||
flex-shrink: 0;
|
||||
|
||||
.army-portrait {
|
||||
width: 94px;
|
||||
height: 110px;
|
||||
object-fit: cover;
|
||||
object-position: center top;
|
||||
border: 2px solid fade(@color-dark, 40%);
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.army-header-body {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
|
||||
.character-name {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
border-bottom: 1px solid @color-olive;
|
||||
padding-bottom: 4px;
|
||||
|
||||
input, span {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-family: @font-primary;
|
||||
font-size: @font-size-lg;
|
||||
}
|
||||
|
||||
> .control { flex-shrink: 0; }
|
||||
}
|
||||
}
|
||||
|
||||
.army-header-fieldset {
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
// ── Leader row ─────────────────────────────────────────────
|
||||
.army-leader-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 3px 5px;
|
||||
border: 1px dashed @color-olive;
|
||||
border-radius: 3px;
|
||||
min-height: 2rem;
|
||||
background: fade(@color-olive, 5%);
|
||||
|
||||
.army-field-label {
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-sm;
|
||||
font-weight: bold;
|
||||
color: @color-dark;
|
||||
white-space: nowrap;
|
||||
min-width: 6rem;
|
||||
}
|
||||
|
||||
.army-leader-img {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
object-fit: cover;
|
||||
border-radius: 3px;
|
||||
border: 1px solid @color-olive;
|
||||
}
|
||||
|
||||
.army-leader-name {
|
||||
flex: 1;
|
||||
font-size: @font-size-sm;
|
||||
color: @color-dark;
|
||||
&:hover { color: @color-olive; text-decoration: underline; }
|
||||
}
|
||||
|
||||
.army-leader-clear {
|
||||
color: @color-olive;
|
||||
&:hover { color: #aa3333; }
|
||||
}
|
||||
|
||||
.army-field-empty {
|
||||
flex: 1;
|
||||
font-size: @font-size-xs;
|
||||
color: fade(@color-dark, 50%);
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
|
||||
// ── Location row ───────────────────────────────────────────
|
||||
.army-location-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
|
||||
.army-field-label {
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-sm;
|
||||
font-weight: bold;
|
||||
color: @color-dark;
|
||||
white-space: nowrap;
|
||||
min-width: 6rem;
|
||||
}
|
||||
|
||||
input {
|
||||
flex: 1;
|
||||
font-size: @font-size-sm;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ── Regiment list ──────────────────────────────────────────────
|
||||
.oathhammer .item-list--army-regiment {
|
||||
.item-list-header, .item-entry {
|
||||
// img | name | grit | armor | movement | supply | actions
|
||||
grid-template-columns: @item-img-size 1fr 4.5rem 4.5rem 4.5rem 4.5rem 3rem;
|
||||
}
|
||||
|
||||
.army-total-row {
|
||||
border-top: 2px solid @color-olive;
|
||||
font-weight: bold;
|
||||
|
||||
.army-total-label {
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-sm;
|
||||
color: @color-dark;
|
||||
}
|
||||
|
||||
.army-total-value {
|
||||
color: darken(@color-gold, 15%);
|
||||
font-family: @font-secondary;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,10 @@
|
||||
// Shared actor content base
|
||||
.oathhammer .character-content,
|
||||
.oathhammer .npc-content,
|
||||
.oathhammer .settlement-content {
|
||||
.oathhammer .settlement-content,
|
||||
.oathhammer .regiment-content,
|
||||
.oathhammer .party-content,
|
||||
.oathhammer .army-content {
|
||||
font-family: @font-body; // Calibri — standard text per design_rules.md
|
||||
font-size: @font-size-base;
|
||||
color: @color-dark;
|
||||
|
||||
@@ -12,3 +12,5 @@
|
||||
@import "rolls";
|
||||
@import "roll-dialog";
|
||||
@import "settlement-sheet";
|
||||
@import "party-sheet";
|
||||
@import "army-sheet";
|
||||
|
||||
@@ -148,13 +148,15 @@
|
||||
|
||||
.item-list--spell {
|
||||
.item-list-header, .item-entry {
|
||||
grid-template-columns: @item-img-size 1fr 3rem 6rem 3rem 5.5rem;
|
||||
// img | name | DV | Tradition | Range | Duration | SpellSave | actions
|
||||
grid-template-columns: @item-img-size 1fr 2.5rem 5.5rem 3.5rem 4.5rem 3.5rem 5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.item-list--miracle {
|
||||
.item-list-header, .item-entry {
|
||||
grid-template-columns: @item-img-size 1fr 4.5rem 5.5rem;
|
||||
// img | name | DivineTradition | actions
|
||||
grid-template-columns: @item-img-size 1fr 6rem 5rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
|
||||
.regiment-stats-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||
gap: 4px;
|
||||
|
||||
.form-group > label { flex: 0 0 6rem; }
|
||||
|
||||
@@ -207,3 +207,100 @@
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
|
||||
// ============================================================
|
||||
// REGIMENT ACTOR SHEET overrides
|
||||
// ============================================================
|
||||
|
||||
// Regiment uses the same .npc-main structure but split into 2 rows
|
||||
.oathhammer .npc-main .regiment-vitals-grid {
|
||||
&.regiment-row1 { grid-template-columns: 1fr 1fr 1fr; }
|
||||
&.regiment-row2 {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
border-top: none;
|
||||
margin-top: 4px;
|
||||
padding-top: 4px;
|
||||
border-top: 1px dashed fade(@color-olive, 50%);
|
||||
}
|
||||
}
|
||||
|
||||
// Regiment portrait — same dimensions as settlement sheet
|
||||
.oathhammer .regiment-content .npc-left {
|
||||
min-width: 94px;
|
||||
max-width: 94px;
|
||||
|
||||
.actor-img {
|
||||
width: 94px;
|
||||
height: 110px;
|
||||
object-fit: cover;
|
||||
object-position: center top;
|
||||
border: 2px solid fade(@color-dark, 40%);
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Regiment fieldset — remove default fieldset border for clean header look
|
||||
.oathhammer .regiment-fieldset {
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
// ── Regiment leader row ───────────────────────────────────────
|
||||
.oathhammer .regiment-leader-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 5px;
|
||||
padding: 4px 6px;
|
||||
border: 1px dashed fade(@color-olive, 60%);
|
||||
border-radius: 3px;
|
||||
background: rgba(0,0,0,0.04);
|
||||
min-height: 28px;
|
||||
|
||||
.regiment-leader-label {
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-sm;
|
||||
font-weight: bold;
|
||||
color: @color-dark;
|
||||
white-space: nowrap;
|
||||
min-width: 5.5rem;
|
||||
}
|
||||
|
||||
.regiment-leader-img {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 3px;
|
||||
border: 1px solid @color-olive;
|
||||
object-fit: cover;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.regiment-leader-name {
|
||||
flex: 1;
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-sm;
|
||||
color: @color-blue;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
&:hover { text-decoration: underline; color: @color-gold; }
|
||||
}
|
||||
|
||||
.regiment-leader-empty {
|
||||
flex: 1;
|
||||
font-size: @font-size-xs;
|
||||
color: fade(@color-dark, 45%);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.regiment-leader-clear {
|
||||
color: fade(@color-dark, 40%);
|
||||
font-size: @font-size-sm;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
&:hover { color: #cc3333; }
|
||||
}
|
||||
}
|
||||
|
||||
186
less/party-sheet.less
Normal file
186
less/party-sheet.less
Normal file
@@ -0,0 +1,186 @@
|
||||
// ============================================================
|
||||
// PARTY ACTOR SHEET
|
||||
// ============================================================
|
||||
|
||||
.oathhammer .party-main {
|
||||
|
||||
.party-header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 8px;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.party-portrait-wrap {
|
||||
flex-shrink: 0;
|
||||
|
||||
.party-portrait {
|
||||
width: 94px;
|
||||
height: 110px;
|
||||
object-fit: cover;
|
||||
object-position: center top;
|
||||
border: 2px solid fade(@color-dark, 40%);
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.party-header-body {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
|
||||
.character-name {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
border-bottom: 1px solid @color-olive;
|
||||
padding-bottom: 4px;
|
||||
|
||||
input, span {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-family: @font-primary;
|
||||
font-size: @font-size-lg;
|
||||
}
|
||||
|
||||
> .control {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.party-header-fieldset {
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
// ── Treasury ───────────────────────────────────────────────
|
||||
.party-treasury {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 4px 6px;
|
||||
border: 1px solid @color-olive;
|
||||
border-radius: 3px;
|
||||
background: rgba(0,0,0,0.08);
|
||||
flex-wrap: wrap;
|
||||
|
||||
.party-treasury-label {
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-sm;
|
||||
font-weight: bold;
|
||||
color: @color-dark;
|
||||
white-space: nowrap;
|
||||
min-width: 4rem;
|
||||
}
|
||||
|
||||
.party-currency {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
flex: 1;
|
||||
min-width: 7rem;
|
||||
|
||||
.currency-label {
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-xs;
|
||||
font-weight: bold;
|
||||
color: @color-dark;
|
||||
white-space: nowrap;
|
||||
min-width: 1.8rem;
|
||||
}
|
||||
|
||||
.currency-stepper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
|
||||
input {
|
||||
width: 3.5rem;
|
||||
text-align: center;
|
||||
font-size: @font-size-sm;
|
||||
padding: 1px 2px;
|
||||
}
|
||||
|
||||
.currency-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
font-size: 0.85rem;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
border: 1px solid @color-olive;
|
||||
border-radius: 3px;
|
||||
background: @color-olive-faint;
|
||||
color: @color-dark;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
flex-shrink: 0;
|
||||
&:hover { background: @color-gold; border-color: @color-gold; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.party-currency-gp .currency-label { color: darken(@color-gold, 15%); }
|
||||
.party-currency-sp .currency-label { color: #888; }
|
||||
.party-currency-cp .currency-label { color: #aa6633; }
|
||||
}
|
||||
}
|
||||
|
||||
// ── Member list ────────────────────────────────────────────────
|
||||
.oathhammer .item-list--party-member {
|
||||
.item-list-header, .item-entry {
|
||||
// order# | img | name | class | level | grit | actions
|
||||
grid-template-columns: 1.8rem @item-img-size 1fr 7rem 3rem 5rem 5.5rem;
|
||||
}
|
||||
|
||||
.party-member-order {
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-xs;
|
||||
font-weight: bold;
|
||||
color: @color-olive;
|
||||
text-align: center;
|
||||
align-self: center;
|
||||
}
|
||||
}
|
||||
|
||||
// ── Loot list ──────────────────────────────────────────────────
|
||||
.oathhammer .item-list--party-loot {
|
||||
.item-list-header, .item-entry {
|
||||
// img | name | type | qty | actions
|
||||
grid-template-columns: @item-img-size 1fr 6rem 5.5rem 5rem;
|
||||
}
|
||||
|
||||
.item-qty {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
font-size: @font-size-sm;
|
||||
|
||||
span { min-width: 1.5rem; text-align: center; }
|
||||
|
||||
.qty-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
font-size: 0.8rem;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
border: 1px solid @color-olive;
|
||||
border-radius: 2px;
|
||||
background: @color-olive-faint;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
&:hover { background: @color-gold; border-color: @color-gold; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user