diff --git a/HISTORY.md b/HISTORY.md
index 5328570..51091b1 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -6,6 +6,7 @@ https://github.com/josdejong/jsoneditor
## not yet released, version 5.32.2
- Fixed #416: Clipped action menu for append nodes.
+- Styling improvements in the transform modal.
## 2018-03-28, version 5.32.1
diff --git a/src/css/contextmenu.css b/src/css/contextmenu.css
index 0c8162c..1898fce 100644
--- a/src/css/contextmenu.css
+++ b/src/css/contextmenu.css
@@ -262,13 +262,16 @@ div.jsoneditor-contextmenu button.jsoneditor-type-modes > div.jsoneditor-icon {
.jsoneditor-modal table th,
.jsoneditor-modal table td {
- padding: 5px 20px 5px 0;
-
text-align: left;
vertical-align: top;
font-weight: normal;
color: #4d4d4d;
- line-height: 32px;
+ border-spacing: 0;
+ border-collapse: collapse;
+}
+
+.jsoneditor-modal table td {
+ padding: 5px 0;
}
.jsoneditor-modal p:first-child {
@@ -282,6 +285,10 @@ div.jsoneditor-contextmenu button.jsoneditor-type-modes > div.jsoneditor-icon {
.jsoneditor-modal table td:first-child {
}
+.jsoneditor-modal .jsoneditor-jmespath-block {
+ margin-bottom: 10px;
+}
+
.jsoneditor-modal table td.jsoneditor-modal-input {
text-align: right;
padding-right: 0;
@@ -323,6 +330,10 @@ div.jsoneditor-contextmenu button.jsoneditor-type-modes > div.jsoneditor-icon {
font-family: arial, sans-serif;
}
+.jsoneditor-modal table th {
+ vertical-align: middle;
+}
+
.jsoneditor-modal #query,
.jsoneditor-modal .jsoneditor-transform-preview {
font-family: "dejavu sans mono", "droid sans mono", consolas, monaco, "lucida console", "courier new", courier, monospace, sans-serif;
@@ -433,12 +444,21 @@ div.jsoneditor-contextmenu button.jsoneditor-type-modes > div.jsoneditor-icon {
.jsoneditor-modal .jsoneditor-jmespath-wizard {
line-height: 1.2em;
width: 100%;
- background: #ffffe0;
- border: 1px solid #ffe99a;
- padding: 0 10px 10px;
+ padding: 0;
border-radius: 3px;
}
+.jsoneditor-modal .jsoneditor-jmespath-label {
+ font-weight: bold;
+ color: dodgerblue;
+ margin-top: 10px;
+ margin-bottom: 5px;
+}
+
+.jsoneditor-modal .jsoneditor-jmespath-wizard-table {
+ width: 100%;
+}
+
.jsoneditor-modal .jsoneditor-jmespath-wizard-label {
font-style: italic;
margin: 4px 0 2px 0;
@@ -448,7 +468,10 @@ div.jsoneditor-contextmenu button.jsoneditor-type-modes > div.jsoneditor-icon {
position: relative;
display: inline-block;
width: 100%;
- padding: 2px;
+}
+
+.jsoneditor-modal .jsoneditor-inline:not(:last-child) {
+ padding-right: 2px;
}
.jsoneditor-modal .jsoneditor-jmespath-filter {
diff --git a/src/js/showTransformModal.js b/src/js/showTransformModal.js
index 0c1d061..ff20813 100644
--- a/src/js/showTransformModal.js
+++ b/src/js/showTransformModal.js
@@ -21,84 +21,75 @@ function showTransformModal (node, container) {
'Enter a JMESPath query to filter, sort, or transform the JSON data.
' +
'To learn JMESPath, go to the interactive tutorial.' +
'
' + translate('transformWizardLabel') + ' | ' + - '' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' + translate('transformWizardFilter') + ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' + translate('transformWizardSortBy') + ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' +
- ' ' + translate('transformWizardSelectFields') + ' ' +
- ' ' +
- ' | ' +
- '||||||
---|---|---|---|---|---|---|---|
' + translate('transformQueryLabel') + ' | ' + - '' + - ' ' + - ' | ' + - '||||||
' + translate('transformPreviewLabel') + ' | ' + - '' + - ' ' + - ' | ' + - '||||||
' +
+ ' ' + translate('transformWizardLabel') + ' ' +
+ '' +
+ ' ' +
+ '
' + translate('transformQueryLabel') + ' ' +
+ '' +
+ ' ' +
+ ' ' +
+ '' + translate('transformPreviewLabel') + ' ' +
+ '' +
+ ' ' +
+ ' ' +
+ '' +
' ' +
- ' | ' +
- '