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|}}