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 From d4f28506632f5930bb96b6b3c66df1bfb357e227 Mon Sep 17 00:00:00 2001 From: Bartosz izdwuut Konikiewicz Date: Thu, 27 Sep 2018 13:27:18 +0200 Subject: Disable word wrap in code blocks. --- static/css/style.css | 3 +++ 1 file changed, 3 insertions(+) (limited to 'static/css') diff --git a/static/css/style.css b/static/css/style.css index 678687a..741b800 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -511,3 +511,6 @@ pre, code { .highlight div { border-radius: 6px; } +.post-content table code { + white-space: pre; +} -- cgit v1.2.3 From 9a8da61cf291b2b2e7b2dec20c52c7b96ee25fa6 Mon Sep 17 00:00:00 2001 From: Bartosz izdwuut Konikiewicz Date: Fri, 28 Sep 2018 10:26:15 +0200 Subject: Style unflavored code fences. --- static/css/style.css | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'static/css') diff --git a/static/css/style.css b/static/css/style.css index 741b800..b89c868 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -514,3 +514,14 @@ pre, code { .post-content table code { white-space: pre; } + +/* Unflavored code fences +------------------------------ */ +code { + padding: 20px; +} +pre { + border-radius: 6px; + background-color: #272822; + color: white; +} \ No newline at end of file -- cgit v1.2.3 From 0a1cd00874e1d43c31f9441b1d86706235f1e4ca Mon Sep 17 00:00:00 2001 From: Bartosz izdwuut Konikiewicz Date: Fri, 28 Sep 2018 11:00:33 +0200 Subject: Make line highlight set by hl_lines parameter span the whole line. --- static/css/style.css | 3 +++ 1 file changed, 3 insertions(+) (limited to 'static/css') diff --git a/static/css/style.css b/static/css/style.css index b89c868..489c51c 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -514,6 +514,9 @@ pre, code { .post-content table code { white-space: pre; } +.highlight td:nth-child(2) { + width: 100%; +} /* Unflavored code fences ------------------------------ */ -- cgit v1.2.3