X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=assets%2Fsass%2Fcomponents%2F_image.scss;fp=assets%2Fsass%2Fcomponents%2F_image.scss;h=67f156c0ce4cf3889a8c231a83016c3589415714;hb=f112ccc8035741a1158a3341f3a8fea1422e5377;hp=605208960bf3dc708287f93b2fc4f8066639e807;hpb=857826795354a7f12d4641111a455ceb4267732c;p=theme-danix.xyz.git diff --git a/assets/sass/components/_image.scss b/assets/sass/components/_image.scss index 6052089..67f156c 100644 --- a/assets/sass/components/_image.scss +++ b/assets/sass/components/_image.scss @@ -46,12 +46,16 @@ &.fit { display: block; - margin: 0 0 _size(element-margin) 0; - width: 100%; + margin: 0 auto _size(element-margin); + width: 90%; img { width: 100%; } + div.picture { + max-width: 100%; + height: auto; + } } &.main { @@ -61,6 +65,11 @@ img { width: 100%; + max-width: 100%; + } + div.picture { + max-width: 100%; + height: auto; } @include breakpoint('<=small') { @@ -147,4 +156,8 @@ overflow: hidden; } } + } + + div.picture { + display: inline-block; } \ No newline at end of file