2016-04-27 20:44:36 +08:00
|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
|
|
|
@import "../../input/style/mixin";
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
@pagination-prefix-cls: ~"@{ant-prefix}-pagination";
|
2015-07-13 01:04:05 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{pagination-prefix-cls} {
|
2015-07-16 12:18:20 +08:00
|
|
|
font-size: @font-size-base;
|
2015-07-13 01:04:05 +08:00
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: " ";
|
|
|
|
display: block;
|
|
|
|
height: 0;
|
|
|
|
clear: both;
|
|
|
|
overflow: hidden;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2016-02-25 10:36:58 +08:00
|
|
|
&-total-text {
|
2017-04-01 18:03:57 +08:00
|
|
|
display: inline-block;
|
2016-02-25 10:36:58 +08:00
|
|
|
height: 30px;
|
|
|
|
line-height: 30px;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
|
2015-07-14 12:09:29 +08:00
|
|
|
&-item {
|
2015-07-13 01:04:05 +08:00
|
|
|
cursor: pointer;
|
2015-07-16 12:18:20 +08:00
|
|
|
border-radius: @border-radius-base;
|
2016-04-11 14:31:59 +08:00
|
|
|
user-select: none;
|
2015-07-13 01:04:05 +08:00
|
|
|
min-width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
line-height: 28px;
|
|
|
|
text-align: center;
|
|
|
|
list-style: none;
|
2017-04-01 18:03:57 +08:00
|
|
|
display: inline-block;
|
2017-01-31 16:05:10 +08:00
|
|
|
border: @border-width-base @border-style-base @border-color-base;
|
2016-11-29 11:56:10 +08:00
|
|
|
background-color: @component-background;
|
2015-07-13 01:04:05 +08:00
|
|
|
margin-right: 8px;
|
2015-07-16 12:21:16 +08:00
|
|
|
font-family: Arial;
|
2015-07-13 01:04:05 +08:00
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
2016-11-08 20:50:59 +08:00
|
|
|
color: @text-color;
|
2015-07-16 12:18:20 +08:00
|
|
|
transition: none;
|
2016-01-26 11:51:35 +08:00
|
|
|
margin: 0 6px;
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2015-07-15 16:34:08 +08:00
|
|
|
transition: all 0.3s ease;
|
2015-07-14 16:50:08 +08:00
|
|
|
border-color: @primary-color;
|
2015-07-13 01:04:05 +08:00
|
|
|
a {
|
2015-07-14 16:50:08 +08:00
|
|
|
color: @primary-color;
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-14 12:09:29 +08:00
|
|
|
&-active {
|
2015-07-14 16:50:08 +08:00
|
|
|
background-color: @primary-color;
|
|
|
|
border-color: @primary-color;
|
2015-07-13 01:04:05 +08:00
|
|
|
|
2015-07-14 16:50:08 +08:00
|
|
|
a,
|
|
|
|
&:hover a {
|
2015-07-13 01:04:05 +08:00
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
&-jump-prev,
|
|
|
|
&-jump-next {
|
2015-07-13 01:04:05 +08:00
|
|
|
&:after {
|
|
|
|
content: "•••";
|
|
|
|
display: block;
|
|
|
|
letter-spacing: 2px;
|
2017-01-01 22:20:06 +08:00
|
|
|
color: @disabled-color;
|
2015-08-18 14:31:00 +08:00
|
|
|
text-align: center;
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
&:after {
|
2015-07-14 16:50:08 +08:00
|
|
|
color: @primary-color;
|
2015-07-20 15:16:05 +08:00
|
|
|
.iconfont-size-under-12px(8px);
|
2015-07-20 15:01:00 +08:00
|
|
|
letter-spacing: -1px;
|
|
|
|
font-family: "anticon";
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-14 12:09:29 +08:00
|
|
|
&-jump-prev {
|
2015-07-13 01:04:05 +08:00
|
|
|
&:hover {
|
|
|
|
&:after {
|
2016-09-18 09:54:47 +08:00
|
|
|
content: "\e620\e620";
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-14 12:09:29 +08:00
|
|
|
&-jump-next {
|
2015-07-13 01:04:05 +08:00
|
|
|
&:hover {
|
|
|
|
&:after {
|
2016-09-18 09:54:47 +08:00
|
|
|
content: "\e61f\e61f";
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
&-prev,
|
|
|
|
&-jump-prev,
|
|
|
|
&-jump-next {
|
2015-07-13 01:04:05 +08:00
|
|
|
margin-right: 8px;
|
|
|
|
}
|
2015-11-26 19:32:55 +08:00
|
|
|
&-prev,
|
|
|
|
&-next,
|
|
|
|
&-jump-prev,
|
|
|
|
&-jump-next {
|
2015-07-16 12:21:16 +08:00
|
|
|
font-family: Arial;
|
2015-07-13 01:04:05 +08:00
|
|
|
cursor: pointer;
|
2016-11-08 20:50:59 +08:00
|
|
|
color: @text-color;
|
2015-11-05 21:25:43 +08:00
|
|
|
border-radius: @border-radius-base;
|
2015-07-13 01:04:05 +08:00
|
|
|
list-style: none;
|
|
|
|
min-width: 28px;
|
|
|
|
height: 28px;
|
|
|
|
line-height: 28px;
|
|
|
|
text-align: center;
|
2015-07-15 16:34:08 +08:00
|
|
|
transition: all 0.3s ease;
|
2015-07-20 15:58:42 +08:00
|
|
|
display: inline-block;
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
&-prev,
|
|
|
|
&-next {
|
2017-01-31 16:05:10 +08:00
|
|
|
border: @border-width-base @border-style-base @border-color-base;
|
2016-11-29 11:56:10 +08:00
|
|
|
background-color: @component-background;
|
2015-07-13 01:04:05 +08:00
|
|
|
|
|
|
|
a {
|
2016-11-08 20:50:59 +08:00
|
|
|
color: @text-color;
|
2015-07-20 15:58:42 +08:00
|
|
|
|
2015-07-17 19:58:10 +08:00
|
|
|
&:after {
|
2015-07-20 15:58:42 +08:00
|
|
|
.iconfont-size-under-12px(8px);
|
2015-07-17 19:58:10 +08:00
|
|
|
display: block;
|
2015-07-20 15:58:42 +08:00
|
|
|
height: 26px;
|
2017-04-05 17:10:24 +08:00
|
|
|
line-height: 27px;
|
2015-07-17 16:24:09 +08:00
|
|
|
font-family: "anticon";
|
2015-08-18 14:31:00 +08:00
|
|
|
text-align: center;
|
2015-07-17 19:58:10 +08:00
|
|
|
}
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
|
2015-07-13 14:58:26 +08:00
|
|
|
&:hover {
|
2015-07-14 16:50:08 +08:00
|
|
|
border-color: @primary-color;
|
2015-07-13 14:58:26 +08:00
|
|
|
|
|
|
|
a {
|
2015-07-14 16:50:08 +08:00
|
|
|
color: @primary-color;
|
2015-07-13 14:58:26 +08:00
|
|
|
}
|
|
|
|
}
|
2015-07-14 12:09:29 +08:00
|
|
|
}
|
|
|
|
|
2015-07-17 16:24:09 +08:00
|
|
|
&-prev {
|
|
|
|
a {
|
|
|
|
&:after {
|
2016-09-18 09:54:47 +08:00
|
|
|
content: "\e620";
|
2015-07-17 16:24:09 +08:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-next {
|
|
|
|
a {
|
|
|
|
&:after {
|
2016-09-18 09:54:47 +08:00
|
|
|
content: "\e61f";
|
2015-07-17 16:24:09 +08:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-14 12:09:29 +08:00
|
|
|
&-disabled {
|
|
|
|
&:hover {
|
2015-12-05 13:39:24 +08:00
|
|
|
border-color: @border-color-base;
|
2015-07-13 01:04:05 +08:00
|
|
|
a {
|
2017-01-01 22:20:06 +08:00
|
|
|
color: @disabled-color;
|
2015-07-14 12:09:29 +08:00
|
|
|
cursor: not-allowed;
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
}
|
2015-07-14 12:09:29 +08:00
|
|
|
cursor: not-allowed;
|
|
|
|
a {
|
2017-01-01 22:20:06 +08:00
|
|
|
color: @disabled-color;
|
2015-07-14 12:09:29 +08:00
|
|
|
}
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
|
2015-07-15 15:31:55 +08:00
|
|
|
&-slash {
|
|
|
|
margin: 0 10px 0 5px;
|
|
|
|
}
|
|
|
|
|
2015-07-14 12:09:29 +08:00
|
|
|
&-options {
|
2017-04-01 18:03:57 +08:00
|
|
|
display: inline-block;
|
2015-07-13 01:04:05 +08:00
|
|
|
margin-left: 15px;
|
2015-07-14 12:09:29 +08:00
|
|
|
&-size-changer {
|
2017-04-01 18:03:57 +08:00
|
|
|
display: inline-block;
|
2015-07-14 12:09:29 +08:00
|
|
|
margin-right: 10px;
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
|
2015-07-14 12:09:29 +08:00
|
|
|
&-quick-jumper {
|
2017-04-01 18:03:57 +08:00
|
|
|
display: inline-block;
|
2016-12-15 11:17:09 +08:00
|
|
|
height: @input-height-base;
|
|
|
|
line-height: @input-height-base;
|
2015-07-13 01:04:05 +08:00
|
|
|
|
|
|
|
input {
|
2015-07-14 12:09:29 +08:00
|
|
|
.input;
|
2015-07-13 01:04:05 +08:00
|
|
|
margin: 0 8px;
|
|
|
|
width: 50px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-07-13 14:58:26 +08:00
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
&-simple &-prev,
|
|
|
|
&-simple &-next {
|
|
|
|
border: 0;
|
2015-07-13 16:04:07 +08:00
|
|
|
height: 24px;
|
|
|
|
line-height: 24px;
|
|
|
|
margin: 0;
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
|
2015-07-14 12:09:29 +08:00
|
|
|
&-simple &-simple-pager {
|
2017-04-01 18:03:57 +08:00
|
|
|
display: inline-block;
|
2015-07-13 16:04:07 +08:00
|
|
|
margin-right: 8px;
|
|
|
|
|
|
|
|
input {
|
|
|
|
margin: 0 8px;
|
|
|
|
box-sizing: border-box;
|
2016-11-29 11:56:10 +08:00
|
|
|
background-color: @component-background;
|
2015-11-05 21:25:43 +08:00
|
|
|
border-radius: @border-radius-base;
|
2017-01-31 16:05:10 +08:00
|
|
|
border: @border-width-base @border-style-base @border-color-base;
|
2015-07-13 16:04:07 +08:00
|
|
|
outline: none;
|
|
|
|
padding: 5px 8px;
|
|
|
|
width: 30px;
|
2015-07-17 19:58:10 +08:00
|
|
|
height: 24px;
|
2015-07-14 12:09:29 +08:00
|
|
|
text-align: center;
|
2016-03-02 11:46:36 +08:00
|
|
|
transition: border-color 0.3s ease;
|
2015-07-13 16:04:07 +08:00
|
|
|
|
|
|
|
&:hover {
|
2015-07-14 16:50:08 +08:00
|
|
|
border-color: @primary-color;
|
2015-07-13 16:04:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{pagination-prefix-cls} {
|
2016-02-25 10:36:58 +08:00
|
|
|
&.mini &-total-text {
|
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
2015-07-14 12:09:29 +08:00
|
|
|
|
|
|
|
&.mini &-item {
|
2015-11-26 19:32:55 +08:00
|
|
|
border: 0;
|
2015-07-14 12:09:29 +08:00
|
|
|
margin: 0;
|
|
|
|
min-width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mini &-prev,
|
|
|
|
&.mini &-next {
|
|
|
|
margin: 0;
|
|
|
|
min-width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
2015-11-26 19:32:55 +08:00
|
|
|
border: 0;
|
2015-07-17 16:24:09 +08:00
|
|
|
|
|
|
|
a {
|
|
|
|
&:after {
|
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
|
|
|
}
|
2015-07-14 12:09:29 +08:00
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
&.mini &-jump-prev,
|
|
|
|
&.mini &-jump-next {
|
2015-07-14 12:09:29 +08:00
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mini &-options {
|
2015-12-05 13:39:24 +08:00
|
|
|
margin-left: 8px;
|
2015-07-14 12:09:29 +08:00
|
|
|
&-quick-jumper {
|
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
|
|
input {
|
|
|
|
.input-sm;
|
2015-12-05 13:39:24 +08:00
|
|
|
width: 44px;
|
2015-07-14 12:09:29 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-12-25 19:55:12 +08:00
|
|
|
|
|
|
|
@media only screen and (max-width: 1024px) {
|
|
|
|
.@{pagination-prefix-cls}-item {
|
|
|
|
&-after-jump-prev,
|
|
|
|
&-before-jump-next {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|