From cd6897a8374c13b00e4225d4535f1fedb049e3ea Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Tue, 2 Mar 2021 22:57:13 -0600 Subject: [PATCH] fix line breaks for english text seems like the original text justification was designed for chinese text? --- go.mod | 3 +++ static/css/style.css | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 go.mod diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..6b2fe6d --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/jordanorelli/hugo-theme-mini + +go 1.15 diff --git a/static/css/style.css b/static/css/style.css index 96279bc..611320c 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -81,11 +81,11 @@ p { margin-block-start: 1.5em; margin-block-end: 1.5em; } -p, -pre { - line-break: anywhere; - word-break: break-all; + +p, pre { + text-align: justify; } + .markdown-image img { max-width: 100%; } @@ -500,4 +500,4 @@ nav.navigation a.button { position: relative; top: 1px; color: #bbb; -} \ No newline at end of file +}