Skip to content

Commit ea8b6f6

Browse files
committed
Adjust footnote marker size and refactor .anywhere-footnote-horizontal styles for improved alignment and consistency.
Refine footnote marker alignment, remove unnecessary `!important` rules, and adjust bottom margin in `.anywhere-footnote-horizontal` entries for improved consistency. Streamline styles and spacing for `.anywhere-footnote-horizontal` definition lists in `asciidoctor-anywhere-footnote.css`. Remove extraneous blank lines in `asciidoctor-anywhere-footnote.css`. Ensure top alignment for elements in `.anywhere-footnote-horizontal` definition lists. 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 ea8b6f6

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
.anywhere-footnote-marker {
2+
vertical-align: super;
3+
font-size: 100%;
4+
text-decoration: none;
5+
}
6+
7+
.anywhere-footnote-block {
8+
text-decoration: none;
9+
}
10+
11+
.anywhere-footnote-hr-divider {
12+
height: 1px;
13+
background-color: #ccc; /* Standard gray color similar to default HR */
14+
border: none;
15+
margin: 0.5em 0; /* Standard HR margin */
16+
width: 20%;
17+
}
18+
19+
div.anywhere-footnote-horizontal dl {
20+
display: grid;
21+
grid-template-columns: 25px auto;
22+
grid-column-gap: 1px;
23+
}
24+
25+
/* Force each dt and dd to be on the same line */
26+
div.anywhere-footnote-horizontal dl > dt,
27+
div.anywhere-footnote-horizontal dl > dd {
28+
display: inline !important;
29+
vertical-align: top !important;
30+
margin: 0 !important;
31+
padding: 0 !important;
32+
}
33+
34+
/* Remove margins from paragraphs inside dd */
35+
div.anywhere-footnote-horizontal dl > dd p {
36+
display: inline;
37+
margin: 0;
38+
padding: 0;
39+
}

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)