From 0af19b36ac16acb5ef4fbd113ffbb9f927c1d51b Mon Sep 17 00:00:00 2001 From: Reorx Date: Fri, 3 Feb 2023 01:15:49 +0800 Subject: [PATCH] subtle style improvements --- editor/_json-editor.scss | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/editor/_json-editor.scss b/editor/_json-editor.scss index 2045461..2bf200b 100644 --- a/editor/_json-editor.scss +++ b/editor/_json-editor.scss @@ -73,6 +73,7 @@ } input[type=text], input[type=email], + select, textarea { border: 1px solid #888; border-radius: 2px; @@ -123,10 +124,14 @@ } .je-form-input-label { - display: block; + // only label in user added property should be inline-block + display: inline-block; margin-bottom: calc(var(--gap) / 2); font-weight: 500; } + .form-control > .je-form-input-label { + display: block; + } .je-form-input-description { margin: 0; font-size: 12px; @@ -182,4 +187,11 @@ max-height: 500px; resize: vertical; } + + .je-edit-json--textarea { + width: 300px; + height: 400px; + font-family: "Lucida Sans Typewriter", "Lucida Console", monaco, "Bitstream Vera Sans Mono", monospace; + font-size: 12px; + } }