diff --git a/pug/settings.pug b/pug/settings.pug index 3519b6a..40e406b 100644 --- a/pug/settings.pug +++ b/pug/settings.pug @@ -10,7 +10,7 @@ mixin input({id, label, description, type, placeholder, disabled, list}) - disabled = disabled || false .field-row label.field-row__label(for=id)= label - input(type=type id=id name=id value=settings[id] placeholder=placeholder disabled=disabled list=`${id}-list`).border-look.field-row__input + input(type=(type) id=id name=id value=settings[id] placeholder=placeholder disabled=disabled list=`${id}-list`).border-look.field-row__input if list datalist(id=`${id}-list`) each item in list diff --git a/sass/includes/colors.sass b/sass/includes/colors.sass index 6f5c830..30bc8dc 100644 --- a/sass/includes/colors.sass +++ b/sass/includes/colors.sass @@ -8,7 +8,7 @@ $bg-accent-area: #44474b $fg-bright: #fff $fg-main: #ddd $fg-dim: #bbb -$fg-warning: #ffb98f +$fg-warning: #fdca6d $edge-grey: #808080 diff --git a/sass/includes/forms.sass b/sass/includes/forms.sass index 69246b3..7c8f0a7 100644 --- a/sass/includes/forms.sass +++ b/sass/includes/forms.sass @@ -43,6 +43,12 @@ fieldset align-items: start padding-bottom: 15px + &.max-width-input + grid-template-columns: auto 1fr + + .field-row__input + justify-self: stretch + &__label grid-area: label padding: 8px 8px 8px 0px @@ -58,6 +64,7 @@ fieldset margin: 12px 0px 18px font-size: 16px color: #ccc + line-height: 1.2 // .checkbox-row diff --git a/utils/validate.js b/utils/validate.js index 176b6a3..958eb67 100644 --- a/utils/validate.js +++ b/utils/validate.js @@ -86,7 +86,9 @@ function presetEnsureParams(list) { () => ({ statusCode: 400, contentType: "application/json", - content: `Some required body parameters were missing. Required parameters: ${list.join(", ")}` + content: { + error: `Some required body parameters were missing. Required parameters: ${list.join(", ")}` + } }) ] }