diff --git a/themes/maik-blog/assets/scss/_portfolio.scss b/themes/maik-blog/assets/scss/_portfolio.scss index 196c0b2..6de08f8 100644 --- a/themes/maik-blog/assets/scss/_portfolio.scss +++ b/themes/maik-blog/assets/scss/_portfolio.scss @@ -109,98 +109,3 @@ margin: 0 5px; } } - -.pagination { - margin-top: 20px; - - &__title { - display: flex; - text-align: center; - position: relative; - margin: 20px 0; - - &-h { - text-align: center; - margin: 0 auto; - padding: 5px 10px; - background: $light-background; - color: $light-color-secondary; - font-size: 0.8rem; - text-transform: uppercase; - text-decoration: none; - letter-spacing: 0.1em; - z-index: 1; - - .dark-theme & { - background: $dark-background; - color: $dark-color-secondary; - } - } - - hr { - position: absolute; - left: 0; - right: 0; - width: 100%; - margin-top: 15px; - z-index: 0; - } - } - - &__buttons { - display: flex; - align-items: center; - justify-content: center; - - a { - text-decoration: none; - font-weight: bold; - } - } -} - -.button { - position: relative; - display: inline-flex; - align-items: center; - justify-content: center; - background: $light-background-secondary; - font-size: 1rem; - font-weight: 600; - border-radius: 8px; - max-width: 40%; - padding: 0; - cursor: pointer; - appearance: none; - - .dark-theme & { - background: $dark-background-secondary; - } - - + .button { - margin-left: 10px; - } - - a { - display: flex; - padding: 8px 16px; - text-decoration: none; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - } - - &__text { - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - } - - &.next .button__icon { - margin-left: 8px; - } - - &.previous .button__icon { - margin-right: 8px; - } -} diff --git a/themes/maik-blog/assets/scss/_post.scss b/themes/maik-blog/assets/scss/_post.scss index a9fb40d..f69a7e6 100644 --- a/themes/maik-blog/assets/scss/_post.scss +++ b/themes/maik-blog/assets/scss/_post.scss @@ -169,9 +169,19 @@ align-items: center; justify-content: center; - a { + ul, ol { + list-style-type: none; + margin: 0; + display: flex; + align-items: center; + justify-content: center; + margin: 0 10px; + } + + .button a { text-decoration: none; font-weight: bold; + overflow: visible; } } } @@ -190,6 +200,14 @@ cursor: pointer; appearance: none; + &:disabled, &[disabled], &.disabled { + pointer-events: none; + } + + &.active { + background: darken($light-background-secondary, 25%); + } + .dark-theme & { background: $dark-background-secondary; } @@ -198,7 +216,7 @@ margin-left: 10px; } - a { + > * { display: flex; padding: 8px 16px; text-decoration: none; @@ -207,6 +225,10 @@ overflow: hidden; } + a { + text-decoration: none; + } + &__text { text-overflow: ellipsis; white-space: nowrap; diff --git a/themes/maik-blog/layouts/_default/list.html b/themes/maik-blog/layouts/_default/list.html index 93f5168..4fa18a4 100644 --- a/themes/maik-blog/layouts/_default/list.html +++ b/themes/maik-blog/layouts/_default/list.html @@ -10,10 +10,6 @@
{{ .Content }}
{{- end }} - {{- if .Paginator.HasPrev }} - {{ partial "pagination.html" . }} - {{- end }} -
{{ range $paginator.Pages }}
diff --git a/themes/maik-blog/layouts/partials/pagination.html b/themes/maik-blog/layouts/partials/pagination.html index 5d653e3..7f802a5 100644 --- a/themes/maik-blog/layouts/partials/pagination.html +++ b/themes/maik-blog/layouts/partials/pagination.html @@ -1,20 +1,46 @@ \ No newline at end of file diff --git a/themes/maik-blog/layouts/writeups/list.html b/themes/maik-blog/layouts/writeups/list.html index 381d29a..336669f 100644 --- a/themes/maik-blog/layouts/writeups/list.html +++ b/themes/maik-blog/layouts/writeups/list.html @@ -10,10 +10,6 @@
{{ .Content }}
{{- end }} - {{- if .Paginator.HasPrev }} - {{ partial "pagination.html" . }} - {{- end }} -
{{ range $paginator.Pages }}