textpattern-default-theme
textpattern-default-theme copied to clipboard
Logical positioning to the 'older' page link
Is your feature request related to a problem?
Nope. A cognitive enhancement.
What is the feature?
Currently, the lack of the second navigation link within the bottom of the pages places the first one on the left, which is positioned on the right when the other link appears. That situation can be a little confused.
Adding a class attribute to the old container tag allow rejecting always to the right the corresponding link:
<txp:older rel="next" class="right">
<txp:text item="older" />
</txp:older>
</nav>
</txp:evaluate>
And this line of CSS:
.paginator .right {
margin-left: auto;
}
I think this would work and still make RTL languages display as intended (plus save adding an extra class):
.paginator [rel="next"] {
margin-inline-start: auto;
}
I'll commit this to Textpattern dev so please test in due course.