/*
 * Symphony - A modern community (forum/BBS/SNS/blog) platform written in Java.
 * Copyright (C) 2012-2018, b3log.org & hacpai.com
 *
 * 本文件属于 Sym 商业版的一部分，请仔细阅读项目根文件夹的 LICENSE 并严格遵守相关约定
 */
/**
 * Article reset style
 *
 * @author <a href="http://vanessa.b3log.org">Liyuan Li</ta>
 * @version 0.2.1.0, Jan 4, 2019
 */

.content-reset {
  word-wrap: break-word;
  overflow: auto;
  line-height: 1.65;
  font-size: 16px;
  word-break: break-word;

  ul,
  ol {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 16px;
  }

  li {
    margin-top: 0.25em;
  }

  img {
    cursor: zoom-in;
  }

  img.emoji {
    cursor: auto;
    max-width: 18px;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
  }

  h1 {
    padding-bottom: 0.3em;
    font-size: 1.7em;
    border-bottom: 1px solid #eee;
  }

  h2 {
    padding-bottom: 0.3em;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
  }

  h3 {
    font-size: 1.25em;
  }

  h4 {
    font-size: 1em
  }

  h5 {
    font-size: 0.875em;
  }

  h6 {
    font-size: 0.85em;
  }

  hr {
    height: 0.15em;
    padding: 0;
    margin: 24px 0;
    background-color: #e7e7e7;
    border: 0;
  }

  p {
    margin-top: 0;
    margin-bottom: 16px;
  }

  blockquote {
    padding: 0 1em;
    color: #777;
    border-left: 0.25em solid #ddd;
    margin-bottom: 16px;
  }

  blockquote p {
    margin: 0;
  }

  ins > iframe {
    border: 0;
  }

  iframe {
    border: 1px solid rgba(0, 0, 0, .38);
  }

  table {
    width: 100%;
    border: 1px solid #dedede;
    margin: 15px auto;
    border-collapse: collapse;
    empty-cells: show;
  }

  thead {
    text-align: center;
  }

  td,
  th {
    height: 35px;
    border: 1px solid #dedede;
    padding: 0 10px;
  }

  th {
    font-weight: bold;
    text-align: center !important;
    background: rgba(158, 188, 226, 0.2);
  }

  tbody tr:nth-child(2n) {
    background: rgba(158, 188, 226, 0.12);
  }

  tr:hover {
    background: #efefef;
  }

  code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(252, 41, 41, 0.12);
    border-radius: 3px;
    word-break: break-word;
  }

  pre {
    position: relative;
    textarea {
      position: absolute;
      top: -100000px;
    }
  }

  pre > code {
    padding: 0.5em;
    background-color: rgba(0, 0, 0, 0.04);
    background-size: 20px 20px;
    border-radius: 5px;
    display: block;
  }

  kbd {
    display: inline-block;
    padding: 3px 5px;
    font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
    line-height: 10px;
    color: #555;
    vertical-align: middle;
    background-color: #fcfcfc;
    border: solid 1px rgba(0, 0, 0, .38);
    border-bottom-color: #bbb;
    border-radius: 3px;
    box-shadow: inset 0 -1px 0 #bbb;
  }

  &__task,
  .task-list-item {
    list-style: none;
    margin-left: -1em;
  }
}

.img-preview {
  width: 100%;
  height: 100%;
  top: 0;
  z-index: 211;
  overflow: auto;
  cursor: zoom-out;
  transition: background-color .2s ease-in-out;

  img {
    max-width: inherit;
    transition: transform .3s ease-in-out;
  }
}