sendou.ink/app/components/Pagination.module.css
Kalle fef1ffc955
Design refresh + a bunch of stuff (#2864)
Co-authored-by: hfcRed <hfcred@gmx.net>
2026-03-19 17:51:42 +02:00

118 lines
2.1 KiB
CSS

.container {
display: flex;
align-items: center;
justify-content: center;
gap: var(--s-1);
background-color: var(--color-bg-high);
padding: var(--s-2) var(--s-3);
border-radius: var(--radius-full);
width: fit-content;
margin-inline: auto;
}
.arrow {
display: flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border: none;
background: transparent;
color: var(--color-text);
cursor: pointer;
border-radius: var(--radius-full);
transition: opacity 0.15s ease;
}
.arrow:hover:not(:disabled) {
opacity: 0.7;
}
.arrow:disabled {
opacity: 0.3;
cursor: not-allowed;
}
.page {
display: flex;
align-items: center;
justify-content: center;
min-width: 2rem;
height: 2rem;
padding: 0 var(--s-1);
border: none;
background: transparent;
color: var(--color-text);
font-size: var(--font-sm);
font-weight: var(--weight-semi);
cursor: pointer;
border-radius: var(--radius-full);
transition: background-color 0.15s ease;
}
.page:hover:not(.pageActive) {
background-color: var(--color-bg-higher);
}
.pageActive {
background-color: var(--color-text);
color: var(--color-text-inverse);
}
.ellipsis {
display: flex;
align-items: center;
justify-content: center;
min-width: 1.5rem;
height: 2rem;
color: var(--color-text);
font-size: var(--font-sm);
}
.ellipsisButton {
border: none;
background: transparent;
cursor: pointer;
border-radius: var(--radius-full);
transition: background-color 0.15s ease;
}
.ellipsisButton:hover {
background-color: var(--color-bg-higher);
}
.jumpToForm {
display: flex;
align-items: center;
justify-content: center;
}
.jumpToInput {
max-width: 2.5rem;
max-height: 1.75rem;
padding: 0 var(--s-1);
border: 2px solid var(--color-primary);
border-radius: var(--radius-sm);
background-color: var(--color-bg);
color: var(--color-text);
font-size: var(--font-sm);
font-weight: var(--weight-semi);
text-align: center;
}
.jumpToInput:focus {
outline: none;
}
@container (width < 580px) {
.desktopOnly {
display: none;
}
}
@container (width >= 580px) {
.mobileOnly {
display: none;
}
}