
.element-doc {
  padding: 10px;
  background-color: #ffffff;
  word-break: break-all;
  &:first-child,
  h1:first-child,
  h2:first-child,
  h3:first-child,
  h4:first-child{
    margin-top: 0 !important;
  }
  & > h1 {
    font-size: 24px;
    font-weight: bold;
    color: #1f2d3d;
    margin: 60px 0 30px;
    line-height: 22px !important;
  }

  & > h2 {
    font-size: 22px;
    font-weight: 800;
    line-height: 20px !important;
    color: #1f2d3d;
    margin: 50px 0 20px;
  }

  & > h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 18px !important;
    margin: 40px 0 10px;
  }

  & > h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 16px !important;
    margin: 30px 0 6px;
  }

  & > h5 {
    font-size: 16px;
    line-height: 14px !important;
    margin: 20px 0 12px;
  }

  & > h2, h3, h4, h5 {
    color: #1f2f3d;

    &:hover a {
      opacity: .4;
    }

    & > a {
      width: 15px;
      float: left;
      opacity: 0;
      cursor: pointer;
      margin-left: -15px;

      &:hover {
        opacity: .4;
      }
    }
  }

  & > blockquote {
    display: block;
    color: #999;
    border-left: 4px solid #ddd;
    padding-left: 10px;
    margin-top: 10px;
    font-size: 14px;
  }

  & > p {
    font-size: 14px;
    //color: #5e6d82;
    margin-top: 1em;
    line-height: 1.5em;
    //margin-bottom: 1em;
  }

  & > .tip {
    padding: 8px 16px;
    background-color: #ECF8FF;
    border-radius: 4px;
    border-left: #50bfff 5px solid;
    margin: 20px 0;

    & > code {
      background-color: rgba(255, 255, 255, .7);
      color: #445368;
    }
  }

  & > .warning {
    padding: 8px 16px;
    background-color: #fff6f7;
    border-radius: 4px;
    border-left: #FE6C6F 5px solid;
    margin: 20px 0;

    & > code {
      background-color: rgba(255, 255, 255, .7);
      color: #445368;
    }
  }

  strong{
    color: #666666;
  }
}

.element-doc {
  img{
    max-width: 100%;
  }
  a {
    color: #409EFF;
    text-decoration: none;
    //padding-right: 5px;
  }

  code:not(.hljs) {
    background-color: #ecf5ff;
    //padding: 2px 4px;
    color: #409eff;
    //border: 1px solid #d9ecff;
    border-radius: 4px;
  }

  button:not(.el-button), input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
  }

  .hljs {
    line-height: 1.5;
    white-space: pre-wrap;
    font-family: Menlo, Monaco, Consolas, Courier, monospace;
    font-size: 12px;
    padding: 12px 12px;
    background-color: #fafafa;
    border: solid 1px #eaeefb;
    margin-bottom: 10px;
    border-radius: 4px;
    -webkit-font-smoothing: auto;
  }

  & > {
    :not(p) {

    }

    & > table {
      border-collapse: collapse;
      width: 100%;
      background-color: #fff;
      line-height: 1.5em;
      margin: 10px 0;

      tbody>tr:nth-child(even){
        background-color: #fafafa;
      }
      tbody>tr:hover{
        background-color: #ebeef5;
        transition: background-color .25s ease;
      }
      strong {
        font-weight: normal;
      }

      td, th {
        border: 1px solid #dcdfe6;
        padding: 10px;
        max-width: 250px;
        line-height:  1.5em;
      }

      th {
        text-align: left;
        white-space: nowrap;
        color: #909399;
        font-size: 14px;
        font-weight: 500;
      }

      td {
        font-size: 12px;
        color: #606266;
        transition: background-color .25s ease;
        word-break: initial;
      }

      th:first-child, td:first-child {
        padding-left: 10px;
      }
    }

    //ul:not(.timeline):not(.el-upload-list) {
    //  margin: 10px 0;
    //  padding: 0 0 0 20px;
    //  font-size: 14px;
    //  color: #5e6d82;
    //  line-height: 2em;
    //}
    & > ul, & > ol {
      margin: 3px 28px 3px 0 !important;
      list-style-type: demical;

      & > li {
        list-style-position: outside;
        line-height: 1.6em;
        margin-left: 25px;
        padding-left: 3px;

        & > ul, & > ol {
          margin: 3px 28px 3px 0 !important;
          list-style-type: demical;

          & > li {
            list-style-position: outside;
            line-height: 1.6em;
            margin-left: 25px;
            padding-left: 3px
          }
        }
      }
    }
  }
}

