Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
saharj committed Mar 22, 2016
1 parent 5926280 commit 7cf87bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
3 changes: 2 additions & 1 deletion app/scripts/services/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ SwaggerEditor.service('Editor', function Editor(Autocomplete, ASTManager,
ace.config.set('basePath', 'bower_components/ace-builds/src-noconflict');

Autocomplete.init(e);

// Set editor options
editor.setOptions({
fontFamily: 'Source Code Pro',
enableBasicAutocompletion: true,
enableLiveAutocompletion: true,
enableSnippets: true
});

loadEditorSettings();

// Editor is ready, fire the on-ready function and flush the queue
Expand Down
18 changes: 0 additions & 18 deletions app/styles/components/editor.less
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
@import "../fonts";
@import "../colors";

.ace-editor{
.editor-font;
font-size: .8em;
.editor-error-message {
padding: .3em;
background: @editor-error;
color: @white;
max-height: 5.6em;
pre {
font-size: 1em;
}
}

* {
.editor-font;
}

}
.ace-atom-dark{
.ace_search {
color: @gray-dk;
Expand Down
6 changes: 1 addition & 5 deletions app/styles/fonts.less
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,8 @@
url('@{fonts-folder}/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}

.editor-font {
font-weight: 300;
}

.pre-font {
font-family: monospace;
font-family: 'Source Code Pro', monospace;
}

.sw-font {
Expand Down

0 comments on commit 7cf87bc

Please sign in to comment.