Skip to content

Commit c1df224

Browse files
committed
fix(blog): ensure post body images and layout are correctly contained
1 parent 24bbdf9 commit c1df224

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

_sass/_p_base_layout.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,8 @@ section {
708708
line-height: 1.6;
709709
font-size: 1.125rem;
710710
color: $text;
711+
max-width: 100%;
712+
overflow-x: hidden;
711713

712714
p, ul, ol {
713715
margin-bottom: 1.5rem;
@@ -722,6 +724,13 @@ section {
722724
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
723725
}
724726

727+
/* Specific handling for the first image if it is a hero image */
728+
> p:first-child img,
729+
> img:first-child {
730+
margin-top: 1rem;
731+
margin-bottom: 3rem;
732+
}
733+
725734
h2, h3, h4 {
726735
margin-top: 2.5rem;
727736
margin-bottom: 1rem;

0 commit comments

Comments
 (0)