– You can now show first and last page + the 5 pages around the current page
Example css:
.ttlessthan5 {
display: none;
}
.ttlessthan5.firstpage {
display: inline;
}
.ttlessthan5.firstpage:after {
content: " -";
display: inline-block;
white-space: pre-wrap;
}
.ttmorethan5 {
display: none;
}
.ttmorethan5.lastpage:before {
content: "- ";
display: inline-block;
text-decoration: none;
white-space: pre-wrap;
}
.ttmorethan5.lastpage {
display: inline;
}
Leave a Reply