Tiny miscellanous changes
This commit is contained in:
parent
ec34702d90
commit
aa953dc796
|
@ -10,7 +10,7 @@ mixin input({id, label, description, type, placeholder, disabled, list})
|
||||||
- disabled = disabled || false
|
- disabled = disabled || false
|
||||||
.field-row
|
.field-row
|
||||||
label.field-row__label(for=id)= label
|
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
|
if list
|
||||||
datalist(id=`${id}-list`)
|
datalist(id=`${id}-list`)
|
||||||
each item in list
|
each item in list
|
||||||
|
|
|
@ -8,7 +8,7 @@ $bg-accent-area: #44474b
|
||||||
$fg-bright: #fff
|
$fg-bright: #fff
|
||||||
$fg-main: #ddd
|
$fg-main: #ddd
|
||||||
$fg-dim: #bbb
|
$fg-dim: #bbb
|
||||||
$fg-warning: #ffb98f
|
$fg-warning: #fdca6d
|
||||||
|
|
||||||
$edge-grey: #808080
|
$edge-grey: #808080
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,12 @@ fieldset
|
||||||
align-items: start
|
align-items: start
|
||||||
padding-bottom: 15px
|
padding-bottom: 15px
|
||||||
|
|
||||||
|
&.max-width-input
|
||||||
|
grid-template-columns: auto 1fr
|
||||||
|
|
||||||
|
.field-row__input
|
||||||
|
justify-self: stretch
|
||||||
|
|
||||||
&__label
|
&__label
|
||||||
grid-area: label
|
grid-area: label
|
||||||
padding: 8px 8px 8px 0px
|
padding: 8px 8px 8px 0px
|
||||||
|
@ -58,6 +64,7 @@ fieldset
|
||||||
margin: 12px 0px 18px
|
margin: 12px 0px 18px
|
||||||
font-size: 16px
|
font-size: 16px
|
||||||
color: #ccc
|
color: #ccc
|
||||||
|
line-height: 1.2
|
||||||
|
|
||||||
//
|
//
|
||||||
.checkbox-row
|
.checkbox-row
|
||||||
|
|
|
@ -86,7 +86,9 @@ function presetEnsureParams(list) {
|
||||||
() => ({
|
() => ({
|
||||||
statusCode: 400,
|
statusCode: 400,
|
||||||
contentType: "application/json",
|
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(", ")}`
|
||||||
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue