summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2017-01-19 20:24:51 +0000
committerFatih Acet <acetfatih@gmail.com>2017-01-19 20:24:51 +0000
commitbb56a1fec806341ab8e9ed0dc444f8eb1734111a (patch)
tree7428b8bff4777cc9affe9c24196dfb234f6baf21
parentf1568d71f073165c86668bd09c1d228cbb6d474b (diff)
parent047107a4ab7d04efa8c30367d39ec896685dcd43 (diff)
downloadgitlab-ce-bb56a1fec806341ab8e9ed0dc444f8eb1734111a.tar.gz
Merge branch '26472-math-margin' into 'master'
Add margin to math blocks Closes #26472 See merge request !8543
-rw-r--r--app/assets/stylesheets/framework/typography.scss2
-rw-r--r--changelogs/unreleased/26472-math-margin.yml4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/stylesheets/framework/typography.scss b/app/assets/stylesheets/framework/typography.scss
index bd58a26f429..54958973f15 100644
--- a/app/assets/stylesheets/framework/typography.scss
+++ b/app/assets/stylesheets/framework/typography.scss
@@ -10,7 +10,7 @@
max-width: 100%;
}
- *:first-child {
+ *:first-child:not(.katex-display) {
margin-top: 0;
}
diff --git a/changelogs/unreleased/26472-math-margin.yml b/changelogs/unreleased/26472-math-margin.yml
new file mode 100644
index 00000000000..3999f521558
--- /dev/null
+++ b/changelogs/unreleased/26472-math-margin.yml
@@ -0,0 +1,4 @@
+---
+title: Add margin to markdown math blocks
+merge_request:
+author: