Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Fix #3253: Active line highlight doesn't disappear in unfocused editor #3274

Merged
merged 1 commit into from
Mar 28, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 1 addition & 5 deletions src/styles/brackets.less
Original file line number Diff line number Diff line change
Expand Up @@ -554,11 +554,7 @@ a, img {
/* remove CodeMirror default height: 300px */
height: auto;
}

.CodeMirror-activeline-background {
background: darken(@activeline-bgcolor, @bc-color-step-size / 2) !important;
}


.inline-editor-header {
padding: 10px 10px 0px 10px;

Expand Down
9 changes: 8 additions & 1 deletion src/styles/brackets_codemirror_override.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

@code-padding: 15px;

.CodeMirror-activeline-background {
.CodeMirror-focused .CodeMirror-activeline-background {
background: @activeline-bgcolor !important;
}

Expand Down Expand Up @@ -177,6 +177,13 @@
.CodeMirror .CodeMirror-vscrollbar, .CodeMirror .CodeMirror-hscrollbar {
cursor: default;
}

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

/*
Expand Down