@bixi-blue-lighter: #E7F1FD;
@bixi-blue: #107cee;

.icon-selector {
  display: flex;
  justify-content: space-between;
}

nz-input-group {
  flex: 1 1 0;
  margin-left: 10px;
}

h3 {
  margin: 1.6em 0 0.6em;
  font-size: 18px;
}

ul.anticons-list {
  margin: 10px 0;
  overflow: hidden;
  list-style: none;

  li {
    position: relative;
    height: 80px;
    margin: 3px 0;
    padding: 10px 0 0;
    overflow: hidden;
    color: #555;
    text-align: center;
    list-style: none;
    background-color: inherit;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;

    .anticon {
      margin: 10px 0 8px;
      font-size: 24px;
      transition: transform 0.3s ease-in-out;
      will-change: transform;
    }

    .anticon-class {
      display: block;
      font-family: 'Lucida Console', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
      white-space: nowrap;
      text-align: center;
      transform: scale(0.83);

      .ant-badge {
        transition: color 0.3s ease-in-out;
      }
    }

    &:hover {
      color: #fff;
      background-color: #1890ff;

      .anticon {
        transform: scale(1.4);
      }

      .ant-badge {
        color: #fff;
      }
    }

    &.TwoTone:hover {
      background-color: #8ecafe;
    }

    &.copied:hover {
      color: rgba(255, 255, 255, 0.2);
    }

    &::after {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      color: #fff;
      line-height: 110px;
      text-align: center;
      opacity: 0;
      transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
      content: 'Copied!';
    }

    &.copied::after {
      top: -10px;
      opacity: 1;
    }
  }
}

.copied-code {
  padding: 2px 4px 2px;
  font-size: 12px;
  background: #f5f5f5;
  border-radius: 2px;
}

.modal {
  min-height: 200px;

  .image-row {
    justify-content: center;

    .image-wrapper {
      width: 100px;
      height: 100px;
      line-height: 110px;
      text-align: center;
      border: 1px solid #ccc;
    }
  }
  .opt-row {
    justify-content: center;
    margin-top: 30px;
  }
}

.download-icon {
  display: flex;
  justify-content: space-between;
  height: 100%;
  padding: 16px 16px 8px;
  overflow: hidden;

  .icon-preview {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 81px;
    margin-right: 24px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    transition: all .2s cubic-bezier(.4, .6, .5, 1.32);

    i {
      width: 48px;
      height: 48px;
      margin-top: 10px;
    }
  }

  .icon-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    .icon-info-header {
      display: flex;
      flex-grow: 1;
      justify-content: space-between;

      .name {
        color: #162a48;
        font-weight: 600;
        font-size: 18px;
        line-height: 1.5;
      }
    }

    .icon-info-detail {
      display: flex;
      border-radius: 2px;

      .command {
        flex-grow: 1;
        // width: 360px;
        padding: 5px 12px;
        overflow: hidden; //超出的文本隐藏
        color: #022f61;
        white-space: nowrap; //溢出不换行
        border: 1px solid #f0f0f0;
        border-top-left-radius: 2px;
        border-bottom-left-radius: 2px;

        .tag {
          color: #20863a;
        }

        .atn {
          color: #6f42c1;
        }
      }

      .copy {
        display: flex;
        align-items: center;
        padding: 0 12px;
        color: @bixi-blue;
        font-weight: 600;
        font-size: 12px;
        border: 1px solid #f0f0f0;
        border-left: none;
        border-top-right-radius: 2px;
        border-bottom-right-radius: 2px;
        cursor: pointer;
        transition: all .2s cubic-bezier(.5, 0, .5, 1);

        &:hover {
          color: #fff;
          background-color: @bixi-blue;
          border-color: @bixi-blue;
        }
      }
    }
  }
}

.icon-actions {
  display: flex;
  justify-content: flex-end;
  padding-right: 24px;

  .btn-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    padding: 0 16px 0 10px;
    color: @bixi-blue;
    line-height: 40px;
    background-color: @bixi-blue-lighter;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all .2s ease-in-out;

    &:hover {
      color: #fff;
      background: @bixi-blue;
    }
  }
}
