preparing for non required properties in jsoneditor

This commit is contained in:
Laurent Lepinay
2015-07-02 17:59:13 +02:00
parent dd5fab0b20
commit c51f1ebb9b
4 changed files with 31 additions and 6 deletions

13
lib/jsoneditor.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -126,6 +126,7 @@
max-width: 960px; max-width: 960px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
/* JSONEditor specific styling */
} }
.swagger-section .swagger-ui-wrap b, .swagger-section .swagger-ui-wrap b,
.swagger-section .swagger-ui-wrap strong { .swagger-section .swagger-ui-wrap strong {
@@ -444,6 +445,13 @@
.swagger-section .swagger-ui-wrap .required { .swagger-section .swagger-ui-wrap .required {
font-weight: bold; font-weight: bold;
} }
.swagger-section .swagger-ui-wrap .editor_holder label {
font-weight: normal!important;
/* JSONEditor uses bold by default for all labels, we revert that back to normal to not give the impression that by default fields are required */
}
.swagger-section .swagger-ui-wrap .editor_holder label.required {
font-weight: bold!important;
}
.swagger-section .swagger-ui-wrap input.parameter { .swagger-section .swagger-ui-wrap input.parameter {
width: 300px; width: 300px;
border: 1px solid #aaa; border: 1px solid #aaa;

View File

@@ -126,6 +126,7 @@
max-width: 960px; max-width: 960px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
/* JSONEditor specific styling */
} }
.swagger-section .swagger-ui-wrap b, .swagger-section .swagger-ui-wrap b,
.swagger-section .swagger-ui-wrap strong { .swagger-section .swagger-ui-wrap strong {
@@ -444,6 +445,13 @@
.swagger-section .swagger-ui-wrap .required { .swagger-section .swagger-ui-wrap .required {
font-weight: bold; font-weight: bold;
} }
.swagger-section .swagger-ui-wrap .editor_holder label {
font-weight: normal!important;
/* JSONEditor uses bold by default for all labels, we revert that back to normal to not give the impression that by default fields are required */
}
.swagger-section .swagger-ui-wrap .editor_holder label.required {
font-weight: bold!important;
}
.swagger-section .swagger-ui-wrap input.parameter { .swagger-section .swagger-ui-wrap input.parameter {
width: 300px; width: 300px;
border: 1px solid #aaa; border: 1px solid #aaa;

View File

@@ -343,6 +343,14 @@
font-weight: bold; font-weight: bold;
} }
/* JSONEditor specific styling */
.editor_holder label {
font-weight:normal!important; /* JSONEditor uses bold by default for all labels, we revert that back to normal to not give the impression that by default fields are required */
}
.editor_holder label.required {
font-weight:bold!important;
}
input.parameter { input.parameter {
width: 300px; width: 300px;
border: 1px solid #aaa; border: 1px solid #aaa;