diff options
| author | Joe Mou <dev@mou.fo> | 2026-09-03 01:26:44 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-09-03 01:27:35 -0400 |
| commit | 80be2418ff2615b454c5edf2819861f58eecf271 (patch) | |
| tree | 97f22f9f6c757eba55921b8827d7dc4b2e9c0a5b /public/static | |
| parent | 0c459447b1c12e9de57f0a4e1ab3d25737cf70e8 (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 'public/static')
| -rw-r--r-- | public/static/style.css | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/public/static/style.css b/public/static/style.css index a83e128..1d277b7 100644 --- a/public/static/style.css +++ b/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 { |
