mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 21:18:01 +08:00
197 lines
2.9 KiB
Plaintext
197 lines
2.9 KiB
Plaintext
@prefixClass: rc-pagination;
|
||
|
||
|
||
.@{prefixClass} {
|
||
user-select: none;
|
||
font-size: 12px;
|
||
font-family: 'Arial';
|
||
|
||
&:after {
|
||
content: " ";
|
||
display: block;
|
||
height: 0;
|
||
clear: both;
|
||
overflow: hidden;
|
||
visibility: hidden;
|
||
}
|
||
|
||
.@{prefixClass}-item {
|
||
cursor: pointer;
|
||
border-radius: 6px;
|
||
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;
|
||
|
||
a {
|
||
text-decoration: none;
|
||
color: #666;
|
||
}
|
||
|
||
|
||
&:hover {
|
||
border-color: #2db7f5;
|
||
a {
|
||
color: #2db7f5;
|
||
}
|
||
}
|
||
|
||
&.active {
|
||
background-color: #2db7f5;
|
||
border: none;
|
||
|
||
a {
|
||
color: #fff;
|
||
}
|
||
}
|
||
}
|
||
|
||
.jump-prev, .jump-next {
|
||
&:after {
|
||
content: "•••";
|
||
display: block;
|
||
letter-spacing: 2px;
|
||
color: #ccc;
|
||
font-size: 12px;
|
||
margin-top: 1px;
|
||
}
|
||
|
||
&:hover {
|
||
&:after {
|
||
color: #2db7f5;
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
.jump-prev {
|
||
&:hover {
|
||
&:after {
|
||
content: "‹‹";
|
||
}
|
||
}
|
||
}
|
||
|
||
.jump-next {
|
||
&:hover {
|
||
&:after {
|
||
content: "››";
|
||
}
|
||
}
|
||
}
|
||
|
||
.prev, .jump-prev, .jump-next {
|
||
margin-right: 8px;
|
||
}
|
||
.prev, .next, .jump-prev, .jump-next {
|
||
cursor: pointer;
|
||
color: #666;
|
||
font-size: 10px;
|
||
border-radius: 6px;
|
||
list-style: none;
|
||
min-width: 28px;
|
||
height: 28px;
|
||
line-height: 28px;
|
||
float: left;
|
||
text-align: center;
|
||
}
|
||
|
||
.prev, .next {
|
||
border: 1px solid #d9d9d9;
|
||
|
||
a {
|
||
font-size: 16px;
|
||
line-height: 1;
|
||
color: #666;
|
||
}
|
||
|
||
&:hover {
|
||
border-color: #2db7f5;
|
||
|
||
a {
|
||
color: #2db7f5;
|
||
}
|
||
}
|
||
|
||
&.disabled {
|
||
cursor: not-allowed;
|
||
a {
|
||
color: #ccc;
|
||
}
|
||
}
|
||
}
|
||
|
||
.options {
|
||
float: left;
|
||
margin-left: 15px;
|
||
.size-changer {
|
||
float: left;
|
||
width: 90px;
|
||
}
|
||
|
||
.quick-jumper {
|
||
float: left;
|
||
margin-left: 16px;
|
||
height: 28px;
|
||
line-height: 28px;
|
||
|
||
input {
|
||
margin: 0 8px;
|
||
box-sizing: border-box;
|
||
background-color: #fff;
|
||
border-radius: 6px;
|
||
border: 1px solid #d9d9d9;
|
||
outline: none;
|
||
padding: 3px 12px;
|
||
width: 50px;
|
||
height: 28px;
|
||
|
||
&:hover {
|
||
border-color: #2db7f5;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.@{prefixClass}.mini {
|
||
|
||
.@{prefixClass}-item {
|
||
border: none;
|
||
margin: 0;
|
||
min-width: 20px;
|
||
height: 20px;
|
||
line-height: 20px;
|
||
}
|
||
|
||
.prev, .next {
|
||
margin: 0;
|
||
min-width: 20px;
|
||
height: 20px;
|
||
line-height: 20px;
|
||
border: none;
|
||
}
|
||
|
||
.jump-prev, .jump-next {
|
||
height: 20px;
|
||
line-height: 20px;
|
||
}
|
||
|
||
.quick-jumper {
|
||
height: 20px;
|
||
line-height: 20px;
|
||
|
||
input {
|
||
padding: 3px 7px;
|
||
width: 40px;
|
||
height: 20px;
|
||
line-height: 20px;
|
||
}
|
||
}
|
||
}
|