diff options
author | Daniele Sluijters <daenney@users.noreply.github.com> | 2022-10-01 16:27:34 +0300 |
---|---|---|
committer | Daniele Sluijters <daenney@users.noreply.github.com> | 2022-10-01 16:34:12 +0300 |
commit | 3ea67363346f103e676ee39203962d6f464949e3 (patch) | |
tree | 641a6e55c8865b2e27e8080bf086fbaa310b2871 | |
parent | 34aef1b69124c0e9de2e9b9f6622b646e25c66e2 (diff) |
Update to LaTeX.css
* Update to v1.7.1
* Remove all mentions of Libertinus since this theme doesn't ship that
font
-rw-r--r-- | static/css/latex.css | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/static/css/latex.css b/static/css/latex.css index 384d5d4..32e58bb 100644 --- a/static/css/latex.css +++ b/static/css/latex.css @@ -71,13 +71,14 @@ dd { margin: 0; } -/* Add smooth scrolling to anchors */ +/* Make default font-size 1rem and add smooth scrolling to anchors */ html { - scroll-behavior: smooth; + font-size: 1rem; } - -body.libertinus { - font-family: 'Libertinus', Georgia, Cambria, 'Times New Roman', Times, serif; +@media (prefers-reduced-motion: no-preference) { + html { + scroll-behavior: smooth; + } } body { @@ -101,9 +102,11 @@ body { } /* Justify and hyphenate all paragraphs */ -p { +p { text-align: justify; hyphens: auto; + -webkit-hyphens: auto; + -moz-hyphens: auto; margin-top: 1rem; } @@ -432,10 +435,15 @@ input.sidenote-toggle { .abstract, .abstract p { text-align: center; + margin-top: 0; } .abstract { margin: 2.25rem 0; } +.abstract > h2 { + font-size: 1rem; + margin-bottom: -0.2rem; +} /* Format the LaTeX symbol correctly (a higher up, e lower) */ .latex span:nth-child(1) { |