Use white-cursor on dark editors

This commit is contained in:
simurai
2015-09-04 16:08:54 +09:00
committed by Lee Dohm
parent 2585e691e0
commit 0ab52b654e

View File

@@ -4,3 +4,17 @@
.white-cursor-image() {
cursor: -webkit-image-set(@ibeam-1x 1x, @ibeam-2x 2x) 5 8, text;
}
// Editors
& when ( lightness(@syntax-background-color) < 50% ) {
.platform-darwin atom-text-editor:not([mini])::shadow .editor-contents--private {
.white-cursor-image();
}
}
// Mini Editors
& when ( lightness(@input-background-color) < 50% ) {
.platform-darwin atom-text-editor[mini]::shadow .editor-contents--private {
.white-cursor-image();
}
}