Skip to content

Commit

Permalink
Fix bug where an aligned media embed with large images breaks out of …
Browse files Browse the repository at this point in the history
…container.
  • Loading branch information
kimisgold committed Feb 26, 2024
1 parent 362d67b commit f3304de
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/asset/css/page-blocks.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion application/asset/css/page-grid.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions application/asset/sass/page-blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,16 @@
.block-layout-alignment-block-left .item.resource:not(:last-child),
.block-layout-alignment-block-right .item.resource:not(:last-child) {
margin-bottom: $spacing-large;
}

.block-layout-alignment-block-left .item.resource,
.block-layout-alignment-block-right .item.resource {
margin-right: $spacing-large;

.media-render:not(:last-child) {
margin-bottom: $spacing-small;
}

.media-render a {
display: block;
}
Expand All @@ -51,7 +59,6 @@
img {
max-width: 100%;
vertical-align: bottom;
margin-bottom: .5rem;
}
}

Expand Down Expand Up @@ -283,7 +290,7 @@
}

.site-thumbnail-image {
max-width: 25%;
max-height: 3 * $base-line-height;
float: left;
margin-right: 1rem;
}
Expand Down
6 changes: 6 additions & 0 deletions application/asset/sass/page-grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
justify-self: center;
}

.page-layout-grid .block-layout-alignment-block-center,
.page-layout-grid .block-layout-alignment-block-left,
.page-layout-grid .block-layout-alignment-block-right {
max-width: 100%;
}

@media screen and (max-width:896px) {
.page-layout-grid {
display: block;
Expand Down

0 comments on commit f3304de

Please sign in to comment.