2018-12-07 16:17:45 +08:00
|
|
|
@import '../../style/themes/default';
|
|
|
|
@import '../../style/mixins/index';
|
|
|
|
@import '../../input/style/mixin';
|
2016-04-27 20:44:36 +08:00
|
|
|
|
2018-12-07 16:17:45 +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} {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
|
|
|
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
2015-07-13 01:04:05 +08:00
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
&::after {
|
2015-07-13 01:04:05 +08:00
|
|
|
display: block;
|
|
|
|
clear: both;
|
2019-02-15 10:48:07 +08:00
|
|
|
height: 0;
|
2015-07-13 01:04:05 +08:00
|
|
|
overflow: hidden;
|
|
|
|
visibility: hidden;
|
2019-02-15 10:48:07 +08:00
|
|
|
content: ' ';
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
|
2016-02-25 10:36:58 +08:00
|
|
|
&-total-text {
|
2017-04-01 18:03:57 +08:00
|
|
|
display: inline-block;
|
2017-09-27 22:32:49 +08:00
|
|
|
height: @pagination-item-size;
|
2017-06-02 16:25:05 +08:00
|
|
|
margin-right: 8px;
|
2019-02-15 10:48:07 +08:00
|
|
|
line-height: @pagination-item-size - 2px;
|
|
|
|
vertical-align: middle;
|
2016-02-25 10:36:58 +08:00
|
|
|
}
|
|
|
|
|
2015-07-14 12:09:29 +08:00
|
|
|
&-item {
|
2019-02-15 10:48:07 +08:00
|
|
|
display: inline-block;
|
2017-09-27 22:32:49 +08:00
|
|
|
min-width: @pagination-item-size;
|
|
|
|
height: @pagination-item-size;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin-right: 8px;
|
|
|
|
font-family: @pagination-font-family;
|
2018-01-03 21:09:56 +08:00
|
|
|
line-height: @pagination-item-size - 2px;
|
2015-07-13 01:04:05 +08:00
|
|
|
text-align: center;
|
2017-06-02 16:25:05 +08:00
|
|
|
vertical-align: middle;
|
2019-02-15 10:48:07 +08:00
|
|
|
list-style: none;
|
2016-11-29 11:56:10 +08:00
|
|
|
background-color: @component-background;
|
2019-02-15 10:48:07 +08:00
|
|
|
border: @border-width-base @border-style-base @border-color-base;
|
|
|
|
border-radius: @border-radius-base;
|
2017-06-02 16:25:05 +08:00
|
|
|
outline: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
2015-07-13 01:04:05 +08:00
|
|
|
|
|
|
|
a {
|
2019-02-15 10:48:07 +08:00
|
|
|
margin: 0 6px;
|
2016-11-08 20:50:59 +08:00
|
|
|
color: @text-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
text-decoration: none;
|
2015-07-16 12:18:20 +08:00
|
|
|
transition: none;
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
|
2017-06-02 16:25:05 +08:00
|
|
|
&:focus,
|
2015-07-13 01:04:05 +08:00
|
|
|
&:hover {
|
2015-07-14 16:50:08 +08:00
|
|
|
border-color: @primary-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
transition: all 0.3s;
|
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 {
|
2018-03-18 13:06:00 +08:00
|
|
|
font-weight: @pagination-font-weight-active;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-color: @primary-color;
|
2017-12-15 10:30:01 +08:00
|
|
|
|
|
|
|
a {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
2015-07-13 01:04:05 +08:00
|
|
|
|
2017-06-02 16:25:05 +08:00
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
border-color: @primary-5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus a,
|
2015-07-14 16:50:08 +08:00
|
|
|
&:hover a {
|
2017-12-15 10:30:01 +08:00
|
|
|
color: @primary-5;
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
&-jump-prev,
|
|
|
|
&-jump-next {
|
2017-06-02 16:25:05 +08:00
|
|
|
outline: 0;
|
2018-08-22 20:01:00 +08:00
|
|
|
.@{pagination-prefix-cls}-item-container {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.@{pagination-prefix-cls}-item-link-icon {
|
|
|
|
.iconfont-size-under-12px(12px);
|
|
|
|
color: @primary-color;
|
|
|
|
letter-spacing: -1px;
|
|
|
|
opacity: 0;
|
2018-12-07 16:17:45 +08:00
|
|
|
transition: all 0.2s;
|
2018-08-22 20:01:00 +08:00
|
|
|
&-svg {
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
}
|
2015-07-13 01:04:05 +08:00
|
|
|
|
2018-08-22 20:01:00 +08:00
|
|
|
.@{pagination-prefix-cls}-item-ellipsis {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
display: block;
|
2018-08-22 20:01:00 +08:00
|
|
|
margin: auto;
|
2019-02-15 10:48:07 +08:00
|
|
|
color: @disabled-color;
|
|
|
|
letter-spacing: 2px;
|
|
|
|
text-align: center;
|
|
|
|
text-indent: 0.13em;
|
|
|
|
opacity: 1;
|
|
|
|
transition: all 0.2s;
|
2018-08-22 20:01:00 +08:00
|
|
|
}
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
|
2017-06-02 16:25:05 +08:00
|
|
|
&:focus,
|
2015-07-13 01:04:05 +08:00
|
|
|
&:hover {
|
2018-08-22 20:01:00 +08:00
|
|
|
.@{pagination-prefix-cls}-item-link-icon {
|
2018-08-21 17:13:12 +08:00
|
|
|
opacity: 1;
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
2018-08-22 20:01:00 +08:00
|
|
|
.@{pagination-prefix-cls}-item-ellipsis {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
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 {
|
2019-02-15 10:48:07 +08:00
|
|
|
display: inline-block;
|
2017-09-27 22:32:49 +08:00
|
|
|
min-width: @pagination-item-size;
|
|
|
|
height: @pagination-item-size;
|
2019-02-15 10:48:07 +08:00
|
|
|
color: @text-color;
|
|
|
|
font-family: @pagination-font-family;
|
2017-09-27 22:32:49 +08:00
|
|
|
line-height: @pagination-item-size;
|
2015-07-13 01:04:05 +08:00
|
|
|
text-align: center;
|
2017-06-02 16:25:05 +08:00
|
|
|
vertical-align: middle;
|
2019-02-15 10:48:07 +08:00
|
|
|
list-style: none;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.3s;
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
&-prev,
|
|
|
|
&-next {
|
2017-06-02 16:25:05 +08:00
|
|
|
outline: 0;
|
2015-07-13 01:04:05 +08:00
|
|
|
|
|
|
|
a {
|
2016-11-08 20:50:59 +08:00
|
|
|
color: @text-color;
|
2017-08-30 14:02:49 +08:00
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover a {
|
2017-12-15 10:30:01 +08:00
|
|
|
border-color: @primary-5;
|
2017-08-30 14:02:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.@{pagination-prefix-cls}-item-link {
|
2019-02-15 10:48:07 +08:00
|
|
|
display: block;
|
|
|
|
height: 100%;
|
|
|
|
font-size: 12px;
|
|
|
|
text-align: center;
|
2017-08-30 14:02:49 +08:00
|
|
|
background-color: @component-background;
|
2019-02-15 10:48:07 +08:00
|
|
|
border: @border-width-base @border-style-base @border-color-base;
|
2017-08-30 14:02:49 +08:00
|
|
|
border-radius: @border-radius-base;
|
2017-06-02 16:25:05 +08:00
|
|
|
outline: none;
|
2018-12-07 16:17:45 +08:00
|
|
|
transition: all 0.3s;
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
|
2017-08-30 14:02:49 +08:00
|
|
|
&:focus .@{pagination-prefix-cls}-item-link,
|
|
|
|
&:hover .@{pagination-prefix-cls}-item-link {
|
|
|
|
color: @primary-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-color: @primary-color;
|
2015-07-13 14:58:26 +08:00
|
|
|
}
|
2015-07-14 12:09:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-disabled {
|
2017-08-30 14:02:49 +08:00
|
|
|
&,
|
2017-08-16 09:54:10 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-08-30 14:02:49 +08:00
|
|
|
cursor: not-allowed;
|
|
|
|
a,
|
|
|
|
.@{pagination-prefix-cls}-item-link {
|
2017-01-01 22:20:06 +08:00
|
|
|
color: @disabled-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-color: @border-color-base;
|
2015-07-14 12:09:29 +08:00
|
|
|
cursor: not-allowed;
|
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;
|
2017-06-02 16:25:05 +08:00
|
|
|
margin-left: 16px;
|
2019-02-15 10:48:07 +08:00
|
|
|
vertical-align: middle;
|
2017-06-02 16:25:05 +08:00
|
|
|
|
2017-12-17 16:47:11 +08:00
|
|
|
&-size-changer.@{ant-prefix}-select {
|
2017-04-01 18:03:57 +08:00
|
|
|
display: inline-block;
|
2018-10-11 12:04:28 +08:00
|
|
|
width: auto;
|
2017-06-02 16:25:05 +08:00
|
|
|
margin-right: 8px;
|
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;
|
2019-02-15 10:48:07 +08:00
|
|
|
vertical-align: top;
|
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
|
|
|
width: 50px;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin: 0 8px;
|
2015-07-13 01:04:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-07-13 14:58:26 +08:00
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
&-simple &-prev,
|
|
|
|
&-simple &-next {
|
2017-09-27 22:32:49 +08:00
|
|
|
height: @pagination-item-size-sm;
|
|
|
|
line-height: @pagination-item-size-sm;
|
2017-09-16 13:20:35 +08:00
|
|
|
vertical-align: top;
|
2017-09-06 21:42:51 +08:00
|
|
|
.@{pagination-prefix-cls}-item-link {
|
2017-09-27 22:32:49 +08:00
|
|
|
height: @pagination-item-size-sm;
|
2019-02-15 10:48:07 +08:00
|
|
|
border: 0;
|
|
|
|
&::after {
|
2017-12-17 16:38:58 +08:00
|
|
|
height: @pagination-item-size-sm;
|
2017-09-27 22:32:49 +08:00
|
|
|
line-height: @pagination-item-size-sm;
|
2017-09-16 13:20:35 +08:00
|
|
|
}
|
2017-09-06 21:42:51 +08:00
|
|
|
}
|
2015-07-13 16:04:07 +08:00
|
|
|
}
|
|
|
|
|
2015-07-14 12:09:29 +08:00
|
|
|
&-simple &-simple-pager {
|
2017-04-01 18:03:57 +08:00
|
|
|
display: inline-block;
|
2017-09-27 22:32:49 +08:00
|
|
|
height: @pagination-item-size-sm;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin-right: 8px;
|
2015-07-13 16:04:07 +08:00
|
|
|
|
|
|
|
input {
|
|
|
|
box-sizing: border-box;
|
2019-02-15 10:48:07 +08:00
|
|
|
height: 100%;
|
|
|
|
margin-right: 8px;
|
|
|
|
padding: 0 6px;
|
|
|
|
text-align: center;
|
2016-11-29 11:56:10 +08:00
|
|
|
background-color: @component-background;
|
2017-01-31 16:05:10 +08:00
|
|
|
border: @border-width-base @border-style-base @border-color-base;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-radius: @border-radius-base;
|
2015-07-13 16:04:07 +08:00
|
|
|
outline: none;
|
2018-12-07 16:17:45 +08:00
|
|
|
transition: border-color 0.3s;
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-25 16:59:18 +08:00
|
|
|
&.mini &-total-text,
|
|
|
|
&.mini &-simple-pager {
|
2017-09-27 22:32:49 +08:00
|
|
|
height: @pagination-item-size-sm;
|
|
|
|
line-height: @pagination-item-size-sm;
|
2016-02-25 10:36:58 +08:00
|
|
|
}
|
2015-07-14 12:09:29 +08:00
|
|
|
|
|
|
|
&.mini &-item {
|
2017-09-27 22:32:49 +08:00
|
|
|
min-width: @pagination-item-size-sm;
|
|
|
|
height: @pagination-item-size-sm;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin: 0;
|
2018-01-03 21:09:56 +08:00
|
|
|
line-height: @pagination-item-size-sm - 2px;
|
2015-07-14 12:09:29 +08:00
|
|
|
}
|
|
|
|
|
2017-12-10 16:42:40 +08:00
|
|
|
&.mini &-item:not(&-item-active) {
|
|
|
|
background: transparent;
|
2017-12-15 10:30:01 +08:00
|
|
|
border-color: transparent;
|
2017-12-10 16:42:40 +08:00
|
|
|
}
|
|
|
|
|
2015-07-14 12:09:29 +08:00
|
|
|
&.mini &-prev,
|
|
|
|
&.mini &-next {
|
2017-09-27 22:32:49 +08:00
|
|
|
min-width: @pagination-item-size-sm;
|
|
|
|
height: @pagination-item-size-sm;
|
2019-02-15 10:48:07 +08:00
|
|
|
margin: 0;
|
2017-09-27 22:32:49 +08:00
|
|
|
line-height: @pagination-item-size-sm;
|
2017-08-30 14:02:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mini &-prev &-item-link,
|
|
|
|
&.mini &-next &-item-link {
|
2017-12-10 16:42:40 +08:00
|
|
|
background: transparent;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-color: transparent;
|
|
|
|
&::after {
|
2017-09-27 22:32:49 +08:00
|
|
|
height: @pagination-item-size-sm;
|
|
|
|
line-height: @pagination-item-size-sm;
|
2015-07-17 16:24:09 +08:00
|
|
|
}
|
2015-07-14 12:09:29 +08:00
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
&.mini &-jump-prev,
|
|
|
|
&.mini &-jump-next {
|
2017-09-27 22:32:49 +08:00
|
|
|
height: @pagination-item-size-sm;
|
2017-10-24 20:39:38 +08:00
|
|
|
margin-right: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
line-height: @pagination-item-size-sm;
|
2015-07-14 12:09:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mini &-options {
|
2017-11-06 21:28:51 +08:00
|
|
|
margin-left: 2px;
|
2015-07-14 12:09:29 +08:00
|
|
|
&-quick-jumper {
|
2017-09-27 22:32:49 +08:00
|
|
|
height: @pagination-item-size-sm;
|
|
|
|
line-height: @pagination-item-size-sm;
|
2015-07-14 12:09:29 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
2017-08-16 20:19:41 +08:00
|
|
|
@media only screen and (max-width: @screen-lg) {
|
2016-12-25 19:55:12 +08:00
|
|
|
.@{pagination-prefix-cls}-item {
|
|
|
|
&-after-jump-prev,
|
|
|
|
&-before-jump-next {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-09-08 15:20:31 +08:00
|
|
|
|
|
|
|
@media only screen and (max-width: @screen-sm) {
|
|
|
|
.@{pagination-prefix-cls}-options {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|