From bb27a719a8af92686fab960e5ecf0fe0c749fedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Jochum?= Date: Mon, 19 Sep 2022 11:56:46 +0200 Subject: [PATCH] Add overflow-x --- config.yaml | 5 +++++ layouts/partials/meta.extra.html | 4 +++- themes/persona/static/static/css/style.css | 16 ++++++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/config.yaml b/config.yaml index 57452cf..6f882fa 100644 --- a/config.yaml +++ b/config.yaml @@ -8,6 +8,11 @@ canonifyurls: true PostFormat: true +markup: + highlight: + noClasses: false + lineNos: false + blackfriday: Fractions: false hrefTargetBlank: true diff --git a/layouts/partials/meta.extra.html b/layouts/partials/meta.extra.html index 2096289..e4bae52 100644 --- a/layouts/partials/meta.extra.html +++ b/layouts/partials/meta.extra.html @@ -7,4 +7,6 @@ gtag('config', 'G-9ET9Z12C0F'); - \ No newline at end of file + + + \ No newline at end of file diff --git a/themes/persona/static/static/css/style.css b/themes/persona/static/static/css/style.css index 9e5830f..57e0611 100644 --- a/themes/persona/static/static/css/style.css +++ b/themes/persona/static/static/css/style.css @@ -1553,3 +1553,19 @@ aside.post_info .vcard_area li.tags a:first-child:before { margin: 0px; padding: 20px 0px; } */ + +div.highlight pre.chroma, div.highlight code { + border: none !important; + white-space: nowrap !important; + word-wrap: normal !important; + word-break: keep-all !important; +} + +div.highlight { + overflow-x: scroll; +} + +div.highlight pre.chroma { + width: 100%; + height: 100%; +} \ No newline at end of file