From 80b23500323e3bc13d3bc9ff1ca1bd191d84f3d1 Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Mon, 6 May 2019 19:52:43 +0200 Subject: [PATCH] WIP #2684 @1 --- wp-content/themes/c6/package.json | 5 ++--- .../assets/styles/common/utilities.styl | 6 ++++++ .../assets/styles/widgets/image-box.styl | 20 +++++++++++-------- wp-content/themes/c6/yarn.lock | 5 ----- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/wp-content/themes/c6/package.json b/wp-content/themes/c6/package.json index 46a110e..199c1b2 100644 --- a/wp-content/themes/c6/package.json +++ b/wp-content/themes/c6/package.json @@ -66,6 +66,7 @@ "sass-loader": "~6.0", "sidr": "^2.2.1", "simple-scrollspy": "^2.0.1", + "smooth-scroll": "^16.0.3", "style-loader": "^0.22.1", "stylelint": "^8.4.0", "stylelint-config-standard": "~18.2.0", @@ -82,8 +83,6 @@ "yargs": "~11.0.0" }, "dependencies": { - "gumshoejs": "^5.1.1", - "jquery": "^3.3.1", - "smooth-scroll": "^16.0.3" + "jquery": "^3.3.1" } } diff --git a/wp-content/themes/c6/resources/assets/styles/common/utilities.styl b/wp-content/themes/c6/resources/assets/styles/common/utilities.styl index 45cd5cc..657459f 100644 --- a/wp-content/themes/c6/resources/assets/styles/common/utilities.styl +++ b/wp-content/themes/c6/resources/assets/styles/common/utilities.styl @@ -13,6 +13,12 @@ .pb0 > .elementor-widget-container padding-bottom: 0 !important +// Padding helpers (mostly used for ad hoc elements that need to line up with text blocks) +// Dots in class names need to be escaped... +.pl-7\\.5vw + constrain(padding-left, 7.5vw) +.pr-7\\.5vw + constrain(padding-right, 7.5vw) .font-smoothing font-smoothing() diff --git a/wp-content/themes/c6/resources/assets/styles/widgets/image-box.styl b/wp-content/themes/c6/resources/assets/styles/widgets/image-box.styl index ce99098..e3f06ab 100644 --- a/wp-content/themes/c6/resources/assets/styles/widgets/image-box.styl +++ b/wp-content/themes/c6/resources/assets/styles/widgets/image-box.styl @@ -1,9 +1,13 @@ // Elementor Image Box -.elementor-image-box - &-title - font-size: 24px - text-align: left - - &-description - font-size: 16px - text-align: left +.elementor-widget-image-box + + .elementor-image-box + + &-wrapper + text-align: left + + &-title + font-size: 24px + + &-description + font-size: 16px diff --git a/wp-content/themes/c6/yarn.lock b/wp-content/themes/c6/yarn.lock index e2a3514..fa7bbd7 100644 --- a/wp-content/themes/c6/yarn.lock +++ b/wp-content/themes/c6/yarn.lock @@ -4171,11 +4171,6 @@ gulplog@^1.0.0: dependencies: glogg "^1.0.0" -gumshoejs@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/gumshoejs/-/gumshoejs-5.1.1.tgz#b67564fdec7bd8be8e2eaf02cc01f7c9fd7f8ce0" - integrity sha512-aQvXoMH/EbYGf7aRtpKhyvrYpBw7X+nMvdBg/dH3TOeqeM5BsDQKVaDRVsiv2AqLLj26h/WMBUsYgjT4oyIGKg== - har-schema@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" -- 2.39.5