2017-08-23 10:07:14 +00:00
|
|
|
@import "mixins/mixins";
|
|
|
|
@import "mixins/utils";
|
|
|
|
@import "common/var";
|
|
|
|
@import "select";
|
|
|
|
|
|
|
|
@include b(pagination) {
|
|
|
|
white-space: nowrap;
|
|
|
|
padding: 2px 5px;
|
|
|
|
color: $--pagination-color;
|
2017-09-22 06:33:03 +00:00
|
|
|
font-weight: bold;
|
2017-08-23 10:07:14 +00:00
|
|
|
@include utils-clearfix;
|
|
|
|
|
2017-09-28 04:22:30 +00:00
|
|
|
span:not([class*=suffix]),
|
2017-08-23 10:07:14 +00:00
|
|
|
button {
|
|
|
|
display: inline-block;
|
|
|
|
font-size: $--pagination-font-size;
|
2017-09-22 06:33:03 +00:00
|
|
|
min-width: $--pagination-button-width;
|
|
|
|
height: $--pagination-button-height;
|
|
|
|
line-height: $--pagination-button-height;
|
2017-08-23 10:07:14 +00:00
|
|
|
vertical-align: top;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2017-09-22 06:33:03 +00:00
|
|
|
.el-input__inner {
|
2017-09-28 04:22:30 +00:00
|
|
|
text-align: center;
|
2017-11-06 02:46:34 +00:00
|
|
|
-moz-appearance: textfield;
|
2017-09-22 06:33:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// pagesize 的下拉 icon
|
|
|
|
.el-input__suffix {
|
2017-09-28 04:22:30 +00:00
|
|
|
right: 0;
|
|
|
|
transform: scale(.8);
|
2017-09-22 06:33:03 +00:00
|
|
|
}
|
|
|
|
|
2017-08-23 10:07:14 +00:00
|
|
|
.el-select .el-input {
|
2017-09-22 06:33:03 +00:00
|
|
|
width: 100px;
|
|
|
|
margin: 0 5px;
|
2017-09-28 04:22:30 +00:00
|
|
|
|
2017-09-22 06:33:03 +00:00
|
|
|
.el-input__inner {
|
2017-08-23 10:07:14 +00:00
|
|
|
padding-right: 25px;
|
2017-09-22 06:33:03 +00:00
|
|
|
border-radius: $--pagination-border-radius;
|
|
|
|
height: $--pagination-button-height;
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
border: none;
|
|
|
|
padding: 0 6px;
|
|
|
|
background: transparent;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $--pagination-hover-fill;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
color: $--pagination-button-disabled-color;
|
|
|
|
background-color: $--pagination-button-disabled-fill;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-prev,
|
|
|
|
.btn-next {
|
|
|
|
background: center center no-repeat;
|
|
|
|
background-size: 16px;
|
|
|
|
background-color: $--pagination-fill;
|
|
|
|
cursor: pointer;
|
|
|
|
margin: 0;
|
|
|
|
color: $--pagination-button-color;
|
|
|
|
|
|
|
|
.el-icon {
|
|
|
|
display: block;
|
|
|
|
font-size: 12px;
|
2017-11-28 10:33:15 +00:00
|
|
|
font-weight: bold;
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-prev {
|
2017-09-22 06:33:03 +00:00
|
|
|
padding-right: 12px;
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-next {
|
2017-09-22 06:33:03 +00:00
|
|
|
padding-left: 12px;
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include m(small) {
|
|
|
|
.btn-prev,
|
|
|
|
.btn-next,
|
|
|
|
.el-pager li,
|
|
|
|
.el-pager li:last-child {
|
|
|
|
border-color: transparent;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 22px;
|
|
|
|
height: 22px;
|
|
|
|
min-width: 22px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.arrow.disabled {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(sizes) {
|
|
|
|
margin: 0 10px 0 0;
|
2017-10-16 06:07:24 +00:00
|
|
|
font-weight: normal;
|
|
|
|
color: $--color-text-regular;
|
2017-08-23 10:07:14 +00:00
|
|
|
|
|
|
|
.el-input .el-input__inner {
|
2017-09-22 06:33:03 +00:00
|
|
|
font-size: $--pagination-font-size;
|
2017-09-28 04:22:30 +00:00
|
|
|
padding-left: 8px;
|
2017-08-23 10:07:14 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-color: $--pagination-hover-fill;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-22 06:33:03 +00:00
|
|
|
@include e(total) {
|
|
|
|
margin-right: 10px;
|
2017-10-16 06:07:24 +00:00
|
|
|
font-weight: normal;
|
|
|
|
color: $--color-text-regular;
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
|
2017-09-22 06:33:03 +00:00
|
|
|
@include e(jump) {
|
|
|
|
margin-left: 24px;
|
2017-10-16 06:07:24 +00:00
|
|
|
font-weight: normal;
|
|
|
|
color: $--color-text-regular;
|
|
|
|
|
|
|
|
.el-input__inner {
|
|
|
|
padding: 0 3px;
|
|
|
|
}
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include e(rightwrapper) {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include e(editor) {
|
|
|
|
line-height: 18px;
|
2017-09-22 06:33:03 +00:00
|
|
|
padding: 0 2px;
|
|
|
|
height: $--pagination-button-height;
|
|
|
|
|
2017-08-23 10:07:14 +00:00
|
|
|
text-align: center;
|
2017-09-22 06:33:03 +00:00
|
|
|
margin: 0 2px;
|
2017-08-23 10:07:14 +00:00
|
|
|
box-sizing: border-box;
|
2017-09-22 06:33:03 +00:00
|
|
|
border-radius: $--pagination-border-radius;
|
2017-08-23 10:07:14 +00:00
|
|
|
|
2017-09-22 06:33:03 +00:00
|
|
|
&.el-input {
|
|
|
|
width: 50px;
|
|
|
|
}
|
|
|
|
|
2017-10-31 10:06:44 +00:00
|
|
|
&.el-input .el-input__inner {
|
2017-09-22 06:33:03 +00:00
|
|
|
height: $--pagination-button-height;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-input__inner::-webkit-inner-spin-button,
|
|
|
|
.el-input__inner::-webkit-outer-spin-button {
|
2017-08-23 10:07:14 +00:00
|
|
|
-webkit-appearance: none;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 10:33:15 +00:00
|
|
|
|
|
|
|
@include when(background) {
|
|
|
|
.btn-prev,
|
|
|
|
.btn-next,
|
|
|
|
.el-pager li {
|
|
|
|
margin: 0 5px;
|
|
|
|
background-color: $--color-info-lighter;
|
|
|
|
color: $--color-text-regular;
|
|
|
|
min-width: 30px;
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-prev, .btn-next {
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
color: $--color-text-placeholder;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-pager li {
|
|
|
|
&:hover {
|
|
|
|
color: $--pagination-hover-fill;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
background-color: $--color-primary;
|
|
|
|
color: $--color-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.el-pagination--small {
|
|
|
|
.btn-prev,
|
|
|
|
.btn-next,
|
|
|
|
.el-pager li {
|
|
|
|
margin: 0 3px;
|
|
|
|
min-width: 22px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-08-23 10:07:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include b(pager) {
|
|
|
|
user-select: none;
|
|
|
|
list-style: none;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
font-size: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
|
2017-11-28 10:33:15 +00:00
|
|
|
.more::before {
|
|
|
|
line-height: 30px;
|
2017-09-22 06:33:03 +00:00
|
|
|
}
|
|
|
|
|
2017-08-23 10:07:14 +00:00
|
|
|
li {
|
|
|
|
padding: 0 4px;
|
|
|
|
background: $--pagination-fill;
|
|
|
|
vertical-align: top;
|
|
|
|
display: inline-block;
|
|
|
|
font-size: $--pagination-font-size;
|
2017-09-22 06:33:03 +00:00
|
|
|
min-width: $--pagination-button-width;
|
|
|
|
height: $--pagination-button-height;
|
|
|
|
line-height: $--pagination-button-height;
|
2017-08-23 10:07:14 +00:00
|
|
|
cursor: pointer;
|
|
|
|
box-sizing: border-box;
|
|
|
|
text-align: center;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
&.btn-quicknext,
|
|
|
|
&.btn-quickprev {
|
|
|
|
line-height: 28px;
|
|
|
|
color: $--pagination-button-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-quickprev:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.btn-quicknext:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active + li {
|
|
|
|
border-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $--pagination-hover-fill;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
2017-09-22 06:33:03 +00:00
|
|
|
color: $--pagination-hover-fill;
|
2017-08-23 10:07:14 +00:00
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|