mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
271 lines
4.2 KiB
Plaintext
271 lines
4.2 KiB
Plaintext
@pagination-prefix-cls: ant-pagination;
|
|
|
|
.@{pagination-prefix-cls} {
|
|
user-select: none;
|
|
font-size: @font-size-base;
|
|
|
|
&:after {
|
|
content: " ";
|
|
display: block;
|
|
height: 0;
|
|
clear: both;
|
|
overflow: hidden;
|
|
visibility: hidden;
|
|
}
|
|
|
|
&-item {
|
|
cursor: pointer;
|
|
border-radius: @border-radius-base;
|
|
min-width: 28px;
|
|
height: 28px;
|
|
line-height: 28px;
|
|
text-align: center;
|
|
list-style: none;
|
|
float: left;
|
|
border: 1px solid #d9d9d9;
|
|
background-color: #fff;
|
|
margin-right: 8px;
|
|
font-family: Arial;
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: #666;
|
|
transition: none;
|
|
}
|
|
|
|
&:hover {
|
|
transition: all 0.3s ease;
|
|
border-color: @primary-color;
|
|
a {
|
|
color: @primary-color;
|
|
}
|
|
}
|
|
|
|
&-active {
|
|
background-color: @primary-color;
|
|
border-color: @primary-color;
|
|
|
|
a,
|
|
&:hover a {
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-jump-prev, &-jump-next {
|
|
|
|
&:after {
|
|
content: "•••";
|
|
display: block;
|
|
letter-spacing: 2px;
|
|
color: #ccc;
|
|
text-align: center;
|
|
}
|
|
|
|
&:hover {
|
|
&:after {
|
|
color: @primary-color;
|
|
.iconfont-size-under-12px(8px);
|
|
letter-spacing: -1px;
|
|
font-family: "anticon";
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
&-jump-prev {
|
|
.cross-rotate(180deg);
|
|
&:hover {
|
|
&:after {
|
|
content: "\e611\e611";
|
|
}
|
|
}
|
|
}
|
|
|
|
&-jump-next {
|
|
&:hover {
|
|
&:after {
|
|
content: "\e611\e611";
|
|
}
|
|
}
|
|
}
|
|
|
|
&-prev, &-jump-prev, &-jump-next {
|
|
margin-right: 8px;
|
|
}
|
|
&-prev, &-next, &-jump-prev, &-jump-next {
|
|
font-family: Arial;
|
|
cursor: pointer;
|
|
color: #666;
|
|
border-radius: 6px;
|
|
list-style: none;
|
|
min-width: 28px;
|
|
height: 28px;
|
|
line-height: 28px;
|
|
float: left;
|
|
text-align: center;
|
|
transition: all 0.3s ease;
|
|
display: inline-block;
|
|
}
|
|
|
|
&-prev, &-next {
|
|
border: 1px solid #d9d9d9;
|
|
|
|
a {
|
|
color: #666;
|
|
|
|
&:after {
|
|
.iconfont-size-under-12px(8px);
|
|
display: block;
|
|
height: 26px;
|
|
line-height: 26px;
|
|
font-family: "anticon";
|
|
text-align: center;
|
|
}
|
|
|
|
}
|
|
|
|
&:hover {
|
|
border-color: @primary-color;
|
|
|
|
a {
|
|
color: @primary-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-prev {
|
|
.cross-rotate(180deg);
|
|
a {
|
|
&:after {
|
|
margin-top: -.5px;
|
|
content: "\e611";
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-next {
|
|
a {
|
|
&:after {
|
|
content: "\e611";
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-disabled {
|
|
&:hover {
|
|
border-color: #d9d9d9;
|
|
a {
|
|
color: #ccc;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
cursor: not-allowed;
|
|
a {
|
|
color: #ccc;
|
|
}
|
|
}
|
|
|
|
&-slash {
|
|
margin: 0 10px 0 5px;
|
|
}
|
|
|
|
&-options {
|
|
float: left;
|
|
margin-left: 15px;
|
|
&-size-changer {
|
|
float: left;
|
|
width: 90px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
&-quick-jumper {
|
|
float: left;
|
|
height: 28px;
|
|
line-height: 28px;
|
|
|
|
input {
|
|
.input;
|
|
margin: 0 8px;
|
|
width: 50px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-simple &-prev, &-simple &-next {
|
|
border: none;
|
|
height: 24px;
|
|
line-height: 24px;
|
|
margin: 0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
&-simple &-simple-pager {
|
|
float: left;
|
|
margin-right: 8px;
|
|
|
|
input {
|
|
margin: 0 8px;
|
|
box-sizing: border-box;
|
|
background-color: #fff;
|
|
border-radius: 6px;
|
|
border: 1px solid #d9d9d9;
|
|
outline: none;
|
|
padding: 5px 8px;
|
|
width: 30px;
|
|
height: 24px;
|
|
text-align: center;
|
|
|
|
&:hover {
|
|
border-color: @primary-color;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
.@{pagination-prefix-cls} {
|
|
|
|
&.mini &-item {
|
|
border: none;
|
|
margin: 0;
|
|
min-width: 20px;
|
|
height: 20px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
&.mini &-prev,
|
|
&.mini &-next {
|
|
margin: 0;
|
|
min-width: 20px;
|
|
height: 20px;
|
|
line-height: 20px;
|
|
border: none;
|
|
|
|
a {
|
|
&:after {
|
|
height: 20px;
|
|
line-height: 20px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.mini &-jump-prev, &.mini &-jump-next {
|
|
height: 20px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
&.mini &-options {
|
|
&-quick-jumper {
|
|
height: 20px;
|
|
line-height: 20px;
|
|
|
|
input {
|
|
.input-sm;
|
|
}
|
|
}
|
|
}
|
|
}
|