diff --git a/_includes/head.html b/_includes/head.html index b5609c1..dc80e12 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -84,8 +84,8 @@ {% if site.toc and page.toc %} - - + + {% endif %} {% endif %} diff --git a/assets/css/main.scss b/assets/css/main.scss index 2a3dfa9..9ec8c9d 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -404,6 +404,7 @@ footer .license a { /*--- Panels ---*/ + .access { top: 2rem; transition: top 0.2s ease-in-out; diff --git a/assets/css/post.scss b/assets/css/post.scss index 0f60a49..9c4a41c 100644 --- a/assets/css/post.scss +++ b/assets/css/post.scss @@ -7,12 +7,26 @@ MIT License */ +@keyframes fade-up { + from { + opacity: 0; + position: relative; + top: 2rem; + } + to { + opacity: 1; + position: relative; + top: 0; + } +} + #toc-wrap { border-left: 1px solid rgba(158, 158, 158, 0.17); position: -webkit-sticky; position: sticky; top: 2rem; transition: top 0.2s ease-in-out; + animation: fade-up .8s; } #toc-wrap.topbar-down {