mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-10 14:01:22 -06:00
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:
parent
0a7be65c32
commit
b2581c19a6
@ -219,7 +219,7 @@
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
+ p {
|
||||
+ p:not(.label) {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user