.history-wrap {
  height: 100%;
  position: absolute;
  z-index: 10;
  right: 0;
  overflow-x: auto;
  width: 256px;
  flex: 1 1 auto;
  top: 0;
  bottom: 0;
  background-color: #fff;
  background-clip: border-box;
  border-left: 1px solid rgba(0, 0, 0, 0.125);
  & > .header {
    height: 40px;
    border-bottom: 1px solid #efefef;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .text {
      font-size: 14px;
      font-family:
        PingFangSC-Regular,
        PingFang SC;
      font-weight: 400;
      color: rgba(0, 0, 0, 0.65);
    }
    .actions {
      .yee-btn {
        margin-right: 24px;
        font-size: 12px;
      }
      .yee-btn:hover,
      .yee-btn:focus {
        color: #fff;
        background-color: @yee-primary-color;
        border-color: @yee-primary-color;
      }
    }
  }
  .content {
    .yee-collapse-content-box {
      padding: 0 !important;
    }
    .yee-collapse-header {
      background: #ffffff;
      box-shadow: 0px 1px 2px 0px #e0e0e0;
    }
    .yee-collapse-item {
      border-bottom: 1px solid #efefef;
    }
  }

  .history-list {
    margin-bottom: 0;
    .history-item {
      padding: 12px 16px;
      cursor: pointer;
      position: relative;
      .header {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        font-family:
          PingFangSC-Medium,
          PingFang SC;
        font-weight: 500;
        color: rgba(0, 0, 0, 0.65);
        margin-bottom: 6px;
        .title {
          display: flex;
          align-items: center;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          .yee-radio-wrapper {
            margin-right: 6px;
            font-size: 12px;
            .yee-radio-inner {
              height: 14px;
              width: 14px;
              &::after {
                top: 2px;
                left: 2px;
              }
            }
          }
        }
        .check-icon {
          display: none;
        }
      }
      .author {
        font-size: 12px;
        font-family:
          PingFangSC-Regular,
          PingFang SC;
        font-weight: 400;
        color: rgba(0, 0, 0, 0.45);
        padding-left: 22px;

        .tag-current {
          display: inline-block;
          padding: 3px 8px;
          border-radius: 4px;
          border: 1px solid @yee-primary-color;
          background: #f2faf4;
          font-size: 10px;
          font-weight: 400;
          line-height: 12px;
          color: @yee-primary-color;
        }
      }
      .reset-wrap {
        font-size: 12px;
        font-family:
          PingFangSC-Regular,
          PingFang SC;
        font-weight: 400;
        color: @yee-primary-color;
        position: absolute;
        right: 16px;
        bottom: 8px;
        display: none;
      }
      &:hover {
        background: rgba(0, 0, 0, 0.06);
        .reset-wrap {
          display: flex;
          align-items: center;
        }
      }
    }
    .preview {
      background: rgba(82, 191, 99, 0.06);
      .check-icon {
        display: block !important;
      }
    }
    .show-more {
      font-size: 12px;
      font-family:
        PingFangSC-Regular,
        PingFang SC;
      font-weight: 400;
      color: @yee-primary-color;
      line-height: 18px;
      display: flex;
      align-items: center;
      padding-left: 38px;
      cursor: pointer;
      padding-top: 12px;
      padding-bottom: 12px;
    }
  }
}

.json-merge-wrap {
  position: absolute;
  right: 256px;
  top: 0;
  height: 100vh;
  width: calc(100vw - 256px);
  z-index: 1011;
  background: #00000080;
}

.json-merge {
  position: fixed;
  width: calc((100vw - 256px) * 0.8);
  top: 0;
  right: 256px;
  background-color: #fff;
  background-clip: border-box;
  border-left: 1px solid rgba(0, 0, 0, 0.125);

  & > .header {
    position: relative;
    border-bottom: 1px solid #efefef;
    padding: 0 16px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .title {
      line-height: 40px;
      font-size: 14px;
      font-family:
        PingFangSC-Regular,
        PingFang SC;
      font-weight: 400;
      color: rgba(0, 0, 0, 0.65);
      margin-right: 10px;
    }
  }

  .header-merge {
    display: flex;

    .title {
      padding: 0 16px;
      display: flex;
      align-items: center;
      font-size: 14px;
      font-family:
        PingFangSC-Medium,
        PingFang SC;
      font-weight: 500;
      color: rgba(0, 0, 0, 0.65);
      line-height: 48px;
    }

    &-value,
    &-orig {
      flex: 1;
    }
    &-gap {
      flex-basis: 6%;
      border-right: 1px solid #ddd;
      border-left: 1px solid #ddd;
      background-color: #f5f5f5;
    }

    &-orig {
      background-color: #f5f5f5;
      .yee-empty {
        position: absolute;
        left: calc(23% - 92px);
        top: 330px;
      }
    }
    &-value > div {
      padding: 8px 10px;
    }
  }

  .codemirror-merge-view-wrap {
    height: calc(100vh - 89px);
    .CodeMirror-merge {
      border: none;
    }
    .CodeMirror-merge-gap {
      background: #f5f5f5;
    }

    .CodeMirror-merge-r-deleted,
    .CodeMirror-merge-l-deleted,
    .CodeMirror-merge-r-inserted,
    .CodeMirror-merge-l-inserted {
      background-image: none;
      background-position: unset;
      background-repeat: unset;
    }

    .CodeMirror-merge-r-connect,
    .CodeMirror-merge-l-connect {
      fill: #f2faf3;
      stroke: @yee-primary-color;
    }
    .CodeMirror-merge-r-chunk,
    .CodeMirror-merge-l-chunk {
      background: #f2faf3;
    }
    .CodeMirror-merge-r-chunk-start,
    .CodeMirror-merge-l-chunk-start {
      border-top: 1px solid @yee-primary-color;
    }
    .CodeMirror-merge-r-chunk-end,
    .CodeMirror-merge-l-chunk-end {
      border-bottom: 1px solid @yee-primary-color;
    }
    .CodeMirror-merge-copy {
      color: @yee-primary-color;
      font-size: 20px;
    }
    .CodeMirror-merge-collapsed-widget {
      color: @yee-primary-color;
      background: #e5f6e8;
      border-color: #c3eac9;
    }
    .CodeMirror-merge,
    .CodeMirror-merge .CodeMirror,
    .CodeMirror-merge-pane {
      height: 100%;
      -webkit-overflow-scrolling: unset;
    }
    .cm-s-base16-light.CodeMirror,
    .cm-s-base16-light span.cm-atom,
    .cm-string,
    .cm-property {
      color: rgba(0, 0, 0, 0.65);
    }
    .CodeMirror-merge-scrolllock {
      font-size: 20px;
    }
  }
}
