Skip to content

Instantly share code, notes, and snippets.

@lnpbk
Last active August 29, 2015 13:56
Show Gist options
  • Save lnpbk/9249957 to your computer and use it in GitHub Desktop.
Save lnpbk/9249957 to your computer and use it in GitHub Desktop.
My Caret in Atom
/*
* 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