@import 'common/var.scss';

.qf-pagination {
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  color: $--color-font;
  font-size: 14px;

  button {
    border: none;
    padding: 0 6px;
    background: $--color-bg;
    height: 32px;
    width: 32px;
    line-height: 1;
    border-radius: 2px;

    &.disabled {
      color: $--color-font-light-3;
      background-color: $--color-bg-light;
      cursor: not-allowed;

      &:hover {
        color: $--color-font-light-3;
      }
    }

    &:focus {
      outline: none;
    }

    &:hover {
      color: $--color-primary;
    }
  }

  .btn-prev, .btn-next {
    background: #fff;
    box-shadow: 0 2px 4px 0 rgba(30, 44, 78, 0.18);
  }

  .qf-pagination-total {
    display: inline-block;
    font-size: 14px;
    height: 32px;
    line-height: 32px;
    box-sizing: border-box;
    margin-right: 15px;

    .qf-pagination-current {
      color: $--color-primary;
    }
  }

  .qf-pager {
    user-select: none;
    list-style: none;
    display: inline-block;
    vertical-align: top;
    font-size: 0;
    padding: 0;
    margin: 0;

    li {
      padding: 0 4px;
      margin: 0 4px;
      background: $--color-bg;
      vertical-align: top;
      display: inline-block;
      border-radius: 2px;
      font-size: 13px;
      min-width: 32px;
      height: 32px;
      line-height: 32px;
      cursor: pointer;
      box-sizing: border-box;
      text-align: center;

      &.active {
        color: #fff;
        background-color: $--color-primary;
        cursor: default;

        &:hover {
          color: #fff;
        }
      }

      &:hover {
        color: $--color-primary;
      }
    }
  }

  .qf-pagination-size {
    width: 100px;
    display: inline-block;
    margin: 0 10px;
  }

  .qf-pagination-jump {
    width: 50px;
    display: inline-block;
  }
}


