Verified Commit 378373a1 authored by Adam Matoušek's avatar Adam Matoušek
Browse files

pagination style tweaks

parent 0fb85437
......@@ -685,20 +685,25 @@ figure.float {
/* Pagination */
#pagination {
display: flex;
text-align: center;
}
#pagination .item {
display: inline-block;
text-align: center;
font-weight: bold;
font-family: var(--f-sans), sans-serif;
width: 2rem;
height: 2rem;
padding: 1rem;
margin: 0;
flex: auto 0 0;
}
#pagination > span {
#pagination .nums {
display: inline-block;
margin: 0 auto;
margin: 0;
flex-grow: 1;
}
#pagination .arrow {
margin: auto 0;
}
/* Small (but not tiny) size */
......
......@@ -40,8 +40,7 @@
<a class='item arrow' href='index[% pagenum - 1 IF pagenum > 2 %].html'
title='Předchozí stránka (novější příspěvky)'>←</a>
[%- ELSE -%]<span class="item"></span>[%- END -%]
</span>
<span>
<span class=nums>
[%- FOREACH p IN pages_pre -%]
<a class=item href='index[% p IF p > 1 %].html'>[% p %]</a>
[%- END -%]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment