_pagination.scss 2.66 KB
.pagination-wrapper {
  background: #fff;
  position: relative;
  &:before {
    //position: absolute;
    //width: 100%;
    //height: 2px;
    //left: 0;
    //top: -2px;
    //background: $blocks-color;
    //content: '';
  }
}
ul.pagination {
  width: auto;
  position: relative;
  display: table;
  margin: 0 auto;
  float: none;
  margin-top: 56px;

  li {
    float: left;
    list-style: none;
    height: 38px;
    width: 38px;
    border: 1px solid #cccccc;
    line-height: 38px;
    text-align: center;
    margin: 3px 6px 0 6px;
    position: relative;
    z-index: 1;
    display: block;
    border-radius: 2px;
    a {
      text-decoration: none;
      color: $main-color;
      font-size: 14px;
      font-weight: 700;
      display: block;
      //padding: 0 10px;
      height: 38px;
      width: 38px;
      text-align: center;
    }


    &:active {
      background: #949494;
      border: 1px solid #949494;
      a {
        @include Transition(0.05);
      }
    }



    &.active {
      background: #cccccc !important;
      border: 1px solid #cccccc !important;
      box-shadow: none !important;
      a {
        cursor: default;
        @include Scale(1);
      }
    }

    &.prev, &.next {
      opacity: 0;
      cursor: pointer;
      border: 0;
      width: 38px;
      box-shadow: none !important;
      background: #fff !important;
      width: 0;
      height: 0;
      span, a {
        font-size: 0;
        color: #fff;
      }
      a {
        position: absolute;
        top: 0;
        left: 0;
      }
      &:before {
        content: "\e916";
        font-size: 16px;
        line-height: 32px;
        color: #555;
      }

      &.next:before {
        content: "\e917";
        font-size: 16px;
        line-height: 32px;
        color: #555;
      }

      &.disabled {
        cursor: default;

        &:before {
          color: #c1c1c1;
        }
      }
    }
    &:hover {
      box-shadow: 0px 0px 12px 0px rgba(151, 151, 151, 0.35);
      &.prev, &.next {
        &:before {
          color: $main-color;
        }
        &.disabled {

          &:before {
            color: #c1c1c1;
          }
        }
      }
    }
    &:active {
      &.prev, &.next {
        &:before {
          color: #444444;
        }
        &.disabled {

          &:before {
            color: #969696;
          }
        }
      }
    }

  }

}






@media (max-width: 767px) {
  ul.pagination {
    li {
      margin-left: 3px;
      margin-right: 3px;
      height: 31px;
      width: 31px;
      line-height: 31px;
      a {
        height: 31px;
        width: 31px;
      }

    }
  }
  ul.pagination li.prev.disabled, ul.pagination li.next.disabled {
    margin: 0;
  }
}