mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Make table of contents sticky instead of fixed
Fixed looks a bit strange with the new `All Posts` link.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user