From 80928d9f2327809b7ecccf36930e4b726a7d10b2 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 12 Mar 2022 19:33:29 +0530 Subject: [PATCH] Fix `pre` getting a dark background fixes: #723 --- assets/css/common/post-single.css | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 79ccbec..b9b9709 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -153,8 +153,7 @@ border-radius: var(--radius); } -.post-content .highlight:not(table), -.post-content pre { +.post-content .highlight:not(table) { margin: 10px auto; background: var(--hljs-bg) !important; border-radius: var(--radius); @@ -207,8 +206,8 @@ margin: auto 0; padding: 10px; color: rgb(213, 213, 214); - background: 0 0; - border-radius: 0; + background: var(--hljs-bg) !important; + border-radius: var(--radius); overflow-x: auto; word-break: break-all; }