From cb8ae2fc539e63adb55815dcaf40dd0854d6c54f Mon Sep 17 00:00:00 2001 From: TNeitzel Date: Sat, 25 Dec 2021 08:59:39 +0100 Subject: [PATCH] Fix border radius when using line numbers When using line numbers with table style, the border radius for the corresponding codeblocks leads to annoying gaps between the line numbers and the actual code. This commit removes the border radius when the corresponding element is displayed inside a table (which is the case when line numbers are used with table format). --- assets/css/common/post-single.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 79ccbec6..ff9daf79 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -160,6 +160,10 @@ border-radius: var(--radius); } +.post-content table pre { + border-radius: 0; +} + .post-content li > .highlight { margin-inline-end: 0; }