Update post-single.css

Floating Table of Contents will allow better post navigation
This commit is contained in:
Shahid Parvez 2022-09-23 14:08:29 +06:00 committed by GitHub
parent 3a0a4811cb
commit a692f94b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,6 +253,10 @@
} }
.toc { .toc {
position: sticky;
top: .2rem;
z-index: 100;
padding: .8rem 0;
margin: 0 2px 40px 2px; margin: 0 2px 40px 2px;
border: 1px solid var(--border); border: 1px solid var(--border);
background: var(--code-bg); background: var(--code-bg);
@ -398,4 +402,4 @@ h1>a>svg {
img.in-text { img.in-text {
display: inline; display: inline;
margin: auto; margin: auto;
} }