Commit a44366b3 authored by yann300's avatar yann300

css change

parent 8be16b1f
......@@ -297,6 +297,13 @@ input[type="file"] {
opacity: 0.7
}
.highlightreferenceline {
position:absolute;
z-index:20;
background-color: hsla(229, 75%, 87%, .5); /* lightBlue in style-guide.js*/
opacity: 0.7
}
.highlightcode {
position:absolute;
z-index:20;
......
......@@ -397,7 +397,9 @@ function run () {
highlight: (position, node) => {
if (compiler.lastCompilationResult && compiler.lastCompilationResult.source && compiler.lastCompilationResult.source.target === config.get('currentFile')) {
position = offsetToLineColumnConverter.offsetToLineColumn(position, position.file, compiler.lastCompilationResult)
var css = 'highlightreference'
if (node.children && node.children.length) {
css = 'highlightreferenceline'
position = {
start: {
line: position.start.line,
......@@ -409,7 +411,7 @@ function run () {
}
}
}
return editor.addMarker(position, config.get('currentFile'), 'highlightreference')
return editor.addMarker(position, config.get('currentFile'), css)
}
return null
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment