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 {
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
margin-top: 5px;
|
||||
border-radius: 6px;
|
||||
border-color: @color-fieldset-border;
|
||||
|
||||
&.glassy {
|
||||
background-color: light-dark(@dark-blue-10, @golden-10);
|
||||
border-color: transparent;
|
||||
border: none;
|
||||
padding-inline: 10px;
|
||||
|
||||
legend {
|
||||
padding: 2px 12px;
|
||||
|
|
@ -512,7 +514,7 @@
|
|||
height: 1px;
|
||||
width: 100%;
|
||||
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 {
|
||||
|
|
@ -546,50 +548,6 @@
|
|||
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 {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
|
|
@ -597,7 +555,7 @@
|
|||
font-style: italic;
|
||||
font-family: @font-body;
|
||||
margin-top: 4px;
|
||||
color: light-dark(#14142599, #efe6d850);
|
||||
color: @color-text-subtle;
|
||||
font-size: var(--font-size-12);
|
||||
padding-left: 3px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@
|
|||
flex-wrap: wrap;
|
||||
font-size: var(--font-size-12);
|
||||
justify-content: start;
|
||||
padding: 3px 5px;
|
||||
padding: 2px 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,8 +45,11 @@
|
|||
|
||||
.item-main {
|
||||
border-radius: 5px;
|
||||
|
||||
// Make hover extend out of bounds.
|
||||
// Because of this extra spacing, the scroll container parent needs some padding
|
||||
padding: 2px;
|
||||
margin: -2px;
|
||||
margin: -2px -2px 0 -2px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
|
@ -271,6 +274,50 @@
|
|||
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 {
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ body.game:is(.performance-low, .noblur) {
|
|||
position: relative;
|
||||
min-height: -webkit-fill-available;
|
||||
transition: opacity 0.3s ease;
|
||||
padding-bottom: 20px;
|
||||
padding-bottom: 16px;
|
||||
|
||||
.tab {
|
||||
padding: 0 10px;
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@
|
|||
});
|
||||
|
||||
.application.sheet.daggerheart.actor.dh-style {
|
||||
--side-indent: 16px;
|
||||
|
||||
.portrait img,
|
||||
.profile {
|
||||
width: 100%;
|
||||
|
|
@ -39,6 +41,33 @@
|
|||
|
||||
.window-header > .attribution-header-label {
|
||||
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 {
|
||||
|
|
@ -46,7 +75,7 @@
|
|||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||
gap: 10px;
|
||||
padding: 10px 10px 0;
|
||||
padding: var(--spacer-8) var(--side-indent) var(--spacer-12) var(--side-indent);
|
||||
|
||||
.input {
|
||||
color: light-dark(@dark, @beige);
|
||||
|
|
@ -94,7 +123,6 @@
|
|||
position: relative;
|
||||
color: light-dark(@dark-blue-50, @beige-50);
|
||||
width: 100%;
|
||||
padding-top: 5px;
|
||||
|
||||
input {
|
||||
border-radius: 50px;
|
||||
|
|
|
|||
|
|
@ -7,9 +7,6 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 20px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 20px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
width: 100%;
|
||||
|
||||
> *:not(line-div, .tab-navigation) {
|
||||
padding-left: 15px;
|
||||
padding-left: var(--side-indent);
|
||||
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;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0 0 10px 0;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -8,17 +8,11 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 20px;
|
||||
height: 100%;
|
||||
.with-scroll-shadows();
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.characteristics-section {
|
||||
gap: 20px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.biography-section {
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 20px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 20px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,16 +19,19 @@
|
|||
|
||||
.application.sheet.daggerheart.actor.dh-style.character {
|
||||
.character-header-sheet {
|
||||
padding: 0 15px;
|
||||
padding-top: var(--header-height);
|
||||
width: 100%;
|
||||
|
||||
> *:not(line-div, .tab-navigation) {
|
||||
margin-left: var(--side-indent);
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.name-row {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
align-items: start;
|
||||
justify-content: space-between;
|
||||
padding: 0;
|
||||
padding-top: 5px;
|
||||
flex: 1;
|
||||
|
||||
|
|
@ -100,8 +103,8 @@
|
|||
.character-details {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 5px 0;
|
||||
margin-bottom: 8px;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 10px;
|
||||
font-size: var(--font-size-12);
|
||||
color: @color-text-emphatic;
|
||||
|
||||
|
|
@ -130,7 +133,6 @@
|
|||
.character-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
margin-bottom: 12px;
|
||||
|
||||
.resource-section {
|
||||
|
|
@ -218,7 +220,6 @@
|
|||
|
||||
.character-traits {
|
||||
display: flex;
|
||||
padding: 0;
|
||||
margin-bottom: 15px;
|
||||
justify-content: space-between;
|
||||
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 './effects.less';
|
||||
@import './features.less';
|
||||
@import './header.less';
|
||||
@import './inventory.less';
|
||||
@import './loadout.less';
|
||||
@import './sheet.less';
|
||||
@import './sidebar.less';
|
||||
|
|
|
|||
|
|
@ -8,10 +8,6 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
margin-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,11 +50,6 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
margin-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
@import '../../../utils/fonts.less';
|
||||
|
||||
.application.sheet.daggerheart.actor.dh-style.character {
|
||||
--side-indent: 16px;
|
||||
|
||||
.window-content {
|
||||
display: grid;
|
||||
grid-template-columns: 275px 1fr;
|
||||
|
|
@ -10,6 +12,7 @@
|
|||
width: 100%;
|
||||
padding-bottom: 0;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.character-sidebar-sheet {
|
||||
grid-row: 1 / span 2;
|
||||
|
|
@ -27,11 +30,16 @@
|
|||
.tab {
|
||||
grid-row: 2;
|
||||
grid-column: 2;
|
||||
padding-right: 0;
|
||||
margin-right: 2px;
|
||||
margin-bottom: 12px;
|
||||
&.active {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
margin: 0 0 10px 0;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
@import '../../../utils/colors.less';
|
||||
@import '../../../utils/mixin.less';
|
||||
|
||||
.application.sheet.daggerheart.actor.dh-style.companion {
|
||||
.tab.effects {
|
||||
margin-right: 2px;
|
||||
padding-right: 0;
|
||||
.effects-sections {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 20px;
|
||||
padding-bottom: 4px;
|
||||
scrollbar-gutter: stable;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 4px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,10 +138,11 @@
|
|||
}
|
||||
|
||||
.environment-navigation {
|
||||
padding: 0 20px;
|
||||
padding-right: 20px;
|
||||
|
||||
.tab-navigation {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@import './sheet.less';
|
||||
@import './features.less';
|
||||
@import './header.less';
|
||||
@import './potentialAdversaries.less';
|
||||
@import './sheet.less';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
@import '../../../utils/colors.less';
|
||||
@import '../../../utils/mixin.less';
|
||||
|
||||
.application.sheet.daggerheart.actor.dh-style.environment {
|
||||
.tab.potentialAdversaries {
|
||||
|
|
@ -6,9 +7,6 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 4px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
@import './sheet.less';
|
||||
@import './header.less';
|
||||
@import './party-members.less';
|
||||
@import './sheet.less';
|
||||
@import './inventory.less';
|
||||
|
|
|
|||
|
|
@ -8,10 +8,6 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
margin-top: 20px;
|
||||
padding-bottom: 4px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,8 +2,30 @@
|
|||
@import '../../../utils/fonts.less';
|
||||
@import '../../../utils/mixin.less';
|
||||
|
||||
.application.sheet.daggerheart.actor.dh-style.party .tab.partyMembers {
|
||||
overflow: auto;
|
||||
.application.sheet.daggerheart.actor.dh-style.party .tab.partyMembers.active {
|
||||
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 {
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -17,35 +17,10 @@
|
|||
});
|
||||
|
||||
.application.sheet.daggerheart.actor.dh-style.party {
|
||||
.tab {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
scrollbar-gutter: stable;
|
||||
|
||||
&.active {
|
||||
.tab.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;
|
||||
}
|
||||
}
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -174,10 +174,10 @@
|
|||
--fade-start: 0;
|
||||
}
|
||||
10%, 100% {
|
||||
--fade-start: 12px;
|
||||
--fade-start: 14px;
|
||||
}
|
||||
0%, 90% {
|
||||
--fade-end: 12px;
|
||||
--fade-end: 14px;
|
||||
}
|
||||
100% {
|
||||
--fade-end: 0;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<section class='tab {{tabs.effects.cssClass}} {{tabs.effects.id}}' data-tab='{{tabs.effects.id}}'
|
||||
data-group='{{tabs.effects.group}}'>
|
||||
<div class="effects-sections">
|
||||
<div class="effects-sections scroll-container">
|
||||
{{> 'daggerheart.inventory-items'
|
||||
title='DAGGERHEART.GENERAL.activeEffects'
|
||||
type='effect'
|
||||
|
|
|
|||
|
|
@ -1,14 +1,17 @@
|
|||
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
|
||||
data-group='{{tabs.features.group}}'>
|
||||
<div class="feature-section">
|
||||
{{> 'daggerheart.inventory-items'
|
||||
title=tabs.features.label
|
||||
type='feature'
|
||||
collection=@root.features
|
||||
<section
|
||||
class="tab {{tabs.features.cssClass}} {{tabs.features.id}}"
|
||||
data-tab="{{tabs.features.id}}"
|
||||
data-group="{{tabs.features.group}}">
|
||||
<div class="feature-section scroll-container">
|
||||
{{#each @root.features as |item|}}
|
||||
{{> "daggerheart.inventory-item"
|
||||
item=item
|
||||
type="feature"
|
||||
actorType=@root.document.type
|
||||
hideContextMenu=true
|
||||
hideModifyControls=true
|
||||
canCreate=@root.editable
|
||||
showActions=@root.editable
|
||||
}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</section>
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
<section
|
||||
class='tab {{tabs.biography.cssClass}} {{tabs.biography.id}}'
|
||||
data-tab='{{tabs.biography.id}}'
|
||||
class="tab {{tabs.biography.cssClass}} {{tabs.biography.id}}"
|
||||
data-tab="{{tabs.biography.id}}"
|
||||
data-group='{{tabs.biography.group}}'
|
||||
>
|
||||
<div class="items-section">
|
||||
<div class="items-section scroll-container">
|
||||
<div class="characteristics-section flexrow">
|
||||
<div class="input">
|
||||
<span>{{localize 'DAGGERHEART.ACTORS.Character.pronouns'}}</span>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<section class='tab {{tabs.effects.cssClass}} {{tabs.effects.id}}' data-tab='{{tabs.effects.id}}'
|
||||
data-group='{{tabs.effects.group}}'>
|
||||
|
||||
<div class="effects-sections">
|
||||
<div class="effects-sections scroll-container">
|
||||
{{> 'daggerheart.inventory-items'
|
||||
title='DAGGERHEART.GENERAL.activeEffects'
|
||||
type='effect'
|
||||
|
|
|
|||
|
|
@ -1,21 +1,23 @@
|
|||
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
|
||||
data-group='{{tabs.features.group}}'>
|
||||
<div class="features-sections">
|
||||
<section
|
||||
class="tab {{tabs.features.cssClass}} {{tabs.features.id}}"
|
||||
data-tab="{{tabs.features.id}}"
|
||||
data-group="{{tabs.features.group}}">
|
||||
<div class="features-section scroll-container">
|
||||
{{#each document.system.sheetLists as |category|}}
|
||||
{{#if (eq category.type 'feature' )}}
|
||||
{{> 'daggerheart.inventory-items'
|
||||
{{#if (eq category.type "feature" )}}
|
||||
{{> "daggerheart.inventory-items"
|
||||
title=category.title
|
||||
type='feature'
|
||||
actorType='character'
|
||||
type="feature"
|
||||
actorType="character"
|
||||
collection=category.values
|
||||
canCreate=@root.editable
|
||||
showActions=@root.editable
|
||||
}}
|
||||
{{else if category.values}}
|
||||
{{> 'daggerheart.inventory-items'
|
||||
{{> "daggerheart.inventory-items"
|
||||
title=category.title
|
||||
type='feature'
|
||||
actorType='character'
|
||||
type="feature"
|
||||
actorType="character"
|
||||
collection=category.values
|
||||
canCreate=false
|
||||
showActions=@root.editable
|
||||
|
|
|
|||
|
|
@ -79,8 +79,6 @@
|
|||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="character-row">
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
{{> "systems/daggerheart/templates/sheets/global/partials/gold.hbs" currencies=inventory.currencies}}
|
||||
{{/if}}
|
||||
|
||||
<div class="items-section">
|
||||
<div class="items-section scroll-container">
|
||||
{{> 'daggerheart.inventory-items'
|
||||
title='TYPES.Item.weapon'
|
||||
type='weapon'
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
</button>
|
||||
</div>
|
||||
|
||||
<div class="items-section">
|
||||
<div class="items-section scroll-container">
|
||||
{{> 'daggerheart.inventory-items'
|
||||
title='DAGGERHEART.GENERAL.Tabs.loadout'
|
||||
type='domainCard'
|
||||
|
|
|
|||
|
|
@ -1,17 +1,18 @@
|
|||
<section
|
||||
class='tab {{tabs.features.cssClass}} {{tabs.features.id}}'
|
||||
data-tab='{{tabs.features.id}}'
|
||||
data-group='{{tabs.features.group}}'
|
||||
class="tab {{tabs.features.cssClass}} {{tabs.features.id}}"
|
||||
data-tab="{{tabs.features.id}}"
|
||||
data-group="{{tabs.features.group}}"
|
||||
>
|
||||
<div class="feature-section">
|
||||
{{> 'daggerheart.inventory-items'
|
||||
title=tabs.features.label
|
||||
type='feature'
|
||||
collection=@root.features
|
||||
<div class="feature-section scroll-container">
|
||||
{{#each @root.features as |item|}}
|
||||
{{> "daggerheart.inventory-item"
|
||||
item=item
|
||||
type="feature"
|
||||
actorType=@root.document.type
|
||||
hideContextMenu=true
|
||||
hideModifyControls=true
|
||||
canCreate=@root.editable
|
||||
showActions=@root.editable
|
||||
}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</section>
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
data-tab='{{tabs.potentialAdversaries.id}}'
|
||||
data-group='{{tabs.potentialAdversaries.group}}'
|
||||
>
|
||||
<div class="items-section">
|
||||
<div class="items-section scroll-container">
|
||||
{{#each document.system.potentialAdversaries as |category categoryId|}}
|
||||
{{> 'daggerheart.inventory-items'
|
||||
title=category.label
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
{{> "systems/daggerheart/templates/sheets/global/partials/gold.hbs" currencies=inventory.currencies}}
|
||||
{{/if}}
|
||||
|
||||
<div class="items-section">
|
||||
<div class="items-section scroll-container">
|
||||
{{> 'daggerheart.inventory-items'
|
||||
title='TYPES.Item.weapon'
|
||||
type='weapon'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue