From 97733a7e109fc087ac3de1756b0ec45b5ea37f51 Mon Sep 17 00:00:00 2001 From: paspo Date: Sun, 28 Jul 2024 07:51:49 +0200 Subject: [PATCH] fix dimensione immagini didascalie su mobile --- assets/sass/custom.scss | 7 +++---- layouts/_default/_markup/render-image.html | 2 +- layouts/_default/single.html | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/assets/sass/custom.scss b/assets/sass/custom.scss index 5afa16d..42b9f06 100644 --- a/assets/sass/custom.scss +++ b/assets/sass/custom.scss @@ -43,17 +43,16 @@ @include breakpoint('<=narrower') { #logo-text-wrapper { display: none; } #titleBar { background-color: rgb(124,124,124); } - #content article img { - max-width: 100% - } } +#content article img { max-width: 100%; } + figure { display: inline-block; } figcaption { - width: 100%; + width: auto; text-align: center; font-size: smaller; font-style: italic; diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 8f81634..46512be 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -29,7 +29,7 @@ {{- end -}}> {{- with $figcaption -}}
{{- . -}}
{{- end -}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0a62559..329073c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -35,7 +35,7 @@ {{ .Params.image_alt }} {{- end -}} {{- with .Params.image_caption -}} -
{{- . | markdownify -}}
+
{{- . | markdownify -}}
{{- end -}} {{ end }}