Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions src/styles/brackets_codemirror_override.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,17 @@

@code-padding: 15px;

.CodeMirror-activeline-background {
background: transparent;
}
.CodeMirror-focused .CodeMirror-activeline-background {
background: @activeline-bgcolor;
background: @activeline-bgcolor;
}
.CodeMirror-focused .CodeMirror-activeline .CodeMirror-gutter-elt {
background: @activeline-bgcolor;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line number gets the @activeline-bgcolor only for unwrapped lines. If Word Wrap is on, gutter areas for the extra lines wrapped from the original line do not have the active line color.

}


.cm-s-default {
span.cm-keyword {color: @accent-keyword;}
span.cm-atom {color: @accent-atom;}
Expand Down Expand Up @@ -181,11 +188,18 @@
cursor: default;
}

.CodeMirror .CodeMirror-activeline-background {
background: transparent;
}
.CodeMirror .CodeMirror-activeline .CodeMirror-gutter-elt {
background: transparent;
}

.CodeMirror-focused .CodeMirror-activeline-background {
background: darken(@activeline-bgcolor, @bc-color-step-size / 2);
background: darken(@activeline-bgcolor, @bc-color-step-size / 2);
}
&.CodeMirror-focused .CodeMirror .CodeMirror-activeline-background {
background: transparent;
.CodeMirror-focused .CodeMirror-activeline .CodeMirror-gutter-elt {
background: darken(@activeline-bgcolor, @bc-color-step-size / 2);
}
}

Expand Down