flaviusmatis/simplePagination.js — pull request #63 by 2unco (2014-01-10 00:13:19+00:00)
Title: Added nextAtFront option

The nextAtFront option will make the pagination look like..:

Prev Next 1 2 3 4 5
instead of:
Prev 1 2 3 4 5 Next

A couple of gentle CSS changes were made in the compact-theme to support this:

.compact-theme .prev -> .compact-theme li:first-child a, .compact-theme li:first-child span
.compact-theme .next -> .compact-theme li:last-child a, .compact-theme li:last-child span
These changes were made for two reasons:
1) .next is not necessarily the last child (especially with the nextAtFront option), so the
border radius needs to be applied to whatever is the last child.
2) If prevText or nextText was set to false or "" then they wouldn't be displayed and the
border radius wouldn't have been applied to any list item, making the compact theme look
crazy.

border-right: none -> border-left: none
border-right: 1px solid #AAA -> border-left: 1px solid #AAA
This change was made as a CSS compatibility concern:
Now that it's moved from border-right to border-left: none, if :last-child happened to not
be supported (as it's considered CSS3 whereas :first-child is CSS2 - more widely supported),
we'll see no breakage in the borders.
Even if :last-child is not supported, we won't notice any difference at all because the only
property being applied in there is border radius, and, if :last-child isn't supported then
neither was border radius, so the result would be exactly the same as the old .next CSS.