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

Commit 129bbd6

Browse files
committed
Change .inline-text-editor styles to nested .CodeMirror styles
1 parent dcffe66 commit 129bbd6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/styles/brackets_codemirror_override.less

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,23 @@
239239
background: transparent;
240240
}
241241

242+
.show-line-padding & .CodeMirror .CodeMirror-activeline-background {
243+
box-shadow: none;
244+
}
245+
242246
.CodeMirror .CodeMirror-activeline .CodeMirror-gutter-elt {
243247
background: transparent;
244248
color: @accent-comment;
245249
}
246-
250+
247251
.CodeMirror-focused .CodeMirror-activeline-background {
248252
background: @activeline-bgcolor;
249253
}
250254

255+
.show-line-padding & .CodeMirror-focused .CodeMirror-activeline-background {
256+
box-shadow: inset @code-padding 0 0 0 @tc-gray-panel-top-bar;
257+
}
258+
251259
.CodeMirror-focused .CodeMirror-activeline {
252260
.CodeMirror-gutter-elt {
253261
background: @tc-gray-panel-top-bar;
@@ -258,14 +266,6 @@
258266
.CodeMirror-matchingtag { background: @matching-bracket; }
259267
}
260268

261-
.show-line-padding .inline-text-editor .CodeMirror-activeline-background {
262-
box-shadow: inset @code-padding 0 0 0 transparent;
263-
}
264-
265-
.show-line-padding .inline-text-editor .CodeMirror-focused .CodeMirror-activeline-background {
266-
box-shadow: inset @code-padding 0 0 0 @tc-gray-panel-top-bar;
267-
}
268-
269269
/*
270270
* Temporarily override bold and italic syntax highlighting until
271271
* SourceCodePro supports them in a fixed pitch

0 commit comments

Comments
 (0)