@use 'sass:meta'; @use 'iro-sass/src/iro-sass' as iro; @use 'iro-sass/src/props'; @use '../props' as *; @forward 'media.vars'; @use 'media.vars' as vars; @mixin styles { @include materialize-at-root(meta.module-variables('vars')); @include iro.bem-layout('media') { display: flex; gap: props.get(vars.$gap); align-items: center; line-height: 1.4; @each $mod, $size in vars.$sizes { @include iro.bem-modifier($mod) { gap: props.get($size); } } @include iro.bem-modifier('wrap') { flex-wrap: wrap; } @include iro.bem-elem('block') { flex: 0 0 auto; @include iro.bem-modifier('shrink', 'main') { flex-shrink: 1; min-inline-size: 0; } @include iro.bem-modifier('main') { inline-size: 100%; } } } }