forked from tsc-vfl/hugo-page
Fix image styling in news and teaser image
This commit is contained in:
parent
eb374366a9
commit
6a8ece286f
@ -589,6 +589,9 @@ h1 {
|
|||||||
|
|
||||||
img {
|
img {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
height: 100%;
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
object-position: left top;
|
object-position: left top;
|
||||||
}
|
}
|
||||||
@ -720,6 +723,11 @@ h1 {
|
|||||||
.tsc-image {
|
.tsc-image {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tsc-gallery {
|
.tsc-gallery {
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
{{ $resource := .Page.Resources.Get $filename -}}
|
{{ $resource := .Page.Resources.Get $filename -}}
|
||||||
src="{{ $resource.RelPermalink }}"
|
src="{{ $resource.RelPermalink }}"
|
||||||
style="
|
style="
|
||||||
{{- with .Get "width" -}}width: {{.}}px;{{- end -}}
|
{{- with .Get "width" -}}max-width: min(90%, {{.}}px);{{- end -}}
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{ with .Get "href" }}
|
{{ with .Get "href" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user