@use 'sass:meta'; @use 'iro-sass/src/iro-sass' as iro; @use '../props'; @forward 'code.vars'; @use 'code.vars' as vars; @mixin styles { @include props.materialize(meta.module-variables('vars')); @include iro.bem-scope('code') { code { padding-block: props.get(vars.$inline--pad-b); padding-inline: props.get(vars.$inline--pad-i); color: props.get(vars.$inline--fg); background-color: props.get(vars.$inline--bg); border-radius: props.get(vars.$inline--rounding); } pre { padding-block: props.get(vars.$block--pad-b); padding-inline: props.get(vars.$block--pad-i); margin-block: props.get(vars.$block--margin-bs) 0; margin-inline: 0; color: props.get(vars.$block--fg); background-color: props.get(vars.$block--bg); border-radius: props.get(vars.$block--rounding); code { display: inline-block; padding: 0; margin-inline-end: props.get(vars.$block--pad-i); color: currentColor; background-color: transparent; border-radius: 0; } } } }