From 352b889eae20e215e0037192b273ef0c92d5add2 Mon Sep 17 00:00:00 2001 From: Nishant Srivastava Date: Mon, 20 Jan 2020 19:32:44 +0100 Subject: [PATCH 1/2] fix size of showcase cards --- assets/sass/pages/_showcase.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/sass/pages/_showcase.scss b/assets/sass/pages/_showcase.scss index 1715d05..1bcb8e5 100644 --- a/assets/sass/pages/_showcase.scss +++ b/assets/sass/pages/_showcase.scss @@ -70,7 +70,7 @@ } &__box { - width: 47.5%; + width: 25%; height: auto; border-radius: 0.2rem; margin: 0.5rem; @@ -91,7 +91,7 @@ } } @media only screen and (max-width: 960px) { - width: 245px; + width: 35%; } &--wrapper { @@ -101,12 +101,12 @@ } &--dummy { - width: 47.5%; + width: 25%; margin: 0.5rem; @include flex-grow(1); @media only screen and (max-width: 960px) { - width: 245px; + width: 35%; } @media only screen and (max-width: 600px) { display: none; From 0df3f2ecbe2708c0847f63ea744dabc57d95db1e Mon Sep 17 00:00:00 2001 From: Nishant Srivastava Date: Mon, 20 Jan 2020 19:40:47 +0100 Subject: [PATCH 2/2] show thumbnail in the card only when it is set --- layouts/partials/showcase/show-section.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/showcase/show-section.html b/layouts/partials/showcase/show-section.html index a8b4a4d..f5d3c40 100644 --- a/layouts/partials/showcase/show-section.html +++ b/layouts/partials/showcase/show-section.html @@ -15,9 +15,11 @@ {{ .Title }} + {{ if (isset .Params "thumb") | or (eq .Params.thumb "") }} {{ .Title }} + {{ end }}
{{ .Description }}