diff options
author | neodarz <neodarz@neodarz.net> | 2019-05-13 09:03:09 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-05-13 09:07:13 +0200 |
commit | 11f081ae1c10ac7a3bf7de2d2e2f005bc422be68 (patch) | |
tree | afeee3c92e29ff2d111558ffc6825658baf9f339 /source | |
parent | b56158b63725362bc1c85f6cb3d23b5bf506e1a8 (diff) | |
download | my_new_personal_website-11f081ae1c10ac7a3bf7de2d2e2f005bc422be68.tar.xz my_new_personal_website-11f081ae1c10ac7a3bf7de2d2e2f005bc422be68.zip |
Fix default theme for code block
Diffstat (limited to 'source')
-rw-r--r-- | source/css/theme.css | 7 | ||||
-rw-r--r-- | source/css/theme.scss | 6 |
2 files changed, 12 insertions, 1 deletions
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 |