2019-04-30 11:11:25 +08:00
|
|
|
.#{$ns}Pagination {
|
2019-12-06 09:58:08 +08:00
|
|
|
display: inline-block;
|
|
|
|
padding-left: 0;
|
2020-06-24 15:59:12 +08:00
|
|
|
padding: 0;
|
|
|
|
margin: 0 0 px2rem(-10px);
|
2019-12-06 09:58:08 +08:00
|
|
|
border-radius: px2rem(4px);
|
|
|
|
|
|
|
|
> li {
|
|
|
|
display: inline;
|
|
|
|
|
|
|
|
> a,
|
|
|
|
> span {
|
|
|
|
user-select: none;
|
2020-06-16 20:23:42 +08:00
|
|
|
cursor: pointer;
|
2019-12-06 09:58:08 +08:00
|
|
|
position: relative;
|
|
|
|
float: left;
|
|
|
|
text-decoration: none;
|
|
|
|
min-width: $Pagination-minWidth;
|
|
|
|
height: $Pagination-height;
|
|
|
|
border: 0;
|
|
|
|
line-height: $Pagination-height;
|
|
|
|
padding: $Pagination-padding;
|
|
|
|
text-align: center;
|
|
|
|
color: #666666;
|
|
|
|
border-radius: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
font-size: $Pagination-fontSize;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
> a:hover,
|
|
|
|
> span:hover,
|
|
|
|
> a:focus,
|
|
|
|
> span:focus {
|
|
|
|
background-color: transparent;
|
|
|
|
color: $primary;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2020-06-08 15:49:45 +08:00
|
|
|
> li.is-disabled {
|
2019-12-06 09:58:08 +08:00
|
|
|
> span,
|
|
|
|
> a {
|
|
|
|
cursor: not-allowed;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
> a,
|
|
|
|
> span,
|
|
|
|
> a:hover,
|
|
|
|
> span:hover,
|
|
|
|
> a:focus,
|
|
|
|
> span:focus {
|
|
|
|
color: #cccccc;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
2020-06-08 15:49:45 +08:00
|
|
|
> li.is-active {
|
2019-12-06 09:58:08 +08:00
|
|
|
> a,
|
|
|
|
> span,
|
|
|
|
> a:hover,
|
|
|
|
> span:hover,
|
|
|
|
> a:focus,
|
|
|
|
> span:focus {
|
|
|
|
background-color: $Pagination-onActive-backgroundColor;
|
|
|
|
color: $Pagination-onActive-color;
|
|
|
|
border: $Pagination-onActive-border;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-prev {
|
|
|
|
> span {
|
|
|
|
cursor: pointer;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&-ellipsis {
|
|
|
|
> a > span {
|
|
|
|
position: relative;
|
|
|
|
top: px2rem(-4px);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&-next {
|
|
|
|
> span {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-inputGroup {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
|
|
.#{$ns}Pagination-input {
|
|
|
|
width: px2rem(50px);
|
|
|
|
height: $Pagination-height;
|
|
|
|
border: $borderWidth solid $borderColor;
|
|
|
|
border-top-left-radius: $borderRadius;
|
|
|
|
border-bottom-left-radius: $borderRadius;
|
|
|
|
padding: px2rem(5px) px2rem(10px);
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
border: $borderWidth solid $primary;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}Button {
|
|
|
|
height: $Pagination-height;
|
|
|
|
margin-left: px2rem(-1px);
|
|
|
|
border-radius: 0 $borderRadius $borderRadius 0;
|
|
|
|
padding: 0 px2rem(10px);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
}
|