Reorganize series page list and series summary card class names

- Use namespaced class names to prevent accidental name collisions in
  the future
- Clean up whatever the hell I was doing with the flex config on the
  outer series list. I have no clue why it's set up as a wrapping row,
  or what the border radius is for. It seems to look the same if I just
  make it a page-list that gets its gap overridden.
- Remove page.series wrapper around the summary card render which was
  accidentally left in after 8eb343132c6b57f692f87a72a5aca1bc9c563d1b.
This commit is contained in:
2025-09-01 01:37:26 -05:00
parent 8e22007bfd
commit c02ceb2dc4
3 changed files with 6 additions and 14 deletions

View File

@@ -589,17 +589,11 @@ figcaption {
/* Series list layout {{{ */ /* Series list layout {{{ */
.page-list.series { .page-list--series {
display: flex;
gap: 80px; gap: 80px;
flex-flow: row wrap;
list-style: none;
color: var(--text-0);
padding: 8px;
border-radius: 16px;
} }
.page-list.series-inner { .page-list--series-inner {
gap: 10px; gap: 10px;
flex-direction: row; flex-direction: row;
flex-flow: row wrap; flex-flow: row wrap;
@@ -608,7 +602,7 @@ figcaption {
padding: 8px; padding: 8px;
border-radius: 16px; border-radius: 16px;
} }
.page-list.series-inner > .summary-card { .page-list--series-inner > .summary-card {
flex: 1; flex: 1;
min-width: 49%; min-width: 49%;
} }

View File

@@ -13,7 +13,7 @@
</div> </div>
{{ end }} {{ end }}
<div class="page-list series-inner"> <div class="page-list page-list--series-inner">
{{ range .Data.Pages.Reverse }} {{ range .Data.Pages.Reverse }}
{{ .Render "summary" }} {{ .Render "summary" }}
{{ end }} {{ end }}

View File

@@ -10,12 +10,10 @@
{{ . }} {{ . }}
{{ end }} {{ end }}
<div class="page-list series"> <div class="page-list page-list--series">
{{ with .Paginator.Pages }} {{ with .Paginator.Pages }}
{{ range . }} {{ range . }}
<div class="page series"> {{ .Render "summary" }}
{{ .Render "summary" }}
</div>
{{ end }} {{ end }}
{{ else }} {{ else }}
<div> <div>