Skip to content

Commit 1831f7e

Browse files
committed
fix: remove littlefoot for the moment
1 parent 110ec10 commit 1831f7e

File tree

3 files changed

+39
-28
lines changed

3 files changed

+39
-28
lines changed

Diff for: _includes/layout.pug

+29-21
Original file line numberDiff line numberDiff line change
@@ -146,24 +146,32 @@ body
146146
ml('account', '190754');
147147

148148
//- Littlefoot - Footnotes
149-
script(src="https://cdn.jsdelivr.net/npm/littlefoot@3.3/dist/littlefoot.min.js")
150-
script(type="application/javascript").
151-
littlefoot.default({
152-
buttonTemplate: `<sup
153-
aria-expanded="false"
154-
aria-label="Footnote <% number %>"
155-
class="footnote-ref">
156-
<a
157-
href="#<% reference %>"
158-
class="footnote-ref"
159-
id="<% reference %>"
160-
data-footnote-identifier="<% reference %>"
161-
data-footnote-style="default"
162-
alt="See Footnote <% number %>"
163-
rel="footnote"
164-
data-footnote-content="<% content %>">
165-
<% number %>
166-
</a></sup>`
167-
})
168-
Array.prototype.forEach.call(document.querySelectorAll('.footnotes.footnote-print-only, .footnotes .footnote-print-only'), e => e.classList.remove('footnote-print-only'))
169-
Array.prototype.forEach.call(document.querySelectorAll('.footnote-backref'), (el) => { el.href = el.href.replace('#', '#lf-') })
149+
//- script(src="https://cdn.jsdelivr.net/npm/littlefoot@4.1/dist/littlefoot.min.js")
150+
//- script(type="application/javascript").
151+
//- littlefoot.littlefoot({
152+
//- buttonTemplate: `button
153+
//- aria-label="Footnote <% number %>"
154+
//- class="littlefoot__button"
155+
//- id="<% reference %>"
156+
//- title="See Footnote <% number %>"
157+
//- />
158+
//- <% number %>
159+
//- </button>`
160+
//- //- buttonTemplate: `<sup
161+
//- //- aria-expanded="false"
162+
//- //- aria-label="Footnote <% number %>"
163+
//- //- class="footnote-ref">
164+
//- //- <a
165+
//- //- href="#<% reference %>"
166+
//- //- class="footnote-ref"
167+
//- //- id="<% reference %>"
168+
//- //- data-footnote-identifier="<% reference %>"
169+
//- //- data-footnote-style="default"
170+
//- //- alt="See Footnote <% number %>"
171+
//- //- rel="footnote"
172+
//- //- data-footnote-content="<% content %>">
173+
//- //- <% number %>
174+
//- //- </a></sup>`
175+
//- })
176+
//- Array.prototype.forEach.call(document.querySelectorAll('.footnotes.footnote-print-only, .footnotes .footnote-print-only'), e => e.classList.remove('footnote-print-only'))
177+
//- Array.prototype.forEach.call(document.querySelectorAll('.footnote-backref'), (el) => { el.href = el.href.replace('#', '#lf-') })

Diff for: assets/scss/_footnotes.scss

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
.footnotes {
22
font-size: var(--font-size-minus-2);
3+
4+
p {
5+
margin-bottom: 0;
6+
padding-bottom: 0;
7+
}
38
}
49

510
.footnote-ref {
@@ -9,14 +14,12 @@
914

1015
.footnote-ref a, .littlefoot-footnote__button {
1116
display: inline-block;
12-
font-size: var(--font-size-minus-1);
17+
font-size: var(--font-size-minus-2);
1318
margin-left: 0.2rem;
14-
border-radius: 1rem;
15-
min-width: 2rem;
19+
border-radius: .2rem;
20+
min-width: 1rem;
1621
text-align: center;
1722
text-decoration: none;
18-
// height: 1rem;
19-
// padding-top: 0.75em;
2023
-webkit-font-smoothing: antialiased;
2124
color: var(--color-white);
2225
background-color: var(--color-light);
@@ -54,4 +57,4 @@
5457
// }
5558
// .footnote-item.footnote-print-only {
5659
// display: list-item !important;
57-
// }
60+
// }

Diff for: assets/scss/style.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ body {
268268
}
269269

270270

271-
@import "../../node_modules/littlefoot/dist/littlefoot";
271+
// @import "https://cdn.jsdelivr.net/npm/littlefoot@4.1/dist/littlefoot.css";
272272
@import "_tables.scss";
273273
@import "_lists.scss";
274274
@import "_footnotes.scss";

0 commit comments

Comments
 (0)