Fixed a styling issue with Ace search box

This commit is contained in:
jos 2017-01-03 20:36:08 +01:00
parent 8dc4752872
commit 94ca26e457
2 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
/* reset styling (prevent conflicts with bootstrap, materialize.css, etc.) */
div.jsoneditor input {
div.jsoneditor .jsoneditor-search input {
height: auto;
border: inherit;
}
div.jsoneditor input:focus {
div.jsoneditor .jsoneditor-search input:focus {
border: none !important;
box-shadow: none !important;
}

View File

@ -66,7 +66,7 @@ textmode.create = function (container, options) {
// determine theme
this.theme = options.theme || DEFAULT_THEME;
if (this.theme === DEFAULT_THEME) {
if (this.theme === DEFAULT_THEME && window.ace) {
require('./ace/theme-jsoneditor');
}