diff --git a/module/applications/sheets-configs/action-config.mjs b/module/applications/sheets-configs/action-config.mjs index 70241687..0cfa9fcf 100644 --- a/module/applications/sheets-configs/action-config.mjs +++ b/module/applications/sheets-configs/action-config.mjs @@ -40,6 +40,10 @@ export default class DHActionConfig extends DaggerheartSheet(ApplicationV2) { }; static PARTS = { + header: { + id: 'header', + template: 'systems/daggerheart/templates/sheets-settings/action-settings/header.hbs' + }, tabs: { template: 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' }, base: { id: 'base', @@ -84,7 +88,7 @@ export default class DHActionConfig extends DaggerheartSheet(ApplicationV2) { icon: null, label: 'Effect' } - } + }; static CLEAN_ARRAYS = ['damage.parts', 'cost', 'effects']; diff --git a/styles/less/global/elements.less b/styles/less/global/elements.less index a423e74d..bd06441b 100755 --- a/styles/less/global/elements.less +++ b/styles/less/global/elements.less @@ -89,11 +89,18 @@ box-shadow: none; } - & option { + & option, + & optgroup { color: @beige; background-color: @dark-blue; border-radius: 6px; } + + &:disabled { + opacity: 0.6; + outline: 2px solid transparent; + cursor: not-allowed; + } } p { @@ -160,17 +167,6 @@ height: 2rem; } } - - .checkbox { - display: flex; - align-items: center; - gap: 20px; - align-self: end; - } - - .fas.fa-trash { - align-self: end; - } &.one-column { display: flex; @@ -182,12 +178,6 @@ > .one-column { width: 100%; } - .nest-inputs { - fieldset { - flex: 1; - width: 100%; - } - } } &.two-columns { @@ -223,8 +213,10 @@ } } - &[disabled], select[disabled], input[disabled] { - opacity: .5; + &[disabled], + select[disabled], + input[disabled] { + opacity: 0.5; } .nest-inputs { @@ -232,6 +224,18 @@ align-items: center; width: 100%; gap: 5px; + + .btn { + padding-top: 15px; + } + + .image { + height: 40px; + width: 40px; + object-fit: cover; + border-radius: 6px; + border: none; + } } .form-group { @@ -241,26 +245,20 @@ font-weight: bold; font-size: smaller; } + + &.checkbox { + width: fit-content; + + .form-fields { + height: 32px; + align-content: center; + } + } } &:has(.list-w-img) { gap: 0; } - - &:has(+ .fas.fa-trash) { - border-bottom-right-radius: 0; - } - - .fas.fa-trash { - color: darkred; - border-radius: 0 6px 6px 0; - border-color: light-dark(#18162e, #f3c267); - border-width: 2px; - border-style: groove; - border-left-width: 0; - padding: 5px; - margin-left: -7px; - } } .two-columns { diff --git a/styles/less/global/inventory-fieldset-items.less b/styles/less/global/inventory-fieldset-items.less index 1cbc9353..46343c0a 100644 --- a/styles/less/global/inventory-fieldset-items.less +++ b/styles/less/global/inventory-fieldset-items.less @@ -7,6 +7,7 @@ flex-direction: column; gap: 10px; align-items: center; + width: 100%; } .card-list { display: flex; diff --git a/styles/less/global/tab-form-footer.less b/styles/less/global/tab-form-footer.less index 3607d463..14794204 100644 --- a/styles/less/global/tab-form-footer.less +++ b/styles/less/global/tab-form-footer.less @@ -2,8 +2,6 @@ .tab-form-footer { display: flex; padding: 0 10px; - position: relative; - bottom: -32px; button { flex: 1; diff --git a/templates/actionTypes/cost.hbs b/templates/actionTypes/cost.hbs index a5e2503d..62ca5644 100644 --- a/templates/actionTypes/cost.hbs +++ b/templates/actionTypes/cost.hbs @@ -5,13 +5,11 @@ {{#each source as |cost index|}}
-
- {{formField ../fields.type choices=(@root.disableOption index ../fields.type.choices ../source) label="Resource" value=cost.type name=(concat "cost." index ".type") localize=true}} - {{formField ../fields.value label="Amount" value=cost.value name=(concat "cost." index ".value")}} - {{formField ../fields.scalable label="Scalable" value=cost.scalable name=(concat "cost." index ".scalable") classes="checkbox"}} - {{formField ../fields.step label="Step" value=cost.step name=(concat "cost." index ".step") disabled=(not cost.scalable)}} -
-
+ {{formField ../fields.scalable label="Scalable" value=cost.scalable name=(concat "cost." index ".scalable") classes="checkbox"}} + {{formField ../fields.type choices=(@root.disableOption index ../fields.type.choices ../source) label="Resource" value=cost.type name=(concat "cost." index ".type") localize=true}} + {{formField ../fields.value label="Amount" value=cost.value name=(concat "cost." index ".value")}} + {{formField ../fields.step label="Step" value=cost.step name=(concat "cost." index ".step") disabled=(not cost.scalable)}} +
{{/each}} \ No newline at end of file diff --git a/templates/actionTypes/effect.hbs b/templates/actionTypes/effect.hbs index 3c513851..9214ecce 100644 --- a/templates/actionTypes/effect.hbs +++ b/templates/actionTypes/effect.hbs @@ -3,17 +3,21 @@ Effects - {{#each source as | effect index |}} -
-
+
-
-
- {{/each}} +
+ +
+ + {{/each}} + \ No newline at end of file diff --git a/templates/sheets-settings/action-settings/header.hbs b/templates/sheets-settings/action-settings/header.hbs new file mode 100644 index 00000000..a6286cb0 --- /dev/null +++ b/templates/sheets-settings/action-settings/header.hbs @@ -0,0 +1,3 @@ +
+

{{source.name}}

+
\ No newline at end of file