.ProseMirror, .ProseMirror-static {
  outline: 0;
  border: 0;
  font-size: 20px;
  word-break: break-word;
  white-space: normal;

  &:not(.ProseMirror-static) {
    user-select: text;
  }

  ::selection {
    background-color: rgba($themeColor, 0.25);
    color: inherit;
  }

  p {
    margin-top: var(--paragraphSpace);
  }
  p:first-child {
    margin-top: 0;
  }

  ul {
    list-style-type: disc;
    padding-inline-start: 20px;

    li {
      list-style-type: inherit;
      padding: 2px 0;
    }
  }

  ol {
    list-style-type: decimal;
    padding-inline-start: 20px;

    li {
      list-style-type: inherit;
      padding: 2px 0;
    }
  }

  code {
    background-color: $borderColor;
    padding: 2px 6px;
    margin: 0 1px;
    border-radius: 4px;
    font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  }

  sup {
    vertical-align: super;
    font-size: smaller;
  }
  sub {
    vertical-align: sub;
    font-size: smaller;
  }

  blockquote {
    overflow: hidden;
    padding-right: 1.2em;
    padding-left: 1.2em;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    border-left: 4px solid #ddd;
  }

  [data-indent='1'] {
    padding-left: 20px;
  }
  [data-indent='2'] {
    padding-left: 40px;
  }
  [data-indent='3'] {
    padding-left: 60px;
  }
  [data-indent='4'] {
    padding-left: 80px;
  }
  [data-indent='5'] {
    padding-left: 100px;
  }
  [data-indent='6'] {
    padding-left: 120px;
  }
  [data-indent='7'] {
    padding-left: 140px;
  }
  [data-indent='8'] {
    padding-left: 160px;
  }
}

.ProseMirror-selectednode {
  outline: none !important;
}