diff options
Diffstat (limited to 'src/layouts')
-rw-r--r-- | src/layouts/_split-view.scss | 9 | ||||
-rw-r--r-- | src/layouts/_split-view.vars.scss | 2 |
2 files changed, 9 insertions, 2 deletions
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 @@ | |||
30 | min-inline-size: props.get(vars.$panel--side-25--min); | 30 | min-inline-size: props.get(vars.$panel--side-25--min); |
31 | } | 31 | } |
32 | 32 | ||
33 | @include bem.modifier('sticky') { | 33 | @include bem.modifier('sticky-0') { |
34 | position: sticky; | 34 | position: sticky; |
35 | inset-block-start: 0; | 35 | inset-block-start: 0; |
36 | } | 36 | } |
37 | 37 | ||
38 | @include bem.modifier('sticky') { | ||
39 | position: sticky; | ||
40 | inset-block-start: props.get(vars.$panel--sticky-offset); | ||
41 | } | ||
42 | |||
38 | @include bem.modifier('sticky-400') { | 43 | @include bem.modifier('sticky-400') { |
39 | position: sticky; | 44 | position: sticky; |
40 | inset-block-start: props.get(vars.$panel--sticky-400--inset); | 45 | inset-block-start: calc(props.get(vars.$panel--sticky-400--inset) + props.get(vars.$panel--sticky-offset)); |
41 | } | 46 | } |
42 | } | 47 | } |
43 | 48 | ||
diff --git a/src/layouts/_split-view.vars.scss b/src/layouts/_split-view.vars.scss index 8f6bf93..01562e1 100644 --- a/src/layouts/_split-view.vars.scss +++ b/src/layouts/_split-view.vars.scss | |||
@@ -8,3 +8,5 @@ $gapless: props.def(--l-split-view--gapless, 0) !default; | |||
8 | 8 | ||
9 | $panel--side-25--min: props.def(--l-split-view--panel--side-25--min, props.get(core.$size--3200)) !default; | 9 | $panel--side-25--min: props.def(--l-split-view--panel--side-25--min, props.get(core.$size--3200)) !default; |
10 | $panel--sticky-400--inset: props.def(--l-split-view--panel--sticky-400--inset, props.get(core.$size--400)) !default; | 10 | $panel--sticky-400--inset: props.def(--l-split-view--panel--sticky-400--inset, props.get(core.$size--400)) !default; |
11 | |||
12 | $panel--sticky-offset: props.def(--l-split-view--panel--sticky-offset, props.get(core.$sticky-top-offset)) !default; | ||