From ec1341fcd178d72e1accd308d1ae314702e69c01 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sat, 3 Aug 2019 22:26:50 +0200 Subject: use new theme --- themes/beautifulhugo/static/css/codeblock.css | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 themes/beautifulhugo/static/css/codeblock.css (limited to 'themes/beautifulhugo/static/css/codeblock.css') diff --git a/themes/beautifulhugo/static/css/codeblock.css b/themes/beautifulhugo/static/css/codeblock.css new file mode 100644 index 0000000..cf80033 --- /dev/null +++ b/themes/beautifulhugo/static/css/codeblock.css @@ -0,0 +1,33 @@ +/* --- Code blocks --- */ + +.chroma .ln { + margin-right: 0.8em; + padding: 0 0.4em 0 0.4em; +} +pre code.hljs { + padding: 9.5px; +} + +.highlight tr, .highlight pre { + border: none; +} + +.highlight div:first-child { + border-radius: 4px; +} + +.highlight td:first-child pre, .highlight pre { + border-top-left-radius: 4px; + border-top-right-radius: unset; + border-bottom-left-radius: 4px; + border-bottom-right-radius: unset; + overflow: hidden; +} + +.highlight td:last-child pre, .highlight pre { + border-radius: unset; +} + +.highlight td:last-child pre code, .highlight pre code { + white-space: pre; +} \ No newline at end of file -- cgit v1.2.3