Hello, I find it very tiering on the eyes to have a large block of text even if the actual paragraphs are delimited by soft-breaks inside a multi-line block.
I inspected the code behind such a block and I see that it is a div with class “is-paragraph” and the soft-breaks are actually done with <br>. I have no idea if or how to achieve in CSS so these <br> inside <div class="is-paragraph"> to get extra height to them so the actual paragraphs in the text are a bit more airy.
PS: it would be awesome if the gap between the Block Header and the Block Body would get the same gap for a consistent look… maybe do some styling of the
Hey, thanks for replying. I actually want to increase the space in between two soft-break delimited paragraphs inside one block. The Logseq Dev Tools shows that thesre are <br>s in between soft-breaks. What I am thinking is this:
if a <br> follows (is inside) a <div class="is-paragraph"> then have that <br> extra high -somehow
What you suggested just increases the spacein between all lines in every paragraph (which can be nice with large texts)
.is-paragraph > br {
margin-top: 20px; /* Adjust the value as needed */
display: block; /* Ensures proper spacing */
content: '\A'; /* Injects a line break using generated content */
white-space: pre; /* Preserves whitespace */
}
.block-body {
margin-top: 20px; /* Adjust the margin as needed */
}
I couldn’t manage to increase the bottom space of the block title but managed to increase the margin-top of the .block-body which achieves the same thing, namely to increase the distance between the first block paragraph and the other paragraphs in the block’s body.
The difference is huge in readability of long-form blocks:
This is how I’ve done it, though I don’t make a lot of use of breaks within a block, so I don’t know how useful it is for your needs. It applies padding to the bottom of the initial span.inline, and all following paragraphs. Haven’t found a need to be more specific yet, but haven’t tested for edge-cases. You may not need the !important for the padding. I did because of other hacky junk I’m doing