mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19:54 +02:00
Make sheet tab scrollbars stable and remove fieldsets
This commit is contained in:
parent
cdf6e7fdd0
commit
8f86d29569
39 changed files with 577 additions and 562 deletions
|
|
@ -261,13 +261,15 @@
|
||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
margin: 0;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
border-color: @color-fieldset-border;
|
border-color: @color-fieldset-border;
|
||||||
|
|
||||||
&.glassy {
|
&.glassy {
|
||||||
background-color: light-dark(@dark-blue-10, @golden-10);
|
background-color: light-dark(@dark-blue-10, @golden-10);
|
||||||
border-color: transparent;
|
border: none;
|
||||||
|
padding-inline: 10px;
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
padding: 2px 12px;
|
padding: 2px 12px;
|
||||||
|
|
@ -512,7 +514,7 @@
|
||||||
height: 1px;
|
height: 1px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-bottom: 1px solid @color-border;
|
border-bottom: 1px solid @color-border;
|
||||||
mask-image: linear-gradient(270deg, transparent 0%, black 50%, transparent 100%);
|
mask-image: linear-gradient(270deg, transparent 0%, black 35%, black 50%, black 65%, transparent 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
side-line-div {
|
side-line-div {
|
||||||
|
|
@ -546,50 +548,6 @@
|
||||||
transform-origin: top;
|
transform-origin: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-buttons {
|
|
||||||
grid-column: span 3;
|
|
||||||
display: flex;
|
|
||||||
gap: 8px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
margin-top: 2px;
|
|
||||||
|
|
||||||
.item-button {
|
|
||||||
display: flex;
|
|
||||||
border: 1px solid light-dark(#18162e, #18162e);
|
|
||||||
color: light-dark(#18162e, #18162e);
|
|
||||||
outline: none;
|
|
||||||
box-shadow: none;
|
|
||||||
border-radius: 6px;
|
|
||||||
|
|
||||||
button {
|
|
||||||
border-radius: 3px 0px 0px 3px;
|
|
||||||
color: light-dark(@dark-blue, @dark-blue);
|
|
||||||
white-space: nowrap;
|
|
||||||
border: 0;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
color: @color-text-emphatic;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:not(:first-child) {
|
|
||||||
padding: 6px;
|
|
||||||
background: light-dark(@dark-blue-10, @golden-secondary);
|
|
||||||
border-radius: 0px 3px 3px 0px;
|
|
||||||
color: light-dark(@dark-blue, @dark-golden);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: light-dark(@light-black, @dark-blue);
|
|
||||||
color: light-dark(@dark-blue, @golden-secondary);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.spacer {
|
|
||||||
border-right: 1px solid black;
|
|
||||||
content: '';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.artist-attribution {
|
.artist-attribution {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -597,7 +555,7 @@
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-family: @font-body;
|
font-family: @font-body;
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
color: light-dark(#14142599, #efe6d850);
|
color: @color-text-subtle;
|
||||||
font-size: var(--font-size-12);
|
font-size: var(--font-size-12);
|
||||||
padding-left: 3px;
|
padding-left: 3px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
font-size: var(--font-size-12);
|
font-size: var(--font-size-12);
|
||||||
justify-content: start;
|
justify-content: start;
|
||||||
padding: 3px 5px;
|
padding: 2px 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,11 @@
|
||||||
|
|
||||||
.item-main {
|
.item-main {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|
||||||
|
// Make hover extend out of bounds.
|
||||||
|
// Because of this extra spacing, the scroll container parent needs some padding
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
margin: -2px;
|
margin: -2px -2px 0 -2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
@ -271,6 +274,50 @@
|
||||||
grid-area: labels;
|
grid-area: labels;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item-buttons {
|
||||||
|
grid-column: span 3;
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
.item-button {
|
||||||
|
display: flex;
|
||||||
|
border: 1px solid light-dark(#18162e, #18162e);
|
||||||
|
color: light-dark(#18162e, #18162e);
|
||||||
|
outline: none;
|
||||||
|
box-shadow: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
|
||||||
|
button {
|
||||||
|
border-radius: 3px 0px 0px 3px;
|
||||||
|
color: light-dark(@dark-blue, @dark-blue);
|
||||||
|
white-space: nowrap;
|
||||||
|
border: 0;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: @color-text-emphatic;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(:first-child) {
|
||||||
|
padding: 6px;
|
||||||
|
background: light-dark(@dark-blue-10, @golden-secondary);
|
||||||
|
border-radius: 0px 3px 3px 0px;
|
||||||
|
color: light-dark(@dark-blue, @dark-golden);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: light-dark(@light-black, @dark-blue);
|
||||||
|
color: light-dark(@dark-blue, @golden-secondary);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.spacer {
|
||||||
|
border-right: 1px solid black;
|
||||||
|
content: '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-item {
|
.card-item {
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ body.game:is(.performance-low, .noblur) {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: -webkit-fill-available;
|
min-height: -webkit-fill-available;
|
||||||
transition: opacity 0.3s ease;
|
transition: opacity 0.3s ease;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 16px;
|
||||||
|
|
||||||
.tab {
|
.tab {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
.application.sheet.daggerheart.actor.dh-style {
|
.application.sheet.daggerheart.actor.dh-style {
|
||||||
|
--side-indent: 16px;
|
||||||
|
|
||||||
.portrait img,
|
.portrait img,
|
||||||
.profile {
|
.profile {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
@ -39,6 +41,33 @@
|
||||||
|
|
||||||
.window-header > .attribution-header-label {
|
.window-header > .attribution-header-label {
|
||||||
margin-right: var(--spacer-4);
|
margin-right: var(--spacer-4);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-navigation {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab {
|
||||||
|
padding: 0;
|
||||||
|
.search-section {
|
||||||
|
padding: var(--spacer-16) 12px var(--spacer-8) 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll-container {
|
||||||
|
scrollbar-gutter: stable;
|
||||||
|
overflow-y: auto;
|
||||||
|
.with-scroll-shadows();
|
||||||
|
|
||||||
|
padding: var(--spacer-16) calc(var(--side-indent) - var(--scrollbar-width)) 4px var(--side-indent);
|
||||||
|
|
||||||
|
> fieldset:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.scroll-container:not(:first-child) {
|
||||||
|
padding-top: var(--spacer-8); // nested have less top padding
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab.inventory {
|
.tab.inventory {
|
||||||
|
|
@ -46,7 +75,7 @@
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
padding: 10px 10px 0;
|
padding: var(--spacer-8) var(--side-indent) var(--spacer-12) var(--side-indent);
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
color: light-dark(@dark, @beige);
|
color: light-dark(@dark, @beige);
|
||||||
|
|
@ -94,7 +123,6 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
color: light-dark(@dark-blue-50, @beige-50);
|
color: light-dark(@dark-blue-50, @beige-50);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-top: 5px;
|
|
||||||
|
|
||||||
input {
|
input {
|
||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,6 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
|
||||||
padding-bottom: 20px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
|
||||||
padding-bottom: 20px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
> *:not(line-div, .tab-navigation) {
|
> *:not(line-div, .tab-navigation) {
|
||||||
padding-left: 15px;
|
padding-left: var(--side-indent);
|
||||||
padding-right: 15px;
|
padding-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
.application.sheet.daggerheart.actor.dh-style.adversary .tab.notes.active {
|
|
||||||
padding-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
@ -33,6 +33,8 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
margin: 0 0 10px 0;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -8,17 +8,11 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
height: 100%;
|
flex: 1;
|
||||||
overflow-y: auto;
|
|
||||||
padding-top: 8px;
|
|
||||||
padding-bottom: 20px;
|
|
||||||
height: 100%;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.characteristics-section {
|
.characteristics-section {
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
padding: 0 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.biography-section {
|
.biography-section {
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
|
||||||
padding-bottom: 20px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
|
||||||
padding-bottom: 20px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,16 +19,19 @@
|
||||||
|
|
||||||
.application.sheet.daggerheart.actor.dh-style.character {
|
.application.sheet.daggerheart.actor.dh-style.character {
|
||||||
.character-header-sheet {
|
.character-header-sheet {
|
||||||
padding: 0 15px;
|
|
||||||
padding-top: var(--header-height);
|
padding-top: var(--header-height);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
> *:not(line-div, .tab-navigation) {
|
||||||
|
margin-left: var(--side-indent);
|
||||||
|
margin-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
.name-row {
|
.name-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 0;
|
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
|
|
@ -100,8 +103,8 @@
|
||||||
.character-details {
|
.character-details {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 5px 0;
|
margin-top: 5px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 10px;
|
||||||
font-size: var(--font-size-12);
|
font-size: var(--font-size-12);
|
||||||
color: @color-text-emphatic;
|
color: @color-text-emphatic;
|
||||||
|
|
||||||
|
|
@ -130,7 +133,6 @@
|
||||||
.character-row {
|
.character-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0;
|
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
|
|
||||||
.resource-section {
|
.resource-section {
|
||||||
|
|
@ -218,7 +220,6 @@
|
||||||
|
|
||||||
.character-traits {
|
.character-traits {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 0;
|
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
max-width: 38.5rem;
|
max-width: 38.5rem;
|
||||||
|
|
@ -325,5 +326,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab-navigation button[data-action="openSettings"] {
|
||||||
|
margin-right: 12px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
@import './sheet.less';
|
||||||
@import './biography.less';
|
@import './biography.less';
|
||||||
@import './effects.less';
|
@import './effects.less';
|
||||||
@import './features.less';
|
@import './features.less';
|
||||||
@import './header.less';
|
@import './header.less';
|
||||||
@import './inventory.less';
|
@import './inventory.less';
|
||||||
@import './loadout.less';
|
@import './loadout.less';
|
||||||
@import './sheet.less';
|
|
||||||
@import './sidebar.less';
|
@import './sidebar.less';
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,6 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
|
||||||
margin-top: 20px;
|
|
||||||
padding-bottom: 20px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,11 +50,6 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
height: 100%;
|
|
||||||
overflow-y: auto;
|
|
||||||
margin-top: 20px;
|
|
||||||
padding-bottom: 20px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
@import '../../../utils/fonts.less';
|
@import '../../../utils/fonts.less';
|
||||||
|
|
||||||
.application.sheet.daggerheart.actor.dh-style.character {
|
.application.sheet.daggerheart.actor.dh-style.character {
|
||||||
|
--side-indent: 16px;
|
||||||
|
|
||||||
.window-content {
|
.window-content {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 275px 1fr;
|
grid-template-columns: 275px 1fr;
|
||||||
|
|
@ -10,28 +12,34 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.character-sidebar-sheet {
|
||||||
|
grid-row: 1 / span 2;
|
||||||
|
grid-column: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
.character-sidebar-sheet {
|
.character-header-sheet {
|
||||||
grid-row: 1 / span 2;
|
position: relative;
|
||||||
grid-column: 1;
|
grid-row: 1;
|
||||||
|
grid-column: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab {
|
||||||
|
grid-row: 2;
|
||||||
|
grid-column: 2;
|
||||||
|
padding-right: 0;
|
||||||
|
margin-right: 2px;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
&.active {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
overflow: hidden;
|
||||||
|
margin: 0 0 10px 0;
|
||||||
.character-header-sheet {
|
padding: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
grid-row: 1;
|
|
||||||
grid-column: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab {
|
|
||||||
grid-row: 2;
|
|
||||||
grid-column: 2;
|
|
||||||
&.active {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,17 @@
|
||||||
@import '../../../utils/colors.less';
|
@import '../../../utils/colors.less';
|
||||||
|
@import '../../../utils/mixin.less';
|
||||||
|
|
||||||
.application.sheet.daggerheart.actor.dh-style.companion {
|
.application.sheet.daggerheart.actor.dh-style.companion {
|
||||||
.tab.effects {
|
.tab.effects {
|
||||||
|
margin-right: 2px;
|
||||||
|
padding-right: 0;
|
||||||
.effects-sections {
|
.effects-sections {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 4px;
|
||||||
|
scrollbar-gutter: stable;
|
||||||
.with-scroll-shadows();
|
.with-scroll-shadows();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
|
||||||
padding-bottom: 4px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -138,10 +138,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.environment-navigation {
|
.environment-navigation {
|
||||||
padding: 0 20px;
|
padding-right: 20px;
|
||||||
|
|
||||||
.tab-navigation {
|
.tab-navigation {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
|
@import './sheet.less';
|
||||||
@import './features.less';
|
@import './features.less';
|
||||||
@import './header.less';
|
@import './header.less';
|
||||||
@import './potentialAdversaries.less';
|
@import './potentialAdversaries.less';
|
||||||
@import './sheet.less';
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
@import '../../../utils/colors.less';
|
@import '../../../utils/colors.less';
|
||||||
|
@import '../../../utils/mixin.less';
|
||||||
|
|
||||||
.application.sheet.daggerheart.actor.dh-style.environment {
|
.application.sheet.daggerheart.actor.dh-style.environment {
|
||||||
.tab.potentialAdversaries {
|
.tab.potentialAdversaries {
|
||||||
|
|
@ -6,9 +7,6 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
|
||||||
padding-bottom: 4px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
|
@import './sheet.less';
|
||||||
@import './header.less';
|
@import './header.less';
|
||||||
@import './party-members.less';
|
@import './party-members.less';
|
||||||
@import './sheet.less';
|
|
||||||
@import './inventory.less';
|
@import './inventory.less';
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,6 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
overflow-y: auto;
|
|
||||||
margin-top: 20px;
|
|
||||||
padding-bottom: 4px;
|
|
||||||
.with-scroll-shadows();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,30 @@
|
||||||
@import '../../../utils/fonts.less';
|
@import '../../../utils/fonts.less';
|
||||||
@import '../../../utils/mixin.less';
|
@import '../../../utils/mixin.less';
|
||||||
|
|
||||||
.application.sheet.daggerheart.actor.dh-style.party .tab.partyMembers {
|
.application.sheet.daggerheart.actor.dh-style.party .tab.partyMembers.active {
|
||||||
overflow: auto;
|
padding: var(--spacer-8) 4px 0 10px;
|
||||||
|
scrollbar-gutter: stable;
|
||||||
|
.with-scroll-shadows();
|
||||||
|
|
||||||
|
.actions-section {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
gap: 20px;
|
||||||
|
background-color: light-dark(@dark-blue-10, @golden-10);
|
||||||
|
|
||||||
|
button {
|
||||||
|
span {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.active-action {
|
||||||
|
animation: glow 0.75s infinite alternate;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.actors-list {
|
.actors-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -17,35 +17,10 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
.application.sheet.daggerheart.actor.dh-style.party {
|
.application.sheet.daggerheart.actor.dh-style.party {
|
||||||
.tab {
|
.tab.active {
|
||||||
|
overflow: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow-y: auto;
|
|
||||||
scrollbar-gutter: stable;
|
|
||||||
|
|
||||||
&.active {
|
|
||||||
overflow: auto;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.actions-section {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 10px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
gap: 20px;
|
|
||||||
background-color: light-dark(@dark-blue-10, @golden-10);
|
|
||||||
|
|
||||||
button {
|
|
||||||
span {
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.active-action {
|
|
||||||
animation: glow 0.75s infinite alternate;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -174,10 +174,10 @@
|
||||||
--fade-start: 0;
|
--fade-start: 0;
|
||||||
}
|
}
|
||||||
10%, 100% {
|
10%, 100% {
|
||||||
--fade-start: 12px;
|
--fade-start: 14px;
|
||||||
}
|
}
|
||||||
0%, 90% {
|
0%, 90% {
|
||||||
--fade-end: 12px;
|
--fade-end: 14px;
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
--fade-end: 0;
|
--fade-end: 0;
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,22 @@
|
||||||
<section class='tab {{tabs.effects.cssClass}} {{tabs.effects.id}}' data-tab='{{tabs.effects.id}}'
|
<section class='tab {{tabs.effects.cssClass}} {{tabs.effects.id}}' data-tab='{{tabs.effects.id}}'
|
||||||
data-group='{{tabs.effects.group}}'>
|
data-group='{{tabs.effects.group}}'>
|
||||||
<div class="effects-sections">
|
<div class="effects-sections scroll-container">
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title='DAGGERHEART.GENERAL.activeEffects'
|
title='DAGGERHEART.GENERAL.activeEffects'
|
||||||
type='effect'
|
type='effect'
|
||||||
isGlassy=true
|
isGlassy=true
|
||||||
collection=effects.actives
|
collection=effects.actives
|
||||||
canCreate=@root.editable
|
canCreate=@root.editable
|
||||||
hideResources=true
|
hideResources=true
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title='DAGGERHEART.GENERAL.inactiveEffects'
|
title='DAGGERHEART.GENERAL.inactiveEffects'
|
||||||
type='effect'
|
type='effect'
|
||||||
isGlassy=true
|
isGlassy=true
|
||||||
collection=effects.inactives
|
collection=effects.inactives
|
||||||
canCreate=@root.editable
|
canCreate=@root.editable
|
||||||
hideResources=true
|
hideResources=true
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -1,14 +1,17 @@
|
||||||
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
|
<section
|
||||||
data-group='{{tabs.features.group}}'>
|
class="tab {{tabs.features.cssClass}} {{tabs.features.id}}"
|
||||||
<div class="feature-section">
|
data-tab="{{tabs.features.id}}"
|
||||||
{{> 'daggerheart.inventory-items'
|
data-group="{{tabs.features.group}}">
|
||||||
title=tabs.features.label
|
<div class="feature-section scroll-container">
|
||||||
type='feature'
|
{{#each @root.features as |item|}}
|
||||||
collection=@root.features
|
{{> "daggerheart.inventory-item"
|
||||||
hideContextMenu=true
|
item=item
|
||||||
hideModifyControls=true
|
type="feature"
|
||||||
canCreate=@root.editable
|
actorType=@root.document.type
|
||||||
showActions=@root.editable
|
hideContextMenu=true
|
||||||
}}
|
hideModifyControls=true
|
||||||
|
showActions=@root.editable
|
||||||
|
}}
|
||||||
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -1,34 +1,34 @@
|
||||||
<section
|
<section
|
||||||
class='tab {{tabs.biography.cssClass}} {{tabs.biography.id}}'
|
class="tab {{tabs.biography.cssClass}} {{tabs.biography.id}}"
|
||||||
data-tab='{{tabs.biography.id}}'
|
data-tab="{{tabs.biography.id}}"
|
||||||
data-group='{{tabs.biography.group}}'
|
data-group='{{tabs.biography.group}}'
|
||||||
>
|
>
|
||||||
<div class="items-section">
|
<div class="items-section scroll-container">
|
||||||
<div class="characteristics-section flexrow">
|
<div class="characteristics-section flexrow">
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<span>{{localize 'DAGGERHEART.ACTORS.Character.pronouns'}}</span>
|
<span>{{localize 'DAGGERHEART.ACTORS.Character.pronouns'}}</span>
|
||||||
{{formInput systemFields.biography.fields.characteristics.fields.pronouns value=source.system.biography.characteristics.pronouns enriched=source.system.biography.characteristics.pronouns localize=true toggled=true}}
|
{{formInput systemFields.biography.fields.characteristics.fields.pronouns value=source.system.biography.characteristics.pronouns enriched=source.system.biography.characteristics.pronouns localize=true toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<span>{{localize 'DAGGERHEART.ACTORS.Character.age'}}</span>
|
<span>{{localize 'DAGGERHEART.ACTORS.Character.age'}}</span>
|
||||||
{{formInput systemFields.biography.fields.characteristics.fields.age value=source.system.biography.characteristics.age enriched=source.system.biography.characteristics.age localize=true toggled=true}}
|
{{formInput systemFields.biography.fields.characteristics.fields.age value=source.system.biography.characteristics.age enriched=source.system.biography.characteristics.age localize=true toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<span>{{localize 'DAGGERHEART.ACTORS.Character.faith'}}</span>
|
<span>{{localize 'DAGGERHEART.ACTORS.Character.faith'}}</span>
|
||||||
{{formInput systemFields.biography.fields.characteristics.fields.faith value=source.system.biography.characteristics.faith enriched=source.system.biography.characteristics.faith localize=true toggled=true}}
|
{{formInput systemFields.biography.fields.characteristics.fields.faith value=source.system.biography.characteristics.faith enriched=source.system.biography.characteristics.faith localize=true toggled=true}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<fieldset class="glassy biography-section">
|
<fieldset class="glassy biography-section">
|
||||||
<legend>{{localize 'DAGGERHEART.ACTORS.Character.story.backgroundTitle'}}</legend>
|
<legend>{{localize 'DAGGERHEART.ACTORS.Character.story.backgroundTitle'}}</legend>
|
||||||
{{formInput background.field value=background.value enriched=background.enriched toggled=true}}
|
{{formInput background.field value=background.value enriched=background.enriched toggled=true}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset class="glassy biography-section">
|
<fieldset class="glassy biography-section">
|
||||||
<legend>{{localize 'DAGGERHEART.ACTORS.Character.story.connectionsTitle'}}</legend>
|
<legend>{{localize 'DAGGERHEART.ACTORS.Character.story.connectionsTitle'}}</legend>
|
||||||
{{formInput connections.field value=connections.value enriched=connections.enriched toggled=true}}
|
{{formInput connections.field value=connections.value enriched=connections.enriched toggled=true}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -1,24 +1,24 @@
|
||||||
<section class='tab {{tabs.effects.cssClass}} {{tabs.effects.id}}' data-tab='{{tabs.effects.id}}'
|
<section class='tab {{tabs.effects.cssClass}} {{tabs.effects.id}}' data-tab='{{tabs.effects.id}}'
|
||||||
data-group='{{tabs.effects.group}}'>
|
data-group='{{tabs.effects.group}}'>
|
||||||
|
|
||||||
<div class="effects-sections">
|
<div class="effects-sections scroll-container">
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title='DAGGERHEART.GENERAL.activeEffects'
|
title='DAGGERHEART.GENERAL.activeEffects'
|
||||||
type='effect'
|
type='effect'
|
||||||
isGlassy=true
|
isGlassy=true
|
||||||
collection=effects.actives
|
collection=effects.actives
|
||||||
canCreate=@root.editable
|
canCreate=@root.editable
|
||||||
hideResources=true
|
hideResources=true
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title='DAGGERHEART.GENERAL.inactiveEffects'
|
title='DAGGERHEART.GENERAL.inactiveEffects'
|
||||||
type='effect'
|
type='effect'
|
||||||
isGlassy=true
|
isGlassy=true
|
||||||
collection=effects.inactives
|
collection=effects.inactives
|
||||||
canCreate=@root.editable
|
canCreate=@root.editable
|
||||||
hideResources=true
|
hideResources=true
|
||||||
disabled=true
|
disabled=true
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -1,26 +1,28 @@
|
||||||
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
|
<section
|
||||||
data-group='{{tabs.features.group}}'>
|
class="tab {{tabs.features.cssClass}} {{tabs.features.id}}"
|
||||||
<div class="features-sections">
|
data-tab="{{tabs.features.id}}"
|
||||||
{{#each document.system.sheetLists as |category|}}
|
data-group="{{tabs.features.group}}">
|
||||||
{{#if (eq category.type 'feature' )}}
|
<div class="features-section scroll-container">
|
||||||
{{> 'daggerheart.inventory-items'
|
{{#each document.system.sheetLists as |category|}}
|
||||||
title=category.title
|
{{#if (eq category.type "feature" )}}
|
||||||
type='feature'
|
{{> "daggerheart.inventory-items"
|
||||||
actorType='character'
|
title=category.title
|
||||||
collection=category.values
|
type="feature"
|
||||||
canCreate=@root.editable
|
actorType="character"
|
||||||
showActions=@root.editable
|
collection=category.values
|
||||||
}}
|
canCreate=@root.editable
|
||||||
{{else if category.values}}
|
showActions=@root.editable
|
||||||
{{> 'daggerheart.inventory-items'
|
}}
|
||||||
title=category.title
|
{{else if category.values}}
|
||||||
type='feature'
|
{{> "daggerheart.inventory-items"
|
||||||
actorType='character'
|
title=category.title
|
||||||
collection=category.values
|
type="feature"
|
||||||
canCreate=false
|
actorType="character"
|
||||||
showActions=@root.editable
|
collection=category.values
|
||||||
}}
|
canCreate=false
|
||||||
{{/if}}
|
showActions=@root.editable
|
||||||
{{/each}}
|
}}
|
||||||
</div>
|
{{/if}}
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -1,165 +1,163 @@
|
||||||
<header class="character-header-sheet">
|
<header class="character-header-sheet">
|
||||||
<line-div></line-div>
|
<line-div></line-div>
|
||||||
<div class="name-row">
|
<div class="name-row">
|
||||||
<h1
|
<h1
|
||||||
class="actor-name input"
|
class="actor-name input"
|
||||||
contenteditable="plaintext-only"
|
contenteditable="plaintext-only"
|
||||||
data-property="name"
|
data-property="name"
|
||||||
placeholder="{{localize "DAGGERHEART.GENERAL.actorName"}}"
|
placeholder="{{localize "DAGGERHEART.GENERAL.actorName"}}"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
>{{source.name}}</h1>
|
>{{source.name}}</h1>
|
||||||
<div class='level-div'>
|
<div class='level-div'>
|
||||||
<h3 class='label'>
|
<h3 class='label'>
|
||||||
{{#if @root.editable}}
|
{{#if @root.editable}}
|
||||||
{{#if document.system.needsCharacterSetup}}
|
{{#if document.system.needsCharacterSetup}}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="level-button glow"
|
class="level-button glow"
|
||||||
data-action="levelManagement"
|
data-action="levelManagement"
|
||||||
>
|
>
|
||||||
{{localize "DAGGERHEART.APPLICATIONS.CharacterCreation.buttonTitle"}}
|
{{localize "DAGGERHEART.APPLICATIONS.CharacterCreation.buttonTitle"}}
|
||||||
</button>
|
</button>
|
||||||
{{else if document.system.levelData.canLevelUp}}
|
{{else if document.system.levelData.canLevelUp}}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="level-button glow" data-tooltip="{{localize "DAGGERHEART.ACTORS.Character.levelUp"}}"
|
class="level-button glow" data-tooltip="{{localize "DAGGERHEART.ACTORS.Character.levelUp"}}"
|
||||||
data-action="levelManagement"
|
data-action="levelManagement"
|
||||||
>
|
>
|
||||||
<i class="fa-solid fa-angles-up"></i>
|
<i class="fa-solid fa-angles-up"></i>
|
||||||
</button>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#unless document.system.needsCharacterSetup}}
|
{{#unless document.system.needsCharacterSetup}}
|
||||||
{{localize 'DAGGERHEART.GENERAL.level'}}
|
{{localize 'DAGGERHEART.GENERAL.level'}}
|
||||||
<input type="text" data-dtype="Number" class="level-value" value={{#if document.system.needsCharacterSetup}}0{{else}}{{document.system.levelData.level.changed}}{{/if}} {{#if document.system.needsCharacterSetup}}disabled{{/if}} />
|
<input type="text" data-dtype="Number" class="level-value" value={{#if document.system.needsCharacterSetup}}0{{else}}{{document.system.levelData.level.changed}}{{/if}} {{#if document.system.needsCharacterSetup}}disabled{{/if}} />
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="character-details">
|
<div class="character-details">
|
||||||
<div>
|
<div>
|
||||||
{{#if document.system.class.value}}
|
{{#if document.system.class.value}}
|
||||||
<span data-action="editDoc" data-item-uuid="{{document.system.class.value.uuid}}">{{document.system.class.value.name}}</span>
|
<span data-action="editDoc" data-item-uuid="{{document.system.class.value.uuid}}">{{document.system.class.value.name}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="missing-header-feature" data-action="openPack" data-key="classes">{{localize 'TYPES.Item.class'}}</span>
|
<span class="missing-header-feature" data-action="openPack" data-key="classes">{{localize 'TYPES.Item.class'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span class="dot">•</span>
|
<span class="dot">•</span>
|
||||||
{{#if document.system.class.subclass}}
|
{{#if document.system.class.subclass}}
|
||||||
<span data-action="editDoc" data-item-uuid="{{document.system.class.subclass.uuid}}">{{document.system.class.subclass.name}}</span>
|
<span data-action="editDoc" data-item-uuid="{{document.system.class.subclass.uuid}}">{{document.system.class.subclass.name}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="missing-header-feature" data-action="openPack" data-key="subclasses">{{localize 'TYPES.Item.subclass'}}</span>
|
<span class="missing-header-feature" data-action="openPack" data-key="subclasses">{{localize 'TYPES.Item.subclass'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span class="dot">•</span>
|
<span class="dot">•</span>
|
||||||
{{#if document.system.community}}
|
{{#if document.system.community}}
|
||||||
<span data-action="editDoc" data-item-uuid="{{document.system.community.uuid}}">{{document.system.community.name}}</span>
|
<span data-action="editDoc" data-item-uuid="{{document.system.community.uuid}}">{{document.system.community.name}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="missing-header-feature" data-action="openPack" data-key="communities">{{localize 'TYPES.Item.community'}}</span>
|
<span class="missing-header-feature" data-action="openPack" data-key="communities">{{localize 'TYPES.Item.community'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span class="dot">•</span>
|
<span class="dot">•</span>
|
||||||
{{#if document.system.ancestry}}
|
{{#if document.system.ancestry}}
|
||||||
<span data-action="editDoc" data-item-uuid="{{document.system.ancestry.uuid}}">{{document.system.ancestry.name}}</span>
|
<span data-action="editDoc" data-item-uuid="{{document.system.ancestry.uuid}}">{{document.system.ancestry.name}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="missing-header-feature" data-action="openPack" data-key="ancestries">{{localize 'TYPES.Item.ancestry'}}</span>
|
<span class="missing-header-feature" data-action="openPack" data-key="ancestries">{{localize 'TYPES.Item.ancestry'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if (or document.system.multiclass.value document.system.multiclass.subclass)}}
|
{{#if (or document.system.multiclass.value document.system.multiclass.subclass)}}
|
||||||
<div class="multiclass">
|
<div class="multiclass">
|
||||||
{{#if document.system.multiclass.value}}
|
{{#if document.system.multiclass.value}}
|
||||||
<span data-action="editDoc"data-item-uuid="{{document.system.multiclass.value.uuid}}">{{document.system.multiclass.value.name}}</span>
|
<span data-action="editDoc"data-item-uuid="{{document.system.multiclass.value.uuid}}">{{document.system.multiclass.value.name}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span data-action="openPack" data-key="classes">{{localize 'DAGGERHEART.GENERAL.multiclass'}}</span>
|
<span data-action="openPack" data-key="classes">{{localize 'DAGGERHEART.GENERAL.multiclass'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span class="dot">•</span>
|
<span class="dot">•</span>
|
||||||
{{#if document.system.multiclass.subclass}}
|
{{#if document.system.multiclass.subclass}}
|
||||||
<span data-action="editDoc" data-item-uuid="{{document.system.multiclass.subclass.uuid}}">{{document.system.multiclass.subclass.name}}</span>
|
<span data-action="editDoc" data-item-uuid="{{document.system.multiclass.subclass.uuid}}">{{document.system.multiclass.subclass.name}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="missing-header-feature" data-action="openPack" data-key="subclasses">{{localize 'TYPES.Item.subclass'}}</span>
|
<span class="missing-header-feature" data-action="openPack" data-key="subclasses">{{localize 'TYPES.Item.subclass'}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
<div class="character-row">
|
||||||
|
<div class="resource-section">
|
||||||
<div class="character-row">
|
<div class="hope-section">
|
||||||
<div class="resource-section">
|
<h4>{{localize "DAGGERHEART.GENERAL.hope"}}</h4>
|
||||||
<div class="hope-section">
|
{{#times document.system.resources.hope.max}}
|
||||||
<h4>{{localize "DAGGERHEART.GENERAL.hope"}}</h4>
|
<span class='hope-value' data-action='toggleHope' data-value="{{add this 1}}">
|
||||||
{{#times document.system.resources.hope.max}}
|
{{#if (gte ../document.system.resources.hope.value (add this 1))}}
|
||||||
<span class='hope-value' data-action='toggleHope' data-value="{{add this 1}}">
|
<i class='fa-solid fa-diamond'></i>
|
||||||
{{#if (gte ../document.system.resources.hope.value (add this 1))}}
|
{{else}}
|
||||||
<i class='fa-solid fa-diamond'></i>
|
<i class='fa-regular fa-circle'></i>
|
||||||
{{else}}
|
{{/if}}
|
||||||
<i class='fa-regular fa-circle'></i>
|
</span>
|
||||||
{{/if}}
|
{{/times}}
|
||||||
</span>
|
{{#times document.system.scars}}
|
||||||
{{/times}}
|
<span class='hope-value scar'>
|
||||||
{{#times document.system.scars}}
|
<i class='fa-regular fa-ban'></i>
|
||||||
<span class='hope-value scar'>
|
</span>
|
||||||
<i class='fa-regular fa-ban'></i>
|
{{/times}}
|
||||||
</span>
|
{{#if hasExtraResources}}<a type="button" class="resource-manager" data-action="toggleResourceManagement"><i class="fa-solid fa-angle-down"></i></a>{{/if}}
|
||||||
{{/times}}
|
</div>
|
||||||
{{#if hasExtraResources}}<a type="button" class="resource-manager" data-action="toggleResourceManagement"><i class="fa-solid fa-angle-down"></i></a>{{/if}}
|
</div>
|
||||||
</div>
|
{{#if document.system.class.value}}
|
||||||
</div>
|
<div class="domains-section">
|
||||||
{{#if document.system.class.value}}
|
{{#each document.system.domainData as |data|}}
|
||||||
<div class="domains-section">
|
<div class="domain">
|
||||||
{{#each document.system.domainData as |data|}}
|
<img src="{{data.src}}" alt="" data-tooltip="{{data.label}}" />
|
||||||
<div class="domain">
|
</div>
|
||||||
<img src="{{data.src}}" alt="" data-tooltip="{{data.label}}" />
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/if}}
|
||||||
</div>
|
<div class="downtime-section">
|
||||||
{{/if}}
|
{{#if document.parties.size}}
|
||||||
<div class="downtime-section">
|
<button type="button" data-action="viewParty" data-tooltip="DAGGERHEART.ACTORS.Character.viewParty">
|
||||||
{{#if document.parties.size}}
|
<i class="fa-solid fa-fw fa-users"></i>
|
||||||
<button type="button" data-action="viewParty" data-tooltip="DAGGERHEART.ACTORS.Character.viewParty">
|
</button>
|
||||||
<i class="fa-solid fa-fw fa-users"></i>
|
{{/if}}
|
||||||
</button>
|
{{#if @root.editable}}
|
||||||
{{/if}}
|
<button type="button" data-action="useDowntime" data-type="shortRest" data-tooltip="DAGGERHEART.APPLICATIONS.Downtime.shortRest.title">
|
||||||
{{#if @root.editable}}
|
<i class="fa-solid fa-fw fa-utensils"></i>
|
||||||
<button type="button" data-action="useDowntime" data-type="shortRest" data-tooltip="DAGGERHEART.APPLICATIONS.Downtime.shortRest.title">
|
</button>
|
||||||
<i class="fa-solid fa-fw fa-utensils"></i>
|
<button type="button" data-action="useDowntime" data-type="longRest" data-tooltip="DAGGERHEART.APPLICATIONS.Downtime.longRest.title">
|
||||||
</button>
|
<i class="fa-solid fa-fw fa-bed"></i>
|
||||||
<button type="button" data-action="useDowntime" data-type="longRest" data-tooltip="DAGGERHEART.APPLICATIONS.Downtime.longRest.title">
|
</button>
|
||||||
<i class="fa-solid fa-fw fa-bed"></i>
|
{{/if}}
|
||||||
</button>
|
</div>
|
||||||
{{/if}}
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
<div class="character-traits">
|
||||||
|
{{#each this.attributes as |attribute key|}}
|
||||||
<div class="character-traits">
|
<div class="trait {{#if isSpellcasting}}with-spellcasting{{/if}}" data-tooltip="<b>{{attribute.label}}:</b><br>{{#each attribute.verbs}}{{this}}<br>{{/each}}" data-action="rollAttribute" data-attribute="{{key}}" data-value="{{attribute.value}}">
|
||||||
{{#each this.attributes as |attribute key|}}
|
<div class="trait-name">
|
||||||
<div class="trait {{#if isSpellcasting}}with-spellcasting{{/if}}" data-tooltip="<b>{{attribute.label}}:</b><br>{{#each attribute.verbs}}{{this}}<br>{{/each}}" data-action="rollAttribute" data-attribute="{{key}}" data-value="{{attribute.value}}">
|
<div class="tier-mark {{#if attribute.tierMarked}}marked{{/if}}"></div>
|
||||||
<div class="trait-name">
|
<span>{{attribute.label}}</span>
|
||||||
<div class="tier-mark {{#if attribute.tierMarked}}marked{{/if}}"></div>
|
</div>
|
||||||
<span>{{attribute.label}}</span>
|
<div class="trait-value-area">
|
||||||
</div>
|
<svg width="52" height="46" viewBox="0 0 52 46" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<div class="trait-value-area">
|
<path d="M 0,0 H 52 L 51.0714,18.254 48.781,24.0952 47.5745,39.9596 26,46 4.42553,39.9596 3.219,24.0952 0.928571,18.254 Z" fill="var(--color-border)"/>
|
||||||
<svg width="52" height="46" viewBox="0 0 52 46" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<path d="M 3.312,5.357 8.58596,0 H 43.414 l 5.274,5.357 -1.8797,28.846 c -0.2431,2.605 -2.1461,4.7522 -4.7031,5.3064 l -14.8343,3.2151 c -0.8375,0.1816 -1.7043,0.1816 -2.5418,0 L 9.89482,39.5094 C 7.33785,38.9552 5.43478,36.808 5.19169,34.203 Z" fill="var(--background)"/>
|
||||||
<path d="M 0,0 H 52 L 51.0714,18.254 48.781,24.0952 47.5745,39.9596 26,46 4.42553,39.9596 3.219,24.0952 0.928571,18.254 Z" fill="var(--color-border)"/>
|
</svg>
|
||||||
<path d="M 3.312,5.357 8.58596,0 H 43.414 l 5.274,5.357 -1.8797,28.846 c -0.2431,2.605 -2.1461,4.7522 -4.7031,5.3064 l -14.8343,3.2151 c -0.8375,0.1816 -1.7043,0.1816 -2.5418,0 L 9.89482,39.5094 C 7.33785,38.9552 5.43478,36.808 5.19169,34.203 Z" fill="var(--background)"/>
|
<div class="trait-value">
|
||||||
</svg>
|
{{#if (gt attribute.value 0)}}
|
||||||
<div class="trait-value">
|
<span>+{{attribute.value}}</span>
|
||||||
{{#if (gt attribute.value 0)}}
|
{{else}}
|
||||||
<span>+{{attribute.value}}</span>
|
<span>{{attribute.value}}</span>
|
||||||
{{else}}
|
{{/if}}
|
||||||
<span>{{attribute.value}}</span>
|
</div>
|
||||||
{{/if}}
|
{{#if isSpellcasting}}
|
||||||
</div>
|
<div class="spellcasting-mark" data-tooltip="DAGGERHEART.ITEMS.Subclass.spellcastingTrait">
|
||||||
{{#if isSpellcasting}}
|
<i class="fa-solid fa-wand-magic-sparkles" inert></i>
|
||||||
<div class="spellcasting-mark" data-tooltip="DAGGERHEART.ITEMS.Subclass.spellcastingTrait">
|
</div>
|
||||||
<i class="fa-solid fa-wand-magic-sparkles" inert></i>
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
</div>
|
||||||
</div>
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
|
||||||
</div>
|
{{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' }}
|
||||||
|
<button type="button" data-action="openSettings" data-tooltip-text="{{localize "DAGGERHEART.UI.Tooltip.openSheetSettings"}}"><i class="fa-solid fa-wrench"></i></button>
|
||||||
{{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' }}
|
{{/'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
|
||||||
<button type="button" data-action="openSettings" data-tooltip-text="{{localize "DAGGERHEART.UI.Tooltip.openSheetSettings"}}"><i class="fa-solid fa-wrench"></i></button>
|
|
||||||
{{/'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
|
|
||||||
</header>
|
</header>
|
||||||
|
|
@ -1,54 +1,54 @@
|
||||||
<section class='tab {{tabs.inventory.cssClass}} {{tabs.inventory.id}}' data-tab='{{tabs.inventory.id}}'
|
<section class='tab {{tabs.inventory.cssClass}} {{tabs.inventory.id}}' data-tab='{{tabs.inventory.id}}'
|
||||||
data-group='{{tabs.inventory.group}}'>
|
data-group='{{tabs.inventory.group}}'>
|
||||||
<div class="search-section">
|
<div class="search-section">
|
||||||
<div class="search-bar">
|
<div class="search-bar">
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<i class="fa-solid fa-magnifying-glass"></i>
|
<i class="fa-solid fa-magnifying-glass"></i>
|
||||||
</div>
|
</div>
|
||||||
<input type="search" name="search" class="search-inventory" placeholder="{{localize "DAGGERHEART.GENERAL.searchPlaceholder"}}">
|
<input type="search" name="search" class="search-inventory" placeholder="{{localize "DAGGERHEART.GENERAL.searchPlaceholder"}}">
|
||||||
</div>
|
</div>
|
||||||
<a class="filter-button">
|
<a class="filter-button">
|
||||||
<i class="fa-solid fa-filter"></i>
|
<i class="fa-solid fa-filter"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if this.inventory.hasCurrency}}
|
{{#if this.inventory.hasCurrency}}
|
||||||
{{> "systems/daggerheart/templates/sheets/global/partials/gold.hbs" currencies=inventory.currencies}}
|
{{> "systems/daggerheart/templates/sheets/global/partials/gold.hbs" currencies=inventory.currencies}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="items-section">
|
<div class="items-section scroll-container">
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title='TYPES.Item.weapon'
|
title='TYPES.Item.weapon'
|
||||||
type='weapon'
|
type='weapon'
|
||||||
collection=@root.inventory.weapons
|
collection=@root.inventory.weapons
|
||||||
isGlassy=true
|
isGlassy=true
|
||||||
canCreate=@root.editable
|
canCreate=@root.editable
|
||||||
hideResources=true
|
hideResources=true
|
||||||
}}
|
}}
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title='TYPES.Item.armor'
|
title='TYPES.Item.armor'
|
||||||
type='armor'
|
type='armor'
|
||||||
collection=@root.inventory.armor
|
collection=@root.inventory.armor
|
||||||
isGlassy=true
|
isGlassy=true
|
||||||
canCreate=@root.editable
|
canCreate=@root.editable
|
||||||
hideResources=true
|
hideResources=true
|
||||||
}}
|
}}
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title='TYPES.Item.consumable'
|
title='TYPES.Item.consumable'
|
||||||
type='consumable'
|
type='consumable'
|
||||||
collection=@root.inventory.consumables
|
collection=@root.inventory.consumables
|
||||||
isGlassy=true
|
isGlassy=true
|
||||||
canCreate=@root.editable
|
canCreate=@root.editable
|
||||||
isQuantifiable=true
|
isQuantifiable=true
|
||||||
}}
|
}}
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title='TYPES.Item.loot'
|
title='TYPES.Item.loot'
|
||||||
type='loot'
|
type='loot'
|
||||||
collection=@root.inventory.loot
|
collection=@root.inventory.loot
|
||||||
isGlassy=true
|
isGlassy=true
|
||||||
canCreate=@root.editable
|
canCreate=@root.editable
|
||||||
showActions=@root.editable
|
showActions=@root.editable
|
||||||
isQuantifiable=true
|
isQuantifiable=true
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -1,42 +1,42 @@
|
||||||
<section class='tab {{tabs.loadout.cssClass}} {{tabs.loadout.id}}' data-tab='{{tabs.loadout.id}}'
|
<section class='tab {{tabs.loadout.cssClass}} {{tabs.loadout.id}}' data-tab='{{tabs.loadout.id}}'
|
||||||
data-group='{{tabs.loadout.group}}'>
|
data-group='{{tabs.loadout.group}}'>
|
||||||
<div class="search-section">
|
<div class="search-section">
|
||||||
<div class="search-bar">
|
<div class="search-bar">
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<i class="fa-solid fa-magnifying-glass"></i>
|
<i class="fa-solid fa-magnifying-glass"></i>
|
||||||
</div>
|
</div>
|
||||||
<input type="search" name="search" class="search-loadout" placeholder="{{localize "DAGGERHEART.GENERAL.searchPlaceholder"}}">
|
<input type="search" name="search" class="search-loadout" placeholder="{{localize "DAGGERHEART.GENERAL.searchPlaceholder"}}">
|
||||||
</div>
|
</div>
|
||||||
<a class="filter-button">
|
<a class="filter-button">
|
||||||
<i class="fa-solid fa-filter"></i>
|
<i class="fa-solid fa-filter"></i>
|
||||||
</a>
|
</a>
|
||||||
<button type="button" class="btn-toggle-view" data-action="toggleLoadoutView" data-value="{{not cardView}}">
|
<button type="button" class="btn-toggle-view" data-action="toggleLoadoutView" data-value="{{not cardView}}">
|
||||||
<span class="{{ifThen cardView '' 'list-active'}} list-icon">
|
<span class="{{ifThen cardView '' 'list-active'}} list-icon">
|
||||||
<i class="fa-solid fa-bars"></i>
|
<i class="fa-solid fa-bars"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="{{ifThen cardView 'grid-active' ''}} grid-icon">
|
<span class="{{ifThen cardView 'grid-active' ''}} grid-icon">
|
||||||
<i class="fa-solid fa-grip"></i>
|
<i class="fa-solid fa-grip"></i>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="items-section">
|
<div class="items-section scroll-container">
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title='DAGGERHEART.GENERAL.Tabs.loadout'
|
title='DAGGERHEART.GENERAL.Tabs.loadout'
|
||||||
type='domainCard'
|
type='domainCard'
|
||||||
isGlassy=true
|
isGlassy=true
|
||||||
cardView=cardView
|
cardView=cardView
|
||||||
collection=document.system.domainCards.loadout
|
collection=document.system.domainCards.loadout
|
||||||
canCreate=@root.editable
|
canCreate=@root.editable
|
||||||
}}
|
}}
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title='DAGGERHEART.GENERAL.Tabs.vault'
|
title='DAGGERHEART.GENERAL.Tabs.vault'
|
||||||
type='domainCard'
|
type='domainCard'
|
||||||
isGlassy=true
|
isGlassy=true
|
||||||
cardView=cardView
|
cardView=cardView
|
||||||
collection=document.system.domainCards.vault
|
collection=document.system.domainCards.vault
|
||||||
canCreate=@root.editable
|
canCreate=@root.editable
|
||||||
inVault=true
|
inVault=true
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -1,17 +1,18 @@
|
||||||
<section
|
<section
|
||||||
class='tab {{tabs.features.cssClass}} {{tabs.features.id}}'
|
class="tab {{tabs.features.cssClass}} {{tabs.features.id}}"
|
||||||
data-tab='{{tabs.features.id}}'
|
data-tab="{{tabs.features.id}}"
|
||||||
data-group='{{tabs.features.group}}'
|
data-group="{{tabs.features.group}}"
|
||||||
>
|
>
|
||||||
<div class="feature-section">
|
<div class="feature-section scroll-container">
|
||||||
{{> 'daggerheart.inventory-items'
|
{{#each @root.features as |item|}}
|
||||||
title=tabs.features.label
|
{{> "daggerheart.inventory-item"
|
||||||
type='feature'
|
item=item
|
||||||
collection=@root.features
|
type="feature"
|
||||||
hideContextMenu=true
|
actorType=@root.document.type
|
||||||
hideModifyControls=true
|
hideContextMenu=true
|
||||||
canCreate=@root.editable
|
hideModifyControls=true
|
||||||
showActions=@root.editable
|
showActions=@root.editable
|
||||||
}}
|
}}
|
||||||
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -1,20 +1,20 @@
|
||||||
<section
|
<section
|
||||||
class='tab {{tabs.potentialAdversaries.cssClass}} {{tabs.potentialAdversaries.id}}'
|
class='tab {{tabs.potentialAdversaries.cssClass}} {{tabs.potentialAdversaries.id}}'
|
||||||
data-tab='{{tabs.potentialAdversaries.id}}'
|
data-tab='{{tabs.potentialAdversaries.id}}'
|
||||||
data-group='{{tabs.potentialAdversaries.group}}'
|
data-group='{{tabs.potentialAdversaries.group}}'
|
||||||
>
|
>
|
||||||
<div class="items-section">
|
<div class="items-section scroll-container">
|
||||||
{{#each document.system.potentialAdversaries as |category categoryId|}}
|
{{#each document.system.potentialAdversaries as |category categoryId|}}
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title=category.label
|
title=category.label
|
||||||
type='adversary'
|
type='adversary'
|
||||||
isGlassy=true
|
isGlassy=true
|
||||||
isActor=true
|
isActor=true
|
||||||
categoryAdversary=categoryId
|
categoryAdversary=categoryId
|
||||||
hideControls=true
|
hideControls=true
|
||||||
collection=category.adversaries
|
collection=category.adversaries
|
||||||
hideResources=true
|
hideResources=true
|
||||||
}}
|
}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
{{> "systems/daggerheart/templates/sheets/global/partials/gold.hbs" currencies=inventory.currencies}}
|
{{> "systems/daggerheart/templates/sheets/global/partials/gold.hbs" currencies=inventory.currencies}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="items-section">
|
<div class="items-section scroll-container">
|
||||||
{{> 'daggerheart.inventory-items'
|
{{> 'daggerheart.inventory-items'
|
||||||
title='TYPES.Item.weapon'
|
title='TYPES.Item.weapon'
|
||||||
type='weapon'
|
type='weapon'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue