diff --git a/CHANGELOG.md b/CHANGELOG.md index 40e8a02536334ff90aa99db6f9a525fb9e2ea015..f1e7da501f2d71f7825b1719f4b48dcb9bf56576 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * When a post has an `image_header` parameter this image is set as an attachment to ActivityPub posts +* Fixed some poor CSS rendering for quote-box. ## 2.1.0 diff --git a/layouts/shortcodes/quote-box.html b/layouts/shortcodes/quote-box.html index 178400cfafe6cf6eba3cae5e50342c381cf9e699..3a6739e7b4993d1e96b47685c916eb01f873ca8d 100644 --- a/layouts/shortcodes/quote-box.html +++ b/layouts/shortcodes/quote-box.html @@ -2,5 +2,5 @@ <blockquote> {{ .Inner }} </blockquote> - <cite>{{ .Get "source" }}</cite> + {{ if .Get "source" }}<cite>{{ .Get "source" }}</cite>{{ end }} </div> diff --git a/static/css/main.css b/static/css/main.css index 35f2a14982d4351ed531bf5a23d40f34abf076a4..61351ce4a5c02dfcf88be225aea361d0732e0df1 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -603,6 +603,11 @@ p { overflow: auto; } +section { + margin-top: 3em; + margin-bottom: 3em; +} + @-webkit-keyframes nprogress-spinner{ 0%{ -webkit-transform:rotate(0) @@ -2267,7 +2272,7 @@ div#ch-tooltip { .quote-box > blockquote:after { content: 'â€'; - right: -5rem; + right: 0; bottom: 1rem; }