Varia: Add wc-wrapper-width variable.

This commit is contained in:
Allan Cole 2019-10-22 15:33:27 -04:00
parent 8ed87cea82
commit 8dc1c54820
5 changed files with 34 additions and 0 deletions

View file

@ -4,6 +4,9 @@
$config-woocommerce: (
/* Wrapper Width - accepts full, wide, or defuault */
"wrapper-width": default,
/* Tables */
"table": (
/* Borders */

View file

@ -4,6 +4,9 @@
$config-woocommerce: (
/* Wrapper Width - accepts full, wide, or defuault */
"wrapper-width": default,
/* Tables */
"table": (
/* Borders */

View file

@ -2,6 +2,28 @@
* Structure
*/
/**
* WooCommerce Wrapper Width
*/
body[class*="woocommerce"] #page .woocommerce,
body[class*="woocommerce"] #page #woocommerce-wrapper,
body[class*="woocommerce"] #page .woocommerce-Tabs-panel.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment) {
// Get wrapper width setting
$wc-wrapper-width: map-deep-get($config-woocommerce, "wrapper-width");
@if $wc-wrapper-width == wide {
@extend %responsive-alignwide-nested;
} @else if $wc-wrapper-width == full {
@extend %responsive-alignfull;
} @else {
// Default width
}
}
/**
* Vertical Space - 32px
*/

View file

@ -1185,6 +1185,9 @@ body[class*="woocommerce"] #page #reviews #comments .commentlist > li::before {
/**
* Structure
*/
/**
* WooCommerce Wrapper Width
*/
/**
* Vertical Space - 32px
*/

View file

@ -1185,6 +1185,9 @@ body[class*="woocommerce"] #page #reviews #comments .commentlist > li::before {
/**
* Structure
*/
/**
* WooCommerce Wrapper Width
*/
/**
* Vertical Space - 32px
*/