views: factor out paginator component.
* Refactor the paginator into a ViewComponent.
* Fix inconsistent spacing between paginator items.
* Fix a bug where the sequential paginator generated the wrong next /
previous page links in the <link rel="{next|prev}"> tags in the <head>.
* Always include the final page as a hidden html element, so that it can
be unhidden with custom CSS.
* Make it easier to change the pagination window.
This commit is contained in:
10
app/components/paginator_component/paginator_component.scss
Normal file
10
app/components/paginator_component/paginator_component.scss
Normal file
@@ -0,0 +1,10 @@
|
||||
.paginator {
|
||||
> * {
|
||||
padding: 0.25rem 0.75rem;
|
||||
}
|
||||
|
||||
> a:hover {
|
||||
background: var(--paginator-arrow-color);
|
||||
color: var(--paginator-arrow-background-color);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user