From ff18f62c781afdfa9a54067f29ad572bf867c207 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 15 Apr 2021 18:25:56 +0200 Subject: [PATCH] Revert "Fix code scrolling due to line numbers" This reverts commit eb4c4330f7fc44e5ffe730ddb6234ea2bd10a5cc. --- articles/static/code.css | 15 +-------------- articles/static/public.css | 6 +----- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/articles/static/code.css b/articles/static/code.css index 519ac8b..fb1b8b2 100644 --- a/articles/static/code.css +++ b/articles/static/code.css @@ -1,9 +1,3 @@ -:root { - --linenos-width: 55px; - --code-border-width: 1px; - --pre-padding-horizontal: 1.5rem; -} - .codehilitetable td { border: none; margin: 0; @@ -11,9 +5,7 @@ } .codehilitetable .linenos { - width: var(--linenos-width); - min-width: var(--linenos-width); - max-width: var(--linenos-width); + max-width: 20px; } .codehilitetable .linenos pre { @@ -21,8 +13,6 @@ border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 0; - margin-bottom: 0; - overflow-x: scroll; } .codehilitetable .code pre { @@ -30,7 +20,4 @@ border-top-left-radius: 0; border-bottom-left-radius: 0; padding-left: .1rem; - margin-bottom: 0; - width: calc(var(--body-width) - var(--linenos-width) - 2 * var(--code-border-width) - var(--pre-padding-horizontal)); - overflow-x: scroll; } diff --git a/articles/static/public.css b/articles/static/public.css index 41fde9b..ef41fe2 100644 --- a/articles/static/public.css +++ b/articles/static/public.css @@ -1,10 +1,6 @@ -:root { - --body-width: 750px; -} - body { /* Overriding so that it doesn't change even when updating the library. */ - max-width: var(--body-width); + max-width: 750px; } h1, h2, h3 {