From 45cbb9fc2be7138cee701fa635dece8a0ea3f9e5 Mon Sep 17 00:00:00 2001 From: Louis Grasset Date: Thu, 20 Feb 2020 14:52:42 +0100 Subject: [PATCH] :lipstick: Make h1 sticky Add the ability to keep the current section heading visible while in this section https://imgur.com/a/MQujemd --- resources/stylus/style.styl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/stylus/style.styl b/resources/stylus/style.styl index 18b17c2..24dfff0 100644 --- a/resources/stylus/style.styl +++ b/resources/stylus/style.styl @@ -281,6 +281,8 @@ embossed-bg() margin-top: 2em border-top: 1px solid #ddd background-image: linear-gradient(to bottom, white, #f9f9f9) + position: sticky + top: 0 h1:first-child, div:first-child + h1 border-top-width: 0 margin-top: 0