Skip to content

Commit

Permalink
paginate: Fix incorrect comparison between 0-based and 1-based counts
Browse files Browse the repository at this point in the history
  • Loading branch information
ght committed Feb 20, 2019
1 parent 208398d commit 2d446bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "css-slider",
"description": "Pure CSS Slider with resonsive pagination",
"version": "0.2.3",
"version": "0.2.4",
"license": "MIT",
"repository": "https://github.com/onvardgmbh/css-slider.git",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion sass/_paginate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
}

// Show last page for any of the last n radios
@if ($i > $n) {
@if ($i >= $n) {
@for $j from 0 to $n { // Nested loop! Keep this short
&:nth-last-of-type(#{$n - $j}) {
// Slide to the last page
Expand Down

0 comments on commit 2d446bf

Please sign in to comment.