mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
the editor has it's own blurred state independent of the window
This commit is contained in:
parent
951f6128ca
commit
f8855ef2e3
@ -351,10 +351,12 @@ class Editor extends View
|
||||
@hiddenInput.on 'focus', =>
|
||||
@rootView()?.editorFocused(this)
|
||||
@isFocused = true
|
||||
@removeClass 'is-blurred'
|
||||
|
||||
@hiddenInput.on 'focusout', =>
|
||||
@isFocused = false
|
||||
@autosave() if config.get "editor.autosave"
|
||||
@addClass 'is-blurred'
|
||||
|
||||
@underlayer.on 'click', (e) =>
|
||||
return unless e.target is @underlayer[0]
|
||||
|
@ -76,6 +76,10 @@
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.editor.is-blurred .line.cursor-line {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.editor .invisible {
|
||||
opacity: 0.2;
|
||||
}
|
||||
@ -156,3 +160,7 @@
|
||||
pointer-events: none;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.editor.is-blurred .selection .region {
|
||||
opacity: 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user