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

This commit is contained in:
Adorian Doran 2025-10-22 00:51:58 +03:00
parent 8590ff1f46
commit 4b34ae3fd4

View File

@ -667,3 +667,16 @@ html .note-detail-editable-text :not(figure, .include-note, hr):first-child {
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;
}