Skip to content

Commit 52b8b9a

Browse files
committed
Improve styling for .anywhere-footnote-horizontal definition lists in asciidoctor-anywhere-footnote stylesheet.
Adjusted separator size in anywhere footnote. Adjust footnote marker size and improve HR divider styling in asciidoctor-anywhere-footnote stylesheet. Adding stylesheet for the asciidoctor-anywhere-footnote extension.
1 parent 0debf3d commit 52b8b9a

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
.anywhere-footnote-marker {
2+
vertical-align: super;
3+
font-size: 90%;
4+
text-decoration: none;
5+
}
6+
7+
.anywhere-footnote-block {
8+
vertical-align: super;
9+
text-decoration: none;
10+
}
11+
12+
.anywhere-footnote-hr-divider {
13+
height: 1px;
14+
background-color: #ccc; /* Standard gray color similar to default HR */
15+
border: none;
16+
margin: 0.5em 0; /* Standard HR margin */
17+
width: 20%;
18+
}
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+
}

src/css/site.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@
3434
@import "external-link-icon.css";
3535
@import "disable-callouts.css";
3636
@import "asciidoctor-external-callout.css";
37+
@import "asciidoctor-anywhere-footnote.css";
3738
@import "info-banner.css";
3839
@import "chatbot.css";

0 commit comments

Comments
 (0)