@include namespace('card-list') { @include store(( --colors: ( --title: prop(--colors --fg-lo, $global: true), --text: prop(--colors --fg-hi, $global: true), ), --dims: ( --col-width: 17em ) )); @include component(namespace()) { margin-top: $line-height * 2rem; font-size: 1rem; @include element('title') { color: prop(--colors --title); } @include element('text') { color: prop(--colors --text); line-height: 1.4; p { margin-top: $line-height * .25rem; } } @include element('cards') { margin-top: $line-height * .625rem; filter: drop-shadow(#{prop(--dims --obj-shadow, $global: true)} #{prop(--colors --obj-shadow, $global: true)}); @include modifier('grid') { display: grid; grid-template-columns: repeat(auto-fill, minmax(#{prop(--dims --col-width)}, 1fr)); gap: 6px; @include element('card') { @include next-twin-element { margin-top: 0; } } } @media print { filter: none; } } @include element('card') { box-shadow: none; @include next-twin-element { margin-top: 2px; } } } }