From 93bc683c0d816788d110a8732f13690fa2590460 Mon Sep 17 00:00:00 2001 From: alexisben <alex@noesya.coop> Date: Sat, 3 Dec 2022 00:05:20 +0100 Subject: [PATCH] post infos --- assets/sass/_theme/design-system/pagination.sass | 5 +++-- assets/sass/_theme/sections/posts.sass | 6 +++++- layouts/partials/posts/post-infos.html | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/assets/sass/_theme/design-system/pagination.sass b/assets/sass/_theme/design-system/pagination.sass index ba7008e3..c8556397 100644 --- a/assets/sass/_theme/design-system/pagination.sass +++ b/assets/sass/_theme/design-system/pagination.sass @@ -38,7 +38,7 @@ margin-top: $spacing3 ul @include list-reset - @include grid(2, md) + display: flex li flex: 1 position: relative @@ -65,7 +65,8 @@ @include media-breakpoint-up(md) ul padding-top: $spacing1 - + .next:first-child + @include media-breakpoint-down(md) ul flex-direction: column-reverse diff --git a/assets/sass/_theme/sections/posts.sass b/assets/sass/_theme/sections/posts.sass index ae81ff6d..79826f67 100644 --- a/assets/sass/_theme/sections/posts.sass +++ b/assets/sass/_theme/sections/posts.sass @@ -99,6 +99,7 @@ @include h4 padding-left: 0 white-space: nowrap + vertical-align: top tr @include meta border-color: $color-border @@ -108,14 +109,17 @@ text-decoration-color: transparent th, td padding: 1rem 0 + .multiple + td:last-of-type padding-right: 0 text-align: right tr:first-of-type border-top: 0 + th, td + padding-top: 0 tr:last-of-type border-bottom: 0 - .share justify-content: flex-end a diff --git a/layouts/partials/posts/post-infos.html b/layouts/partials/posts/post-infos.html index 7bf7bc47..b9734d22 100644 --- a/layouts/partials/posts/post-infos.html +++ b/layouts/partials/posts/post-infos.html @@ -10,7 +10,7 @@ {{ i18n "posts.category" }} {{- end -}} </th> - <td itemprop="articleSection"> + <td itemprop="articleSection" {{ if gt (len .Params.Categories) 1 }} class="multiple" {{ end }}> {{ partial "posts/categories.html" . }} </td> </tr> -- GitLab