From f62e10b4b22a2fac473d4d816b629beed9911b76 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Tue, 6 Jul 2021 17:38:44 +0200 Subject: [PATCH] option to make text in the jumbotron white --- README.md | 3 ++- assets/scss/style.scss | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 17269df..0c6af91 100644 --- a/README.md +++ b/README.md @@ -204,10 +204,11 @@ subtitle: Some fancy subtitle image: /jumbotron_image.svg imagePosition: left # values: left, right, top, bottom background: /img/jumbotron_bg.png -backgroundVideo: /img/jumbotron_video.webm # will replace the background image +backgroundVideo: /jumbotron_video.webm # will replace the background image textShadow: false fullscreen: false downArrow: false +whiteText: false # force white text in the jumbotron links: - title: About me link: /pages/about diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 42ed39e..8a13a64 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -654,6 +654,11 @@ header { } } header.jumbotronContainer { + {{ if (.Site.Data.jumbotron.whiteText | default false) }} + &, *, > * { + color: white !important; + } + {{ end }} {{ if (.Site.Data.jumbotron.textShadow | default false) }} &, * { text-shadow: 0 0 5px rgba(0, 0, 0, .7);