Skip to content

Commit a4dbc5e

Browse files
committed
Remove extraneous blank lines in asciidoctor-anywhere-footnote.css.
Ensure top alignment for elements in `.anywhere-footnote-horizontal` definition lists.
1 parent 52b8b9a commit a4dbc5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/css/asciidoctor-anywhere-footnote.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@
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 */
4042
}
4143

4244
.anywhere-footnote-block .anywhere-footnote-horizontal.dlist {
@@ -49,25 +51,29 @@
4951
.anywhere-footnote-horizontal.dlist > dd {
5052
display: block;
5153
width: 100%;
54+
vertical-align: top; /* Added to ensure top alignment */
5255
}
5356

5457
/* Put the term and description on the same line but force a new line after each pair */
5558
.anywhere-footnote-horizontal.dlist > dt {
5659
display: inline-block;
5760
width: auto;
5861
margin-right: 0.5em;
62+
vertical-align: top; /* Reinforced top alignment */
5963
}
6064

6165
.anywhere-footnote-horizontal.dlist > dd {
6266
display: inline-block;
6367
width: auto;
6468
margin-bottom: 0.2em;
69+
vertical-align: top; /* Added to ensure top alignment */
6570
}
6671

6772
/* Force each dt+dd pair to be on a new line with less spacing */
6873
.anywhere-footnote-horizontal.dlist dt + dd {
6974
display: inline-block;
7075
margin-bottom: 0.3em;
76+
vertical-align: top; /* Added to ensure top alignment */
7177
}
7278

7379
/* Compact spacing between entries */

0 commit comments

Comments
 (0)