From 2bd4f35de23fcfd86592c5f46293176c748875ea Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Tue, 5 May 2020 09:28:13 +0200 Subject: [PATCH 1/2] remove white space between ln nos and code --- src/sass/_chroma_github.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sass/_chroma_github.scss b/src/sass/_chroma_github.scss index 80a50bf..e92a3b4 100644 --- a/src/sass/_chroma_github.scss +++ b/src/sass/_chroma_github.scss @@ -57,6 +57,7 @@ } .chroma .lntable td:first-child { padding-right: 0.5em; + background-color: $color-code; } .chroma .lntable td:first-child code { border-right: 1px solid #dcdfe3; From 9a858bce54b7250cc90f1b6a45fc59eb893c5de5 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 5 May 2020 10:15:30 +0200 Subject: [PATCH 2/2] add some formatting improvements --- src/sass/_chroma_github.scss | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/sass/_chroma_github.scss b/src/sass/_chroma_github.scss index e92a3b4..8964df1 100644 --- a/src/sass/_chroma_github.scss +++ b/src/sass/_chroma_github.scss @@ -19,6 +19,12 @@ border-radius: 0; border-top-right-radius: $border-radius; border-bottom-right-radius: $border-radius; + padding-left: 0.5em; +} +.chroma .lntable td:nth-child(2) code .hl { + width: auto; + margin-left: -0.5em; + padding: 0 0.5em; } .highlight { @@ -55,11 +61,8 @@ overflow: auto; display: block; } -.chroma .lntable td:first-child { - padding-right: 0.5em; - background-color: $color-code; -} .chroma .lntable td:first-child code { + background-color: $gray-200; border-right: 1px solid #dcdfe3; padding: 0.5em 0; }