Commit cafc4943 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '55703-md-image-borders' into 'master'

Only show borders around markdown images in notes

Closes #55703

See merge request gitlab-org/gitlab-ce!25448
parents 7b86f1a6 77ac026e
......@@ -149,14 +149,6 @@
margin: 10px 0;
}
// Border around images in issue and MR comments.
img:not(.emoji) {
border: 1px solid $white-normal;
padding: 5px;
margin: 5px 0;
// Ensure that image does not exceed viewport
max-height: calc(100vh - 100px);
}
table:not(.js-syntax-highlight) {
@include markdown-table;
......
......@@ -371,6 +371,16 @@ code {
.md:not(.use-csslab) {
@include md-typography;
&:not(.wiki) {
img:not(.emoji) {
border: 1px solid $white-normal;
padding: 5px;
margin: 5px 0;
// Ensure that image does not exceed viewport
max-height: calc(100vh - 100px);
}
}
}
/**
......
---
title: Only show borders for markdown images in notes
merge_request: 25448
author:
type: fixed
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