From 0e0195afd16818404440de57082fed4d188f2496 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Thu, 23 Mar 2023 12:11:05 -0500 Subject: [PATCH] Generalize series CSS classes better --- assets/css/bobastyle.css | 21 ++++++++++++--------- layouts/series/list.html | 4 ++-- layouts/series/summary.html | 2 +- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index a967b7a..6bd450d 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -624,10 +624,9 @@ h1 svg.icon { /* Series list layout {{{ */ -/* -.post.series { +.page-list.series { display: flex; - gap: 10px; + gap: 80px; flex-flow: row wrap; list-style: none; color: var(--text-0); @@ -635,15 +634,19 @@ h1 svg.icon { border-radius: 16px; } -.post.series .post { +.page-list.series-inner { + gap: 10px; + flex-direction: row; + flex-flow: row wrap; + background-color: var(--background-0); + /*color: var(--text-0);*/ + padding: 8px; + border-radius: 16px; +} +.page-list.series-inner > .post { flex: 1; min-width: 49%; } -*/ - -.page-list.series { - gap: 80px; -} /* }}} */ diff --git a/layouts/series/list.html b/layouts/series/list.html index bd076bf..e5dd828 100644 --- a/layouts/series/list.html +++ b/layouts/series/list.html @@ -9,9 +9,9 @@ {{ end }}
- {{ with .Pages }} + {{ with .Paginator.Pages }} {{ range . }} -
+
{{ .Render "summary" }}
{{ end }} diff --git a/layouts/series/summary.html b/layouts/series/summary.html index 126270f..7750ae4 100644 --- a/layouts/series/summary.html +++ b/layouts/series/summary.html @@ -10,7 +10,7 @@ {{ partial "description-or-summary.html" . }}
-
+
{{ range .Data.Pages.Reverse }}
{{ .Render "summary" }}