From 52e734fb3c0b119f57ef5bd6dfe871d80c7d2379 Mon Sep 17 00:00:00 2001 From: Bartosz izdwuut Konikiewicz Date: Thu, 27 Sep 2018 12:44:06 +0200 Subject: Add highlighting of code snippets with numbered lines enabled. --- static/css/style.css | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'static/css') diff --git a/static/css/style.css b/static/css/style.css index 536ac23..678687a 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -488,3 +488,26 @@ pre, code { display: none; } } + +/* Highlight +------------------------------ */ +.post-content pre code { + display: block; +} +.post-content table code { + padding-top: 0; + padding-bottom: 0; +} +.post-content pre { + margin: 30px 0px; + border-radius: 6px; +} +.post-content table pre { + margin: 20px 0px; +} +.highlight table { + margin: 30px 0 !important; +} +.highlight div { + border-radius: 6px; +} -- cgit v1.2.3