2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-paginator {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
flex-wrap: wrap;
|
2024-03-13 11:13:29 +00:00
|
|
|
background: ${dt('paginator.background')};
|
|
|
|
color: ${dt('paginator.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
border: 0 none;
|
|
|
|
padding: 0.5rem 1rem;
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
gap: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-paginator-left-content {
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-paginator-right-content {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-paginator-page,
|
|
|
|
.p-paginator-next,
|
|
|
|
.p-paginator-last,
|
|
|
|
.p-paginator-first,
|
|
|
|
.p-paginator-prev {
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
line-height: 1;
|
|
|
|
user-select: none;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
background: transparent;
|
|
|
|
border: 0 none;
|
2024-03-13 11:13:29 +00:00
|
|
|
color: ${dt('paginator.navigator.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
min-width: 2.5rem;
|
|
|
|
height: 2.5rem;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-paginator-page:not(.p-disabled):not(.p-highlight):hover,
|
|
|
|
.p-paginator-first:not(.p-disabled):hover,
|
|
|
|
.p-paginator-prev:not(.p-disabled):hover,
|
|
|
|
.p-paginator-next:not(.p-disabled):hover,
|
|
|
|
.p-paginator-last:not(.p-disabled):hover {
|
2024-03-13 11:13:29 +00:00
|
|
|
background: ${dt('paginator.navigator.hover.background')};
|
|
|
|
color: ${dt('paginator.navigator.hover.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-paginator-current {
|
2024-03-13 11:13:29 +00:00
|
|
|
color: ${dt('paginator.current.page.report.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-paginator-pages {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-paginator-page.p-highlight {
|
2024-03-13 11:13:29 +00:00
|
|
|
background: ${dt('highlight.background')};
|
|
|
|
color: ${dt('highlight.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-paginator-page-input .p-inputtext {
|
|
|
|
max-width: 2.5rem;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|