@import "../../../scss/variables";

text-preview {
  display: block;
  width: 80%;
  min-height: 80%;

  @media only screen and (max-width: $medium) {
    width: 90%;
  }

  .text-wrapper {
    width: 100%;
    height: 100%;
    background-color: $site-bg-color-100;
    @include mat-elevation(3);
    border-radius: 4px;
    color: $site-text-color-400;
    word-wrap: break-word;
    padding: 20px;
    overflow: auto;
  }

  pre {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-size: 1.4rem;
    font-family: inherit;
  }

  default-preview {
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
}