From dd376705a94747140e4fd23d0edfef877a2be648 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Thu, 12 Mar 2026 18:07:03 -0400 Subject: [PATCH] Remove fieldset --- styles/less/global/elements.less | 63 +------- .../appearance-settings/diceSoNice.less | 53 ++++++ .../appearance-settings/diceSoNice.hbs | 153 +++++++++--------- 3 files changed, 133 insertions(+), 136 deletions(-) diff --git a/styles/less/global/elements.less b/styles/less/global/elements.less index 380700fe..beffefbb 100755 --- a/styles/less/global/elements.less +++ b/styles/less/global/elements.less @@ -565,64 +565,11 @@ } .application.setting.dh-style { - fieldset { - h2, - h3, - h4 { - margin: 8px 0 4px; - text-align: center; - } - .title-hint { - font-size: var(--font-size-12); - font-variant: small-caps; - text-align: center; - } - - .field-section { - display: flex; - flex-direction: column; - gap: 10px; - - .split-section { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 10px; - - > label { - grid-column: span 2; - text-align: center; - font-size: var(--font-size-18); - font-weight: bold; - } - } - } - - .label-container { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 10px; - - &.full-width { - grid-template-columns: 1fr 1fr 1fr 1fr; - - select { - grid-column: span 3; - } - } - - label { - align-self: center; - text-align: center; - white-space: nowrap; - } - } - - .button-container { - display: grid; - align-items: center; - justify-content: space-between; - width: 100%; - } + h2, + h3, + h4 { + margin: 8px 0 4px; + text-align: center; } footer { diff --git a/styles/less/ui/settings/appearance-settings/diceSoNice.less b/styles/less/ui/settings/appearance-settings/diceSoNice.less index 39c8c851..d44d7f67 100644 --- a/styles/less/ui/settings/appearance-settings/diceSoNice.less +++ b/styles/less/ui/settings/appearance-settings/diceSoNice.less @@ -1,6 +1,14 @@ .daggerheart.dh-style.setting.appearance-settings { + .tab.active[data-tab="diceSoNice"] { + display: flex; + flex-direction: column; + align-items: center; + gap: 0.5rem; + } + .diceSoNice-footer { display: grid; + align-items: center; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin-top: 32px; @@ -13,4 +21,49 @@ grid-column: span 2; } } + + .title-hint { + font-size: var(--font-size-12); + font-variant: small-caps; + text-align: center; + } + + .split-section { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 10px; + + > label { + grid-column: span 2; + text-align: center; + font-size: var(--font-size-18); + font-weight: bold; + } + } + + .field-section { + display: flex; + flex-direction: column; + gap: 10px; + } + + .label-container { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 10px; + + &.full-width { + grid-template-columns: 1fr 1fr 1fr 1fr; + + select { + grid-column: span 3; + } + } + + label { + align-self: center; + text-align: center; + white-space: nowrap; + } + } } diff --git a/templates/settings/appearance-settings/diceSoNice.hbs b/templates/settings/appearance-settings/diceSoNice.hbs index b66274ec..fa6f4ff7 100644 --- a/templates/settings/appearance-settings/diceSoNice.hbs +++ b/templates/settings/appearance-settings/diceSoNice.hbs @@ -1,94 +1,91 @@
-
{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.hint"}}

{{localize "DAGGERHEART.SETTINGS.Menu.appearance.globalAnimations"}}

-
-
+ +
{{formInput fields.diceSoNice.fields.sfx.fields.critical.fields.class value=setting.diceSoNice.sfx.critical.class blank="" localize=true}} -
-
+
-
{{#each dsnTabs as |dsnTab|}} -
-
-

{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceAppearance"}}

+
+
+

{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceAppearance"}}

-
- - {{formInput fields.system value=values.system localize=true choices=@root.diceSoNiceSystems}} -
-
-
- - {{formInput fields.foreground value=values.foreground localize=true}} -
-
- - {{formInput fields.background value=values.background localize=true}} -
-
- - {{formInput fields.outline value=values.outline localize=true}} -
-
- - {{formInput fields.edge value=values.edge localize=true}} -
-
- - {{formInput fields.colorset value=values.colorset choices=@root.diceSoNiceColorsets localize=true}} -
-
- - {{formInput fields.texture value=values.texture choices=@root.diceSoNiceTextures localize=true}} -
-
- - {{formInput fields.material value=values.material choices=@root.diceSoNiceMaterials localize=true}} -
-
- - {{formInput fields.font value=values.font choices=@root.diceSoNiceFonts localize=true}} -
-
+
+ + {{formInput fields.system value=values.system localize=true choices=@root.diceSoNiceSystems}} +
+
+
+ + {{formInput fields.foreground value=values.foreground localize=true}} +
+
+ + {{formInput fields.background value=values.background localize=true}} +
+
+ + {{formInput fields.outline value=values.outline localize=true}} +
+
+ + {{formInput fields.edge value=values.edge localize=true}} +
+
+ + {{formInput fields.colorset value=values.colorset choices=@root.diceSoNiceColorsets localize=true}} +
+
+ + {{formInput fields.texture value=values.texture choices=@root.diceSoNiceTextures localize=true}} +
+
+ + {{formInput fields.material value=values.material choices=@root.diceSoNiceMaterials localize=true}} +
+
+ + {{formInput fields.font value=values.font choices=@root.diceSoNiceFonts localize=true}} +
+
- {{#if dsnTab.animations}} -

{{localize "DAGGERHEART.SETTINGS.Menu.appearance.animations"}}

-
- - {{formInput fields.sfx.fields.higher.fields.class value=values.sfx.higher.class blank="" localize=true}} -
- {{/if}} + {{#if dsnTab.animations}} +

{{localize "DAGGERHEART.SETTINGS.Menu.appearance.animations"}}

+
+ + {{formInput fields.sfx.fields.higher.fields.class value=values.sfx.higher.class blank="" localize=true}} +
+ {{/if}} - -
-
+ +
+
{{/each}} -
\ No newline at end of file