Specifying an explicit height requires `height: auto` to be set via CSS, otherwise scaling through `max-width: 100%` does not preserve the image's aspect ratio.
.boxImage {
img {
+ height: auto;
max-width: 100%;
}
}
@include clearfix;
img {
+ height: auto;
max-width: 100%;
}
img {
backface-visibility: hidden;
+ height: auto;
max-width: 100%;
opacity: 0.85;
transform: translate3d(0, 0, 0);
.embeddedImageLink {
border: 1px solid $wcfContentBorderInner;
display: inline-block;
+ height: auto;
margin: 2px 0;
max-width: 100%;
min-height: 48px;
/* Prevent images in comments in the sidebar box from becoming too large */
.sidebarCommentContent {
img {
+ height: auto;
max-width: 100%;
max-height: 300px;
}
}
img {
+ height: auto;
max-width: 100%;
&:not(.smiley) {