From 18bb6dc68e63d2940e0f84f3dd944f6d02c8b3c8 Mon Sep 17 00:00:00 2001 From: Eorn Date: Wed, 4 Nov 2020 18:19:16 +0100 Subject: [PATCH] updated how quotes are handled --- layouts/shortcodes/quote.html | 4 ++++ static/css/style.css | 18 ++++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 layouts/shortcodes/quote.html diff --git a/layouts/shortcodes/quote.html b/layouts/shortcodes/quote.html new file mode 100644 index 0000000..26486ca --- /dev/null +++ b/layouts/shortcodes/quote.html @@ -0,0 +1,4 @@ +
+

{{ .Inner | markdownify }}

+ {{ with .Get "caption" }}

{{ . | markdownify }}

{{ end }} +
diff --git a/static/css/style.css b/static/css/style.css index 8bb3682..b466ec5 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -362,9 +362,23 @@ article .post-content { .page-content blockquote { border: 1px dashed grey; + background-color: #2c2f31; + max-width: 80%; + margin: auto; +} +.page-content blockquote p { padding-right: 15px; padding-left: 15px; - background-color: #2c2f31; +} + +.page-content blockquote p.quotecaption { + text-align: right; + font-size: 15px; + border-top: 1px dashed grey; + margin-top: 0px; + margin-bottom: 0px; + padding-bottom: 10px; + padding-top: 10px; } @@ -434,12 +448,12 @@ figure img { max-width: 100%; } - figure.audiofig audio { width: 90%; align: center; } + .center { text-align: center; }