Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #466 from brandonbk/embed-image-css
Browse files Browse the repository at this point in the history
Adjust embedded image css to address CLS issue
  • Loading branch information
brandonbk authored Oct 27, 2022
2 parents 98f4b95 + 500ad60 commit d153db6
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,32 +151,20 @@
clear: both;
}
}

&__content-body p {

[data-embed-type="image"][data-embed-align="right"] {
margin-bottom: 1rem;
@include media-breakpoint-up(md) {
text-align: right;
}
img {
width: auto;
min-width: auto;
max-width: 100%;
max-height: 300px;
}
}

[data-embed-type="image"][data-embed-align="left"] {
margin-bottom: 1rem;
@include media-breakpoint-up(md) {
text-align: left;
}
img {
width: auto;
min-width: auto;
max-width: 100%;
max-height: 300px;
}
}
}

Expand Down

0 comments on commit d153db6

Please sign in to comment.