diff --git a/assets/icons/chevron-left.svg b/assets/icons/chevron-left.svg new file mode 100644 index 0000000..4480a0a --- /dev/null +++ b/assets/icons/chevron-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/icons/chevron-right.svg b/assets/icons/chevron-right.svg new file mode 100644 index 0000000..2be2e9c --- /dev/null +++ b/assets/icons/chevron-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/icons/dots.svg b/assets/icons/dots.svg new file mode 100644 index 0000000..0e7be05 --- /dev/null +++ b/assets/icons/dots.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/scss/partials/pagination.scss b/assets/scss/partials/pagination.scss index ca46780..32fc9bb 100644 --- a/assets/scss/partials/pagination.scss +++ b/assets/scss/partials/pagination.scss @@ -4,18 +4,47 @@ box-shadow: var(--shadow-l1); border-radius: var(--card-border-radius); overflow: hidden; - flex-wrap: wrap; .page-link { - padding: 16px 32px; - display: inline-flex; + padding: 16px 0; + margin: 0; + border-radius: 0; + display: flex; + align-items: center; + justify-content: center; + flex: 1 1 auto; + min-width: 48px; + color: var(--card-text-color-secondary); + text-decoration: none; - &.current { - font-weight: bold; - background-color: var(--card-background-selected); - color: var(--card-text-color-main); + &:first-child, + &:last-child { + flex: 0 0 48px; + padding: 16px; } - color: var(--card-text-color-secondary); + &:hover:not(.current):not(.disabled) { + background-color: var(--card-background-selected); + opacity: 0.8; + } + + &.current { + background-color: var(--card-background-selected); + color: var(--card-text-color-main); + font-weight: bold; + cursor: default; + } + + &.disabled { + opacity: 0.3; + cursor: not-allowed; + pointer-events: none; + color: var(--card-text-color-secondary); + } + + svg { + width: 20px; + height: 20px; + } } -} +} \ No newline at end of file diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index 7756050..a5abdb6 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -1,26 +1,70 @@ -{{ if gt .Paginator.TotalPages 1 }} - +{{- end -}} \ No newline at end of file