From 2923b48febc3786accf071bc897fc80071136092 Mon Sep 17 00:00:00 2001 From: Jonas Duri Date: Fri, 8 Dec 2023 19:48:40 +0100 Subject: [PATCH] make aside menu sticky --- templates/partials/aside.html | 74 ++++++++++++++++++----------------- templates/partials/head.html | 5 +++ 2 files changed, 43 insertions(+), 36 deletions(-) diff --git a/templates/partials/aside.html b/templates/partials/aside.html index 75d7b92..e0cecf0 100644 --- a/templates/partials/aside.html +++ b/templates/partials/aside.html @@ -1,37 +1,39 @@ - + diff --git a/templates/partials/head.html b/templates/partials/head.html index c4009a4..ce50af7 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -102,5 +102,10 @@ .components-grid { grid-template-columns: 3fr 9fr; } + + .components-grid aside { + position: sticky; + top: calc(var(--global-space) * 2); + } }