Skip to content

Commit

Permalink
fix(blog): avoid overflow + double padding (#12508)
Browse files Browse the repository at this point in the history
* fix(blog): set max-width only on large screens

Only set `max-width: 52rem` on larger screens, 
to avoid overflow on smaller screens.

* fix(blog): avoid adding padding twice

Previously, we were adding 1rem of horizontal
padding both on `<main>` and `<article>`.

Now, we only add it on the `<article>`,
to be consistent with content pages.
  • Loading branch information
caugner authored Jan 24, 2025
1 parent 0a9f2aa commit e484c48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/src/blog/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
grid-template-areas:
"post"
"newsletter";
padding: 0;
width: 100%;

@media (min-width: $screen-lg) {
Expand Down Expand Up @@ -81,7 +82,10 @@

> .blog-post {
grid-area: post;
max-width: 52rem;

@media (min-width: $screen-lg) {
max-width: 52rem;
}

+ .section-newsletter h2 {
font: var(--type-heading-h3);
Expand Down

0 comments on commit e484c48

Please sign in to comment.