Last active
August 29, 2015 13:56
-
-
Save lnpbk/9249957 to your computer and use it in GitHub Desktop.
My Caret in Atom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Go to Settings > Themes > your stylesheet | |
*/ | |
.editor { | |
// Slow the blinking of the cursor | |
.cursor { | |
line-height: @line-height; | |
// This is for a teminal style block cursor, only any good for dark color schemes | |
background: rgba(255,255,255,.3); | |
color: transparent; | |
} | |
// Only override the cursor when the editor is focused | |
&.is-focused .cursor { | |
-webkit-animation: caret 1200ms infinite; | |
visibility: visible!important; | |
} | |
} | |
@-webkit-keyframes caret | |
{ | |
0% { opacity: 0;} | |
25% { opacity: 1;} | |
75% { opacity: 1;} | |
100% { opacity: 0;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment