From fe19af668d527f0350ecb455e1aebdfff02a50df Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 19 Mar 2019 12:52:31 +0100 Subject: [PATCH] Make table of contents sticky instead of fixed Fixed looks a bit strange with the new `All Posts` link. --- blog/static/css/main.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blog/static/css/main.css b/blog/static/css/main.css index 6a2354d0..74f058bd 100644 --- a/blog/static/css/main.css +++ b/blog/static/css/main.css @@ -175,8 +175,10 @@ aside#all-posts-link { #toc-aside { display: block; width: 12rem; - position: fixed; - top: 4rem; + position: sticky; + float: left; + top: 1rem; + margin-top: -4rem; margin-left: -15rem; font-size: 90%; line-height: 1.2;