From 3a527d01dada11020f52b0f930b04294e022552b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Tue, 16 Jun 2015 19:43:22 +0200 Subject: [PATCH] Remove top margin for first heading in a post That is, if it's the first element in the post closes #6110 --- Changelog.md | 1 + app/assets/stylesheets/markdown-content.scss | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Changelog.md b/Changelog.md index 8cafbc3b7..e05551b6b 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,7 @@ ## Refactor * Update perfect-scrollbar [#6085](https://github.com/diaspora/diaspora/pull/6085) +* Remove top margin for first heading in a post [#6110](https://github.com/diaspora/diaspora/pull/6110) ## Bug fixes * Precompile facebox images [#6105](https://github.com/diaspora/diaspora/pull/6105) diff --git a/app/assets/stylesheets/markdown-content.scss b/app/assets/stylesheets/markdown-content.scss index 4d7d8e895..9caacef44 100644 --- a/app/assets/stylesheets/markdown-content.scss +++ b/app/assets/stylesheets/markdown-content.scss @@ -8,4 +8,10 @@ &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } } + + h1, h2, h3, h4, h5, h6 { + &:first-child { + margin-top: 0; + } + } }