Remove top margin for first heading in a post

That is, if it's the first element in the post

closes #6110
This commit is contained in:
Jonne Haß 2015-06-16 19:43:22 +02:00 committed by Steffen van Bergerem
parent bff18523ef
commit 3a527d01da
2 changed files with 7 additions and 0 deletions

View file

@ -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)

View file

@ -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;
}
}
}