Skip to content

Commit efaa66a

Browse files
committed
Ensure top alignment for elements in .anywhere-footnote-horizontal definition lists.
1 parent 52b8b9a commit efaa66a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/css/asciidoctor-anywhere-footnote.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,15 @@
3131
margin-right: 0;
3232
margin-bottom: 0.2em;
3333
width: calc(100% - 3em);
34+
vertical-align: top; /* Added to ensure top alignment */
3435
}
3536

3637
.anywhere-footnote-horizontal.dlist dd p {
3738
display: inline;
3839
margin: 0;
3940
line-height: 1.2;
41+
vertical-align: top; /* Added to ensure top alignment */
42+
4043
}
4144

4245
.anywhere-footnote-block .anywhere-footnote-horizontal.dlist {
@@ -49,25 +52,33 @@
4952
.anywhere-footnote-horizontal.dlist > dd {
5053
display: block;
5154
width: 100%;
55+
vertical-align: top; /* Added to ensure top alignment */
56+
5257
}
5358

5459
/* Put the term and description on the same line but force a new line after each pair */
5560
.anywhere-footnote-horizontal.dlist > dt {
5661
display: inline-block;
5762
width: auto;
5863
margin-right: 0.5em;
64+
vertical-align: top; /* Reinforced top alignment */
65+
5966
}
6067

6168
.anywhere-footnote-horizontal.dlist > dd {
6269
display: inline-block;
6370
width: auto;
6471
margin-bottom: 0.2em;
72+
vertical-align: top; /* Added to ensure top alignment */
73+
6574
}
6675

6776
/* Force each dt+dd pair to be on a new line with less spacing */
6877
.anywhere-footnote-horizontal.dlist dt + dd {
6978
display: inline-block;
7079
margin-bottom: 0.3em;
80+
vertical-align: top; /* Added to ensure top alignment */
81+
7182
}
7283

7384
/* Compact spacing between entries */

0 commit comments

Comments
 (0)