From db7f3ed04f028fbe3f4f9241643b4a6fb1c32f88 Mon Sep 17 00:00:00 2001 From: Jeffrey Pearce Date: Fri, 25 Aug 2017 16:52:26 +0200 Subject: [PATCH] Adds WooCommerce plugin file paths. Related Pull Request #1191 --- sass/woocommerce.scss | 16 +++++++++++----- woocommerce.css | 3 +++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/sass/woocommerce.scss b/sass/woocommerce.scss index 2d259d39..6a67e2eb 100644 --- a/sass/woocommerce.scss +++ b/sass/woocommerce.scss @@ -4,6 +4,12 @@ Theme Name: _s WooCommerce styles override */ +/** + * WooCommerce Plugin path variables + */ +$woocommerce__plugin-path: '../../plugins/woocommerce/'; +$woocommerce__plugin-assets-font-path: '#{$woocommerce__plugin-path}assets/fonts/'; + /** * WooCommerce color variables */ @@ -22,11 +28,11 @@ $woocommerce__color-info: #3D9CD2; */ @font-face { font-family: 'star'; - src: url('../../plugins/woocommerce/assets/fonts/star.eot'); - src: url('../../plugins/woocommerce/assets/fonts/star.eot?#iefix') format('embedded-opentype'), - url('../../plugins/woocommerce/assets/fonts/star.woff') format('woff'), - url('../../plugins/woocommerce/assets/fonts/star.ttf') format('truetype'), - url('../../plugins/woocommerce/assets/fonts/star.svg#star') format('svg'); + src: url('#{$woocommerce__plugin-assets-font-path}star.eot'); + src: url('#{$woocommerce__plugin-assets-font-path}star.eot?#iefix') format('embedded-opentype'), + url('#{$woocommerce__plugin-assets-font-path}star.woff') format('woff'), + url('#{$woocommerce__plugin-assets-font-path}star.ttf') format('truetype'), + url('#{$woocommerce__plugin-assets-font-path}star.svg#star') format('svg'); font-weight: normal; font-style: normal; } diff --git a/woocommerce.css b/woocommerce.css index d9aa9c53..c3dcbac8 100644 --- a/woocommerce.css +++ b/woocommerce.css @@ -3,6 +3,9 @@ Theme Name: _s WooCommerce styles override */ +/** + * WooCommerce Plugin path variables + */ /** * WooCommerce color variables */