|
1 | 1 | .anywhere-footnote-marker {
|
2 |
| - vertical-align: super; |
3 | 2 | font-size: 90%;
|
4 | 3 | text-decoration: none;
|
5 | 4 | }
|
6 | 5 |
|
7 | 6 | .anywhere-footnote-block {
|
8 |
| - vertical-align: super; |
9 | 7 | text-decoration: none;
|
10 | 8 | }
|
11 | 9 |
|
|
17 | 15 | width: 20%;
|
18 | 16 | }
|
19 | 17 |
|
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; |
26 | 21 | }
|
27 | 22 |
|
| 23 | +/* Force each dt and dd to be on the same line */ |
| 24 | +.anywhere-footnote-horizontal.dlist dt, |
28 | 25 | .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; |
35 | 28 | }
|
36 | 29 |
|
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; |
42 | 33 | }
|
43 | 34 |
|
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; |
47 | 39 | }
|
48 | 40 |
|
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: ''; |
52 | 44 | 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; |
63 | 46 | }
|
64 | 47 |
|
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; |
83 | 53 | }
|
0 commit comments