From 2f06f5e4fa8ffcfdea3f3f99f1664babcad0fd5f Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 23 Jan 2021 23:13:47 +0530 Subject: [PATCH] fill background of table of contents --- assets/css/post-single.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/css/post-single.css b/assets/css/post-single.css index 788bb5c..f5fa4f4 100644 --- a/assets/css/post-single.css +++ b/assets/css/post-single.css @@ -245,12 +245,17 @@ } .toc { - margin-bottom: 40px; + margin: 0 2px 40px 2px; border: 1px solid var(--border); + background: var(--code-bg); border-radius: var(--radius); padding: .4em } +.dark .toc { + background: var(--entry); +} + .toc details summary { cursor: zoom-in; margin-inline-start: 20px