@use 'sass:meta'; @use 'iro-sass/src/bem' as bem; @use 'iro-sass/src/props'; @use '../props' as *; @forward 'code.vars'; @use 'code.vars' as vars; @mixin styles { @include materialize-at-root(meta.module-variables('vars')); @include 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; } } } }