1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

All: Fixed top margin issue on note rendering

This commit is contained in:
Laurent Cozic 2020-03-06 18:57:46 +00:00
parent 51ce7c939d
commit 40eba9e95e

View File

@ -52,23 +52,20 @@ module.exports = function(style, options) {
}
/* Remove top padding and margin from first child so that top of rendered text is aligned to top of text editor text */
/* Disabled, because it also applies to non-direct descendants of #rendered-md and also not a very elegant solution */
/*
#rendered-md h1:first-child,
#rendered-md h2:first-child,
#rendered-md h3:first-child,
#rendered-md h4:first-child,
#rendered-md ul:first-child,
#rendered-md ol:first-child,
#rendered-md table:first-child,
#rendered-md blockquote:first-child,
#rendered-md img:first-child,
#rendered-md p:first-child {
#rendered-md > h1:first-child,
#rendered-md > h2:first-child,
#rendered-md > h3:first-child,
#rendered-md > h4:first-child,
#rendered-md > ul:first-child,
#rendered-md > ol:first-child,
#rendered-md > table:first-child,
#rendered-md > blockquote:first-child,
#rendered-md > img:first-child,
#rendered-md > p:first-child {
margin-top: 0;
padding-top: 0;
}
*/
p, h1, h2, h3, h4, h5, h6, ul, table {
margin-top: .6em;