From 18ae2268f36fab32a145763127ca3070c0fd0527 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 2 Oct 2019 21:18:34 +0100 Subject: [PATCH] feat: add bg size, position, and parallax options to Widget Pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #  Options are `cover` (default), `contain`, or `actual` size. image_size = "actual" # Options include `left`, `center` (default), or `right`. image_position = "right" # Use a fun parallax-like fixed background effect? true/false image_parallax = true See #1377 --- assets/sass/academic/_widgets.scss | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/sass/academic/_widgets.scss b/assets/sass/academic/_widgets.scss index c71d9116..22ae50c8 100644 --- a/assets/sass/academic/_widgets.scss +++ b/assets/sass/academic/_widgets.scss @@ -55,15 +55,19 @@ top: 100%; }*/ -/* Create the parallax scrolling effect */ -.parallax { - height: 100%; - background-attachment: fixed; +/* Default background image properties for home sections. */ +.home-section.bg-image { background-position: center; background-repeat: no-repeat; background-size: cover; } +/* Create a parallax-like scrolling effect. */ +.parallax { + height: 100%; + background-attachment: fixed; +} + .home-section:first-of-type { padding-top: 50px; }