提交 cafc4943 编写于 作者: K 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
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册