changeset 5391:09f58befd9f1

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.
author Mads Kiilerich <madski@unity3d.com>
date Mon, 17 Aug 2015 01:11:39 +0200
parents 530bcb645d32
children 5cc8e1d7ee21
files kallithea/public/css/style.css
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/public/css/style.css	Fri Aug 14 00:59:30 2015 +0200
+++ b/kallithea/public/css/style.css	Mon Aug 17 01:11:39 2015 +0200
@@ -4840,7 +4840,7 @@
 
 /* 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;