Skip to content

Commit 0d2ddfd

Browse files
committed
Improve styling for .anywhere-footnote-horizontal definition lists in asciidoctor-anywhere-footnote stylesheet.
1 parent eece03b commit 0d2ddfd

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

src/css/asciidoctor-anywhere-footnote.css

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,62 @@
1616
margin: 0.5em 0; /* Standard HR margin */
1717
width: 20%;
1818
}
19+
20+
/* Updated CSS with anywhere-footnote-horizontal class */
21+
.anywhere-footnote-horizontal.dlist dt {
22+
display: inline-block;
23+
margin-right: 0.5em;
24+
vertical-align: top;
25+
margin-bottom: 0.2em;
26+
}
27+
28+
.anywhere-footnote-horizontal.dlist dd {
29+
display: inline-block;
30+
margin-left: 0;
31+
margin-right: 0;
32+
margin-bottom: 0.2em;
33+
width: calc(100% - 3em);
34+
}
35+
36+
.anywhere-footnote-horizontal.dlist dd p {
37+
display: inline;
38+
margin: 0;
39+
line-height: 1.2;
40+
}
41+
42+
.anywhere-footnote-block .anywhere-footnote-horizontal.dlist {
43+
margin-bottom: 0.5em;
44+
line-height: 1.3;
45+
}
46+
47+
/* Make each term-description pair appear on its own line */
48+
.anywhere-footnote-horizontal.dlist > dt,
49+
.anywhere-footnote-horizontal.dlist > dd {
50+
display: block;
51+
width: 100%;
52+
}
53+
54+
/* Put the term and description on the same line but force a new line after each pair */
55+
.anywhere-footnote-horizontal.dlist > dt {
56+
display: inline-block;
57+
width: auto;
58+
margin-right: 0.5em;
59+
}
60+
61+
.anywhere-footnote-horizontal.dlist > dd {
62+
display: inline-block;
63+
width: auto;
64+
margin-bottom: 0.2em;
65+
}
66+
67+
/* Force each dt+dd pair to be on a new line with less spacing */
68+
.anywhere-footnote-horizontal.dlist dt + dd {
69+
display: inline-block;
70+
margin-bottom: 0.3em;
71+
}
72+
73+
/* Compact spacing between entries */
74+
.anywhere-footnote-horizontal.dlist {
75+
margin-top: 0.3em;
76+
margin-bottom: 0.3em;
77+
}

0 commit comments

Comments
 (0)