ant-design/style/components/pagination.less

233 lines
3.6 KiB
Plaintext
Raw Normal View History

2015-07-14 20:26:31 +08:00
@paginationPrefixClass: ant-pagination;
2015-07-13 01:04:05 +08:00
2015-07-14 20:26:31 +08:00
.@{paginationPrefixClass} {
2015-07-13 12:24:14 +08:00
user-select: none;
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;
}
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;
2015-07-13 01:04:05 +08:00
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;
2015-07-16 12:21:16 +08:00
font-family: Arial;
2015-07-13 01:04:05 +08:00
a {
text-decoration: none;
color: #666;
2015-07-16 12:18:20 +08:00
transition: none;
2015-07-13 01:04:05 +08:00
}
&:hover {
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-07-14 12:09:29 +08:00
&-jump-prev, &-jump-next {
2015-07-13 01:04:05 +08:00
&:after {
content: "•••";
display: block;
letter-spacing: 2px;
color: #ccc;
font-size: 12px;
margin-top: 1px;
}
&:hover {
&:after {
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
&-jump-prev {
2015-07-13 01:04:05 +08:00
&:hover {
&:after {
content: "";
}
}
}
2015-07-14 12:09:29 +08:00
&-jump-next {
2015-07-13 01:04:05 +08:00
&:hover {
&:after {
content: "";
}
}
}
2015-07-14 12:09:29 +08:00
&-prev, &-jump-prev, &-jump-next {
2015-07-13 01:04:05 +08:00
margin-right: 8px;
}
2015-07-14 12:09:29 +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;
color: #666;
font-size: 10px;
border-radius: 6px;
list-style: none;
min-width: 28px;
height: 28px;
line-height: 28px;
float: left;
text-align: center;
transition: all 0.3s ease;
2015-07-13 01:04:05 +08:00
}
2015-07-14 12:09:29 +08:00
&-prev, &-next {
2015-07-13 01:04:05 +08:00
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 {
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
}
&-disabled {
&:hover {
border-color: #d9d9d9;
2015-07-13 01:04:05 +08:00
a {
color: #ccc;
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 {
color: #ccc;
}
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 {
2015-07-13 01:04:05 +08:00
float: left;
margin-left: 15px;
2015-07-14 12:09:29 +08:00
&-size-changer {
2015-07-13 01:04:05 +08:00
float: left;
2015-07-13 12:24:14 +08:00
width: 90px;
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 {
2015-07-13 01:04:05 +08:00
float: left;
height: 28px;
line-height: 28px;
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-07-14 12:09:29 +08:00
&-simple &-prev, &-simple &-next {
2015-07-13 16:04:07 +08:00
border: none;
height: 24px;
line-height: 24px;
margin: 0;
font-size: 18px;
}
2015-07-14 12:09:29 +08:00
&-simple &-simple-pager {
2015-07-13 16:04:07 +08:00
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;
min-height: 20px;
2015-07-14 12:09:29 +08:00
text-align: center;
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-07-14 20:26:31 +08:00
.@{paginationPrefixClass} {
2015-07-14 12:09:29 +08:00
&.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;
}
&.mini &-jump-prev, &.mini &-jump-next {
height: 20px;
line-height: 20px;
}
&.mini &-options {
&-quick-jumper {
height: 20px;
line-height: 20px;
input {
.input-sm;
}
}
}
}