@use "../base/color";
@use "../base/var";
@use "../base/text";


// plain text
[part~="wy-content-text"] {
  font-family: var.default(--wy-font-monospace);
  word-break: break-word;
  white-space: pre-wrap;
}

[part~="wy-content-text-edit"] {
  white-space: normal;
}

// markdown or code with syntax highlighting
[part~="wy-content-html"] {
  pre,
  code {
    @include text.pre;
  }

  hr {
    border-color: color.token(--wy-outline);
    border-width: var.default(--wy-border) 0 0 0;
    border-style: solid;
  }

  // headings
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var.default(--wy-document-headings-font-family);
    line-height: var.default(--wy-document-headings-line-height);
  }

  h1 {
    font-size: var.default(--wy-document-h1-font-size);
    font-weight: var.default(--wy-document-h1-font-weight);
    margin: var.default(--wy-document-h1-margin);
  }

  h2 {
    font-size: var.default(--wy-document-h2-font-size);
    font-weight: var.default(--wy-document-h2-font-weight);
    margin: var.default(--wy-document-h2-margin);
  }

  h3 {
    font-size: var.default(--wy-document-h3-font-size);
    font-weight: var.default(--wy-document-h3-font-weight);
    margin: var.default(--wy-document-h3-margin);
  }

  h4 {
    font-size: var.default(--wy-document-h4-font-size);
    font-weight: var.default(--wy-document-h4-font-weight);
    margin: var.default(--wy-document-h4-margin);
  }

  h5 {
    font-size: var.default(--wy-document-h5-font-size);
    font-weight: var.default(--wy-document-h5-font-weight);
    margin: var.default(--wy-document-h5-margin);
  }

  h6 {
    font-size: var.default(--wy-document-h6-font-size);
    font-weight: var.default(--wy-document-h6-font-weight);
    margin: var.default(--wy-document-h6-margin);
  }
}
