naive-ui/styles/Pagination.scss

129 lines
3.7 KiB
SCSS
Raw Normal View History

2019-06-25 15:48:04 +08:00
@import './mixins/mixins.scss';
2020-02-11 14:44:29 +08:00
2019-10-15 17:55:02 +08:00
@include themes-mixin {
@include b(pagination) {
@include once {
2019-10-16 23:43:07 +08:00
display: flex;
2019-10-15 17:55:02 +08:00
vertical-align: middle;
@include b(select) {
2020-02-20 13:22:48 +08:00
width: unset;
}
2019-10-15 17:55:02 +08:00
@include m(transition-disabled) {
@include b(pagination-item) {
transition: none;
2019-10-15 17:55:02 +08:00
}
}
}
2019-10-15 17:55:02 +08:00
@include b(pagination-quick-jumper) {
@include once {
white-space: nowrap;
display: flex;
width: 110px;
line-height: 28px;
transition: color .3s $--n-ease-in-out-cubic-bezier;
2019-10-15 17:55:02 +08:00
@include b(input) {
margin: 0 8px;
input {
padding-left: 6px;
padding-right: 10px;
}
}
2019-06-25 15:48:04 +08:00
}
2019-10-15 17:55:02 +08:00
color: map-get($--pagination-item-text-color, "default");
2019-06-25 15:48:04 +08:00
}
2019-10-15 17:55:02 +08:00
@include b(pagination-item) {
@include once {
position: relative;
cursor: pointer;
user-select: none;
min-width:28px;
height:28px;
padding-left: 4px;
padding-right: 4px;
box-sizing: border-box;
opacity: 1;
2020-02-20 20:11:31 +08:00
transition:
color .3s $--n-ease-in-out-cubic-bezier,
box-shadow .3s $--n-ease-in-out-cubic-bezier,
background-color .3s $--n-ease-in-out-cubic-bezier,
opacity .3s $--n-ease-in-out-cubic-bezier,
fill .3s $--n-ease-in-out-cubic-bezier;
2019-10-15 17:55:02 +08:00
display: flex;
align-items: center;
justify-content: center;
border-radius:6px;
line-height: 28px;
&:not(:last-child) {
2020-02-20 20:11:31 +08:00
margin-right: 8px;
2019-10-15 17:55:02 +08:00
}
2019-10-17 22:16:30 +08:00
@include e(more-icon, arrow-icon) {
position: relative;
z-index: auto;
2019-10-17 22:16:30 +08:00
width: 16px;
2019-10-15 17:55:02 +08:00
height: 16px;
2019-10-17 22:16:30 +08:00
@include b(base-icon) {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
2019-10-15 17:55:02 +08:00
}
2020-02-20 20:11:31 +08:00
@include m(fast-backward, fast-forward) {
@include e(more-icon) {
display: block;
}
@include e(arrow-icon) {
display: none;
}
2019-10-15 17:55:02 +08:00
}
}
2020-02-20 20:11:31 +08:00
color: map-get($--pagination-item-text-color, 'default');
fill: map-get($--pagination-item-text-color, 'default');
@include m(active) {
2019-10-15 17:55:02 +08:00
background: map-get($--pagination-item-background-color, 'active');
color: map-get($--pagination-item-text-color, 'active');
box-shadow: inset 0 0 0 1px map-get($--pagination-item-border-color, 'active');
}
@include m(backward, forward) {
2020-02-22 14:11:34 +08:00
background-color: map-get($--pagination-item-background-color, 'default');
2019-10-15 17:55:02 +08:00
box-shadow: inset 0 0 0 1px map-get($--pagination-item-border-color, 'default');
}
@include not-m(disabled) {
&:hover {
color: map-get($--pagination-item-text-color, 'hover');
2020-02-20 20:11:31 +08:00
@include once {
@include m(fast-backward, fast-forward) {
2019-10-15 17:55:02 +08:00
@include e(more-icon) {
display: none;
}
2020-02-20 20:11:31 +08:00
@include e(arrow-icon) {
2019-10-15 17:55:02 +08:00
display: block;
}
}
}
}
2019-06-25 15:48:04 +08:00
}
2020-02-20 20:11:31 +08:00
@include m(disabled) {
fill: map-get($--pagination-item-text-color, 'disabled');
color: map-get($--pagination-item-text-color, 'disabled');
@include m(active, backward, forward) {
background-color: map-get($--pagination-item-background-color, 'disabled');
box-shadow: inset 0 0 0 1px map-get($--pagination-item-border-color, 'disabled');
}
@include once {
cursor: not-allowed;
}
}
2019-06-25 15:48:04 +08:00
}
2019-10-15 17:55:02 +08:00
@include m(disabled) {
@include once {
cursor: not-allowed;
}
@include b(pagination-quick-jumper) {
color: map-get($--pagination-text-color, "disabled");
}
}
2019-06-25 15:48:04 +08:00
}
2019-10-15 17:55:02 +08:00
}