From 758352c8cda732a5be52051ac6696060047040d2 Mon Sep 17 00:00:00 2001 From: m455 Date: Fri, 3 Feb 2023 23:16:49 -0500 Subject: [PATCH] adjusted active line highlighting --- assets/templates/default.html | 3 +++ main.scm | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/assets/templates/default.html b/assets/templates/default.html index f91f57d..49ee395 100644 --- a/assets/templates/default.html +++ b/assets/templates/default.html @@ -27,6 +27,9 @@ } #file-contents code { background-color: inherit } .line-number { text-align: right } + .line:target { + background-color: yellow; + } diff --git a/main.scm b/main.scm index 411c254..2099ba7 100755 --- a/main.scm +++ b/main.scm @@ -205,9 +205,9 @@ `(table (@ (id "file-contents")) ,@(map (lambda (number line) - `(tr (@ (class "line")) - (td (@ ((class "line-number") - (id ,number))) + `(tr (@ ((class "line") + (id ,number))) + (td (@ (class "line-number")) (a (@ (href "#" ,number)) ,number)) (td (@ (class "line-contents")) (code ,line))))