@use 'sass:meta'; @use 'include-media/dist/include-media' as media; @use 'iro-sass/src/bem'; @use 'iro-sass/src/props'; @use '../props' as *; @forward 'split-view.vars'; @use 'split-view.vars' as vars; @mixin styles { @include materialize-at-root(meta.module-variables('vars')); @include bem.layout('split-view') { display: flex; gap: props.get(vars.$col-gap); align-items: start; @include bem.modifier('gapless') { gap: props.get(vars.$gapless); } @include bem.elem('panel') { flex: 1 1 auto; inline-size: 100%; min-inline-size: 0; @include bem.modifier('side-25') { flex: 0 0 auto; inline-size: 25%; min-inline-size: props.get(vars.$panel--side-25--min); } @include bem.modifier('sticky') { position: sticky; inset-block-start: 0; } @include bem.modifier('sticky-400') { position: sticky; inset-block-start: props.get(vars.$panel--sticky-400--inset); } } @include bem.elem('content') { inline-size: 100%; } @include media.media('<=md') { flex-direction: column; gap: props.get(vars.$row-gap); align-items: stretch; @include bem.elem('panel') { flex: 1 1 auto; @include bem.modifier('side-25') { inline-size: auto; min-inline-size: 0; } @include bem.modifier('sticky', 'sticky-400') { position: static; } } } } }