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 81e3abf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions assets/styles/components/specials/_footnotes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@
counter-increment: footnote;
footnote-style-position: outside;

.mathjax {
width: $footnote-mathjax-width;
padding-bottom: $footnote-mathjax-padding-bottom;
.footnotes {
.mathjax {
min-width: $footnote-mathjax-width;
padding-bottom: $footnote-mathjax-padding-bottom;
}
}
}

Expand Down Expand Up @@ -79,6 +81,10 @@

.footnotes {
font-size: if-map-get($footnote-font-size, $type);
.mathjax {
min-width: $footnote-mathjax-width;
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 81e3abf

Please sign in to comment.