summaryrefslogtreecommitdiff
path: root/cgithub/public/static/style.css
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-09-03 01:26:44 -0400
committerJoe Mou <dev@mou.fo>2026-09-03 01:27:35 -0400
commit501587e256a065816f7eb6007030e728955a32dc (patch)
treed218635dd8403ec7904a3248b0f7d8efee34b74f /cgithub/public/static/style.css
parentf951c579f7093cc5c61bcb3c0905c7a6729df065 (diff)
Anchor blob lines so #L fragments work
Wrap each rendered line in a <span id="Ln">, for both syntax-highlighted and plain-text blobs, and shade the line a fragment targets.
Diffstat (limited to 'cgithub/public/static/style.css')
-rw-r--r--cgithub/public/static/style.css4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgithub/public/static/style.css b/cgithub/public/static/style.css
index a83e128..1d277b7 100644
--- a/cgithub/public/static/style.css
+++ b/cgithub/public/static/style.css
@@ -286,6 +286,10 @@ object.pdf {
pre.box {
/* Instead of scrolling overflow for long lines, grow the box. */
width: fit-content;
+
+ span:target {
+ background: var(--shade-background);
+ }
}
.overview, .release, .wiki {