Skip to content

Commit

Permalink
Update blog page CSS to ensure it has margins even on small viewports…
Browse files Browse the repository at this point in the history
…; adjust top spacing to allow for breadcrumbs being present (or not) (#403)
  • Loading branch information
stevejalim authored Jun 15, 2024
1 parent d9af35c commit 3a9cfcb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ Nothing yet

Nothing yet

## [1.8.4]

### Changed

* Move .env-example file to root dir to make it easier to find
* Fix padding for Blog posts, including when no breadcrumbs are present

## [1.8.3]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion birdbox/microsite/templates/microsite/blog_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

{% breadcrumbs page %}

<div class="{% get_layout_class_from_page %}">
<div class="mzp-l-content {% if page.specific.show_breadcrumbs %}page-has-breadcrumbs {% endif %} {% get_layout_class_from_page %}">
<article class="bb-c-article">
<h1 class="bb-c-article-title">{{page.title}}</h1>

Expand Down
5 changes: 5 additions & 0 deletions src/css/blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
padding-bottom: $layout-md;
}


.blog-tags-list {
list-style: none;
}
Expand Down Expand Up @@ -50,3 +51,7 @@
margin-top: $spacing-xl;
margin-left: 0;
}

.blogpost .mzp-l-content.page-has-breadcrumbs{
padding-top: 0;
}

0 comments on commit 3a9cfcb

Please sign in to comment.