From 42bf4b12a27f9de81f10ac7af0e194b8ab6f4921 Mon Sep 17 00:00:00 2001 From: rr- Date: Tue, 3 Jan 2017 19:37:15 +0100 Subject: [PATCH] client/comments: fix 1px jumping on edit preview --- client/css/comment-control.styl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/client/css/comment-control.styl b/client/css/comment-control.styl index 5b1a408..343dbd4 100644 --- a/client/css/comment-control.styl +++ b/client/css/comment-control.styl @@ -32,23 +32,25 @@ $comment-border-color = #DDD border-bottom: 1px solid $comment-border-color nav.edit - padding: 0.33em 1em 0 1em + padding: 0.25em 1em 0 1em + line-height: 2em ul list-style-type: none - margin: 0 + margin: -1px 0 -1px 0 padding: 0 li display: inline-block - margin: 0 0 -1px 0 + border: 1px solid transparent a - padding: 0.25em 1em + padding: 0 1em &.active background: $window-color border: 1px solid $comment-border-color - border-bottom: none + border-bottom: 1px solid $window-color nav.readonly - padding: 0.33em 1em + padding: 0 1em + line-height: 2.25em &:before position: absolute