/* ============================================================================== */
/*  S t a r k   P r e t t y   P r i n t                                           */
/* ============================================================================== */
/* stark-ui: src/modules/pretty-print/components/_pretty-print.component.scss */
@use "@angular/material" as mat;
@use "../../../../styles/theming/typography" as stark-typography;

@mixin stark-pretty-print() {
  .stark-pretty-print {
    pre,
    pre[class*="language-"] > code {
      white-space: pre-wrap;
      word-wrap: break-word;
    }

    // Typography fix
    code[class*="language-"],
    pre[class*="language-"] {
      font-family: mat.font-family(stark-typography.$typography-config);
      font-size: mat.font-size(stark-typography.$typography-config, body-1);
      font-weight: mat.font-weight(stark-typography.$typography-config, body-1);
      line-height: mat.line-height(stark-typography.$typography-config, body-1);
    }
  }
}

/* end stark: src/modules/pretty-print/components/_pretty-print.component.scss */
