Skip to content

Build your personal knowledge base with Trilium Notes

style/text editor/reference links: make the underline use the same color as the link caption

Adorian Doran4b34ae3fd45b
diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.css
index 0cbf00098e..70517ef2eb 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