diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 0f569bf..bff671e 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -253,6 +253,10 @@ } .toc { + position: sticky; + top: .2rem; + z-index: 100; + padding: .8rem 0; margin: 0 2px 40px 2px; border: 1px solid var(--border); background: var(--code-bg); @@ -398,4 +402,4 @@ h1>a>svg { img.in-text { display: inline; margin: auto; -} \ No newline at end of file +}