Fix vertical alignment for consecutive labels (#893)

Fixes a problem where multiple labels right after a heading are vertically misaligned.

Closes #751.
This commit is contained in:
Eisverygoodletter 2022-07-26 11:41:31 +08:00 committed by GitHub
parent 0a7be65c32
commit b2581c19a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 1 deletions

View File

@ -219,7 +219,7 @@
margin-top: 1em;
}
+ p {
+ p:not(.label) {
margin-top: 0;
}
}

View File

@ -186,6 +186,29 @@ Some text
"[Wroclaw University Library digitizing rare archival texts](https://www.flickr.com/photos/97810305@N08/9401451269)" by [j_cadmus](https://www.flickr.com/photos/97810305@N08) is marked with [CC BY 2.0](https://creativecommons.org/licenses/by/2.0/?ref=openverse).
### Labels
I'm a label
{: .label }
blue
{: .label .label-blue }
green
{: .label .label-green }
purple
{: .label .label-purple }
yellow
{: .label .label-yellow }
red
{: .label .label-red }
**bold**
{: .label }
*italic*
{: .label }
***bold + italic***
{: .label }
### Definition lists can be used with HTML syntax.
<dl>