From 3ea67363346f103e676ee39203962d6f464949e3 Mon Sep 17 00:00:00 2001 From: Daniele Sluijters Date: Sat, 1 Oct 2022 15:27:34 +0200 Subject: Update to LaTeX.css * Update to v1.7.1 * Remove all mentions of Libertinus since this theme doesn't ship that font --- static/css/latex.css | 20 ++++++++++++++------ 1 file 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) { -- cgit v1.2.3