From 1bf8e9938160c626160aa77245a054ba15fae488 Mon Sep 17 00:00:00 2001 From: "louismaxime.piton" Date: Thu, 23 Feb 2023 09:39:57 +0100 Subject: [PATCH 1/3] Adding the picture icon when text to display is `"false"` --- site/layouts/shortcodes/placeholder.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/site/layouts/shortcodes/placeholder.html b/site/layouts/shortcodes/placeholder.html index 2d38e9d2a1..7ca0a26760 100644 --- a/site/layouts/shortcodes/placeholder.html +++ b/site/layouts/shortcodes/placeholder.html @@ -39,6 +39,10 @@ {{- end -}} From 0b1c0a358fcdf45b624b5c7d4ca2b691d66cee94 Mon Sep 17 00:00:00 2001 From: "louismaxime.piton" Date: Thu, 23 Feb 2023 10:31:14 +0100 Subject: [PATCH 2/3] Implement opacity and a mechanism to make it appear only when wanted --- site/content/docs/5.3/components/placeholders.md | 4 ++-- site/layouts/shortcodes/placeholder.html | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/site/content/docs/5.3/components/placeholders.md b/site/content/docs/5.3/components/placeholders.md index 60b4303bf4..7ebb5d79ba 100644 --- a/site/content/docs/5.3/components/placeholders.md +++ b/site/content/docs/5.3/components/placeholders.md @@ -19,7 +19,7 @@ In the example below, we take a typical card component and recreate it with plac
- {{< placeholder width="100%" height="180" class="card-img-top" text="false" background="#20c997" >}} + {{< placeholder width="100%" height="180" class="card-img-top" text="icon" background="#20c997" >}}
Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

@@ -28,7 +28,7 @@ In the example below, we take a typical card component and recreate it with plac