<main class="main-wrapper">
<nav aria-label="pagination">
<ul class="pagination">
<li><a href="#" class="prev"></a></li>
<li><span aria-current="page"><span class="visually-hidden">page </span>1</span></li>
<li><a href="#" class="link"><span class="visually-hidden">page </span>2</a></li>
<li><a href="#" class="link"><span class="visually-hidden">page </span>3</a></li>
<li class="tethering">...</li>
<li><a href="#" class="link"><span class="visually-hidden">page </span>max</a></li>
<li><a href="#" class="next"></a></li>
</ul>
</nav>
</main>
<main class="main-wrapper">
<nav aria-label="pagination">
<ul class="pagination">
<li><a href="#" class="prev"></a></li>
<li><span aria-current="page"><span class="visually-hidden">page </span>1</span></li>
<li><a href="#" class="link"><span class="visually-hidden">page </span>2</a></li>
<li><a href="#" class="link"><span class="visually-hidden">page </span>3</a></li>
<li class="tethering">...</li>
<li><a href="#" class="link"><span class="visually-hidden">page </span>max</a></li>
<li><a href="#" class="next"></a></li>
</ul>
</nav>
</main>
/* No context defined. */
.pagination {
display: flex;
justify-content: center;
position: relative;
width: 100%;
margin: auto;
}
@media print, screen and (min-width:48em) {
.pagination {
max-width: 50rem;
}
}
@media print, screen and (max-width:47.96875em) {
.pagination {
max-width: 80%;
}
}
@media print, screen and (min-width:48em) {
.pagination .prev:before {
border-right: 12px solid #464646;
}
.pagination .next:before {
border-left: 12px solid #464646;
}
}
@media print, screen and (max-width:47.96875em) {
.pagination .prev:before {
border-right: 8px solid #464646;
}
.pagination .next:before {
border-left: 8px solid #464646;
}
}
@media print, screen and (max-width:47.96875em) {
.pagination > li:not(:first-of-type):not(:first-of-type) > .link {
border-left: none;
}
}
@media print, screen and (min-width:48em) {
.pagination > li:not(:first-of-type) {
margin-left: 1.2rem;
}
}
.pagination .link, .pagination [aria-current="page"], .pagination .prev, .pagination .next {
display: block;
padding: .575rem 1rem;
}
@media print, screen and (min-width:48em) {
.pagination .link, .pagination [aria-current="page"], .pagination .prev, .pagination .next {
min-width: 2.85rem;
font-size: calc(var(--font-size-m2));
}
}
@media print, screen and (max-width:47.96875em) {
.pagination .link, .pagination [aria-current="page"], .pagination .prev, .pagination .next {
width: auto;
min-width: 2.7rem;
}
}
.pagination .link {
border: 1px solid #333;
text-decoration: underline;
}
@media print, screen and (min-width:48em) {
.pagination .link:hover, .pagination .link:focus {
text-decoration: none;
}
}
.pagination [aria-current="page"] {
border: 1px solid #0e51a8;
background-color: #0e51a8;
font-weight: bold;
color: var(--white);
}
.pagination .prev, .pagination .next {
position: relative;
height: 100%;
}
.pagination .prev:before, .pagination .next:before {
content: "";
display: block;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
@media print, screen and (min-width:48em) {
.pagination .prev:before, .pagination .next:before {
border-top: 8px solid transparent;
border-bottom: 8px solid transparent;
}
}
@media print, screen and (max-width:47.96875em) {
.pagination .prev:before, .pagination .next:before {
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
}
}
.pagination .tethering {
line-height: 2rem;
}
@media print, screen and (max-width:47.96875em) {
.pagination .tethering {
width: 0;
height: 0;
visibility: hidden;
}
}
No notes defined.