primevue-mirror/components/lib/theme/aura/paginator/index.js

107 lines
2.7 KiB
JavaScript

export default {
variables: {
colorScheme: {
light: {
root: {
background: '{surface.0}',
textColor: '{surface.700}'
},
navigator: {
backgroundHover: '{surface.100}',
color: '{surface.500}',
colorHover: '{surface.600}'
},
currentPageReport: {
textColor: '{surface.500}'
}
},
dark: {
root: {
background: '{surface.900}',
textColor: '{surface.0}'
},
navigator: {
backgroundHover: '{surface.800}',
color: '{surface.400}',
colorHover: '{surface.300}'
},
currentPageReport: {
textColor: '{surface.400}'
}
}
}
},
css: `
.p-paginator {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
background: var(--p-paginator-background);
color: var(--p-paginator-text-color);
border: 0 none;
padding: 0.5rem 1rem;
border-radius: var(--p-rounded-base);
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;
color: var(--p-paginator-navigator-color);
min-width: 2.5rem;
height: 2.5rem;
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
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 {
background: var(--p-paginator-navigator-background-hover);
color: var(--p-paginator-navigator-color-hover);
}
.p-paginator-current {
color: var(--p-paginator-current-page-report-text-color);
}
.p-paginator-pages {
display: flex;
align-items: center;
gap: 0.25rem;
}
.p-paginator-page.p-highlight {
background: var(--p-highlight-background);
color: var(--p-highlight-text-color);
}
.p-paginator-page-input .p-inputtext {
max-width: 2.5rem;
}
`
};