Commit 1d389b36 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch 'ps-fix-max-width-img-files' into 'master'

Fix max-width img for files not lazy loading

See merge request gitlab-org/gitlab!78933
parents b1c02119 1ced5a19
...@@ -47,6 +47,10 @@ ...@@ -47,6 +47,10 @@
margin-bottom: $gl-spacing-scale-2; margin-bottom: $gl-spacing-scale-2;
} }
img {
max-width: 100%;
}
img:not(.emoji) { img:not(.emoji) {
margin: 0 0 8px; margin: 0 0 8px;
} }
...@@ -62,7 +66,6 @@ ...@@ -62,7 +66,6 @@
min-width: inherit; min-width: inherit;
min-height: inherit; min-height: inherit;
background-color: inherit; background-color: inherit;
max-width: 100%;
} }
&:not(.md) img:not(.emoji) { &:not(.md) img:not(.emoji) {
...@@ -375,7 +378,8 @@ ...@@ -375,7 +378,8 @@
// Loose lists need bottom margin added back // Loose lists need bottom margin added back
p ~ ol, p ~ ol,
p ~ ul { p ~ ul {
margin-bottom: 16px; } margin-bottom: 16px;
}
} }
ul:dir(rtl), ul:dir(rtl),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment