text/css
•
1.04 KB
•
57 lines
.pagination {
display: flex;
gap: var(--space-l);
justify-content: center;
margin-top: var(--space-l);
}
.pagination > a {
display: block;
text-decoration: none;
font-size: 1.2rem;
width: 3rem;
height: 2rem;
line-height: 2rem;
text-align: center;
border-radius: var(--space-s);
font-weight: 300;
border: solid 1px var(--primary-color);
color: var(--primary-color);
transition:
background-color 300ms ease-in-out,
color 300ms ease-in-out;
}
.pagination > a.active,
.pagination > a:hover {
background-color: var(--primary-color);
color: var(--white);
}
.pagination > .start,
.pagination > .end,
.pagination > .prev,
.pagination > .next {
width: 3rem;
}
html .pagination > .disabled {
border-color: var(--text-color-subdued);
color: var(--text-color-subdued);
background-color: transparent;
cursor: not-allowed;
}
@media screen and (max-width: 1050px) {
.pagination > a {
display: none;
}
.pagination > .start,
.pagination > .end,
.pagination > .prev,
.pagination > .next,
.pagination > a.active {
display: block;
}
}