From e6e01e3ea1c92b0febeb4d18f570fb8d1272ca9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20F=2E=20Gonz=C3=A1lez?= Date: Sat, 29 Oct 2022 13:20:12 +0100 Subject: [PATCH 1/3] Set width and height for all images --- assets/css/casestudies.css | 6 ++++++ layouts/partials/casestudies.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/assets/css/casestudies.css b/assets/css/casestudies.css index 4693ec1409..575a81658e 100644 --- a/assets/css/casestudies.css +++ b/assets/css/casestudies.css @@ -38,6 +38,12 @@ text-transform: uppercase; } +.casestudies-box-content img { + object-fit: cover; + width: 350px; + height: 218.5px; +} + .casestudies-box-text { margin: 30px 15px; font-size: 14px; diff --git a/layouts/partials/casestudies.html b/layouts/partials/casestudies.html index 1667176ad5..a1ebf93654 100644 --- a/layouts/partials/casestudies.html +++ b/layouts/partials/casestudies.html @@ -8,7 +8,7 @@

{{ $title }}

{{- range $features }}
{{ .title }}
- {{ .alttext }} + {{ .alttext }}
{{ .text | markdownify }}
{{- end }} From a35bc5c38faa6d1a311d32d56729d1c675dcb841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20F=2E=20Gonz=C3=A1lez?= Date: Sat, 29 Oct 2022 15:06:33 +0100 Subject: [PATCH 2/3] Set `height` to double of `line-height` --- assets/css/casestudies.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/css/casestudies.css b/assets/css/casestudies.css index 575a81658e..6779c26376 100644 --- a/assets/css/casestudies.css +++ b/assets/css/casestudies.css @@ -33,6 +33,8 @@ } .casestudies-box-title { + line-height: 1.5em; + height: 3.0em; margin: 15px; font-size: 16px; text-transform: uppercase; @@ -45,7 +47,7 @@ } .casestudies-box-text { - margin: 30px 15px; + margin: 30px 15px auto 15px; font-size: 14px; } From 592b23ec1a99bba56e12a6eee36e751d15e95e1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20F=2E=20Gonz=C3=A1lez?= Date: Sat, 29 Oct 2022 15:20:14 +0100 Subject: [PATCH 3/3] Remove auto bottom margin --- assets/css/casestudies.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/casestudies.css b/assets/css/casestudies.css index 6779c26376..7ccde865c3 100644 --- a/assets/css/casestudies.css +++ b/assets/css/casestudies.css @@ -47,7 +47,7 @@ } .casestudies-box-text { - margin: 30px 15px auto 15px; + margin: 30px 15px; font-size: 14px; }