From 7f17632ab03926a424e597c6b6e8e84746fc0788 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 26 Jul 2023 16:46:06 -0700 Subject: [PATCH] Highlight a targeted line in source block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using refs to create links to specific lines in code blocks, use the ‘:target’ pseudo-class to highlight the background. --- src/less/main.less | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/less/main.less b/src/less/main.less index f3b765f..2149f32 100644 --- a/src/less/main.less +++ b/src/less/main.less @@ -75,3 +75,7 @@ pre.src { line-height: 1; padding: 0; } + +.org-src-container span:target { + background-color: #1b214a; +}