From d7b01914f843b5904b06572d7921f8ebaebd77d9 Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 8 Jul 2023 15:05:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20hide=20horizontal=20scr?= =?UTF-8?q?ollbar=20in=20codeblocks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/parts/_code.scss | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sass/parts/_code.scss b/sass/parts/_code.scss index 2995cff97..41da01ad6 100644 --- a/sass/parts/_code.scss +++ b/sass/parts/_code.scss @@ -43,7 +43,6 @@ pre { line-height: 1.4; overflow-x: auto; padding: 2rem 1rem 1rem; - -webkit-overflow-scrolling: touch; border-radius: 5px; code { @@ -54,7 +53,16 @@ pre { color: inherit; padding: 0rem; border: 0rem; + overflow-x: auto; border-radius: 5px; + -webkit-overflow-scrolling: touch; + + // Hide horizontal scrollbar + scrollbar-width: none; + -ms-overflow-style: none; + &::-webkit-scrollbar { + display: none; + } &::before { content: attr(data-lang); @@ -72,10 +80,6 @@ pre { top: 0; left: 0; } - - &[class*="language-"] { - -webkit-overflow-scrolling: touch; - } } }