Skip to content

Commit

Permalink
fix: footnote mathjax size
Browse files Browse the repository at this point in the history
  • Loading branch information
arzola committed Oct 21, 2024
1 parent 81d1c48 commit aa98a73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions assets/styles/components/specials/_footnotes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@
text-transform: if-map-get($footnote-text-transform, $type);
counter-increment: footnote;
footnote-style-position: outside;
}

.footnotes {
font-size: if-map-get($footnote-font-size, $type);
.mathjax {
width: $footnote-mathjax-width;
padding-bottom: $footnote-mathjax-padding-bottom;
}
}


// Footnote & Endnote number markers (in body text)

.endnote::footnote-call,
Expand Down Expand Up @@ -79,6 +80,9 @@

.footnotes {
font-size: if-map-get($footnote-font-size, $type);
.mathjax {
padding-bottom: $footnote-mathjax-padding-bottom;
}
}
}

Expand Down
1 change: 1 addition & 0 deletions assets/styles/variables/_specials.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ $footnote-blockquote-font-size: 0.95em !default;
$footnote-number-marker-font-size: $sup-sub-font-size !default;
$footnote-number-marker-line-height: $sup-sub-line-height !default;
$footnote-mathjax-width: 3em !default;
$footnote-mathjax-max-width: 5em !default;
$footnote-mathjax-padding-bottom: 0.4em !default;

// Endnotes
Expand Down

0 comments on commit aa98a73

Please sign in to comment.