From 7cb14560eb1cc41156761b6a9ba612ccc5c2b4ad Mon Sep 17 00:00:00 2001 From: pseudometa <73286100+chrisgrieser@users.noreply.github.com> Date: Fri, 8 Apr 2022 14:22:25 +0200 Subject: [PATCH] add selectors for cursor / cursor animations --- obsidian.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/obsidian.css b/obsidian.css index 054df2e..a678832 100644 --- a/obsidian.css +++ b/obsidian.css @@ -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; +}