From fea72bb147ee28d25a05ea1b0e785e766e30cede Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Wed, 4 Nov 2026 22:01:16 -0800 Subject: [PATCH 01/18] Restyle the blog index and posts as /community/ cards The blog banner stays as the one full-width band. Below it, the index and post pages sit on the /community/ canvas as white cards, the same treatment the homepage got. /blog/ shows one compact card per post with the homepage blog row text styles (title, date and authors, three-line description), the type filter beside an "All posts" kicker, and the Featured cards as panels. Post pages put the article and the sidebar in two white cards. The article markup and typography are unchanged; only blog-single.html's wrapper and the layout rules change. Signed-off-by: Madelyn Olson --- sass/_community.scss | 122 +++++++++++++++++++++++++++++++++++++ sass/_valkey.scss | 91 --------------------------- templates/blog-aside.html | 10 +-- templates/blog-single.html | 4 ++ templates/blog.html | 50 +++++++++------ 5 files changed, 164 insertions(+), 113 deletions(-) diff --git a/sass/_community.scss b/sass/_community.scss index 2e35c06c..5c204d29 100644 --- a/sass/_community.scss +++ b/sass/_community.scss @@ -622,3 +622,125 @@ $community-ink: #072150; line-height: 1.5; } } + +// Blog index and posts (templates/blog-aside.html, blog-single.html) -------- + +// Like the homepage: the banner is the one full-width band, and below it +// every block is a white card on .community-home-canvas. +.blog-index, +.blog-single { + display: grid; + grid-template-columns: minmax(0, 1fr); + gap: 2rem; + max-width: var(--max-width); + margin: 3.4rem auto; + + // Drop the generic .body main/aside column widths, padding and fills. + > main, + > aside { + width: auto; + max-width: none; + padding: 0; + background: none; + } +} + +// Featured stays on the left, as before. +.blog-index { + @include respond-min(1024px) { + grid-template-columns: 380px minmax(0, 1fr); + + > main { grid-area: 1 / 2; } + > aside { grid-area: 1 / 1; } + } + + // Same height as the head that holds the filter, so the two kickers line up. + .community-home-section-head { + min-height: 3.2rem; + } +} + +.blog-type-filters select { + padding: 0.5rem 1.2rem; + border: 1px solid #bfc6dd; + border-radius: 20px; + background: #fff; + color: #47506b; + font-size: 1.3rem; + font-weight: 700; + cursor: pointer; +} + +.blog-list { + display: grid; + gap: 1.4rem; + margin: 0; + padding: 0; + list-style: none; +} + +// The text inside uses the homepage blog row styles (.homepage-blog-card-*). +.blog-list-card { + @include community-panel; + display: block; + padding: 1.8rem 2.4rem; + text-decoration: none; + + &:hover .homepage-blog-card-title { + text-decoration: underline; + } + + &:focus-visible { + outline: 2px solid $community-blue-500; + outline-offset: 2px; + } + + .blog-type-badge { + margin-right: 0.4rem; + } +} + +.blog-no-results { + margin: 0; + color: #606985; + font-size: 1.5rem; +} + +.blog-featured-card { + @include community-panel; + overflow: hidden; + + &:last-child { + margin-bottom: 0; + } +} + +// The post is unchanged inside its card; the sidebar is a second card that +// keeps its own height. +.blog-single { + @include respond-min(1024px) { + grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); + align-items: start; + } + + .main-inner, + > aside { + @include community-panel; + padding: 2.2rem 2rem; + + @include respond-min(768px) { + padding: 2.7rem 3.4rem; + } + } + + > aside > :last-child { + margin-bottom: 0; + } + + .blog-authors h2 { + color: $community-blue-500; + font-size: 1.1rem; + font-weight: 800; + letter-spacing: 0.16em; + } +} diff --git a/sass/_valkey.scss b/sass/_valkey.scss index 5a785312..c5ff0a27 100644 --- a/sass/_valkey.scss +++ b/sass/_valkey.scss @@ -1072,20 +1072,6 @@ aside { } } -.blog-type-filters { - margin-bottom: 1.5rem; - - select { - padding: 0.4rem 1rem; - border-radius: 8px; - border: 1px solid $grey-lt-300; - background: $white; - color: $text; - font-size: 1.3rem; - cursor: pointer; - } -} - .sr-only { position: absolute; width: 1px; @@ -1113,53 +1099,15 @@ aside { &[data-type="Events"] { background-color: $red-100; } } -.blog-inner { - - .blog-list { - list-style: none; - margin: 0; - padding: 0; - - li { - background: #fff; - padding: 20px; - margin-bottom: 20px; - - h2 a { - color: #30176e; - margin: 0; - } - - a.link-readmore { - color: #747bff ; - } - - .meta { - margin-top: 2px; - } - } - } -} - .blog-featured { - h2 { - color: #30176e; - margin-bottom: 1rem; - font-size: 120%; - } - &-card { display: flex; - background: #fff; - border-radius: 10px; margin-bottom: 2rem; img { max-width: 50%; height: auto; object-fit: cover; - border-top-left-radius: 10px; - border-bottom-left-radius: 10px; } .info { @@ -1254,15 +1202,6 @@ aside { } .blog-single { - display: flex; - flex-wrap: wrap; - width: 100%; - background-color: #e2e8f0; - display: flex; - max-width: var(--max-width); - margin-left: auto; - margin-right: auto; - h2 { font-size: 1.5rem; margin: 0 0 0.25rem 0; @@ -1271,21 +1210,7 @@ aside { text-transform: uppercase; } - main { - flex: 1; - padding: 2rem; - width: 100%; - - @include respond-min(1024px) { - width: 67%; - } - } - .main-inner { - width: 100%; - background-color: #fff; - padding: 1rem 2rem 2rem; - .feature-img { object-fit: cover; width: 100%; @@ -1330,22 +1255,6 @@ aside { margin-bottom: 2rem; } } - - aside { - background-color: #f1f0fa; - padding: 2rem; - width: 100%; - - @include respond-min(768px) { - max-width: 33%; - } - } -} - -.blog-authors { - h2 { - color: #553c9a; - } } .author-container { diff --git a/templates/blog-aside.html b/templates/blog-aside.html index e1dc1978..472d8e58 100644 --- a/templates/blog-aside.html +++ b/templates/blog-aside.html @@ -2,14 +2,16 @@ {% block content %} {% block subhead_content %}{% endblock subhead_content %} -
+{# The banner is the one full-width band; everything below it sits on the + /community/ canvas. The layout is in the blog section of _community.scss. #} +
+
-
- {% block main_content %}{% endblock main_content %} -
+ {% block main_content %}{% endblock main_content %}
+
{% endblock content %} \ No newline at end of file diff --git a/templates/blog-single.html b/templates/blog-single.html index e968aed5..5feb6690 100644 --- a/templates/blog-single.html +++ b/templates/blog-single.html @@ -2,6 +2,9 @@ {% block content %} {% block subhead_content %}{% endblock subhead_content %} +{# The article and the sidebar are white cards on the /community/ canvas. + The layout is in the blog section of _community.scss. #} +
@@ -12,4 +15,5 @@ {% block related_content %}{% endblock related_content %}
+
{% endblock content %} \ No newline at end of file diff --git a/templates/blog.html b/templates/blog.html index bf567fb9..5480468b 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -8,29 +8,41 @@

{{ section.title }}

{% endblock subhead_content %} {% block main_content %} - {% set taxonomy = get_taxonomy(kind="blog_type", required=false) %} - {% if taxonomy %} -