From 7dc044f2ba55a7f1eed37ebc6446f46b71f57ea0 Mon Sep 17 00:00:00 2001 From: Reorx Date: Sun, 10 Apr 2022 20:38:20 +0800 Subject: [PATCH] tweak toc style --- assets/css/common/post-single.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 62be1bb..8730e88 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -69,8 +69,7 @@ font-size: 12px; } -.post-content a, -.toc a:hover { +.post-content a { box-shadow: 0 1px 0; } @@ -266,7 +265,7 @@ @media screen and (min-width: 1000px) { .toc.side { position: fixed; - right: 50px; + right: 30px; top: 100px; width: 300px; font-size: .9em; @@ -297,6 +296,9 @@ margin-inline-start: var(--gap); } .toc li a.active { + box-shadow: 0 2px 0 var(--secondary); +} +.toc a:hover { text-decoration: underline; }