From 703d7c4dd60c97da7b73e36a1b3e70390c2877c8 Mon Sep 17 00:00:00 2001 From: Kris Date: Mon, 25 Oct 2021 10:45:40 -0400 Subject: [PATCH] FEATURE: replace background setting with upload (#7) --- common/common.scss | 5 ++++- settings.yml | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/common/common.scss b/common/common.scss index b9e3a69..46a79af 100644 --- a/common/common.scss +++ b/common/common.scss @@ -8,7 +8,7 @@ $max-width: 600px; } } -.custom-search-banner-wrap { +.search-banner { @if $background-image != "none" { background-image: url($background-image); } @else { @@ -20,6 +20,9 @@ $max-width: 600px; background-size: cover; background-repeat: no-repeat; } +} + +.custom-search-banner-wrap { box-sizing: border-box; position: relative; padding: 2.5em 0 3em; diff --git a/settings.yml b/settings.yml index fde4dd4..854629a 100644 --- a/settings.yml +++ b/settings.yml @@ -15,9 +15,9 @@ plugin_outlet: - below-site-header background_image: - type: string - default: none - description: Enter an image url + type: upload + default: "" + description: background image for the banner tile_background_image: false