From 3450967897891fc60f946fdc63b3b968d2a86b22 Mon Sep 17 00:00:00 2001 From: Jisan-mia Date: Fri, 28 Oct 2022 17:43:46 +0600 Subject: [PATCH] made the sidebar sticky --- docs/docs.css | 5 +++-- docs/index.html.ejs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/docs.css b/docs/docs.css index 274317d..381351e 100644 --- a/docs/docs.css +++ b/docs/docs.css @@ -30,12 +30,13 @@ body { aside { width: 200px; - position: fixed; - top: 0; + position: sticky; + top: 18px; bottom: 0; padding: 8px; display: flex; align-items: stretch; + height: calc(100vh - 36px); } html { diff --git a/docs/index.html.ejs b/docs/index.html.ejs index 168747a..edb9db5 100644 --- a/docs/index.html.ejs +++ b/docs/index.html.ejs @@ -17,7 +17,7 @@

-

+