Skip to content
Snippets Groups Projects
Commit 2c147649 authored by Pan's avatar Pan
Browse files

perf[json-editor]:refine css

parent de3b29b5
No related branches found
No related tags found
No related merge requests found
......@@ -53,11 +53,16 @@ export default {
}
</script>
<style>
.CodeMirror {
<style scoped>
.json-editor{
height: 100%;
position: relative;
}
.json-editor .cm-s-rubyblue span.cm-string {
.json-editor >>> .CodeMirror {
height: auto;
min-height: 300px;
}
.json-editor >>> .cm-s-rubyblue span.cm-string {
color: #F08047;
}
</style>
......@@ -140,10 +140,6 @@ code {
margin-top: 30px;
}
.editor-container .CodeMirror {
height: 100%!important;
}
.text-center {
text-align: center
}
......
<template>
<div class="components-container" style="height:100vh">
<div class="components-container">
<code>JsonEditor is base on <a href="https://github.com/codemirror/CodeMirror" target="_blank">CodeMirrorr</a> , lint base on json-lint </code>
<div class="editor-container">
<json-editor ref="jsonEditor" v-model="value"></json-editor>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment