From f0ebea1d1d8905b6b3a2f7f52039c9a60d88ff75 Mon Sep 17 00:00:00 2001 From: Christian Hollinger Date: Sat, 8 Apr 2023 15:05:44 -0400 Subject: [PATCH] minor: Figures, Quote CSS adjustments --- layouts/shortcodes/figure.html | 39 ++++++++++++++++++++++++---------- static/css/main.css | 12 +++++++++-- 2 files changed, 38 insertions(+), 13 deletions(-) diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index e89f326..8fb2c0c 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -1,18 +1,35 @@
{{ with .Get "link" }}{{ end }} - + {{ if .Get "link" }}{{ end }} + {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr") }} -
{{ if isset .Params "title" }} - {{ .Get "title" }}{{ end }} - {{ if or (.Get "caption") (.Get "attr") }}

- {{ .Get "caption" }} - {{ with .Get "attrlink" }} {{ end }} - {{ .Get "attr" }} - {{ if .Get "attrlink" }} {{ end }} -

{{ end }} -
+
+ {{ if isset .Params "title" }} + {{ .Get "title" }} + {{ end }} + + {{ if or (.Get "caption") (.Get "attr") }} +

+ {{ .Get "caption" }} + + + {{ with .Get "attrlink" }} + + {{ end }} + {{ if .Get "attr" }} + + [{{ .Get "attr" }}] + + {{ end }} + {{ if .Get "attrlink" }} + {{ end }} + +

+ {{ end }} +
{{ end }}
- \ No newline at end of file + diff --git a/static/css/main.css b/static/css/main.css index 7fa2173..6801f25 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -106,11 +106,11 @@ textarea { blockquote { margin-left: 1rem; font-style: italic; - font-size: 1.4rem; + font-size: 1.1rem; font-family: Georgia, bitstream charter, serif; border-left: 3px solid; border-color: #3700ff; - padding-left: 20px; + padding-left: 15px; } blockquote cite { @@ -122,6 +122,10 @@ blockquote em { font-weight: 600; } +blockquote code { + font-size: 0.8rem; +} + h1, h2, h3, h4, h5, h6 { color: #333; @@ -514,3 +518,7 @@ code:not(pre *) { background-color: rgb(239, 241, 243); font-size: 95%; } + +code { + font-size: 0.8rem; +}