From 2d446bf31be8f5efa8507a2423dd8f2eaf7b9a27 Mon Sep 17 00:00:00 2001 From: Galdor Takacs Date: Wed, 20 Feb 2019 19:14:08 +0100 Subject: [PATCH] paginate: Fix incorrect comparison between 0-based and 1-based counts --- package.json | 2 +- sass/_paginate.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 952f583..77f8eb2 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/sass/_paginate.scss b/sass/_paginate.scss index cf194de..60966dd 100644 --- a/sass/_paginate.scss +++ b/sass/_paginate.scss @@ -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