Skip to content

Commit 3b9abbf

Browse files
author
Oleg Zinoviev
committed
MAGETWO-31855: UI improvements
- fluid images
1 parent 226800f commit 3b9abbf

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

app/design/frontend/Magento/blank/Magento_Theme/web/css/source/module.less

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,6 @@ body {
202202

203203
.widget {
204204
clear: both;
205-
img {
206-
max-width: 100%;
207-
}
208205
.block-title {
209206
&:extend(.abs-block-title all);
210207
}

app/design/frontend/Magento/luma/Magento_Theme/web/css/source/module.less

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,6 @@ body {
365365

366366
.widget {
367367
clear: both;
368-
img {
369-
max-width: 100%;
370-
}
371368
.block-title {
372369
&:extend(.abs-block-widget-title all);
373370
}

lib/web/css/source/lib/resets.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@
4343

4444
img {
4545
border: 0;
46+
max-width: 100%;
47+
height: auto;
48+
}
49+
50+
object,
51+
video,
52+
embed {
53+
max-width: 100%;
54+
height: auto;
4655
}
4756

4857
svg:not(:root) {

lib/web/mage/gallery.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
background: @page-bg-color;
6262
.zoom.inner > img {
6363
position: absolute;
64+
max-width: none;
6465
}
6566
}
6667

0 commit comments

Comments
 (0)