# HG changeset patch # User Mads Kiilerich # Date 2015-08-17 01:11:39 # Node ID 09f58befd9f1ec9b044e422ee1d4b854664bdf69 # Parent 530bcb645d32fad3d5fa38a37f8ad0958353ca3b comments: browser display of context around url #targets should only be used for diff comments 24d01c64c5f3 had the unintended side-effect of not only highlighting the linked line in file view but also the spacing above it. For now, instead of changing the markup, restrict the fancy #target offsets to comments. diff --git a/kallithea/public/css/style.css b/kallithea/public/css/style.css --- a/kallithea/public/css/style.css +++ b/kallithea/public/css/style.css @@ -4840,7 +4840,7 @@ table.code-difftable .unmod .code pre:be /* show some context of link targets - but only works when the link target can be extended with any visual difference */ -:target:before { +div.comment:target:before { display: block; height: 100px; margin: -100px 0 0;