Set line-height to 1 for a <p> with only an <img> child
This is an (annoying) quirk of how Hugo renders Markdown. Sometimes images are embedded in <p> tags, even if the <img> element is produced by a shortcode.
This commit is contained in:
parent
0672ba0740
commit
15cb817dd3
1 changed files with 4 additions and 0 deletions
|
@ -84,6 +84,10 @@ h4 {
|
|||
|
||||
p {
|
||||
letter-spacing: 0.01em;
|
||||
|
||||
:has(img:only-child) {
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
|
||||
sup {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue