<commit_before>/*!
 * Copyright 2019 EPAM Systems
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.markdown-viewer {
  width: 100%;
  height: auto;
  font-family: monospace;
  color: $COLOR--charcoal-grey;
  font-size: 12px;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-all;

  @supports (word-break: break-word) {
    word-break: break-word;
  }

  .CodeMirror {
    .CodeMirror-lines {
      padding: 0;
    }
  }
  .cm-header-1,
  h1 {
    font-size: 18px;
    line-height: normal;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0;
    font-weight: normal;
  }
  .cm-header-2,
  h2 {
    font-size: 16px;
    line-height: normal;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0;
    font-weight: normal;
  }
  .cm-header-3,
  h3 {
    font-size: 14px;
    line-height: normal;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0;
    font-weight: normal;
  }
  .cm-header {
    display: inline-block;
  }
  pre {
    padding: 0;
    margin: 0;
    border: none;
    background: none;

    & > code {
      word-wrap: break-word;
      white-space: pre-wrap;
      word-break: normal;
      background: $COLOR--gray-91;
      margin-bottom: 10px;
      border: none;
      border-radius: 0;
      padding: 10px;
      display: block;
    }
  }
  img,
  iframe {
    width: 100%;
    max-width: 300px;
    max-height: 300px;
  }
  p {
    line-height: 17px;
  }
  a {
    color: $COLOR--windows-blue;
    text-decoration: none;
  }
  ul,
  ol {
    display: block;
    padding-left: 15px;
    margin-bottom: 10px;
    line-height: 20px;

    li {
      list-style: inherit;
    }
  }
  ol {
    margin-left: 20px;
    list-style-type: decimal;
  }
  ul {
    margin-left: 15px;
    list-style-type: disc;
  }
  table {
    border-collapse: collapse;
    margin-bottom: 10px;

    th,
    td {
      border: 1px solid $COLOR--gray-80;
      padding: 5px;
    }
  }
  em {
    font-style: italic;
  }
  code {
    padding: 2px 4px;
    font-family: monospace;
    font-size: 90%;
    color: $COLOR--khaki-green;
    background-color: $COLOR--has-permission;
    border-radius: 0.3rem;
  }
  :global {
    code.lang-error {
      position: relative;
      padding: 10px 15px;
      background: transparent;
      font-size: 13px;
      line-height: 18px;
      box-sizing: border-box;

      &::before {
        content: '';
        position: absolute;
        width: 3px;
        top: 10px;
        bottom: 10px;
        left: 0;
        background: $COLOR--orange-red;
      }
    }
  }
  blockquote {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-right: 40px;
    padding-left: 10px;
    font-family: $FONT-REGULAR;
    font-size: 14px;
    color: $COLOR--charcoal-grey;
    border-left: 3px solid $COLOR--booger;
  }<commit_msg>EPMRPP-43566. Fix style for error messages in markdownViewer.<commit_after>/*!
 * Copyright 2019 EPAM Systems
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.markdown-viewer {
  width: 100%;
  height: auto;
  font-family: monospace;
  color: $COLOR--charcoal-grey;
  font-size: 12px;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-all;

  @supports (word-break: break-word) {
    word-break: break-word;
  }

  .CodeMirror {
    .CodeMirror-lines {
      padding: 0;
    }
  }
  .cm-header-1,
  h1 {
    font-size: 18px;
    line-height: normal;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0;
    font-weight: normal;
  }
  .cm-header-2,
  h2 {
    font-size: 16px;
    line-height: normal;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0;
    font-weight: normal;
  }
  .cm-header-3,
  h3 {
    font-size: 14px;
    line-height: normal;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0;
    font-weight: normal;
  }
  .cm-header {
    display: inline-block;
  }
  pre {
    padding: 0;
    margin: 0;
    border: none;
    background: none;

    & > code {
      word-wrap: break-word;
      white-space: pre-wrap;
      word-break: normal;
      background: $COLOR--gray-91;
      margin-bottom: 10px;
      border: none;
      border-radius: 0;
      padding: 10px;
      display: block;
    }
  }
  img,
  iframe {
    width: 100%;
    max-width: 300px;
    max-height: 300px;
  }
  p {
    line-height: 17px;
  }
  a {
    color: $COLOR--windows-blue;
    text-decoration: none;
  }
  ul,
  ol {
    display: block;
    padding-left: 15px;
    margin-bottom: 10px;
    line-height: 20px;

    li {
      list-style: inherit;
    }
  }
  ol {
    margin-left: 20px;
    list-style-type: decimal;
  }
  ul {
    margin-left: 15px;
    list-style-type: disc;
  }
  table {
    border-collapse: collapse;
    margin-bottom: 10px;

    th,
    td {
      border: 1px solid $COLOR--gray-80;
      padding: 5px;
    }
  }
  em {
    font-style: italic;
  }
  code {
    padding: 2px 4px;
    font-family: monospace;
    font-size: 90%;
    color: $COLOR--khaki-green;
    background-color: $COLOR--has-permission;
    border-radius: 0.3rem;
  }
  :global {
    code.language-error {
      position: relative;
      padding: 10px 15px;
      background: transparent;
      font-size: 13px;
      color: $COLOR--charcoal-grey;
      line-height: 18px;
      box-sizing: border-box;

      &::before {
        content: '';
        position: absolute;
        width: 3px;
        top: 10px;
        bottom: 10px;
        left: 0;
        background: $COLOR--orange-red;
      }
    }
  }
  blockquote {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-right: 40px;
    padding-left: 10px;
    font-family: $FONT-REGULAR;
    font-size: 14px;
    color: $COLOR--charcoal-grey;
    border-left: 3px solid $COLOR--booger;
  }
{'fraction_non_alphanumeric': 0.12459259259259259, 'fraction_numerical': 0.03214814814814815, 'mean_word_length': 2.1517273576097105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5936603', 'n_tokens_mistral': 2591, 'n_tokens_neox': 2355, 'n_words': 611}