@import "../core/variables.less";
.xm-page-control {
  margin: 16px 0px;
  position: relative;
  padding-bottom: 16px;
 
  .title {
    position: absolute;
    left: 0;
    color: @text-sub;
  }

  > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 30px;
  }
  
  .select-list{
    ul{
      li{
        display: block;
        border:none;
      }
    }
  }

  > ul {
    li {
      display: inline-block;
      vertical-align: top;
      padding: 0px 5px;
      min-width: 26px;
      height: 26px;
      line-height: 26px;
      border-bottom: 1px solid @border;
      border-top: 1px solid @border;
      border-right: 1px solid @border;
      margin-top: 1px;
      color: @text-sub;
      a {
        color: @primary;
        display: block;
      }
      &.active {
        a {
          color: #fff;
        }
      }
      &:nth-child(2) {
        border-left: 1px solid @border;
      }
      &:nth-child(11) {
        border-right: 1px solid @border;
      }
      
      &:nth-child(12) {
        border-right: 1px solid @border;
      }
    }
    .omit+li {
      border-left: 1px solid @border;
    }

    li:first-child {
      border-left: 1px solid @border;
    }

    &>span {
      display: inline-block;
    }
    &>div {
      display: inline-block;
      width: 26px;
      height: 26px;
      border: 1px solid @border;
      line-height: 26px;
    }
  }

  .back {
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
    color: @primaryDark;
  }

  .go {
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    color: @primaryDark;
  }

  .active {
    background-color: @primaryDark;
    border: 1px solid @primaryDark;
    color: white;
  }

  .omit {
    border: 0px;
    margin: 0 5px;
  }

  .jumper {
    margin-left: 5px;
    border: none;
    border-radius: 0px;
    line-height: 26px;
    color: @text-sub;
    width: auto;
    input {
      width: 35px;
      height: 25px;
      border-radius: 4px;
      border: 1px solid @border;
      padding: 0px 5px;
      margin: 0px 5px;
      color: @text-sub;
    }
    button {
      margin-left: 5px;
      height: 26px;
      line-height: 26px;
      border: 1px solid @primaryDark;
      border-radius: 4px;
      padding: 0px 10px;
      color: @primaryDark;

      &:hover, &:active {
        color: #fff;
        background: @primaryDark;
      }
    }
  }
  .hide {
    opacity: 0;
  }
  .show {
    opacity: 1;
  }
}

.xm-page-control_primary {
  .go {
    color: @primary;
  }
  
  .active {
    background-color: @primary;
    border: 1px solid @primary;
  }

  .back {
    color: @primary;
  }
}