hugo-PaperMod/assets
Richard Si 81e86113d6
Add margin top to certain elements surrounded by code blocks for consistency
Take this structure:

<div .highlight>
<p>

<div .highlight>

The current post-single CSS adds margin to the bottom of the paragraph
and that's it. This works great when the previous element also got the
same amount of bottom margin, however code blocks do not! The end result
looks similar to the figure above.

This commit fixes this adding top margin to elements (as needed) that come
immediately after a code block (they have the .highlight class). The
amount of top margin added is the same they already get on the bottom.
2023-01-08 14:50:26 -05:00
..
css Add margin top to certain elements surrounded by code blocks for consistency 2023-01-08 14:50:26 -05:00
js Use Nullish Coalescing Operator with Fastsearch (#1033) 2022-09-02 21:32:32 +05:30