Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/7ma7X/HugoTeX.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaito Sugimoto <hellorusk1998@gmail.com>2022-10-02 12:51:32 +0300
committerGitHub <noreply@github.com>2022-10-02 12:51:32 +0300
commit217cd785dd756f13269fb870caca51bfc65ca2aa (patch)
tree641a6e55c8865b2e27e8080bf086fbaa310b2871
parent34aef1b69124c0e9de2e9b9f6622b646e25c66e2 (diff)
parent3ea67363346f103e676ee39203962d6f464949e3 (diff)
Merge pull request #12 from daenney/update-cssHEADmaster
Update to LaTeX.css
-rw-r--r--static/css/latex.css20
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) {