ant-design/style/components/pagination.less

197 lines
2.9 KiB
Plaintext
Raw Normal View History

2015-07-13 01:04:05 +08:00
@prefixClass: rc-pagination;
.@{prefixClass} {
2015-07-13 12:24:14 +08:00
user-select: none;
2015-07-13 01:04:05 +08:00
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 {
2015-07-13 14:58:26 +08:00
font-size: 16px;
line-height: 1;
2015-07-13 01:04:05 +08:00
color: #666;
}
2015-07-13 14:58:26 +08:00
&:hover {
border-color: #2db7f5;
a {
color: #2db7f5;
}
}
2015-07-13 01:04:05 +08:00
&.disabled {
cursor: not-allowed;
a {
color: #ccc;
}
}
}
.options {
float: left;
margin-left: 15px;
.size-changer {
float: left;
2015-07-13 12:24:14 +08:00
width: 90px;
2015-07-13 01:04:05 +08:00
}
.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;
}
}
}
}
}
2015-07-13 14:58:26 +08:00
.@{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;
}
}
}