From 98c33049314ab1b605f29afed7a48e6dff595a9b Mon Sep 17 00:00:00 2001 From: Martin Thomson Date: Thu, 2 Feb 2023 16:35:39 +1100 Subject: [PATCH] feat: Lighter styling on internal irefs Documents like https://datatracker.ietf.org/doc/html/draft-ietf-ohai-ohttp-06 use a tagging scheme for certain keywords that turns them into links. This can be useful in giving people the ability to quickly jump to the definition of an important term, but it tends to produce a lot of visual noise. The resulting links are blue and underlined, which can be distracting when there are lots of these links. This change removes styling for these links. If there is an `` tag (which renders as an empty ``) immediately preceding a link and that link is tagged `class="internal"`, link styling is removed. These will still result in the cursor changing to a pointer, but the blue and underlining will reduce line noise. Note that this change depends on a corresponding change in kramdown-rfc that reorders the generation of the iref and xref tags. The above document will not change in appearance as a result, because that version of kramdown-rfc generated the tags in the wrong order. A new version generated with an updated kramdown-rfc is forthcoming. --- ietf/static/css/document_html_txt.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/static/css/document_html_txt.scss b/ietf/static/css/document_html_txt.scss index f79734e1a5..e2a401763b 100644 --- a/ietf/static/css/document_html_txt.scss +++ b/ietf/static/css/document_html_txt.scss @@ -368,7 +368,7 @@ td, th { } /* Links */ -a.selfRef, a.pilcrow { +a.selfRef, a.pilcrow, .iref + a.internal { color: black; text-decoration: none; }