Skip to content

Commit

Permalink
add selectors for cursor / cursor animations
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser authored Apr 8, 2022
1 parent 4e1d64c commit 7cb1456
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions obsidian.css
Original file line number Diff line number Diff line change
Expand Up @@ -479,3 +479,25 @@ a.tag {} /*Reading Mode*/
}

.graph-controls {} /*Graph Menu*/

/* Cursor */
.cm-cursorLayer .cm-cursor {
/* border-left: ... */
}

/* animation of the blinking */
.cm-cursorLayer {
/* deactivate built-in animation from CodeMirror */
animation-name: none !important; /* important needed */
}

@keyframes phase-blink {
15% { opacity: 1 }
50% { opacity: 0 }
85% { opacity: 1 }
}

.cm-cursorLayer .cm-cursor {
animation-duration: 2200ms;
animation-name: phase-blink;
}

0 comments on commit 7cb1456

Please sign in to comment.