From 9262c000cde6610ff2be5a3f66f63a097101ef00 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 16 Nov 2024 11:34:57 +0100 Subject: Sticky offset --- src/layouts/_split-view.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/layouts/_split-view.scss') diff --git a/src/layouts/_split-view.scss b/src/layouts/_split-view.scss index a76f6e8..2744510 100644 --- a/src/layouts/_split-view.scss +++ b/src/layouts/_split-view.scss @@ -30,14 +30,19 @@ min-inline-size: props.get(vars.$panel--side-25--min); } - @include bem.modifier('sticky') { + @include bem.modifier('sticky-0') { position: sticky; inset-block-start: 0; } + @include bem.modifier('sticky') { + position: sticky; + inset-block-start: props.get(vars.$panel--sticky-offset); + } + @include bem.modifier('sticky-400') { position: sticky; - inset-block-start: props.get(vars.$panel--sticky-400--inset); + inset-block-start: calc(props.get(vars.$panel--sticky-400--inset) + props.get(vars.$panel--sticky-offset)); } } -- cgit v1.2.3-70-g09d2