From 11f081ae1c10ac7a3bf7de2d2e2f005bc422be68 Mon Sep 17 00:00:00 2001 From: neodarz Date: Mon, 13 May 2019 09:03:09 +0200 Subject: Fix default theme for code block --- source/css/theme.css | 7 ++++++- source/css/theme.scss | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/css/theme.css b/source/css/theme.css index 940aca95..1dbd7732 100644 --- a/source/css/theme.css +++ b/source/css/theme.css @@ -268,7 +268,12 @@ h1 code, h2 code { pre { padding: 1em; - background: #000; } + background: #000; + border: 1px solid; + overflow: auto; } + +pre[class*=title-header] { + border: none; } /* Pandoc wraps pre[class*=sourceCode] in a div tag, so it is necessary to eliminate the margins of such pre tags to avoid too much spacing.*/ diff --git a/source/css/theme.scss b/source/css/theme.scss index dfa1f8cd..387b4f00 100644 --- a/source/css/theme.scss +++ b/source/css/theme.scss @@ -386,6 +386,12 @@ h1 code, h2 code { pre { padding: 1em; background: #000; + border: 1px solid; + overflow: auto; +} + +pre[class*=title-header] { + border: none; } /* Pandoc wraps pre[class*=sourceCode] in a div tag, so it is necessary to -- cgit v1.2.1