mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37: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 {
|
#toc-aside {
|
||||||
display: block;
|
display: block;
|
||||||
width: 12rem;
|
width: 12rem;
|
||||||
position: fixed;
|
position: sticky;
|
||||||
top: 4rem;
|
float: left;
|
||||||
|
top: 1rem;
|
||||||
|
margin-top: -4rem;
|
||||||
margin-left: -15rem;
|
margin-left: -15rem;
|
||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
|
|||||||
Reference in New Issue
Block a user