.c7n-docVersion {
  display: flex;
  height: 100%;

  &-tip {
    margin-bottom: 20px;

    .c7n-tip-icon {
      height: 12px;
      width: 12px;
      border-radius: 10px;
      display: inline-block;
      margin-right: 5px;
    }

    .c7n-tip-add {
      border: 1px solid #00bfa5;
      background: rgba(0, 191, 165, 0.10);
    }

    .c7n-tip-delete {
      margin-left: 20px;
      border: 1px solid #e23b3b;
      background: rgba(226, 59, 59, 0.10);
    }

    .c7n-tip-update {
      margin-left: 20px;
      border: 1px solid #4d90fe;
      background: rgba(77, 144, 254, 0.10);
    }
  }

  &-title {
    font-size: 20px;
    // height: 45px;
    border-bottom: 1px solid var(--divider);
    padding: 2px 0 15px 0;
    margin-bottom: 20px;
  }

  &-compareTitle {
    max-height: 60px;
    overflow-y: hidden;
  }

  &-content {
    padding: 20px 0;
    flex: 1;
    .c7n-docVersion-tip, .c7n-docVersion-title, .c7n-docVersion-wrapper {
      padding: 0 20px;
    }
    .c7n-docVersion-title {
      padding-bottom: 15px;
    }
    .tui-editor-contents {
      h1 {
        font-size: 0.36rem;
        border-bottom: none;
        line-height: 0.36rem;
      }

      h2 {
        font-size: 0.24rem;
        border-bottom: none;
        line-height: 0.24rem;
      }

      h3 {
        font-size: 0.21rem;
        line-height: 0.21rem;
      }

      h4 {
        font-size: 0.18rem;
        line-height: 0.18rem;
      }

      h5 {
        font-size: 0.16rem;
        line-height: 0.16rem;
      }

      h6 {
        font-size: 0.14rem;
        line-height: 0.14rem;
      }
      img {
        max-width: 4rem;
      }
    }
  }

  &-list {
    width: 220px;
    border-left: 1px solid var(--divider);
    height: 100%;
    overflow: auto;

    &-title {
      padding: 15px 20px;
      font-size: 18px;
      color: var(--primary-color);
    }
  }

  &-wrapper {
    max-height: calc(~"100% - 135px");
    overflow-y: auto;
    padding: 5px;
    padding-bottom: 30px;
    word-break: break-all;

    img {
      max-width: 4rem;
    }
  }

  &-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 59px;
    border-top: 1px solid var(--divider);
    padding: 0 10px;
  }

  &-item:hover {
    .c7n-docVersion-rollback {
      .c7n-btn {
        opacity: 1;
        transition: all 1s;
      }
    }
  }

  &-check {
    width: 46px;
  }

  &-message {
    flex: 1;
  }

  &-checked {
    background-color: rgba(104, 135, 232, 0.08);
  }

  &-rollback {
    width: 46px;
    padding-left: 10px;
    .c7n-btn {
      opacity: 0;
    }
  }

  &-compare {
    color: #333;
    margin-top: 20px;

    & > span {
      margin-bottom: 10px;
      display: inline-block;
    }
  }
}
