From 09ee0324cd1b954ddb350d86e540fd9703ff9907 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Wed, 2 Jul 2025 16:05:50 +0200 Subject: [PATCH] Push simulated cursor (I'll ask for design help next) --- app/assets/stylesheets/animation.css | 6 ++++++ app/assets/stylesheets/rich-text-content.css | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/app/assets/stylesheets/animation.css b/app/assets/stylesheets/animation.css index b7dcff00f..c99db248a 100644 --- a/app/assets/stylesheets/animation.css +++ b/app/assets/stylesheets/animation.css @@ -50,4 +50,10 @@ @keyframes zoom-fade { 100% { transform: translateY(-1.5em); scale: 2; opacity: 0; } } + + @keyframes blink { + 50% { + border-color: transparent; + } + } } diff --git a/app/assets/stylesheets/rich-text-content.css b/app/assets/stylesheets/rich-text-content.css index b6010662f..f97940341 100644 --- a/app/assets/stylesheets/rich-text-content.css +++ b/app/assets/stylesheets/rich-text-content.css @@ -363,4 +363,14 @@ --attachment-text-color: var(--color-ink-inverted); } } + + [data-lexical-cursor] { + height: 1lh; + border-left: 1px solid black; + animation: blink 1s step-end infinite; + + p & { + display: inline-block; + } + } }