naive-ui/styles/Pagination.scss

123 lines
2.9 KiB
SCSS
Raw Normal View History

2019-06-25 15:48:04 +08:00
@import './mixins/mixins.scss';
@import './theme/default.scss';
@include b(pagination) {
2019-06-25 15:48:04 +08:00
display: inline-flex;
@include m(transition-disabled) {
@include b(pagination-item) {
transition: none;
path {
transition: none;
}
}
}
@include b(select) {
width: 120px;
}
@include b(pagination-quick-jumper) {
white-space: nowrap;
display: flex;
width: 110px;
line-height: 28px;
@include b(input) {
margin: 0 8px;
input {
padding-left: 6px;
padding-right: 10px;
}
}
}
@include b(pagination-item) {
position: relative;
2019-06-25 15:48:04 +08:00
cursor: pointer;
user-select: none;
color: $pagination-color;
min-width:28px;
height:28px;
padding-left: 4px;
padding-right: 4px;
box-sizing: border-box;
transition: color .3s $default-cubic-bezier, box-shadow .3s $default-cubic-bezier, background-color .3s $default-cubic-bezier;
path {
transition: fill .3s $default-cubic-bezier;
}
2019-06-25 15:48:04 +08:00
&:not(:last-child) {
margin-right: 10px;
2019-06-25 15:48:04 +08:00
}
display: flex;
align-items: center;
justify-content: center;
border-radius:6px;
line-height: 28px;
@include e(more-icon, arrow-icon) {
position: absolute;
left: 50%;
top: 50%;
transform: translateY(-50%) translateX(-50%);
path {
fill: $pagination-color;
}
@include m(reverse) {
transform: translateY(-50%) translateX(-50%) rotate(180deg);
}
}
@include e(more-icon) {
height: 16px;
}
@include e(arrow-icon) {
height: 16px;
2019-06-25 15:48:04 +08:00
}
@include m(active) {
background: $pagination-background-color--active;
2019-06-25 15:48:04 +08:00
color: $pagination-color--active;
box-shadow: inset 0 0 0 1px $pagination-color--active;
}
@include m(backward, forward) {
2019-06-25 15:48:04 +08:00
box-shadow: inset 0 0 0 1px $pagination-color;
path {
fill: $pagination-color;
2019-06-25 15:48:04 +08:00
}
}
@include m(fast-backward, fast-forward) {
@include e(more-icon) {
display: block;
}
@include e(arrow-icon) {
2019-06-25 15:48:04 +08:00
display: none;
}
path {
fill: $pagination-color;
}
}
@include m(disabled) {
@include m(active) {
background: $pagination-background-color--disabled-active;
box-shadow: inset 0 0 0 1px $pagination-color--disabled;
}
@include m(backward, forward) {
box-shadow: inset 0 0 0 1px $pagination-color--disabled;
}
path {
fill: $pagination-color--disabled;
2019-06-25 15:48:04 +08:00
}
color: $pagination-color--disabled;
cursor: not-allowed;
2019-06-25 15:48:04 +08:00
}
&:not(.n-pagination-item--disabled):hover {
@include m(fast-backward, fast-forward) {
@include e(more-icon) {
2019-06-25 15:48:04 +08:00
display: none;
}
@include e(arrow-icon) {
2019-06-25 15:48:04 +08:00
display: block;
path {
fill: $pagination-color--active;
2019-06-25 15:48:04 +08:00
}
}
path {
fill: $pagination-color;
}
2019-06-25 15:48:04 +08:00
}
}
}
}