From 4b34ae3fd45b8090242631142ff2a441faecf79a Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 22 Oct 2025 00:51:58 +0300 Subject: [PATCH] style/text editor/reference links: make the underline use the same color as the link caption --- .../src/stylesheets/theme-next/notes/text.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css index 0cbf00098..70517ef2e 100644 --- a/apps/client/src/stylesheets/theme-next/notes/text.css +++ b/apps/client/src/stylesheets/theme-next/notes/text.css @@ -666,4 +666,17 @@ html .note-detail-editable-text :not(figure, .include-note, hr):first-child { .ck-content .table > figcaption { background: var(--accented-background-color); color: var(--main-text-color); +} + +/* Reference link */ + +.ck-content a.reference-link, +.ck-content a.reference-link:hover { + /* Apply underline only to the span inside the link so it can follow the + * target note's user defined color */ + text-decoration: none; +} + +.ck-content a.reference-link > span { + text-decoration: underline; } \ No newline at end of file