0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 15:52:39 +00:00

Adding in line highlight for new pages

This commit is contained in:
Scott Tolksdorf
2017-01-19 12:10:19 -05:00
parent 70346ffce7
commit 9fe6fd979b
2 changed files with 6 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ const Editor = React.createClass({
componentDidMount: function() {
this.updateEditorSize();
this.highlightPageLines();
window.addEventListener("resize", this.updateEditorSize);
},
componentWillUnmount: function() {
@@ -108,6 +109,7 @@ const Editor = React.createClass({
},
render : function(){
this.highlightPageLines();
return(
<div className='editor' ref='main'>
<SnippetBar

View File

@@ -5,6 +5,10 @@
.codeEditor{
height : 100%;
.pageLine{
background-color : fade(#333, 15%);
border-bottom : #333 solid 1px;
}
}
.brewJump{