-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a6a98c
commit 7797ac4
Showing
9 changed files
with
76 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// 1. Mirror the section padding bottom to the pagination top margin. | ||
|
||
@use "../../settings/navigation"; | ||
|
||
.pagination { | ||
display: flex; | ||
gap: navigation.$item-padding-big; | ||
align-items: center; | ||
justify-content: center; | ||
margin-top: var(--section-padding-bottom, 0); // 1. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@use "../../tools/breakpoint"; | ||
|
||
// stylelint-disable declaration-no-important -- Only allow `!important` for utility classes. | ||
|
||
.hidden-sm { | ||
display: none !important; | ||
|
||
@include breakpoint.up(md) { | ||
display: initial !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ | |
{{/foreach}} | ||
</div> | ||
|
||
{{pagination}} | ||
|
||
</div> | ||
</section> | ||
</main> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{{#match pages ">" 1}} | ||
<nav class="pagination"> | ||
|
||
{{#if prev}} | ||
<a href="{{page_url prev}}" class="button button--secondary button--small"> | ||
<span aria-hidden="true">←</span> | ||
<span> | ||
Novější | ||
<span class="hidden-sm">články</span> | ||
</span> | ||
</a> | ||
{{/if}} | ||
|
||
{{^is "home"}} | ||
<span class="text-nowrap"> | ||
{{page}} / {{pages}} | ||
</span> | ||
{{/is}} | ||
|
||
{{#if next}} | ||
<a href="{{page_url next}}" class="button button--secondary button--small"> | ||
<span> | ||
Starší | ||
<span class="hidden-sm">články</span> | ||
</span> | ||
<span aria-hidden="true">→</span> | ||
</a> | ||
{{/if}} | ||
|
||
</nav> | ||
{{/match}} |