Skip to content

Commit e79d582

Browse files
CSS: style natural size images
1 parent e23f56f commit e79d582

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

css/components/elements/_media.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ img.contained {
2020
width: 100%;
2121
}
2222

23+
.image-box.image-box__auto-width img
24+
{
25+
max-width: 100%;
26+
width: auto;
27+
margin-left: auto;
28+
display: block;
29+
margin-right: auto;
30+
}
31+
2332
// ---------------------------------------------
2433
// images
2534
.ptx-content img, .ptx-content svg {

0 commit comments

Comments
 (0)