Adds WooCommerce plugin file paths.

Related Pull Request #1191
This commit is contained in:
Jeffrey Pearce 2017-08-25 16:52:26 +02:00
parent af3353c783
commit db7f3ed04f
2 changed files with 14 additions and 5 deletions

View File

@ -4,6 +4,12 @@ Theme Name: _s
WooCommerce styles override 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 * WooCommerce color variables
*/ */
@ -22,11 +28,11 @@ $woocommerce__color-info: #3D9CD2;
*/ */
@font-face { @font-face {
font-family: 'star'; font-family: 'star';
src: url('../../plugins/woocommerce/assets/fonts/star.eot'); src: url('#{$woocommerce__plugin-assets-font-path}star.eot');
src: url('../../plugins/woocommerce/assets/fonts/star.eot?#iefix') format('embedded-opentype'), src: url('#{$woocommerce__plugin-assets-font-path}star.eot?#iefix') format('embedded-opentype'),
url('../../plugins/woocommerce/assets/fonts/star.woff') format('woff'), url('#{$woocommerce__plugin-assets-font-path}star.woff') format('woff'),
url('../../plugins/woocommerce/assets/fonts/star.ttf') format('truetype'), url('#{$woocommerce__plugin-assets-font-path}star.ttf') format('truetype'),
url('../../plugins/woocommerce/assets/fonts/star.svg#star') format('svg'); url('#{$woocommerce__plugin-assets-font-path}star.svg#star') format('svg');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }

View File

@ -3,6 +3,9 @@ Theme Name: _s
WooCommerce styles override WooCommerce styles override
*/ */
/**
* WooCommerce Plugin path variables
*/
/** /**
* WooCommerce color variables * WooCommerce color variables
*/ */