style/text editor/links: tweak

This commit is contained in:
Adorian Doran
2025-12-22 02:04:35 +02:00
parent d99e08bfdd
commit aa7ae150dc
2 changed files with 16 additions and 3 deletions

View File

@@ -653,7 +653,8 @@ body a.tn-link:focus-visible,
}
body a.tn-link:hover,
.use-tn-links a:hover {
.use-tn-links a:hover,
.use-tn-links a.ck-widget_selected {
box-shadow: 0 0 0 4px var(--link-hover-background);
--background: var(--link-hover-background);
color: var(--link-hover-color);

View File

@@ -670,14 +670,26 @@ html .note-detail-editable-text :not(figure, .include-note, hr):first-child {
color: var(--main-text-color);
}
/* Links */
.ck-content a.ck-widget {
outline: none;
}
.ck-content a.ck-widget.ck-widget_selected,
.ck-content a.ck-link_selected {
outline: 2px solid var(--input-focus-outline-color);
outline-offset: 2px;
background: var(--link-hover-background);
}
/* 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 */
outline: none;
text-decoration: none;
text-decoration: none;
}
.ck-content a.reference-link > span {