@use 'iro-sass/src/index' as iro; @use '../functions' as fn; @include iro.props-namespace('backdrop') { @include iro.props-store(( --dims: ( --z-index: 10000, --pad-x: iro.fn-px-to-rem(14px), --pad-y: iro.fn-px-to-rem(60px), ), ), 'dims'); @include iro.props-store(( --colors: ( --bg: rgba(#000, .3), ), ), 'colors'); @include iro.props-store(( --colors: ( --bg: rgba(#000, .75), ), ), 'colors-dark'); @include iro.props-store(( --dims: ( --pad-y: iro.fn-px-to-rem(30px), ) ), 'sm'); @include iro.bem-object(iro.props-namespace()) { display: flex; position: fixed; z-index: fn.dim(--z-index); top: 0; right: 0; bottom: 0; left: 0; box-sizing: border-box; padding: fn.dim(--pad-y) fn.dim(--pad-x); background-color: fn.color(--bg); } }