Skip to content

Commit 991df5b

Browse files
committed
Streamline styles and spacing for .anywhere-footnote-horizontal definition lists in asciidoctor-anywhere-footnote.css.
1 parent a4dbc5e commit 991df5b

File tree

1 file changed

+23
-53
lines changed

1 file changed

+23
-53
lines changed
Lines changed: 23 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
.anywhere-footnote-marker {
2-
vertical-align: super;
32
font-size: 90%;
43
text-decoration: none;
54
}
65

76
.anywhere-footnote-block {
8-
vertical-align: super;
97
text-decoration: none;
108
}
119

@@ -17,67 +15,39 @@
1715
width: 20%;
1816
}
1917

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;
18+
/* Reset and base styles */
19+
.anywhere-footnote-horizontal.dlist {
20+
margin: 0.5em 0;
2621
}
2722

23+
/* Force each dt and dd to be on the same line */
24+
.anywhere-footnote-horizontal.dlist dt,
2825
.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-
vertical-align: top; /* Added to ensure top alignment */
26+
display: inline !important;
27+
vertical-align: top !important;
3528
}
3629

37-
.anywhere-footnote-horizontal.dlist dd p {
38-
display: inline;
39-
margin: 0;
40-
line-height: 1.2;
41-
vertical-align: top; /* Added to ensure top alignment */
30+
/* Add a narrow gap between dt and dd */
31+
.anywhere-footnote-horizontal.dlist dt {
32+
margin-right: 0.2em !important;
4233
}
4334

44-
.anywhere-footnote-block .anywhere-footnote-horizontal.dlist {
45-
margin-bottom: 0.5em;
46-
line-height: 1.3;
35+
/* Force a line break after each dd */
36+
.anywhere-footnote-horizontal.dlist dd {
37+
margin: 0 !important;
38+
padding: 0 !important;
4739
}
4840

49-
/* Make each term-description pair appear on its own line */
50-
.anywhere-footnote-horizontal.dlist > dt,
51-
.anywhere-footnote-horizontal.dlist > dd {
41+
/* Create a line break after each entry */
42+
.anywhere-footnote-horizontal.dlist dd::after {
43+
content: '';
5244
display: block;
53-
width: 100%;
54-
vertical-align: top; /* Added to ensure top alignment */
55-
}
56-
57-
/* Put the term and description on the same line but force a new line after each pair */
58-
.anywhere-footnote-horizontal.dlist > dt {
59-
display: inline-block;
60-
width: auto;
61-
margin-right: 0.5em;
62-
vertical-align: top; /* Reinforced top alignment */
45+
margin-bottom: 0.4em;
6346
}
6447

65-
.anywhere-footnote-horizontal.dlist > dd {
66-
display: inline-block;
67-
width: auto;
68-
margin-bottom: 0.2em;
69-
vertical-align: top; /* Added to ensure top alignment */
70-
}
71-
72-
/* Force each dt+dd pair to be on a new line with less spacing */
73-
.anywhere-footnote-horizontal.dlist dt + dd {
74-
display: inline-block;
75-
margin-bottom: 0.3em;
76-
vertical-align: top; /* Added to ensure top alignment */
77-
}
78-
79-
/* Compact spacing between entries */
80-
.anywhere-footnote-horizontal.dlist {
81-
margin-top: 0.3em;
82-
margin-bottom: 0.3em;
48+
/* Remove margins from paragraphs inside dd */
49+
.anywhere-footnote-horizontal.dlist dd p {
50+
display: inline !important;
51+
margin: 0 !important;
52+
padding: 0 !important;
8353
}

0 commit comments

Comments
 (0)