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:
parent
bff18523ef
commit
3a527d01da
2 changed files with 7 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
## Refactor
|
## Refactor
|
||||||
* Update perfect-scrollbar [#6085](https://github.com/diaspora/diaspora/pull/6085)
|
* 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
|
## Bug fixes
|
||||||
* Precompile facebox images [#6105](https://github.com/diaspora/diaspora/pull/6105)
|
* Precompile facebox images [#6105](https://github.com/diaspora/diaspora/pull/6105)
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,10 @@
|
||||||
&:first-child { margin-top: 0; }
|
&:first-child { margin-top: 0; }
|
||||||
&:last-child { margin-bottom: 0; }
|
&:last-child { margin-bottom: 0; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
&:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue