From 7a8ee848a1548b327b4de8aed6e9d298b136d58a Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Mon, 10 Jul 2017 20:44:26 +0800 Subject: [PATCH] Totally finally fix every single removeDiffSigns bug forever (#607) --- extension/content.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/extension/content.css b/extension/content.css index b04eef1..a63393f 100644 --- a/extension/content.css +++ b/extension/content.css @@ -542,12 +542,12 @@ Hidden content area created to increase hover target /* +/- Pseudo elements on diffs */ .refined-github-diff-signs .blob-code-addition:before, .refined-github-diff-signs .blob-code-deletion:before { - position: relative; - top: -1px; - left: -8px; + display: inline-block; + position: absolute; + top: 1px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; - line-height: 0; /* Avoids extra vertical spaceĀ */ font-size: 11px; + text-indent: -8px; color: rgba(0, 0, 0, 0.3); } @@ -558,6 +558,10 @@ Hidden content area created to increase hover target .refined-github-diff-signs .blob-code-deletion:before { content: '-'; } +.refined-github-diff-signs .blob-code-addition .blob-code-inner, +.refined-github-diff-signs .blob-code-deletion .blob-code-inner { + padding-left: 1ch; +} /* Prevent copy of ghost whitespace where supported (#317) */ .refined-github-diff-signs .add-line-comment {