From fbe89f3cf694eaa60681913891ec3cfe812fc282 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 25 Apr 2023 02:56:32 +0200 Subject: [PATCH] fix scroll and copy button on codeblocks --- static/css/blog/post.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/static/css/blog/post.css b/static/css/blog/post.css index 5ca8d00..d612fc4 100644 --- a/static/css/blog/post.css +++ b/static/css/blog/post.css @@ -113,6 +113,16 @@ a:hover { text-align: right; } +/* Fix scroll in codeblocks with line numbering */ +table.hljs-ln { + overflow: hidden; +} +@media (prefers-color-scheme: light) { + .hljs-copy-button { + filter: invert(100%); + } +} + .hljs-ln > tbody > tr:last-child:has(td:last-child > span::-moz-only-whitespace) {