@import '@/style/variables.less';
@import '@/style/flex.less';
.custom-chose-chain-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
  border: var(--new-border-2);
  border-radius: @border-radius;
  padding: 0 10px;
  cursor: pointer;
  .left-icon {
    height: 70%;
  }
  .current-chain-text {
    font-weight: 700;
    font-size: 13px;
    user-select: none;
  }
  .right-icon {
    .select-icon {
      stroke: #838383;
      color: #838383;
    }
    .active {
      stroke: var(--td--main-btn-color-1);
      color: var(--td--main-btn-color-1);
    }
    @keyframes customAnimation1 {
      0% {
        transform: rotateX(180deg);
      }
      100% {
        transform: rotateX(0deg);
      }
    }
    @keyframes customAnimation2 {
      0% {
        transform: rotateX(180deg);
      }
      100% {
        transform: rotateX(0deg);
      }
    }
    // 旋转样式
    .t-fake-arrow--active {
      animation: customAnimation1 400ms;
      //   animation-fill-mode: forwards;
    }
    //  恢复
    .t-fake-arrow--leave {
      animation: customAnimation2 400ms;
      //   animation-fill-mode: forwards;
    }
  }
  & > * {
    padding: 0 4px;
  }
}
.custom-chose-chain-content {
  width: 380px;
  padding: 12px;
  .search-box {
    .t-input {
      background: #f9fafb;
      border: 1px solid #f0f1f5;
      box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.25);
      border-radius: 10px;
    }
  }
  .chain-box-body {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 12px;
    max-height: 500px;
    overflow-y: auto;
    &::after {
      content: '';
      display: block;
      flex: 1; /* 与flex: auto;等效都是自适应剩余空间*/
      margin: 10px;
    }
    .chain-box {
      box-sizing: border-box;
      width: 27%;
      height: 80px;
      margin: 10px;
      background: var(--new-background-4);
      border: 1px solid var(--new-border-6);
      border-radius: 14px;
      .dja(space-evenly,center);
      flex-direction: column;
      font-weight: 700;
      color: var(--home-page-color-1);
      cursor: pointer;
      font-size: 13px;
    }
  }
}
