/* =========================
Pagination
API kept compatible with gnexus-ui-kit.
========================= */
@use "../kit-deps" as *;
.pagination {
display: inline-flex;
align-items: center;
gap: $space-1;
margin: 0;
padding: $space-1;
border: $border-width-base $border-style-base $border-color-muted;
border-radius: $radius-lg;
background: $neutral-0;
list-style: none;
}
.pagination-item {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 36px;
height: 36px;
padding: 0 $space-2;
border: $border-width-base $border-style-base transparent;
border-radius: $radius-md;
background: transparent;
color: $neutral-700;
font-family: $font-family-base;
font-size: 14px;
font-weight: $font-weight-semibold;
line-height: 1;
cursor: pointer;
transition: color $motion-base $motion-ease, background-color $motion-base $motion-ease, border-color $motion-base $motion-ease;
&:disabled {
opacity: 0.4;
cursor: not-allowed;
}
&:not(:disabled):hover,
&:not(:disabled).is-hover {
color: $neutral-900;
background: $neutral-50;
}
&.pagination-item-active {
border-color: $neutral-900;
color: $neutral-900;
background: $neutral-0;
}
&:focus-visible {
@include focus_ring;
}
.ph {
font-size: $icon-size-md;
}
}