From 62e34182677479fb9ab6a0b15fb62b82ebd97e6f Mon Sep 17 00:00:00 2001 From: Birgir E Date: Sun, 16 Sep 2018 12:09:50 +0000 Subject: [PATCH 01/98] init --- tests/unit-tests/product/functions.php | 28 +++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/unit-tests/product/functions.php b/tests/unit-tests/product/functions.php index 2ed98fed51e..4ec1ccd06fc 100644 --- a/tests/unit-tests/product/functions.php +++ b/tests/unit-tests/product/functions.php @@ -49,7 +49,7 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { $draft->set_status( 'draft' ); $draft->save(); - $this->assertEquals( 9, count( wc_get_products( array( 'return' => 'ids' ) ) ) ); + $this->assertCount( 9, wc_get_products( array( 'return' => 'ids' ) ) ); // Test status. $products = wc_get_products( @@ -67,7 +67,7 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { 'type' => 'variation', ) ); - $this->assertEquals( 2, count( $products ) ); + $this->assertCount( 2, $products ); // Test parent. $products = wc_get_products( @@ -77,7 +77,7 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { 'parent' => $variation->get_id(), ) ); - $this->assertEquals( 2, count( $products ) ); + $this->assertCount( 2, $products ); // Test parent_exclude. $products = wc_get_products( @@ -87,7 +87,7 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { 'parent_exclude' => array( $variation->get_id() ), ) ); - $this->assertEquals( 0, count( $products ) ); + $this->assertCount( 0, $products ); // Test skus. $products = wc_get_products( @@ -96,7 +96,7 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { 'sku' => 'GET TEST SKU', ) ); - $this->assertEquals( 2, count( $products ) ); + $this->assertCount( 2, $products ); $this->assertContains( $product->get_id(), $products ); $this->assertContains( $external->get_id(), $products ); @@ -107,7 +107,7 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { 'category' => array( $term_cat_1->slug ), ) ); - $this->assertEquals( 3, count( $products ) ); + $this->assertCount( 3, $products ); // Test tags. $products = wc_get_products( @@ -116,7 +116,7 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { 'tag' => array( $term_tag_1->slug ), ) ); - $this->assertEquals( 2, count( $products ) ); + $this->assertCount( 2, $products ); $products = wc_get_products( array( @@ -124,7 +124,7 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { 'tag' => array( $term_tag_2->slug ), ) ); - $this->assertEquals( 1, count( $products ) ); + $this->assertCount( 1, $products ); $products = wc_get_products( array( @@ -132,7 +132,7 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { 'tag' => array( $term_tag_1->slug, $term_tag_2->slug ), ) ); - $this->assertEquals( 3, count( $products ) ); + $this->assertCount( 3, $products ); // Test limit. $products = wc_get_products( @@ -141,7 +141,7 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { 'limit' => 5, ) ); - $this->assertEquals( 5, count( $products ) ); + $this->assertCount( 5, $products ); // Test offset. $products = wc_get_products( @@ -157,8 +157,8 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { 'offset' => 2, ) ); - $this->assertEquals( 2, count( $products ) ); - $this->assertEquals( 2, count( $products_offset ) ); + $this->assertCount( 2, $products ); + $this->assertCount( 2, $products_offset ); $this->assertNotEquals( $products, $products_offset ); // Test page. @@ -175,8 +175,8 @@ class WC_Tests_Product_Functions extends WC_Unit_Test_Case { 'page' => 2, ) ); - $this->assertEquals( 2, count( $products_page_1 ) ); - $this->assertEquals( 2, count( $products_page_2 ) ); + $this->assertCount( 2, $products_page_1 ); + $this->assertCount( 2, $products_page_2 ); $this->assertNotEquals( $products_page_1, $products_page_2 ); // Test exclude. From 9bd4a8957f8b652d10a94f11c2ca7366626b5ef5 Mon Sep 17 00:00:00 2001 From: Kanishk Date: Thu, 25 Oct 2018 15:27:04 +0530 Subject: [PATCH 02/98] Purged plugin and theme cache so that the helper can detect locally installed plugins and themes --- includes/admin/helper/class-wc-helper.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/includes/admin/helper/class-wc-helper.php b/includes/admin/helper/class-wc-helper.php index 7f05b4c5be4..754973741e0 100644 --- a/includes/admin/helper/class-wc-helper.php +++ b/includes/admin/helper/class-wc-helper.php @@ -1026,6 +1026,12 @@ class WC_Helper { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } + /** + * Clean the plugins cache since self::extra_headers() adds an additional plugin header + * which needs to be parsed for detecting locally installed Woo plugins + */ + wp_clean_plugins_cache(); + $plugins = get_plugins(); $woo_plugins = array(); @@ -1068,6 +1074,13 @@ class WC_Helper { * Get locally installed Woo themes. */ public static function get_local_woo_themes() { + + /** + * Clean the themes cache since self::extra_headers() adds an additional theme header + * which needs to be parsed for detecting locally installed Woo themes + */ + wp_clean_themes_cache(); + $themes = wp_get_themes(); $woo_themes = array(); From e275bf2b1d6c747b939e6270c021c0f81df70102 Mon Sep 17 00:00:00 2001 From: nishitlangaliya Date: Sat, 27 Oct 2018 11:20:21 -0800 Subject: [PATCH 03/98] fix: Various 'Table does not exist' in WooCommerce status --- includes/api/v2/class-wc-rest-system-status-v2-controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/v2/class-wc-rest-system-status-v2-controller.php b/includes/api/v2/class-wc-rest-system-status-v2-controller.php index ced5e273f96..d44a503fc22 100644 --- a/includes/api/v2/class-wc-rest-system-status-v2-controller.php +++ b/includes/api/v2/class-wc-rest-system-status-v2-controller.php @@ -721,10 +721,10 @@ class WC_REST_System_Status_V2_Controller extends WC_REST_Controller { 'index' => 0, ); - $site_tables = $wpdb->tables( 'all', true ); + $site_tables_prefix = $wpdb->get_blog_prefix( get_current_blog_id() ); foreach ( $database_table_sizes as $table ) { // Only include tables matching the prefix of the current site, this is to prevent displaying all tables on a MS install not relating to the current. - if ( is_multisite() && ! in_array( $table->name, $site_tables, true ) ) { + if ( is_multisite() && 0 !== strpos( $table->name, $site_tables_prefix ) ) { continue; } $table_type = in_array( $table->name, $core_tables ) ? 'woocommerce' : 'other'; From 2c642f38800b8b9472eb8f13ea9ed286bbfdf250 Mon Sep 17 00:00:00 2001 From: Kanishk Date: Sun, 28 Oct 2018 16:55:07 +0530 Subject: [PATCH 04/98] Cleaned cache right after filters are added --- includes/admin/helper/class-wc-helper.php | 25 +++++++++++------------ 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/includes/admin/helper/class-wc-helper.php b/includes/admin/helper/class-wc-helper.php index 754973741e0..ab5b4573352 100644 --- a/includes/admin/helper/class-wc-helper.php +++ b/includes/admin/helper/class-wc-helper.php @@ -35,6 +35,18 @@ class WC_Helper { add_filter( 'extra_plugin_headers', array( __CLASS__, 'extra_headers' ) ); add_filter( 'extra_theme_headers', array( __CLASS__, 'extra_headers' ) ); + /** + * Clean the plugins cache since self::extra_headers() adds an additional plugin header + * which needs to be parsed for detecting locally installed Woo plugins + */ + wp_clean_plugins_cache(); + + /** + * Clean the themes cache since self::extra_headers() adds an additional theme header + * which needs to be parsed for detecting locally installed Woo themes + */ + wp_clean_themes_cache(); + // Attempt to toggle subscription state upon plugin activation/deactivation add_action( 'activated_plugin', array( __CLASS__, 'activated_plugin' ) ); add_action( 'deactivated_plugin', array( __CLASS__, 'deactivated_plugin' ) ); @@ -1026,12 +1038,6 @@ class WC_Helper { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } - /** - * Clean the plugins cache since self::extra_headers() adds an additional plugin header - * which needs to be parsed for detecting locally installed Woo plugins - */ - wp_clean_plugins_cache(); - $plugins = get_plugins(); $woo_plugins = array(); @@ -1074,13 +1080,6 @@ class WC_Helper { * Get locally installed Woo themes. */ public static function get_local_woo_themes() { - - /** - * Clean the themes cache since self::extra_headers() adds an additional theme header - * which needs to be parsed for detecting locally installed Woo themes - */ - wp_clean_themes_cache(); - $themes = wp_get_themes(); $woo_themes = array(); From 427d7df7fb86772c724c7348d68cf91811d80f2c Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Mon, 29 Oct 2018 11:10:09 -0300 Subject: [PATCH 05/98] Introduce WC_Admin_Notices::is_ssl(), add SSL check to dashboard SSL notice --- includes/admin/class-wc-admin-notices.php | 24 +++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/includes/admin/class-wc-admin-notices.php b/includes/admin/class-wc-admin-notices.php index a96a6fd7812..fc2ec0f58ce 100644 --- a/includes/admin/class-wc-admin-notices.php +++ b/includes/admin/class-wc-admin-notices.php @@ -83,17 +83,16 @@ class WC_Admin_Notices { public static function reset_admin_notices() { $simplify_options = get_option( 'woocommerce_simplify_commerce_settings', array() ); $location = wc_get_base_location(); - $shop_page = 0 < wc_get_page_id( 'shop' ) ? get_permalink( wc_get_page_id( 'shop' ) ) : get_home_url(); if ( ! class_exists( 'WC_Gateway_Simplify_Commerce_Loader' ) && ! empty( $simplify_options['enabled'] ) && 'yes' === $simplify_options['enabled'] && in_array( $location['country'], apply_filters( 'woocommerce_gateway_simplify_commerce_supported_countries', array( 'US', 'IE' ) ), true ) ) { - WC_Admin_Notices::add_notice( 'simplify_commerce' ); + self::add_notice( 'simplify_commerce' ); } - if ( ! is_ssl() || 'https' !== substr( $shop_page, 0, 5 ) ) { - WC_Admin_Notices::add_notice( 'no_secure_connection' ); + if ( ! self::is_ssl() ) { + self::add_notice( 'no_secure_connection' ); } - WC_Admin_Notices::add_wootenberg_feature_plugin_notice(); + self::add_wootenberg_feature_plugin_notice(); self::add_notice( 'template_files' ); } @@ -354,7 +353,7 @@ class WC_Admin_Notices { * Notice about secure connection. */ public static function secure_connection_notice() { - if ( get_user_meta( get_current_user_id(), 'dismissed_no_secure_connection_notice', true ) ) { + if ( self::is_ssl() || get_user_meta( get_current_user_id(), 'dismissed_no_secure_connection_notice', true ) ) { return; } @@ -396,6 +395,19 @@ class WC_Admin_Notices { include dirname( __FILE__ ) . '/views/html-notice-wootenberg.php'; } + + /** + * Determine if the store is running SSL. + * + * @return bool Flag SSL enabled. + * @since 3.5.1 + */ + protected static function is_ssl() { + $shop_page = 0 < wc_get_page_id( 'shop' ) ? get_permalink( wc_get_page_id( 'shop' ) ) : get_home_url(); + + return ( is_ssl() && 'https' === substr( $shop_page, 0, 5 ) ); + } + } WC_Admin_Notices::init(); From e7b9056c581bf163594adce00943dfa1658e1b14 Mon Sep 17 00:00:00 2001 From: nishitlangaliya Date: Tue, 30 Oct 2018 20:50:09 +0530 Subject: [PATCH 06/98] fix: global table included along with multisite tables --- includes/api/v2/class-wc-rest-system-status-v2-controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/api/v2/class-wc-rest-system-status-v2-controller.php b/includes/api/v2/class-wc-rest-system-status-v2-controller.php index d44a503fc22..40308030720 100644 --- a/includes/api/v2/class-wc-rest-system-status-v2-controller.php +++ b/includes/api/v2/class-wc-rest-system-status-v2-controller.php @@ -722,9 +722,10 @@ class WC_REST_System_Status_V2_Controller extends WC_REST_Controller { ); $site_tables_prefix = $wpdb->get_blog_prefix( get_current_blog_id() ); + $global_tables = $wpdb->tables( 'global', true ); foreach ( $database_table_sizes as $table ) { // Only include tables matching the prefix of the current site, this is to prevent displaying all tables on a MS install not relating to the current. - if ( is_multisite() && 0 !== strpos( $table->name, $site_tables_prefix ) ) { + if ( is_multisite() && 0 !== strpos( $table->name, $site_tables_prefix ) && ! in_array( $table->name, $global_tables, true ) ) { continue; } $table_type = in_array( $table->name, $core_tables ) ? 'woocommerce' : 'other'; From 17c43ffa5d5fd1622ef963a5d090140a8bf21492 Mon Sep 17 00:00:00 2001 From: Jeremy Madison Date: Fri, 2 Nov 2018 12:25:58 -0700 Subject: [PATCH 07/98] Add woocommerce_hold_stock_minutes check back to calculation --- includes/class-wc-cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-cart.php b/includes/class-wc-cart.php index 124d7ab7c8b..f24c70c3359 100644 --- a/includes/class-wc-cart.php +++ b/includes/class-wc-cart.php @@ -778,7 +778,7 @@ class WC_Cart extends WC_Legacy_Cart { } // Check stock based on all items in the cart and consider any held stock within pending orders. - $held_stock = wc_get_held_stock_quantity( $product, $current_session_order_id ); + $held_stock = ( $hold_stock_minutes > 0 ) ? wc_get_held_stock_quantity( $product, $current_session_order_id ) : 0; $required_stock = $product_qty_in_cart[ $product->get_stock_managed_by_id() ]; if ( $product->get_stock_quantity() < ( $held_stock + $required_stock ) ) { From b5d52909e2fd0158c05a7eac255c5ee90c43aa95 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Tue, 6 Nov 2018 10:47:06 -0400 Subject: [PATCH 08/98] update lost password filter name in password confirmation template --- templates/myaccount/lost-password-confirmation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/myaccount/lost-password-confirmation.php b/templates/myaccount/lost-password-confirmation.php index d0dee8673f1..32b4e3453cb 100644 --- a/templates/myaccount/lost-password-confirmation.php +++ b/templates/myaccount/lost-password-confirmation.php @@ -12,7 +12,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce/Templates - * @version 3.5.0 + * @version 3.5.2 */ if ( ! defined( 'ABSPATH' ) ) { @@ -22,4 +22,4 @@ if ( ! defined( 'ABSPATH' ) ) { wc_print_notice( __( 'Password reset email has been sent.', 'woocommerce' ) ); ?> -

+

From 510d3a756f1c28d9d74430c6fa797dc944d792ab Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Tue, 6 Nov 2018 15:28:23 -0500 Subject: [PATCH 09/98] Reintroduce Preview button on products --- includes/admin/meta-boxes/views/html-product-data-panel.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/includes/admin/meta-boxes/views/html-product-data-panel.php b/includes/admin/meta-boxes/views/html-product-data-panel.php index f8ca25952ce..5fd93719b65 100644 --- a/includes/admin/meta-boxes/views/html-product-data-panel.php +++ b/includes/admin/meta-boxes/views/html-product-data-panel.php @@ -10,11 +10,6 @@ if ( ! defined( 'ABSPATH' ) ) { } ?> - - -
From d09e9eb95cb3652f10b58f83a3f6576c29af65af Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Thu, 15 Nov 2018 11:42:22 -0800 Subject: [PATCH 30/98] Use wp_kses_post for sanitizing product names instead of esc_html --- includes/admin/meta-boxes/views/html-order-item.php | 2 +- templates/content-widget-product.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/admin/meta-boxes/views/html-order-item.php b/includes/admin/meta-boxes/views/html-order-item.php index 3879f7b3ad6..f6c5e0b742b 100644 --- a/includes/admin/meta-boxes/views/html-order-item.php +++ b/includes/admin/meta-boxes/views/html-order-item.php @@ -19,7 +19,7 @@ $row_class = apply_filters( 'woocommerce_admin_html_order_item_class', ! empt ' . esc_html( $item->get_name() ) . '' : '
' . esc_html( $item->get_name() ) . '
'; + echo $product_link ? '' . wp_kses_post( $item->get_name() ) . '' : '
' . wp_kses_post( $item->get_name() ) . '
'; if ( $product && $product->get_sku() ) { echo '
' . esc_html__( 'SKU:', 'woocommerce' ) . ' ' . esc_html( $product->get_sku() ) . '
'; diff --git a/templates/content-widget-product.php b/templates/content-widget-product.php index f69dbac96db..35e12f3540c 100644 --- a/templates/content-widget-product.php +++ b/templates/content-widget-product.php @@ -30,7 +30,7 @@ if ( ! is_a( $product, 'WC_Product' ) ) { get_image(); ?> - get_name() ); ?> + get_name() ); ?> From 92e9f2811b34ce5e229b8ef3674f6a1cbcde3e97 Mon Sep 17 00:00:00 2001 From: Gerhard Date: Fri, 16 Nov 2018 08:18:25 +0200 Subject: [PATCH 31/98] Make the wc_download_log FK use table prefix for cases where multiple single install tables are used in the same DB. --- includes/class-wc-install.php | 2 +- includes/wc-update-functions.php | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index 752a40bad1c..ed927bb92ae 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -593,7 +593,7 @@ class WC_Install { // Add constraint to download logs if the columns matches. if ( ! empty( $download_permissions_column_type ) && ! empty( $download_log_column_type ) && $download_permissions_column_type === $download_log_column_type ) { - $constraint_prefix = ! is_multisite() || ( is_main_site() && is_main_network() ) ? 'fk_' : str_replace( $wpdb->base_prefix, 'fk_', $wpdb->prefix ); + $constraint_prefix = ! is_multisite() || ( is_main_site() && is_main_network() ) ? 'fk_' . $wpdb->prefix : str_replace( $wpdb->base_prefix, 'fk_', $wpdb->prefix ); $fk_result = $wpdb->get_row( " SELECT COUNT(*) AS fk_count FROM information_schema.TABLE_CONSTRAINTS diff --git a/includes/wc-update-functions.php b/includes/wc-update-functions.php index 7b0dd070c82..37cd676168a 100644 --- a/includes/wc-update-functions.php +++ b/includes/wc-update-functions.php @@ -1872,3 +1872,25 @@ function wc_update_350_reviews_comment_type() { function wc_update_350_db_version() { WC_Install::update_db_version( '3.5.0' ); } + +/** + * Drop the fk_wc_download_log_permission_id FK as we use a new one with the table and blog prefix for MS compatability. + * + * @return void + */ +function wc_update_352_drop_download_log_fk() { + global $wpdb; + $results = $wpdb->get_results( " + SELECT CONSTRAINT_NAME + FROM information_schema.TABLE_CONSTRAINTS + WHERE CONSTRAINT_SCHEMA = '{$wpdb->dbname}' + AND CONSTRAINT_NAME = 'fk_wc_download_log_permission_id' + AND CONSTRAINT_TYPE = 'FOREIGN KEY' + AND TABLE_NAME = '{$wpdb->prefix}wc_download_log' + " ); + + // We only need to drop the old key as WC_Install::create_tables() takes care of creating the new FK. + if ( $results ) { + $wpdb->query( "ALTER TABLE {$wpdb->prefix}wc_download_log DROP FOREIGN KEY fk_wc_download_log_permission_id" ); // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + } +} From 92bf56cde0c1800b175b1fd340599b7af6ca86db Mon Sep 17 00:00:00 2001 From: Gerhard Date: Fri, 16 Nov 2018 08:27:06 +0200 Subject: [PATCH 32/98] Add wc_update_352_drop_download_log_fk to the DB update routine. --- includes/class-wc-install.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index ed927bb92ae..b529a0ee06e 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -117,6 +117,9 @@ class WC_Install { 'wc_update_350_reviews_comment_type', 'wc_update_350_db_version', ), + '3.5.2' => array( + 'wc_update_352_drop_download_log_fk', + ) ); /** From f7f7eebc1c5bdeef10ec7081007cf845c649fd0b Mon Sep 17 00:00:00 2001 From: Gerhard Date: Fri, 16 Nov 2018 08:29:13 +0200 Subject: [PATCH 33/98] Fix PHPCS issues --- includes/class-wc-install.php | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index b529a0ee06e..713407e1509 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -250,7 +250,7 @@ class WC_Install { /** * Is this a brand new WC install? * - * @since 3.2.0 + * @since 3.2.0 * @return boolean */ private static function is_new_install() { @@ -260,7 +260,7 @@ class WC_Install { /** * Is a DB update needed? * - * @since 3.2.0 + * @since 3.2.0 * @return boolean */ private static function needs_db_update() { @@ -357,7 +357,8 @@ class WC_Install { /** * Add more cron schedules. * - * @param array $schedules List of WP scheduled cron jobs. + * @param array $schedules List of WP scheduled cron jobs. + * * @return array */ public static function cron_schedules( $schedules ) { @@ -899,7 +900,8 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta ( /** * Uninstall tables when MU blog is deleted. * - * @param array $tables List of tables that will be deleted by WP. + * @param array $tables List of tables that will be deleted by WP. + * * @return string[] */ public static function wpmu_drop_tables( $tables ) { @@ -1169,8 +1171,9 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta ( /** * Show action links on the plugin screen. * - * @param mixed $links Plugin Action links. - * @return array + * @param mixed $links Plugin Action links. + * + * @return array */ public static function plugin_action_links( $links ) { $action_links = array( @@ -1183,9 +1186,10 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta ( /** * Show row meta on the plugin screen. * - * @param mixed $links Plugin Row Meta. - * @param mixed $file Plugin Base file. - * @return array + * @param mixed $links Plugin Row Meta. + * @param mixed $file Plugin Base file. + * + * @return array */ public static function plugin_row_meta( $links, $file ) { if ( WC_PLUGIN_BASENAME === $file ) { @@ -1220,8 +1224,9 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta ( * * @param string $plugin_to_install_id Plugin ID. * @param array $plugin_to_install Plugin information. + * * @throws Exception If unable to proceed with plugin installation. - * @since 2.6.0 + * @since 2.6.0 */ public static function background_installer( $plugin_to_install_id, $plugin_to_install ) { // Explicitly clear the event. @@ -1375,8 +1380,9 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta ( * Install a theme from .org in the background via a cron job (used by installer - opt in). * * @param string $theme_slug Theme slug. + * * @throws Exception If unable to proceed with theme installation. - * @since 3.1.0 + * @since 3.1.0 */ public static function theme_background_installer( $theme_slug ) { // Explicitly clear the event. From 3943ec639592d42512d7b7445383859356ba6cd6 Mon Sep 17 00:00:00 2001 From: Gerhard Date: Fri, 16 Nov 2018 12:13:51 +0200 Subject: [PATCH 34/98] Convert array keys to lower case before comparing keys to exclude. --- includes/data-stores/class-wc-customer-data-store.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/data-stores/class-wc-customer-data-store.php b/includes/data-stores/class-wc-customer-data-store.php index d907e61893c..a655ada55f4 100644 --- a/includes/data-stores/class-wc-customer-data-store.php +++ b/includes/data-stores/class-wc-customer-data-store.php @@ -156,7 +156,7 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat // Load meta but exclude deprecated props. $user_meta = array_diff_key( - array_map( 'wc_flatten_meta_callback', get_user_meta( $customer_id ) ), + array_change_key_case( array_map( 'wc_flatten_meta_callback', get_user_meta( $customer_id ) ) ), array_flip( array( 'country', 'state', 'postcode', 'city', 'address', 'address_2', 'default', 'location' ) ) ); From b071855632eb6f4e733fea0920832656c2258ff4 Mon Sep 17 00:00:00 2001 From: Gerhard Date: Fri, 16 Nov 2018 12:17:33 +0200 Subject: [PATCH 35/98] Some PHPCS fixes --- .../class-wc-customer-data-store.php | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/includes/data-stores/class-wc-customer-data-store.php b/includes/data-stores/class-wc-customer-data-store.php index a655ada55f4..6124cd5c7dc 100644 --- a/includes/data-stores/class-wc-customer-data-store.php +++ b/includes/data-stores/class-wc-customer-data-store.php @@ -117,11 +117,13 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat wp_update_user( apply_filters( - 'woocommerce_update_customer_args', array( + 'woocommerce_update_customer_args', + array( 'ID' => $customer->get_id(), 'role' => $customer->get_role(), 'display_name' => $customer->get_display_name(), - ), $customer + ), + $customer ) ); $wp_user = new WP_User( $customer->get_id() ); @@ -186,11 +188,13 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat public function update( &$customer ) { wp_update_user( apply_filters( - 'woocommerce_update_customer_args', array( + 'woocommerce_update_customer_args', + array( 'ID' => $customer->get_id(), 'user_email' => $customer->get_email(), 'display_name' => $customer->get_display_name(), - ), $customer + ), + $customer ) ); @@ -225,7 +229,8 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat } $args = wp_parse_args( - $args, array( + $args, + array( 'reassign' => 0, ) ); @@ -437,18 +442,23 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat $query = new WP_User_Query( apply_filters( - 'woocommerce_customer_search_customers', array( + 'woocommerce_customer_search_customers', + array( 'search' => '*' . esc_attr( $term ) . '*', 'search_columns' => array( 'user_login', 'user_url', 'user_email', 'user_nicename', 'display_name' ), 'fields' => 'ID', 'number' => $limit, - ), $term, $limit, 'main_query' + ), + $term, + $limit, + 'main_query' ) ); $query2 = new WP_User_Query( apply_filters( - 'woocommerce_customer_search_customers', array( + 'woocommerce_customer_search_customers', + array( 'fields' => 'ID', 'number' => $limit, 'meta_query' => array( @@ -464,7 +474,10 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat 'compare' => 'LIKE', ), ), - ), $term, $limit, 'meta_query' + ), + $term, + $limit, + 'meta_query' ) ); From c44809422b6a5bb7b9cdcba01349e0a8791e2c53 Mon Sep 17 00:00:00 2001 From: Manos Psychogyiopoulos Date: Fri, 16 Nov 2018 15:23:08 +0200 Subject: [PATCH 36/98] Pass order-again cart contents to 'woocommerce_ordered_again' action --- includes/class-wc-cart-session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-cart-session.php b/includes/class-wc-cart-session.php index 404abadebc8..a011f54ffeb 100644 --- a/includes/class-wc-cart-session.php +++ b/includes/class-wc-cart-session.php @@ -341,7 +341,7 @@ final class WC_Cart_Session { ); } - do_action( 'woocommerce_ordered_again', $order->get_id() ); + do_action( 'woocommerce_ordered_again', $order->get_id(), $cart ); $num_items_in_cart = count( $cart ); $num_items_in_original_order = count( $order_items ); From 520a7e1a2713d12ac83e90758e9cbb2ad0c64de2 Mon Sep 17 00:00:00 2001 From: Manos Psychogyiopoulos Date: Fri, 16 Nov 2018 15:25:35 +0200 Subject: [PATCH 37/98] Pass order-again items to 'woocommerce_ordered_again' action --- includes/class-wc-cart-session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-cart-session.php b/includes/class-wc-cart-session.php index a011f54ffeb..99c4a836757 100644 --- a/includes/class-wc-cart-session.php +++ b/includes/class-wc-cart-session.php @@ -341,7 +341,7 @@ final class WC_Cart_Session { ); } - do_action( 'woocommerce_ordered_again', $order->get_id(), $cart ); + do_action( 'woocommerce_ordered_again', $order->get_id(), $order_items, $cart ); $num_items_in_cart = count( $cart ); $num_items_in_original_order = count( $order_items ); From 059d803484bacfdf65230da49cd7e881d9c3089c Mon Sep 17 00:00:00 2001 From: Manos Psychogyiopoulos Date: Fri, 16 Nov 2018 15:27:30 +0200 Subject: [PATCH 38/98] Rename 'woocommerce_add_cart_item' to 'woocommerce_add_order_again_cart_item' --- includes/class-wc-cart-session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-cart-session.php b/includes/class-wc-cart-session.php index 99c4a836757..01eade27190 100644 --- a/includes/class-wc-cart-session.php +++ b/includes/class-wc-cart-session.php @@ -327,7 +327,7 @@ final class WC_Cart_Session { $cart_id = WC()->cart->generate_cart_id( $product_id, $variation_id, $variations, $cart_item_data ); $product_data = wc_get_product( $variation_id ? $variation_id : $product_id ); $cart[ $cart_id ] = apply_filters( - 'woocommerce_add_cart_item', array_merge( + 'woocommerce_add_order_again_cart_item', array_merge( $cart_item_data, array( 'key' => $cart_id, 'product_id' => $product_id, From 60b84c09aa7961aaedc6ac0e71e8ce721f4dcb12 Mon Sep 17 00:00:00 2001 From: Manos Psychogyiopoulos Date: Fri, 16 Nov 2018 16:11:31 +0200 Subject: [PATCH 39/98] Parse query using '$wpdb->prepare' before querying --- includes/log-handlers/class-wc-log-handler-db.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/log-handlers/class-wc-log-handler-db.php b/includes/log-handlers/class-wc-log-handler-db.php index d47d850cc1b..fa9238b96ef 100644 --- a/includes/log-handlers/class-wc-log-handler-db.php +++ b/includes/log-handlers/class-wc-log-handler-db.php @@ -124,11 +124,9 @@ class WC_Log_Handler_DB extends WC_Log_Handler { $log_ids = array( $log_ids ); } - $format = array_fill( 0, count( $log_ids ), '%d' ); - + $format = array_fill( 0, count( $log_ids ), '%d' ); $query_in = '(' . implode( ',', $format ) . ')'; - - return $wpdb->query( "DELETE FROM {$wpdb->prefix}woocommerce_log WHERE log_id IN {$query_in}" ); // @codingStandardsIgnoreLine. + return $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->prefix}woocommerce_log WHERE log_id IN {$query_in}", $log_ids ) ); // @codingStandardsIgnoreLine. } /** From 3168f13d9d99ca82bbea7f9b0a1be2d81e1b87ca Mon Sep 17 00:00:00 2001 From: Tiago Noronha Date: Fri, 16 Nov 2018 16:38:05 +0000 Subject: [PATCH 40/98] Skeleton for Twenty Nineteen integration --- assets/css/twenty-nineteen-rtl.css | 0 assets/css/twenty-nineteen.css | 0 assets/css/twenty-nineteen.scss | 0 includes/class-woocommerce.php | 5 +- .../class-wc-twenty-nineteen.php | 74 +++++++++++++++++++ 5 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 assets/css/twenty-nineteen-rtl.css create mode 100644 assets/css/twenty-nineteen.css create mode 100644 assets/css/twenty-nineteen.scss create mode 100644 includes/theme-support/class-wc-twenty-nineteen.php diff --git a/assets/css/twenty-nineteen-rtl.css b/assets/css/twenty-nineteen-rtl.css new file mode 100644 index 00000000000..e69de29bb2d diff --git a/assets/css/twenty-nineteen.css b/assets/css/twenty-nineteen.css new file mode 100644 index 00000000000..e69de29bb2d diff --git a/assets/css/twenty-nineteen.scss b/assets/css/twenty-nineteen.scss new file mode 100644 index 00000000000..e69de29bb2d diff --git a/includes/class-woocommerce.php b/includes/class-woocommerce.php index 65d341dd266..06851429fc3 100644 --- a/includes/class-woocommerce.php +++ b/includes/class-woocommerce.php @@ -405,7 +405,7 @@ final class WooCommerce { * @since 3.3.0 */ private function theme_support_includes() { - if ( wc_is_active_theme( array( 'twentyseventeen', 'twentysixteen', 'twentyfifteen', 'twentyfourteen', 'twentythirteen', 'twentyeleven', 'twentytwelve', 'twentyten' ) ) ) { + if ( wc_is_active_theme( array( 'twentynineteen', 'twentyseventeen', 'twentysixteen', 'twentyfifteen', 'twentyfourteen', 'twentythirteen', 'twentyeleven', 'twentytwelve', 'twentyten' ) ) ) { switch ( get_template() ) { case 'twentyten': include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-ten.php'; @@ -431,6 +431,9 @@ final class WooCommerce { case 'twentyseventeen': include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-seventeen.php'; break; + case 'twentynineteen': + include_once WC_ABSPATH . 'includes/theme-support/class-wc-twenty-nineteen.php'; + break; } } } diff --git a/includes/theme-support/class-wc-twenty-nineteen.php b/includes/theme-support/class-wc-twenty-nineteen.php new file mode 100644 index 00000000000..955e66561e6 --- /dev/null +++ b/includes/theme-support/class-wc-twenty-nineteen.php @@ -0,0 +1,74 @@ + 250, + 'single_image_width' => 350, + ) ); + } + + /** + * Open the Twenty Nineteen wrapper. + */ + public static function output_content_wrapper() { + echo '
'; + echo '
'; + } + + /** + * Close the Twenty Nineteen wrapper. + */ + public static function output_content_wrapper_end() { + echo '
'; + echo '
'; + } + + /** + * Enqueue CSS for this theme. + * + * @param array $styles Array of registered styles. + * @return array + */ + public static function enqueue_styles( $styles ) { + unset( $styles['woocommerce-general'] ); + + $styles['woocommerce-general'] = array( + 'src' => str_replace( array( 'http:', 'https:' ), '', WC()->plugin_url() ) . '/assets/css/twenty-nineteen.css', + 'deps' => '', + 'version' => WC_VERSION, + 'media' => 'all', + 'has_rtl' => true, + ); + + return apply_filters( 'woocommerce_twenty_nineteen_styles', $styles ); + } +} + +WC_Twenty_Nineteen::init(); From 4e01bf18dddca2a1e618e4225e310b0a07dcc6bd Mon Sep 17 00:00:00 2001 From: Tiago Noronha Date: Fri, 16 Nov 2018 16:29:21 +0000 Subject: [PATCH 41/98] Twenty Nineteen basic styling --- assets/css/twenty-nineteen-rtl.css | 1 + assets/css/twenty-nineteen.css | 1 + assets/css/twenty-nineteen.scss | 1269 +++++++++++++++++ .../class-wc-twenty-nineteen.php | 23 +- 4 files changed, 1292 insertions(+), 2 deletions(-) diff --git a/assets/css/twenty-nineteen-rtl.css b/assets/css/twenty-nineteen-rtl.css index e69de29bb2d..ebc2b2812a6 100644 --- a/assets/css/twenty-nineteen-rtl.css +++ b/assets/css/twenty-nineteen-rtl.css @@ -0,0 +1 @@ +@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{padding-top:2rem;margin-top:4rem;border-top:1px solid #eee;font-size:.88889em}.woocommerce-pagination ul.page-numbers{padding:0;display:block}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:.5em 1em;background:#ddd;display:inline-block;font-size:1em;float:none;line-height:1.5;border-radius:5px;-webkit-transition:background-color ease-in-out .3s;transition:background-color ease-in-out .3s}.woocommerce-pagination span.page-numbers{background-color:#fff}.woocommerce-pagination a.page-numbers:hover{background-color:#767676;color:#fff}.onsale{position:absolute;top:0;right:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;line-height:1;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;right:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:left;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-right:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:right;top:0;right:0;position:absolute}.star-rating span{overflow:hidden;float:right;top:0;right:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;right:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:right;clear:both;margin-left:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:right;margin-left:.25rem}.single-product form.cart .quantity{float:right;margin-left:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-left:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:right}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:right}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:right}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:right}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;left:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-left:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-left:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:left}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;right:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-right:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:left;margin-top:2px}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 0 0 .5rem}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-left:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:left;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:right;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:right;margin-right:.5rem;margin-left:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-right:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{right:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{left:-1px}.widget_rating_filter li{text-align:left}.widget_rating_filter li .star-rating{float:right;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-left:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;left:.5rem;padding-right:1rem;padding-left:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:before{content:"→";display:inline-block;margin-left:.25rem;color:#111}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:right;margin-left:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-left:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:right;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-right:.5rem}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;left:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;left:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{left:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-right:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{right:50%;top:0;margin-top:-4px;-webkit-transform:translatex(50%) rotate(-180deg);-ms-transform:translatex(50%) rotate(-180deg);transform:translatex(50%) rotate(-180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem .7rem .7rem 0}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{padding-right:0}.wc_payment_method{list-style:none;border-bottom:1px solid #ddd}.wc_payment_method .payment_box{padding:2rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:left}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-right:4px;margin-left:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (min-width:768px){.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-account .woocommerce-MyAccount-navigation{float:left;width:25%;margin-bottom:0}.woocommerce-account .woocommerce-MyAccount-content{float:right}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file diff --git a/assets/css/twenty-nineteen.css b/assets/css/twenty-nineteen.css index e69de29bb2d..da00f205afa 100644 --- a/assets/css/twenty-nineteen.css +++ b/assets/css/twenty-nineteen.css @@ -0,0 +1 @@ +@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{padding-top:2rem;margin-top:4rem;border-top:1px solid #eee;font-size:.88889em}.woocommerce-pagination ul.page-numbers{padding:0;display:block}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:.5em 1em;background:#ddd;display:inline-block;font-size:1em;float:none;line-height:1.5;border-radius:5px;-webkit-transition:background-color ease-in-out .3s;transition:background-color ease-in-out .3s}.woocommerce-pagination span.page-numbers{background-color:#fff}.woocommerce-pagination a.page-numbers:hover{background-color:#767676;color:#fff}.onsale{position:absolute;top:0;left:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;line-height:1;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;left:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:right;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-left:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:left;top:0;left:0;position:absolute}.star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;left:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:left;clear:both;margin-right:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:left;margin-right:.25rem}.single-product form.cart .quantity{float:left;margin-right:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-right:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:left}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:left}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:left}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:left}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;right:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-right:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-right:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:right}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;left:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-left:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:right;margin-top:2px}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 .5rem 0 0}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-right:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:right;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:left;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:left;margin-left:.5rem;margin-right:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-left:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{left:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{right:-1px}.widget_rating_filter li{text-align:right}.widget_rating_filter li .star-rating{float:left;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-right:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;right:.5rem;padding-left:1rem;padding-right:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:before{content:"→";display:inline-block;margin-right:.25rem;color:#111}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:left;margin-right:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-right:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:left;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-left:.5rem}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;right:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;right:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{right:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-left:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{left:50%;top:0;margin-top:-4px;-webkit-transform:translatex(-50%) rotate(180deg);-ms-transform:translatex(-50%) rotate(180deg);transform:translatex(-50%) rotate(180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem 0 .7rem .7rem}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{padding-left:0}.wc_payment_method{list-style:none;border-bottom:1px solid #ddd}.wc_payment_method .payment_box{padding:2rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:right}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-left:4px;margin-right:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (min-width:768px){.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-account .woocommerce-MyAccount-navigation{float:right;width:25%;margin-bottom:0}.woocommerce-account .woocommerce-MyAccount-content{float:left}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file diff --git a/assets/css/twenty-nineteen.scss b/assets/css/twenty-nineteen.scss index e69de29bb2d..1a89f61a896 100644 --- a/assets/css/twenty-nineteen.scss +++ b/assets/css/twenty-nineteen.scss @@ -0,0 +1,1269 @@ +@import 'mixins'; + +/** + * Sass variables + */ + +$headings: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif; +$body: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif; + +$body-color: #111; +$highlights-color: #0073aa; + +/** + * Fonts + */ + @font-face { + font-family: 'star'; + src: url('../fonts/star.eot'); + src: url('../fonts/star.eot?#iefix') format('embedded-opentype'), + url('../fonts/star.woff') format('woff'), + url('../fonts/star.ttf') format('truetype'), + url('../fonts/star.svg#star') format('svg'); + font-weight: normal; + font-style: normal; +} + +@font-face { + font-family: 'WooCommerce'; + src: url('../fonts/WooCommerce.eot'); + src: url('../fonts/WooCommerce.eot?#iefix') format('embedded-opentype'), + url('../fonts/WooCommerce.woff') format('woff'), + url('../fonts/WooCommerce.ttf') format('truetype'), + url('../fonts/WooCommerce.svg#WooCommerce') format('svg'); + font-weight: normal; + font-style: normal; +} + +/** + * Global elements + */ +a.button { + color: #fff; + text-decoration: none !important; + + &:hover, + &:visited { + color: #fff; + } +} + +.woocommerce { + form .form-row { + .required { + color: firebrick; + text-decoration: none; + visibility: hidden; // Only show optional by default. + + &[title] { + border: 0 !important; + } + } + + .optional { + visibility: visible; + } + } +} + +.woocommerce-breadcrumb { + margin-bottom: 3rem; + font-size: 0.88889em; + font-family: $headings; +} + +.woocommerce-pagination { + padding-top: 2rem; + margin-top: 4rem; + border-top: 1px solid #eee; + font-size: 0.88889em; + + ul.page-numbers { + padding: 0; + display: block; + } + + span.page-numbers, + a.page-numbers, + .next.page-numbers, + .prev.page-numbers { + padding: 0.5em 1em; + background: #ddd; + display: inline-block; + font-size: 1em; + float: none; + line-height: 1.5; + border-radius: 5px; + transition: background-color ease-in-out 0.3s; + } + + span.page-numbers { + background-color: #fff; + } + + a.page-numbers:hover { + background-color: #767676; + color: #fff; + } +} + +.onsale { + position: absolute; + top: 0; + left: 0; + display: inline-block; + background: $highlights-color; + color: #fff; + display: inline-block; + font-family: $headings; + font-size: 0.71111em; + font-weight: bold; + line-height: 1; + padding: 0.5rem; + position: absolute; + text-transform: uppercase; + top: 0; + z-index: 1; +} + +.price { + font-family: $headings; + + del { + opacity: 0.5; + display: inline-block; + } + ins { + display: inline-block; + } +} + +.woocommerce-message, +.woocommerce-error, +.woocommerce-info { + margin-bottom: 1.5rem; + padding: 1rem; + background: #eee; + font-family: $headings; + overflow: hidden; +} + +.woocommerce-message { + background: #eee; + color: $body-color; +} + +.woocommerce-error, +.woocommerce-info { + color: #fff; + + a { + color: #fff; + + &:hover { + color: #fff; + } + } +} + +.woocommerce-error { + background: firebrick; +} + +.woocommerce-info { + background: $highlights-color; +} + +.woocommerce-store-notice { + background: $highlights-color; + color: #fff; + padding: 1rem; + position: absolute; + top: 0; + left: 0; + width: 100%; + z-index: 999; +} + +.admin-bar .woocommerce-store-notice { + top: 32px; +} + +.woocommerce-store-notice__dismiss-link { + float: right; + color: #fff; + + &:hover { + text-decoration: underline; + color: #fff; + } +} + +/** + * Shop page + */ +.woocommerce-products-header__title.page-title { + font-size: 1.6875em; + font-weight: 700; + font-family: $headings; +} + +.woocommerce-result-count { + margin: 0; + padding: 0.75rem 0; +} + +/** + * Products + */ +ul.products { + margin: 0; + padding: 0; + + li.product { + list-style: none; + + .woocommerce-loop-product__link { + display: block; + } + + .woocommerce-loop-product__title { + margin: 0.8rem 0; + font-size: 0.88889em; + + &:before { + content: none; + } + } + + .woocommerce-loop-product__title, + .price, + .star-rating { + color: $body-color; + } + + .star-rating { + margin-bottom: 0.8rem; + } + + .price { + margin-bottom: 1.3rem; + } + + .price, + .star-rating { + display: block; + font-size: 0.88889em; + } + + .woocommerce-placeholder { + border: 1px solid #F2F2F2; + } + + .button { + vertical-align: middle; + + &.loading { + opacity: 0.5; + } + } + + .added_to_cart { + margin-left: 0.5rem; + font-size: 0.88889em; + font-family: $headings; + } + } +} + +.star-rating { + overflow: hidden; + position: relative; + height: 1em; + line-height: 1; + font-size: 1em; + width: 5.4em; + font-family: 'star'; + + &::before { + content: '\73\73\73\73\73'; + float: left; + top: 0; + left: 0; + position: absolute; + } + + span { + overflow: hidden; + float: left; + top: 0; + left: 0; + position: absolute; + padding-top: 1.5em; + } + + span::before { + content: '\53\53\53\53\53'; + top: 0; + position: absolute; + left: 0; + } +} + +a.remove { + display: inline-block; + width: 20px; + height: 20px; + line-height: 17px; + font-size: 20px; + font-weight: 700; + text-align: center; + border-radius: 100%; + text-decoration: none !important; + background: firebrick; + color: #fff; + + &:hover { + background: #000; + color: #fff !important; + } +} + +dl.variation, .wc-item-meta { + list-style: none outside; + + dt, .wc-item-meta-label { + float: left; + clear: both; + margin-right: 0.25rem; + list-style: none outside; + } + + dd { + margin: 0; + } + + p, + &:last-child { + margin-bottom: 0; + } +} + +/** + * Single product + */ +.single-product { + div.product { + position: relative; + } + + .single-featured-image-header { + display: none; + } + + .entry { + .entry-title { + margin-top: 0; + + &:before { + margin-top: 0; + } + } + } + + .summary { + p.price { + margin-bottom: 2rem; + } + } + + .woocommerce-product-rating { + margin-bottom: 2rem; + line-height: 1; + + .star-rating { + float: left; + margin-right: 0.25rem; + } + } + + form.cart { + .quantity { + float: left; + margin-right: 0.5rem; + } + + input { + width: 5em; + } + } + + .woocommerce-variation-add-to-cart { + .button { + padding-top: 0.72rem; + padding-bottom: 0.72rem; + } + + .button.disabled { + opacity: 0.2; + } + } +} + +table.variations { + label { + margin: 0; + } + + select { + margin-right: 0.5rem; + } +} + +.woocommerce-product-gallery { + position: relative; + margin-bottom: 3rem; + + figure { + margin: 0; + padding: 0; + } + + .woocommerce-product-gallery__wrapper { + margin: 0; + padding: 0; + } + + .zoomImg { + background-color: #fff; + opacity: 0; + } + + .woocommerce-product-gallery__image--placeholder { + border: 1px solid #F2F2F2; + } + + .woocommerce-product-gallery__image:nth-child(n+2) { + width: 25%; + display: inline-block; + } + + .flex-control-thumbs { + li { + list-style: none; + cursor: pointer; + float: left; + } + + img { + opacity: 0.5; + + &:hover, + &.flex-active { + opacity: 1; + } + } + } + + img { + display: block; + height: auto; + } +} + +.woocommerce-product-gallery--columns-3 { + .flex-control-thumbs li { + width: 33.3333%; + } + + .flex-control-thumbs li:nth-child(3n+1) { + clear: left; + } +} + +.woocommerce-product-gallery--columns-4 { + .flex-control-thumbs li { + width: 25%; + } + + .flex-control-thumbs li:nth-child(4n+1) { + clear: left; + } +} + +.woocommerce-product-gallery--columns-5 { + .flex-control-thumbs li { + width: 20%; + } + + .flex-control-thumbs li:nth-child(5n+1) { + clear: left; + } +} + +.woocommerce-product-gallery__trigger { + position: absolute; + top: 1rem; + right: 1rem; + z-index: 99; +} + +.woocommerce-tabs { + margin: 0 0 2rem; + + ul { + margin: 0 0 1.5rem; + padding: 0; + font-family: $headings; + + li { + margin-right: 1rem; + + a { + color: $body-color; + text-decoration: none; + font-weight: 700; + } + + &.active { + a { + color: $highlights-color; + box-shadow: 0 2px 0 $highlights-color; + } + } + } + } + + .panel { + > * { + margin-top: 0 !important; + } + + h2 { + margin: 0 0 1rem; + font-size: 1em; + + &:before { + content: none; + } + } + } + + #comments { + padding-top: 0; + } + + .comment-reply-title { + font-family: $headings; + font-size: 1em; + font-weight: bold; + margin: 0 0 0.75rem; + display: block; + } + + #reviews { + ol.commentlist { + padding: 0; + } + + li.review, + li.comment { + list-style: none; + margin-right: 0; + margin-bottom: 2.5rem; + + .avatar { + max-height: 36px; + width: auto; + float: right; + } + + p.meta { + margin-bottom: 0.5em; + } + } + + p.stars { + margin-top: 0; + + a { + position: relative; + height: 1em; + width: 1em; + text-indent: -999em; + display: inline-block; + text-decoration: none; + box-shadow: none; + + &::before { + display: block; + position: absolute; + top: 0; + left: 0; + width: 1em; + height: 1em; + line-height: 1; + font-family: 'WooCommerce'; + content: '\e021'; + text-indent: 0; + } + + &:hover { + ~ a::before { + content: '\e021'; + } + } + } + + &:hover { + a { + &::before { + content: '\e020'; + } + } + } + + &.selected { + a.active { + &::before { + content: '\e020'; + } + + ~ a::before { + content: '\e021'; + } + } + + a:not( .active ) { + &::before { + content: '\e020'; + } + } + } + } + } +} + +/** + * Widgets + */ +.widget.woocommerce { + ul { + padding-left: 0; + + li { + list-style: none; + } + } +} + +.widget .product_list_widget, +.site-footer .widget .product_list_widget { + margin-bottom: 1.5rem; + + a { + display: block; + box-shadow: none; + + &:hover { + box-shadow: none; + } + } + + li { + padding: 0.5rem 0; + + a.remove { + float: right; + margin-top: 2px; + } + } + + img { + display: none; + } +} + +.widget_shopping_cart { + .buttons { + a { + display: inline-block; + margin: 0 0.5rem 0 0; + } + } +} + +.widget_layered_nav { + .chosen { + &:before { + content: "×"; + display: inline-block; + width: 16px; + height: 16px; + line-height: 16px; + font-size: 16px; + text-align: center; + border-radius: 100%; + border: 1px solid black; + margin-right: 0.25rem; + } + } +} + +.widget_price_filter { + .price_slider { + margin-bottom: 1rem; + } + + .price_slider_amount { + text-align: right; + line-height: 2.4; + font-size: 0.8751em; + + .button { + float: left; + padding: 0.4rem 1rem; + } + } + + .ui-slider { + position: relative; + text-align: left; + margin-left: 0.5rem; + margin-right: 0.5rem; + } + + .ui-slider .ui-slider-handle { + position: absolute; + z-index: 2; + width: 1em; + height: 1em; + background-color: #000; + border-radius: 1em; + cursor: ew-resize; + outline: none; + top: -0.3em; + margin-left: -0.5em; + } + + .ui-slider .ui-slider-range { + position: absolute; + z-index: 1; + font-size: 0.7em; + display: block; + border: 0; + border-radius: 1em; + background-color: #000; + } + + .price_slider_wrapper .ui-widget-content { + border-radius: 1em; + background-color: #666; + border: 0; + } + + .ui-slider-horizontal { + height: 0.5em; + } + + .ui-slider-horizontal .ui-slider-range { + top: 0; + height: 100%; + } + + .ui-slider-horizontal .ui-slider-range-min { + left: -1px; + } + + .ui-slider-horizontal .ui-slider-range-max { + right: -1px; + } + } + +.widget_rating_filter { + li { + text-align: right; + + .star-rating { + float: left; + margin-top: 0.3rem; + } + } +} + +.widget_product_search { + form { + position: relative; + } + + .search-field { + padding-right: 100px; + } + + input[type=submit] { + position: absolute; + top: 0.5rem; + right: 0.5rem; + padding-left: 1rem; + padding-right: 1rem; + } +} + +/** + * Account section + */ + .woocommerce-account { + .woocommerce-MyAccount-navigation { + font-family: $headings; + margin: 0 0 2rem; + + ul { + margin: 0; + padding: 0; + } + + li { + list-style: none; + padding: 0.5rem 0; + border-bottom: 1px solid #ccc; + + &:before { + content: "→"; + display: inline-block; + margin-right: 0.25rem; + color: $body-color; + } + + &:first-child { + padding-top: 0; + } + + a { + box-shadow: none; + text-decoration: none; + font-weight: 600; + + &:hover { + color: #005177; + text-decoration: underline; + } + } + + &.is-active { + a { + text-decoration: underline; + } + } + } + } +} + +/** + * Cart + */ + .woocommerce-cart-form { + img { + max-width: 42px; + height: auto; + display: block; + } + + dl.variation { + margin-top: 0; + + p, + &:last-child { + margin-bottom: 0; + } + } + + .product-remove { + text-align: center; + } + + .actions { + .input-text { + width: 200px !important; + float: left; + margin-right: 0.25rem; + } + } + + .quantity { + input { + width: 4rem; + } + } +} + +.cart_totals { + th, td { + vertical-align: top; + } + + th { + padding-right: 1rem; + } + + .woocommerce-shipping-destination { + margin-bottom: 0; + } +} + +.shipping-calculator-button { + margin-top: 0.5rem; + display: inline-block; +} + +.shipping-calculator-form { + margin: 1rem 0 0 0; +} + +#shipping_method { + list-style: none; + margin: 0; + + li { + margin-bottom: 0.5rem; + + input { + float: left; + margin-top: 0.17rem; + } + + label { + line-height: 1.5rem; + } + } +} + +.checkout-button { + display: block; + padding: 1rem 2rem; + border: 2px solid #000; + text-align: center; + font-weight: 800; + + &:hover { + border-color: #999; + } + + &:after { + content: "→"; + margin-left: .5rem; + } +} + +/** + * Checkout + */ + #ship-to-different-address { + label { + font-weight: 300; + cursor: pointer; + + span { + position: relative; + display: block; + + &:before { + content: ""; + display: block; + height: 16px; + width: 30px; + border: 2px solid #bbb; + background: #bbb; + border-radius: 13rem; + box-sizing: content-box; + transition: all ease-in-out 0.3s; + position: absolute; + top: 4px; + right: 0; + } + + &:after { + content: ""; + display: block; + width: 14px; + height: 14px; + background: white; + position: absolute; + top: 7px; + right: 17px; + border-radius: 13rem; + transition: all ease-in-out 0.3s; + } + } + + input[type=checkbox] { + display: none; + } + + input[type=checkbox]:checked + span:after { + right: 3px; + } + + input[type=checkbox]:checked + span:before { + border-color: #000; + background: #000; + } + } +} + +.woocommerce-no-js { + form.woocommerce-form-login, + form.woocommerce-form-coupon { + display: block !important; + } + .woocommerce-form-login-toggle, + .woocommerce-form-coupon-toggle, + .showcoupon { + display: none !important; + } +} + +.woocommerce-terms-and-conditions { + border: 1px solid rgba(0,0,0,.2); + box-shadow: inset 0 1px 2px rgba(0,0,0,.1); + background: rgba(0,0,0,.05); +} + +.woocommerce-terms-and-conditions-link { + display: inline-block; + + &:after { + content: ""; + display: inline-block; + border-style: solid; + margin-bottom: 2px; + margin-left: 0.25rem; + border-width: 6px 6px 0 6px; + border-color: $body-color transparent transparent transparent; + } + &.woocommerce-terms-and-conditions-link--open:after { + border-width: 0 6px 6px 6px; + border-color: transparent transparent $body-color transparent; + } +} + +.woocommerce-checkout { + .woocommerce-input-wrapper { + .description { + background: royalblue; + color: #fff; + border-radius: 3px; + padding: 1rem; + margin: 0.5rem 0 0; + clear: both; + display: none; + position: relative; + + a { + color: #fff; + text-decoration: underline; + border: 0; + box-shadow: none; + } + + &:before { + left: 50%; + top: 0%; + margin-top: -4px; + transform: translatex(-50%) rotate(180deg); + content: ""; + position: absolute; + border-width: 4px 6px 0 6px; + border-style: solid; + border-color: royalblue transparent transparent transparent; + z-index: 100; + display: block; + } + } + } + + .select2-choice, + .select2-choice:hover { + box-shadow: none !important; + } + .select2-choice { + padding: 0.7rem 0 0.7rem 0.7rem; + } + .select2-container .select2-selection--single { + height: 48px; + } + .select2-container .select2-selection--single .select2-selection__rendered { + line-height: 48px; + } + .select2-container--default .select2-selection--single .select2-selection__arrow { + height: 46px; + } + .select2-container--focus .select2-selection { + border-color: black; + } +} + +.woocommerce-checkout-review-order-table { + td { + padding: 1rem 0.5rem; + } + + dl.variation { + margin: 0; + + p { + margin: 0; + } + } +} + +.woocommerce-checkout-review-order { + ul { + padding-left: 0; + } +} + +.wc_payment_method { + list-style: none; + border-bottom: 1px solid #ddd; + + .payment_box { + padding: 2rem; + background: #eee; + + ul, + ol { + &:last-of-type { + margin-bottom: 0; + } + } + + fieldset { + padding: 1.5rem; + padding-bottom: 0; + border: 0; + background: #f6f6f6; + } + + li { + list-style: none; + } + + p:last-child { + margin-bottom: 0; + } + } + + > label:first-of-type { + margin: 1rem 0; + + img { + max-height: 24px; + max-width: 200px; + float: right; + } + } + + label { + cursor: pointer; + } + + input.input-radio[name=payment_method] { + display: none; + + & + label { + &:before { + content: ""; + display: inline-block; + width: 16px; + height: 16px; + border: 2px solid white; + box-shadow: 0 0 0 2px black; + background: white; + margin-left: 4px; + margin-right: 0.5rem; + border-radius: 100%; + transform: translateY(2px); + } + } + + &:checked + label { + &:before { + background: black; + } + } + } +} + +/** + * Layout stuff + */ + .woocommerce { + .content-area { + .site-main { + margin: calc(2 * 1rem) 1rem; + } + } +} + +@media only screen and (min-width: 768px) { + /** + * Shop page + */ + .woocommerce-products-header__title.page-title { + font-size: 2.25em; + } + + /** + * Account section + */ + .woocommerce-account { + .woocommerce-MyAccount-navigation { + float: right; + width: 25%; + margin-bottom: 0; + } + + .woocommerce-MyAccount-content { + float: left; + } + } + + /** + * Layout stuff + */ + .woocommerce { + .content-area { + margin: 0 calc(10% + 60px); + + .site-main { + margin: 0; + max-width: calc(8 * (100vw / 12) - 28px); + } + } + } + + .single-product { + .entry { + .entry-content, + .entry-summary { + max-width: none; + margin: 0 0 3rem; + padding: 0; + + > * { + max-width: none; + } + } + } + } +} + +@media only screen and (min-width: 1168px) { + .woocommerce { + .content-area { + .site-main { + max-width: calc(6 * (100vw / 12) - 28px); + } + } + } +} diff --git a/includes/theme-support/class-wc-twenty-nineteen.php b/includes/theme-support/class-wc-twenty-nineteen.php index 955e66561e6..286978da89c 100644 --- a/includes/theme-support/class-wc-twenty-nineteen.php +++ b/includes/theme-support/class-wc-twenty-nineteen.php @@ -17,21 +17,31 @@ class WC_Twenty_Nineteen { * Theme init. */ public static function init() { + + // Change WooCommerce wrappers. remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 ); add_action( 'woocommerce_before_main_content', array( __CLASS__, 'output_content_wrapper' ), 10 ); add_action( 'woocommerce_after_main_content', array( __CLASS__, 'output_content_wrapper_end' ), 10 ); + // This theme doesn't have a traditional sidebar. + remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 ); + + // Enqueue theme compatibility styles. add_filter( 'woocommerce_enqueue_styles', array( __CLASS__, 'enqueue_styles' ) ); + // Register theme features. add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); add_theme_support( 'woocommerce', array( - 'thumbnail_image_width' => 250, - 'single_image_width' => 350, + 'thumbnail_image_width' => 300, + 'single_image_width' => 450, ) ); + + // Tweak Twenty Nineteen features. + add_action( 'wp', array( __CLASS__, 'tweak_theme_features' ) ); } /** @@ -69,6 +79,15 @@ class WC_Twenty_Nineteen { return apply_filters( 'woocommerce_twenty_nineteen_styles', $styles ); } + + /** + * Tweak Twenty Nineteen features. + */ + public static function tweak_theme_features() { + if ( is_woocommerce() ) { + add_filter( 'twentynineteen_can_show_post_thumbnail', '__return_false' ); + } + } } WC_Twenty_Nineteen::init(); From 94275039cd8ce84975c5d1df2e0235658f0a25d5 Mon Sep 17 00:00:00 2001 From: Valerie Date: Fri, 16 Nov 2018 13:16:45 -0500 Subject: [PATCH 42/98] OBW: Fix ShipStation plugin info so install works --- includes/admin/class-wc-admin-setup-wizard.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/admin/class-wc-admin-setup-wizard.php b/includes/admin/class-wc-admin-setup-wizard.php index 5f70cbdc86b..cee41915683 100644 --- a/includes/admin/class-wc-admin-setup-wizard.php +++ b/includes/admin/class-wc-admin-setup-wizard.php @@ -1080,10 +1080,11 @@ class WC_Admin_Setup_Wizard { if ( $setup_shipstation ) { $this->install_plugin( - 'woocommerce-shipstation', + 'woocommerce-shipstation-integration', array( 'name' => __( 'ShipStation', 'woocommerce' ), - 'repo-slug' => 'woocommerce-shipstation', + 'repo-slug' => 'woocommerce-shipstation-integration', + 'file' => 'woocommerce-shipstation.php', ) ); } From 20526cba0896e0c9fe7d12d1ee7ab151b8efe4b4 Mon Sep 17 00:00:00 2001 From: Will Gorham Date: Fri, 16 Nov 2018 14:15:04 -0500 Subject: [PATCH 43/98] Fix hardcoded db table name --- .../admin/list-tables/class-wc-admin-list-table-products.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/admin/list-tables/class-wc-admin-list-table-products.php b/includes/admin/list-tables/class-wc-admin-list-table-products.php index a0091c32f77..e33c19a2333 100644 --- a/includes/admin/list-tables/class-wc-admin-list-table-products.php +++ b/includes/admin/list-tables/class-wc-admin-list-table-products.php @@ -511,8 +511,8 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { if ( isset( $_GET['product_shipping_class'] ) && '0' !== $_GET['product_shipping_class'] ) { // WPCS: input var ok. $replaced_where = str_replace( ".post_type = 'product'", ".post_type = 'product_variation'", $pieces['where'] ); $pieces['where'] .= " OR {$wpdb->posts}.ID in ( - SELECT {$wpdb->posts}.post_parent FROM - wp_posts LEFT JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id) + SELECT {$wpdb->posts}.post_parent FROM + {$wpdb->posts} LEFT JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id) WHERE 1=1 $replaced_where )"; return $pieces; From bc4010cfc1dc6a0a973d206279c39990e1d1b89b Mon Sep 17 00:00:00 2001 From: Will Gorham Date: Fri, 16 Nov 2018 14:15:18 -0500 Subject: [PATCH 44/98] phpcs --- .../class-wc-admin-list-table-products.php | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/includes/admin/list-tables/class-wc-admin-list-table-products.php b/includes/admin/list-tables/class-wc-admin-list-table-products.php index e33c19a2333..5270d065eeb 100644 --- a/includes/admin/list-tables/class-wc-admin-list-table-products.php +++ b/includes/admin/list-tables/class-wc-admin-list-table-products.php @@ -2,8 +2,8 @@ /** * List tables: products. * - * @package WooCommerce/Admin - * @version 3.3.0 + * @package WooCommerce/Admin + * @version 3.3.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -67,6 +67,7 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * * @param array $actions Array of actions. * @param WP_Post $post Current post object. + * * @return array */ protected function get_row_actions( $actions, $post ) { @@ -78,6 +79,7 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * Define which columns are sortable. * * @param array $columns Existing columns. + * * @return array */ public function define_sortable_columns( $columns ) { @@ -93,6 +95,7 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * Define which columns to show on this screen. * * @param array $columns Existing columns. + * * @return array */ public function define_columns( $columns ) { @@ -278,6 +281,7 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * Query vars for custom searches. * * @param mixed $public_query_vars Array of query vars. + * * @return array */ public function add_custom_query_var( $public_query_vars ) { @@ -384,6 +388,7 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * Handle any custom filters. * * @param array $query_vars Query vars. + * * @return array */ protected function query_filters( $query_vars ) { @@ -451,8 +456,10 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { /** * Search by SKU or ID for products. * - * @deprecated Logic moved to query_filters. * @param string $where Where clause SQL. + * + * @deprecated Logic moved to query_filters. + * * @return string */ public function sku_search( $where ) { @@ -462,7 +469,8 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { /** * Change views on the edit product screen. * - * @param array $views Array of views. + * @param array $views Array of views. + * * @return array */ public function product_views( $views ) { @@ -487,6 +495,7 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * Change the label when searching products * * @param string $query Search Query. + * * @return string */ public function search_label( $query ) { @@ -504,7 +513,8 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * * @param array $pieces Array of SELECT statement pieces (from, where, etc). * @param WP_Query $wp_query WP_Query instance. - * @return array Array of products, including parents of variations. + * + * @return array Array of products, including parents of variations. */ public function add_variation_parents_for_shipping_class( $pieces, $wp_query ) { global $wpdb; From b53fe552994aed9044cdf4c15b0d9bd6edcfcd47 Mon Sep 17 00:00:00 2001 From: Will Gorham Date: Fri, 16 Nov 2018 14:47:31 -0500 Subject: [PATCH 45/98] More phpcs --- .../class-wc-admin-list-table-products.php | 39 ++++++++++++------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/includes/admin/list-tables/class-wc-admin-list-table-products.php b/includes/admin/list-tables/class-wc-admin-list-table-products.php index 5270d065eeb..16a50a82b6d 100644 --- a/includes/admin/list-tables/class-wc-admin-list-table-products.php +++ b/includes/admin/list-tables/class-wc-admin-list-table-products.php @@ -293,11 +293,14 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * Render any custom filters and search inputs for the list table. */ protected function render_filters() { - $filters = apply_filters( 'woocommerce_products_admin_list_table_filters', array( - 'product_category' => array( $this, 'render_products_category_filter' ), - 'product_type' => array( $this, 'render_products_type_filter' ), - 'stock_status' => array( $this, 'render_products_stock_status_filter' ), - ) ); + $filters = apply_filters( + 'woocommerce_products_admin_list_table_filters', + array( + 'product_category' => array( $this, 'render_products_category_filter' ), + 'product_type' => array( $this, 'render_products_type_filter' ), + 'stock_status' => array( $this, 'render_products_stock_status_filter' ), + ) + ); ob_start(); foreach ( $filters as $filter_callback ) { @@ -394,18 +397,24 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { protected function query_filters( $query_vars ) { if ( isset( $query_vars['orderby'] ) ) { if ( 'price' === $query_vars['orderby'] ) { - $query_vars = array_merge( $query_vars, array( - // phpcs:ignore WordPress.VIP.SlowDBQuery.slow_db_query_meta_key - 'meta_key' => '_price', - 'orderby' => 'meta_value_num', - ) ); + $query_vars = array_merge( + $query_vars, + array( + // phpcs:ignore WordPress.VIP.SlowDBQuery.slow_db_query_meta_key + 'meta_key' => '_price', + 'orderby' => 'meta_value_num', + ) + ); } if ( 'sku' === $query_vars['orderby'] ) { - $query_vars = array_merge( $query_vars, array( - // phpcs:ignore WordPress.VIP.SlowDBQuery.slow_db_query_meta_key - 'meta_key' => '_sku', - 'orderby' => 'meta_value', - ) ); + $query_vars = array_merge( + $query_vars, + array( + // phpcs:ignore WordPress.VIP.SlowDBQuery.slow_db_query_meta_key + 'meta_key' => '_sku', + 'orderby' => 'meta_value', + ) + ); } } From 4b1dd35dda94780dd4959c32f4c6611c3795815c Mon Sep 17 00:00:00 2001 From: Will Gorham Date: Fri, 16 Nov 2018 15:06:55 -0500 Subject: [PATCH 46/98] Revert "phpcs" (bc4010) - incorrect phpcs fixes This reverts commit bc4010cfc1dc6a0a973d206279c39990e1d1b89b. --- .../class-wc-admin-list-table-products.php | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/includes/admin/list-tables/class-wc-admin-list-table-products.php b/includes/admin/list-tables/class-wc-admin-list-table-products.php index 16a50a82b6d..c549029fceb 100644 --- a/includes/admin/list-tables/class-wc-admin-list-table-products.php +++ b/includes/admin/list-tables/class-wc-admin-list-table-products.php @@ -2,8 +2,8 @@ /** * List tables: products. * - * @package WooCommerce/Admin - * @version 3.3.0 + * @package WooCommerce/Admin + * @version 3.3.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -67,7 +67,6 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * * @param array $actions Array of actions. * @param WP_Post $post Current post object. - * * @return array */ protected function get_row_actions( $actions, $post ) { @@ -79,7 +78,6 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * Define which columns are sortable. * * @param array $columns Existing columns. - * * @return array */ public function define_sortable_columns( $columns ) { @@ -95,7 +93,6 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * Define which columns to show on this screen. * * @param array $columns Existing columns. - * * @return array */ public function define_columns( $columns ) { @@ -281,7 +278,6 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * Query vars for custom searches. * * @param mixed $public_query_vars Array of query vars. - * * @return array */ public function add_custom_query_var( $public_query_vars ) { @@ -391,7 +387,6 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * Handle any custom filters. * * @param array $query_vars Query vars. - * * @return array */ protected function query_filters( $query_vars ) { @@ -465,10 +460,8 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { /** * Search by SKU or ID for products. * - * @param string $where Where clause SQL. - * * @deprecated Logic moved to query_filters. - * + * @param string $where Where clause SQL. * @return string */ public function sku_search( $where ) { @@ -478,8 +471,7 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { /** * Change views on the edit product screen. * - * @param array $views Array of views. - * + * @param array $views Array of views. * @return array */ public function product_views( $views ) { @@ -504,7 +496,6 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * Change the label when searching products * * @param string $query Search Query. - * * @return string */ public function search_label( $query ) { @@ -522,8 +513,7 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { * * @param array $pieces Array of SELECT statement pieces (from, where, etc). * @param WP_Query $wp_query WP_Query instance. - * - * @return array Array of products, including parents of variations. + * @return array Array of products, including parents of variations. */ public function add_variation_parents_for_shipping_class( $pieces, $wp_query ) { global $wpdb; From 097861605ee6e5ab9e889fce083839bc1c7f2f9d Mon Sep 17 00:00:00 2001 From: Gerhard Date: Mon, 19 Nov 2018 11:38:30 +0200 Subject: [PATCH 47/98] Update translators comment to reflect true variable --- templates/emails/customer-new-account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/emails/customer-new-account.php b/templates/emails/customer-new-account.php index eee821cf709..2acd635fb18 100644 --- a/templates/emails/customer-new-account.php +++ b/templates/emails/customer-new-account.php @@ -23,7 +23,7 @@ if ( ! defined( 'ABSPATH' ) ) { - +

' . esc_html( $user_login ) . '', make_clickable( esc_url( wc_get_page_permalink( 'myaccount' ) ) ) ); ?>

From a0d2a4d21977825646959ddec45b3009163713bf Mon Sep 17 00:00:00 2001 From: Tiago Noronha Date: Mon, 19 Nov 2018 14:35:34 +0000 Subject: [PATCH 48/98] Style pagination to match Twenty Nineteen --- assets/css/twenty-nineteen-rtl.css | 2 +- assets/css/twenty-nineteen.css | 2 +- assets/css/twenty-nineteen.scss | 31 +++++++++++------------------- 3 files changed, 13 insertions(+), 22 deletions(-) diff --git a/assets/css/twenty-nineteen-rtl.css b/assets/css/twenty-nineteen-rtl.css index ebc2b2812a6..652cd382b0e 100644 --- a/assets/css/twenty-nineteen-rtl.css +++ b/assets/css/twenty-nineteen-rtl.css @@ -1 +1 @@ -@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{padding-top:2rem;margin-top:4rem;border-top:1px solid #eee;font-size:.88889em}.woocommerce-pagination ul.page-numbers{padding:0;display:block}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:.5em 1em;background:#ddd;display:inline-block;font-size:1em;float:none;line-height:1.5;border-radius:5px;-webkit-transition:background-color ease-in-out .3s;transition:background-color ease-in-out .3s}.woocommerce-pagination span.page-numbers{background-color:#fff}.woocommerce-pagination a.page-numbers:hover{background-color:#767676;color:#fff}.onsale{position:absolute;top:0;right:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;line-height:1;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;right:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:left;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-right:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:right;top:0;right:0;position:absolute}.star-rating span{overflow:hidden;float:right;top:0;right:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;right:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:right;clear:both;margin-left:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:right;margin-left:.25rem}.single-product form.cart .quantity{float:right;margin-left:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-left:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:right}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:right}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:right}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:right}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;left:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-left:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-left:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:left}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;right:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-right:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:left;margin-top:2px}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 0 0 .5rem}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-left:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:left;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:right;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:right;margin-right:.5rem;margin-left:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-right:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{right:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{left:-1px}.widget_rating_filter li{text-align:left}.widget_rating_filter li .star-rating{float:right;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-left:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;left:.5rem;padding-right:1rem;padding-left:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:before{content:"→";display:inline-block;margin-left:.25rem;color:#111}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:right;margin-left:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-left:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:right;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-right:.5rem}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;left:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;left:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{left:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-right:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{right:50%;top:0;margin-top:-4px;-webkit-transform:translatex(50%) rotate(-180deg);-ms-transform:translatex(50%) rotate(-180deg);transform:translatex(50%) rotate(-180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem .7rem .7rem 0}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{padding-right:0}.wc_payment_method{list-style:none;border-bottom:1px solid #ddd}.wc_payment_method .payment_box{padding:2rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:left}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-right:4px;margin-left:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (min-width:768px){.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-account .woocommerce-MyAccount-navigation{float:left;width:25%;margin-bottom:0}.woocommerce-account .woocommerce-MyAccount-content{float:right}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file +@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{padding-top:1rem;margin-top:1rem;border-top:1px solid #eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.88889em}.woocommerce-pagination ul.page-numbers{margin:0;padding:0;display:block;font-weight:700;letter-spacing:-.02em;line-height:1.2}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:1rem;display:inline-block}.onsale{position:absolute;top:0;right:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;letter-spacing:-.02em;line-height:1.2;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;right:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:left;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-right:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:right;top:0;right:0;position:absolute}.star-rating span{overflow:hidden;float:right;top:0;right:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;right:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:right;clear:both;margin-left:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:right;margin-left:.25rem}.single-product form.cart .quantity{float:right;margin-left:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-left:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:right}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:right}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:right}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:right}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;left:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-left:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-left:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:left}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;right:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-right:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:left;margin-top:2px}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 0 0 .5rem}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-left:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:left;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:right;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:right;margin-right:.5rem;margin-left:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-right:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{right:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{left:-1px}.widget_rating_filter li{text-align:left}.widget_rating_filter li .star-rating{float:right;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-left:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;left:.5rem;padding-right:1rem;padding-left:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:before{content:"→";display:inline-block;margin-left:.25rem;color:#111}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:right;margin-left:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-left:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:right;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-right:.5rem}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;left:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;left:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{left:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-right:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{right:50%;top:0;margin-top:-4px;-webkit-transform:translatex(50%) rotate(-180deg);-ms-transform:translatex(50%) rotate(-180deg);transform:translatex(50%) rotate(-180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem .7rem .7rem 0}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{padding-right:0}.wc_payment_method{list-style:none;border-bottom:1px solid #ddd}.wc_payment_method .payment_box{padding:2rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:left}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-right:4px;margin-left:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (min-width:768px){.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-account .woocommerce-MyAccount-navigation{float:left;width:25%;margin-bottom:0}.woocommerce-account .woocommerce-MyAccount-content{float:right}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file diff --git a/assets/css/twenty-nineteen.css b/assets/css/twenty-nineteen.css index da00f205afa..5eda38260f2 100644 --- a/assets/css/twenty-nineteen.css +++ b/assets/css/twenty-nineteen.css @@ -1 +1 @@ -@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{padding-top:2rem;margin-top:4rem;border-top:1px solid #eee;font-size:.88889em}.woocommerce-pagination ul.page-numbers{padding:0;display:block}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:.5em 1em;background:#ddd;display:inline-block;font-size:1em;float:none;line-height:1.5;border-radius:5px;-webkit-transition:background-color ease-in-out .3s;transition:background-color ease-in-out .3s}.woocommerce-pagination span.page-numbers{background-color:#fff}.woocommerce-pagination a.page-numbers:hover{background-color:#767676;color:#fff}.onsale{position:absolute;top:0;left:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;line-height:1;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;left:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:right;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-left:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:left;top:0;left:0;position:absolute}.star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;left:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:left;clear:both;margin-right:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:left;margin-right:.25rem}.single-product form.cart .quantity{float:left;margin-right:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-right:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:left}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:left}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:left}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:left}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;right:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-right:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-right:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:right}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;left:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-left:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:right;margin-top:2px}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 .5rem 0 0}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-right:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:right;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:left;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:left;margin-left:.5rem;margin-right:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-left:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{left:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{right:-1px}.widget_rating_filter li{text-align:right}.widget_rating_filter li .star-rating{float:left;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-right:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;right:.5rem;padding-left:1rem;padding-right:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:before{content:"→";display:inline-block;margin-right:.25rem;color:#111}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:left;margin-right:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-right:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:left;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-left:.5rem}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;right:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;right:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{right:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-left:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{left:50%;top:0;margin-top:-4px;-webkit-transform:translatex(-50%) rotate(180deg);-ms-transform:translatex(-50%) rotate(180deg);transform:translatex(-50%) rotate(180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem 0 .7rem .7rem}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{padding-left:0}.wc_payment_method{list-style:none;border-bottom:1px solid #ddd}.wc_payment_method .payment_box{padding:2rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:right}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-left:4px;margin-right:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (min-width:768px){.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-account .woocommerce-MyAccount-navigation{float:right;width:25%;margin-bottom:0}.woocommerce-account .woocommerce-MyAccount-content{float:left}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file +@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{padding-top:1rem;margin-top:1rem;border-top:1px solid #eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.88889em}.woocommerce-pagination ul.page-numbers{margin:0;padding:0;display:block;font-weight:700;letter-spacing:-.02em;line-height:1.2}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:1rem;display:inline-block}.onsale{position:absolute;top:0;left:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;letter-spacing:-.02em;line-height:1.2;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;left:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:right;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-left:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:left;top:0;left:0;position:absolute}.star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;left:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:left;clear:both;margin-right:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:left;margin-right:.25rem}.single-product form.cart .quantity{float:left;margin-right:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-right:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:left}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:left}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:left}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:left}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;right:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-right:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-right:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:right}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;left:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-left:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:right;margin-top:2px}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 .5rem 0 0}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-right:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:right;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:left;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:left;margin-left:.5rem;margin-right:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-left:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{left:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{right:-1px}.widget_rating_filter li{text-align:right}.widget_rating_filter li .star-rating{float:left;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-right:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;right:.5rem;padding-left:1rem;padding-right:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:before{content:"→";display:inline-block;margin-right:.25rem;color:#111}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:left;margin-right:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-right:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:left;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-left:.5rem}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;right:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;right:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{right:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-left:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{left:50%;top:0;margin-top:-4px;-webkit-transform:translatex(-50%) rotate(180deg);-ms-transform:translatex(-50%) rotate(180deg);transform:translatex(-50%) rotate(180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem 0 .7rem .7rem}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{padding-left:0}.wc_payment_method{list-style:none;border-bottom:1px solid #ddd}.wc_payment_method .payment_box{padding:2rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:right}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-left:4px;margin-right:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (min-width:768px){.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-account .woocommerce-MyAccount-navigation{float:right;width:25%;margin-bottom:0}.woocommerce-account .woocommerce-MyAccount-content{float:left}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file diff --git a/assets/css/twenty-nineteen.scss b/assets/css/twenty-nineteen.scss index 1a89f61a896..397da639b5e 100644 --- a/assets/css/twenty-nineteen.scss +++ b/assets/css/twenty-nineteen.scss @@ -73,37 +73,27 @@ a.button { } .woocommerce-pagination { - padding-top: 2rem; - margin-top: 4rem; + padding-top: 1rem; + margin-top: 1rem; border-top: 1px solid #eee; + font-family: $headings; font-size: 0.88889em; ul.page-numbers { + margin: 0; padding: 0; display: block; + font-weight: 700; + letter-spacing: -0.02em; + line-height: 1.2; } span.page-numbers, a.page-numbers, .next.page-numbers, .prev.page-numbers { - padding: 0.5em 1em; - background: #ddd; + padding: 1rem; display: inline-block; - font-size: 1em; - float: none; - line-height: 1.5; - border-radius: 5px; - transition: background-color ease-in-out 0.3s; - } - - span.page-numbers { - background-color: #fff; - } - - a.page-numbers:hover { - background-color: #767676; - color: #fff; } } @@ -117,8 +107,9 @@ a.button { display: inline-block; font-family: $headings; font-size: 0.71111em; - font-weight: bold; - line-height: 1; + font-weight: 700; + letter-spacing: -0.02em; + line-height: 1.2; padding: 0.5rem; position: absolute; text-transform: uppercase; From 99ab28a886d9ac57817047b225865b0cc2c50670 Mon Sep 17 00:00:00 2001 From: Tiago Noronha Date: Mon, 19 Nov 2018 14:40:43 +0000 Subject: [PATCH 49/98] Remove border and add handheld styling to pagination --- assets/css/twenty-nineteen-rtl.css | 2 +- assets/css/twenty-nineteen.css | 2 +- assets/css/twenty-nineteen.scss | 14 ++++++++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/assets/css/twenty-nineteen-rtl.css b/assets/css/twenty-nineteen-rtl.css index 652cd382b0e..94fe8eeef91 100644 --- a/assets/css/twenty-nineteen-rtl.css +++ b/assets/css/twenty-nineteen-rtl.css @@ -1 +1 @@ -@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{padding-top:1rem;margin-top:1rem;border-top:1px solid #eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.88889em}.woocommerce-pagination ul.page-numbers{margin:0;padding:0;display:block;font-weight:700;letter-spacing:-.02em;line-height:1.2}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:1rem;display:inline-block}.onsale{position:absolute;top:0;right:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;letter-spacing:-.02em;line-height:1.2;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;right:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:left;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-right:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:right;top:0;right:0;position:absolute}.star-rating span{overflow:hidden;float:right;top:0;right:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;right:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:right;clear:both;margin-left:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:right;margin-left:.25rem}.single-product form.cart .quantity{float:right;margin-left:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-left:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:right}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:right}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:right}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:right}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;left:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-left:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-left:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:left}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;right:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-right:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:left;margin-top:2px}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 0 0 .5rem}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-left:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:left;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:right;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:right;margin-right:.5rem;margin-left:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-right:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{right:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{left:-1px}.widget_rating_filter li{text-align:left}.widget_rating_filter li .star-rating{float:right;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-left:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;left:.5rem;padding-right:1rem;padding-left:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:before{content:"→";display:inline-block;margin-left:.25rem;color:#111}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:right;margin-left:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-left:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:right;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-right:.5rem}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;left:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;left:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{left:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-right:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{right:50%;top:0;margin-top:-4px;-webkit-transform:translatex(50%) rotate(-180deg);-ms-transform:translatex(50%) rotate(-180deg);transform:translatex(50%) rotate(-180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem .7rem .7rem 0}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{padding-right:0}.wc_payment_method{list-style:none;border-bottom:1px solid #ddd}.wc_payment_method .payment_box{padding:2rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:left}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-right:4px;margin-left:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (min-width:768px){.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-account .woocommerce-MyAccount-navigation{float:left;width:25%;margin-bottom:0}.woocommerce-account .woocommerce-MyAccount-content{float:right}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file +@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.88889em}.woocommerce-pagination ul.page-numbers{margin:0;padding:0;display:block;font-weight:700;letter-spacing:-.02em;line-height:1.2}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:0 calc(.5 * 1rem);display:inline-block}.onsale{position:absolute;top:0;right:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;letter-spacing:-.02em;line-height:1.2;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;right:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:left;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-right:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:right;top:0;right:0;position:absolute}.star-rating span{overflow:hidden;float:right;top:0;right:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;right:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:right;clear:both;margin-left:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:right;margin-left:.25rem}.single-product form.cart .quantity{float:right;margin-left:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-left:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:right}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:right}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:right}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:right}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;left:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-left:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-left:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:left}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;right:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-right:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:left;margin-top:2px}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 0 0 .5rem}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-left:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:left;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:right;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:right;margin-right:.5rem;margin-left:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-right:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{right:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{left:-1px}.widget_rating_filter li{text-align:left}.widget_rating_filter li .star-rating{float:right;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-left:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;left:.5rem;padding-right:1rem;padding-left:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:before{content:"→";display:inline-block;margin-left:.25rem;color:#111}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:right;margin-left:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-left:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:right;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-right:.5rem}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;left:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;left:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{left:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-right:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{right:50%;top:0;margin-top:-4px;-webkit-transform:translatex(50%) rotate(-180deg);-ms-transform:translatex(50%) rotate(-180deg);transform:translatex(50%) rotate(-180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem .7rem .7rem 0}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{padding-right:0}.wc_payment_method{list-style:none;border-bottom:1px solid #ddd}.wc_payment_method .payment_box{padding:2rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:left}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-right:4px;margin-left:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (min-width:768px){.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{float:left;width:25%;margin-bottom:0}.woocommerce-account .woocommerce-MyAccount-content{float:right}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file diff --git a/assets/css/twenty-nineteen.css b/assets/css/twenty-nineteen.css index 5eda38260f2..18d0bac2bae 100644 --- a/assets/css/twenty-nineteen.css +++ b/assets/css/twenty-nineteen.css @@ -1 +1 @@ -@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{padding-top:1rem;margin-top:1rem;border-top:1px solid #eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.88889em}.woocommerce-pagination ul.page-numbers{margin:0;padding:0;display:block;font-weight:700;letter-spacing:-.02em;line-height:1.2}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:1rem;display:inline-block}.onsale{position:absolute;top:0;left:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;letter-spacing:-.02em;line-height:1.2;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;left:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:right;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-left:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:left;top:0;left:0;position:absolute}.star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;left:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:left;clear:both;margin-right:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:left;margin-right:.25rem}.single-product form.cart .quantity{float:left;margin-right:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-right:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:left}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:left}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:left}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:left}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;right:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-right:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-right:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:right}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;left:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-left:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:right;margin-top:2px}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 .5rem 0 0}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-right:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:right;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:left;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:left;margin-left:.5rem;margin-right:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-left:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{left:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{right:-1px}.widget_rating_filter li{text-align:right}.widget_rating_filter li .star-rating{float:left;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-right:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;right:.5rem;padding-left:1rem;padding-right:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:before{content:"→";display:inline-block;margin-right:.25rem;color:#111}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:left;margin-right:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-right:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:left;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-left:.5rem}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;right:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;right:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{right:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-left:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{left:50%;top:0;margin-top:-4px;-webkit-transform:translatex(-50%) rotate(180deg);-ms-transform:translatex(-50%) rotate(180deg);transform:translatex(-50%) rotate(180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem 0 .7rem .7rem}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{padding-left:0}.wc_payment_method{list-style:none;border-bottom:1px solid #ddd}.wc_payment_method .payment_box{padding:2rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:right}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-left:4px;margin-right:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (min-width:768px){.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-account .woocommerce-MyAccount-navigation{float:right;width:25%;margin-bottom:0}.woocommerce-account .woocommerce-MyAccount-content{float:left}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file +@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.88889em}.woocommerce-pagination ul.page-numbers{margin:0;padding:0;display:block;font-weight:700;letter-spacing:-.02em;line-height:1.2}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:0 calc(.5 * 1rem);display:inline-block}.onsale{position:absolute;top:0;left:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;letter-spacing:-.02em;line-height:1.2;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;left:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:right;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-left:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:left;top:0;left:0;position:absolute}.star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;left:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:left;clear:both;margin-right:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:left;margin-right:.25rem}.single-product form.cart .quantity{float:left;margin-right:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-right:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:left}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:left}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:left}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:left}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;right:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-right:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-right:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:right}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;left:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-left:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:right;margin-top:2px}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 .5rem 0 0}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-right:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:right;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:left;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:left;margin-left:.5rem;margin-right:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-left:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{left:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{right:-1px}.widget_rating_filter li{text-align:right}.widget_rating_filter li .star-rating{float:left;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-right:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;right:.5rem;padding-left:1rem;padding-right:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:before{content:"→";display:inline-block;margin-right:.25rem;color:#111}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:left;margin-right:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-right:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:left;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-left:.5rem}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;right:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;right:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{right:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-left:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{left:50%;top:0;margin-top:-4px;-webkit-transform:translatex(-50%) rotate(180deg);-ms-transform:translatex(-50%) rotate(180deg);transform:translatex(-50%) rotate(180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem 0 .7rem .7rem}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{padding-left:0}.wc_payment_method{list-style:none;border-bottom:1px solid #ddd}.wc_payment_method .payment_box{padding:2rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:right}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-left:4px;margin-right:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (min-width:768px){.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{float:right;width:25%;margin-bottom:0}.woocommerce-account .woocommerce-MyAccount-content{float:left}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file diff --git a/assets/css/twenty-nineteen.scss b/assets/css/twenty-nineteen.scss index 397da639b5e..4f4171cd8ed 100644 --- a/assets/css/twenty-nineteen.scss +++ b/assets/css/twenty-nineteen.scss @@ -73,9 +73,6 @@ a.button { } .woocommerce-pagination { - padding-top: 1rem; - margin-top: 1rem; - border-top: 1px solid #eee; font-family: $headings; font-size: 0.88889em; @@ -92,7 +89,7 @@ a.button { a.page-numbers, .next.page-numbers, .prev.page-numbers { - padding: 1rem; + padding: 0 calc(.5 * 1rem); display: inline-block; } } @@ -1204,6 +1201,15 @@ table.variations { font-size: 2.25em; } + .woocommerce-pagination { + span.page-numbers, + a.page-numbers, + .next.page-numbers, + .prev.page-numbers { + padding: 1rem; + } + } + /** * Account section */ From 89eec8652f8b02fe1471691afbf146d1a5aaf7d8 Mon Sep 17 00:00:00 2001 From: Tiago Noronha Date: Mon, 19 Nov 2018 15:02:26 +0000 Subject: [PATCH 50/98] Add support for Twenty Nineteen color scheme option --- .../class-wc-twenty-nineteen.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/includes/theme-support/class-wc-twenty-nineteen.php b/includes/theme-support/class-wc-twenty-nineteen.php index 286978da89c..1f99a18602b 100644 --- a/includes/theme-support/class-wc-twenty-nineteen.php +++ b/includes/theme-support/class-wc-twenty-nineteen.php @@ -42,6 +42,9 @@ class WC_Twenty_Nineteen { // Tweak Twenty Nineteen features. add_action( 'wp', array( __CLASS__, 'tweak_theme_features' ) ); + + // Color scheme CSS + add_filter( 'twentynineteen_custom_colors_css', array( __CLASS__, 'custom_colors_css' ), 10, 3 ); } /** @@ -88,6 +91,37 @@ class WC_Twenty_Nineteen { add_filter( 'twentynineteen_can_show_post_thumbnail', '__return_false' ); } } + + /** + * Filters Twenty Nineteen custom colors CSS. + * + * @param string $css Base theme colors CSS. + * @param int $primary_color The user's selected color hue. + * @param string $saturation Filtered theme color saturation level. + */ + public static function custom_colors_css( $css, $primary_color, $saturation ) { + if ( function_exists( 'register_block_type' ) && is_admin() ) { + return $css; + } + + $lightness = absint( apply_filters( 'twentynineteen_custom_colors_lightness', 33 ) ); + $lightness = $lightness . '%'; + + $css .= ' + .onsale, + .woocommerce-info, + .woocommerce-store-notice { + background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); + } + + .woocommerce-tabs ul li.active a { + color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); + box-shadow: 0 2px 0 hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); + } + '; + + return $css; + } } WC_Twenty_Nineteen::init(); From 86725c4f8cd6a7783663b740b98e88a54b65d275 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 19 Nov 2018 16:52:33 -0200 Subject: [PATCH 51/98] Updated WooCommerce Sniffs --- composer.json | 2 +- composer.lock | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/composer.json b/composer.json index cc636314c1a..1805882e17e 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "nette/utils": "~2.3.0", "phpunit/phpunit": "6.*", "woocommerce/woocommerce-git-hooks": "*", - "woocommerce/woocommerce-sniffs": "^0.0.3" + "woocommerce/woocommerce-sniffs": "^0.0.4" }, "scripts": { "pre-update-cmd": [ diff --git a/composer.lock b/composer.lock index 44151690263..76ee6e72707 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "470ecc8e426f34740724ae94f0345793", + "content-hash": "5506583663b2a8cc91a1ee8f25ca0714", "packages": [ { "name": "composer/installers", @@ -3820,23 +3820,23 @@ }, { "name": "woocommerce/woocommerce-sniffs", - "version": "0.0.3", + "version": "0.0.4", "source": { "type": "git", "url": "https://github.com/woocommerce/woocommerce-sniffs.git", - "reference": "c7e6e641e47b397ee64eb52a762c265cf476495a" + "reference": "f436589c2e44734263964f05860242ae4bf6d025" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/woocommerce/woocommerce-sniffs/zipball/c7e6e641e47b397ee64eb52a762c265cf476495a", - "reference": "c7e6e641e47b397ee64eb52a762c265cf476495a", + "url": "https://api.github.com/repos/woocommerce/woocommerce-sniffs/zipball/f436589c2e44734263964f05860242ae4bf6d025", + "reference": "f436589c2e44734263964f05860242ae4bf6d025", "shasum": "" }, "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", "php": ">=7.0", "wimg/php-compatibility": "^9.0", - "wp-coding-standards/wpcs": "^1.1" + "wp-coding-standards/wpcs": "^1.2" }, "type": "phpcodesniffer-standard", "notification-url": "https://packagist.org/downloads/", @@ -3856,20 +3856,20 @@ "woocommerce", "wordpress" ], - "time": "2018-11-06T22:51:50+00:00" + "time": "2018-11-19T18:40:14+00:00" }, { "name": "wp-coding-standards/wpcs", - "version": "1.1.0", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git", - "reference": "46d42828ce7355d8b3776e3171f2bda892d179b4" + "reference": "7aa217ab38156c5cb4eae0f04ae376027c407a9b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/46d42828ce7355d8b3776e3171f2bda892d179b4", - "reference": "46d42828ce7355d8b3776e3171f2bda892d179b4", + "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/7aa217ab38156c5cb4eae0f04ae376027c407a9b", + "reference": "7aa217ab38156c5cb4eae0f04ae376027c407a9b", "shasum": "" }, "require": { @@ -3877,7 +3877,7 @@ "squizlabs/php_codesniffer": "^2.9.0 || ^3.0.2" }, "require-dev": { - "phpcompatibility/php-compatibility": "*" + "phpcompatibility/php-compatibility": "^9.0" }, "suggest": { "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." @@ -3899,7 +3899,7 @@ "standards", "wordpress" ], - "time": "2018-09-10T17:04:05+00:00" + "time": "2018-11-12T10:13:12+00:00" } ], "aliases": [], From c05c17d9474f780b1c59d9a62ed064f7c5436a98 Mon Sep 17 00:00:00 2001 From: Gerhard Date: Tue, 20 Nov 2018 12:46:52 +0200 Subject: [PATCH 52/98] Timestamp should be in UTC since we use date( 'c' ) for outputting the date/time in the file. --- includes/class-wc-logger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-logger.php b/includes/class-wc-logger.php index c2fb5e17288..8aa8c445eef 100644 --- a/includes/class-wc-logger.php +++ b/includes/class-wc-logger.php @@ -129,7 +129,7 @@ class WC_Logger implements WC_Logger_Interface { } if ( $this->should_handle( $level ) ) { - $timestamp = current_time( 'timestamp' ); + $timestamp = current_time( 'timestamp', 1 ); $message = apply_filters( 'woocommerce_logger_log_message', $message, $level, $context ); foreach ( $this->handlers as $handler ) { From 47226ae2bf4b05cef968b49b4f46e710a6a842bf Mon Sep 17 00:00:00 2001 From: Gerhard Date: Tue, 20 Nov 2018 12:54:59 +0200 Subject: [PATCH 53/98] PHPCS fixes --- includes/class-wc-logger.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/includes/class-wc-logger.php b/includes/class-wc-logger.php index 8aa8c445eef..9f0a68e22c6 100644 --- a/includes/class-wc-logger.php +++ b/includes/class-wc-logger.php @@ -99,10 +99,14 @@ class WC_Logger implements WC_Logger_Interface { */ public function add( $handle, $message, $level = WC_Log_Levels::NOTICE ) { $message = apply_filters( 'woocommerce_logger_add_message', $message, $handle ); - $this->log( $level, $message, array( - 'source' => $handle, - '_legacy' => true, - ) ); + $this->log( + $level, + $message, + array( + 'source' => $handle, + '_legacy' => true, + ) + ); wc_do_deprecated_action( 'woocommerce_log_add', array( $handle, $message ), '3.0', 'This action has been deprecated with no alternative.' ); return true; } From 9282c1a619a261b2e260aeb99cca95b1f1e251d2 Mon Sep 17 00:00:00 2001 From: Marco Almeida Date: Tue, 20 Nov 2018 12:36:45 +0000 Subject: [PATCH 54/98] Remove postal code for Angola Angola still doesn't have a postcode system in place. References: https://pt.wikipedia.org/wiki/C%C3%B3digo_postal#_Angola https://en.wikipedia.org/wiki/List_of_postal_codes --- includes/class-wc-countries.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/class-wc-countries.php b/includes/class-wc-countries.php index c42f7df3211..23ac96ccafa 100644 --- a/includes/class-wc-countries.php +++ b/includes/class-wc-countries.php @@ -752,6 +752,12 @@ class WC_Countries { 'required' => false, ), ), + 'AO' => array( + 'postcode' => array( + 'required' => false, + 'hidden' => true, + ), + ), 'AT' => array( 'postcode' => array( 'priority' => 65, From b19941dae403a99a7f91c244fa98ab53ee579912 Mon Sep 17 00:00:00 2001 From: Marco Almeida Date: Tue, 20 Nov 2018 13:29:45 +0000 Subject: [PATCH 55/98] =?UTF-8?q?Fix=20locale=20for=20S=C3=A3o=20Tom=C3=A9?= =?UTF-8?q?=20and=20Pr=C3=ADncipe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove Postal Code for São Tomé and Príncipe, because they still don't have it in place. Also the stat field should have "District" as label. --- includes/class-wc-countries.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/class-wc-countries.php b/includes/class-wc-countries.php index 23ac96ccafa..f173da48606 100644 --- a/includes/class-wc-countries.php +++ b/includes/class-wc-countries.php @@ -1175,6 +1175,15 @@ class WC_Countries { 'required' => false, ), ), + 'ST' => array( + 'postcode' => array( + 'required' => false, + 'hidden' => true, + ), + 'state' => array( + 'label' => __( 'District', 'woocommerce' ), + ), + ), 'VN' => array( 'state' => array( 'required' => false, From 276d6f352669d086f451d83e90a87f2c390ff85c Mon Sep 17 00:00:00 2001 From: Marco Almeida Date: Tue, 20 Nov 2018 14:17:11 +0000 Subject: [PATCH 56/98] Fix Angolan "State" label to "Province" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In Angola "states" are called "Províncias" (or "Provinces" in English) --- includes/class-wc-countries.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/class-wc-countries.php b/includes/class-wc-countries.php index 23ac96ccafa..3dbdaf1e435 100644 --- a/includes/class-wc-countries.php +++ b/includes/class-wc-countries.php @@ -757,6 +757,9 @@ class WC_Countries { 'required' => false, 'hidden' => true, ), + 'state' => array( + 'label' => __( 'Province', 'woocommerce' ), + ), ), 'AT' => array( 'postcode' => array( From 68abf960f440675456a97d992e7c50837bd7dff2 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Mon, 19 Nov 2018 17:46:50 -0200 Subject: [PATCH 57/98] Use WP 5.0-beta5 when running PHP 7.3 in Travis To make it easier to test WC running the upcoming PHP 7.3, this commit changes the PHP 7.3 Travis build to run unit tests using WP 5.0-beta5. This way we won't display WP core warnings related to PHP 7.3 that were already fixed in the upcoming WP version and will be able to see only WC related warnings. My initial plan was to use WP nightly but that didn't work as nightly is still build from trunk and WP 5.0 development is being done on another branch (https://make.wordpress.org/core/2018/10/05/wordpress-5-0-commit-management/). --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4811f23967f..901a9931e17 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,6 @@ php: - 5.6 - 7.0 - 7.1 - - 7.3 env: - WP_VERSION=latest WP_MULTISITE=0 @@ -31,9 +30,13 @@ matrix: env: WP_VERSION=latest WP_MULTISITE=0 RUN_PHPCS=1 RUN_E2E=1 - php: 7.1 env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1 - allow_failures: - - env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1 - php: 7.3 + env: WP_VERSION=5.0-beta5 WP_MULTISITE=0 + allow_failures: + - php: 7.1 + env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1 + - php: 7.3 + env: WP_VERSION=5.0-beta5 WP_MULTISITE=0 before_script: - | From 8b85eee2d0cff5348bf62b6ada3e72e5a65b6426 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Tue, 20 Nov 2018 14:43:38 -0200 Subject: [PATCH 58/98] Ignore WP beta releases when setting WP_TESTS_TAG This commit changes the regular expression used to determine the WP_TESTS_TAG variable to ignore WP beta releases otherwise install_test_suite() will fail to download the test suite. This is part of workaround to run WooCommerce unit tests using PHP 7.3 and WP 5.0 beta-5. --- tests/bin/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bin/install.sh b/tests/bin/install.sh index 0dc2cff9d2b..88667caacf0 100755 --- a/tests/bin/install.sh +++ b/tests/bin/install.sh @@ -24,7 +24,7 @@ download() { fi } -if [[ $WP_VERSION =~ [0-9]+\.[0-9]+(\.[0-9]+)? ]]; then +if [[ $WP_VERSION =~ [0-9]+\.[0-9]+(\.[0-9]+)?(^-) ]]; then WP_TESTS_TAG="tags/$WP_VERSION" elif [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then WP_TESTS_TAG="trunk" From d29ead0e63198f812494c986a814f7acf0728af8 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Tue, 20 Nov 2018 15:54:54 -0200 Subject: [PATCH 59/98] Make Emogrifier regular expressions compatibile with PCRE2 In preparation for PHP 7.3, this commit makes the regular expressions used in Emogrifier compatible with PCRE2. It was necessary to escape hyphens used in a few regular expressions. Since the changes were simple and I'm not familiar enough with Emogrifier, I opted to backport the changes that they made in preparation for PHP 7.3 (https://github.com/MyIntervals/emogrifier/pull/588 and https://github.com/MyIntervals/emogrifier/issues/587) instead of updating the library to the yet to be released version 2.1.0. This change removes the following warning when running WC unit tests using PHP 7.3: PHP Warning: preg_replace(): Compilation failed: invalid range in character class at offset 39 in includes/libraries/class-emogrifier.php on line 1504 For more information about the PCRE2 change in PHP 7.3 see the section "PCRE to PCRE2 migration" in the link https://ayesh.me/Upgrade-PHP-7.3 --- includes/libraries/class-emogrifier.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/libraries/class-emogrifier.php b/includes/libraries/class-emogrifier.php index 12d6c82722a..8518c4bf43e 100644 --- a/includes/libraries/class-emogrifier.php +++ b/includes/libraries/class-emogrifier.php @@ -162,15 +162,15 @@ class Emogrifier // type and attribute exact value '/(\\w)\\[(\\w+)\\=[\'"]?([\\w\\s]+)[\'"]?\\]/' => '\\1[@\\2="\\3"]', // type and attribute value with ~ (one word within a whitespace-separated list of words) - '/([\\w\\*]+)\\[(\\w+)[\\s]*\\~\\=[\\s]*[\'"]?([\\w-_\\/]+)[\'"]?\\]/' + '/([\\w\\*]+)\\[(\\w+)[\\s]*\\~\\=[\\s]*[\'"]?([\\w\\-_\\/]+)[\'"]?\\]/' => '\\1[contains(concat(" ", @\\2, " "), concat(" ", "\\3", " "))]', // type and attribute value with | (either exact value match or prefix followed by a hyphen) - '/([\\w\\*]+)\\[(\\w+)[\\s]*\\|\\=[\\s]*[\'"]?([\\w-_\\s\\/]+)[\'"]?\\]/' + '/([\\w\\*]+)\\[(\\w+)[\\s]*\\|\\=[\\s]*[\'"]?([\\w\\-_\\s\\/]+)[\'"]?\\]/' => '\\1[@\\2="\\3" or starts-with(@\\2, concat("\\3", "-"))]', // type and attribute value with ^ (prefix match) - '/([\\w\\*]+)\\[(\\w+)[\\s]*\\^\\=[\\s]*[\'"]?([\\w-_\\/]+)[\'"]?\\]/' => '\\1[starts-with(@\\2, "\\3")]', + '/([\\w\\*]+)\\[(\\w+)[\\s]*\\^\\=[\\s]*[\'"]?([\\w\\-_\\/]+)[\'"]?\\]/' => '\\1[starts-with(@\\2, "\\3")]', // type and attribute value with * (substring match) - '/([\\w\\*]+)\\[(\\w+)[\\s]*\\*\\=[\\s]*[\'"]?([\\w-_\\s\\/:;]+)[\'"]?\\]/' => '\\1[contains(@\\2, "\\3")]', + '/([\\w\\*]+)\\[(\\w+)[\\s]*\\*\\=[\\s]*[\'"]?([\\w\\-_\\s\\/:;]+)[\'"]?\\]/' => '\\1[contains(@\\2, "\\3")]', // adjacent sibling '/\\s+\\+\\s+/' => '/following-sibling::*[1]/self::', // child @@ -185,7 +185,7 @@ class Emogrifier // The following matcher will break things if it is placed before the adjacent matcher. // So one of the matchers matches either too much or not enough. // type and attribute value with $ (suffix match) - '/([\\w\\*]+)\\[(\\w+)[\\s]*\\$\\=[\\s]*[\'"]?([\\w-_\\s\\/]+)[\'"]?\\]/' + '/([\\w\\*]+)\\[(\\w+)[\\s]*\\$\\=[\\s]*[\'"]?([\\w\\-_\\s\\/]+)[\'"]?\\]/' => '\\1[substring(@\\2, string-length(@\\2) - string-length("\\3") + 1) = "\\3"]', ]; From a9e532022a0c0b6f32f33af8e0ab95f5fca9ff76 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Tue, 20 Nov 2018 16:24:11 -0200 Subject: [PATCH 60/98] Replace `continue` inside `switch` statement with `break` PHP 7.3 will generate a warning when `continue` is used inside a `switch` statement. For more information see the relevant section in https://make.wordpress.org/core/2018/10/15/wordpress-and-php-7-3/ --- includes/admin/reports/class-wc-admin-report.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/reports/class-wc-admin-report.php b/includes/admin/reports/class-wc-admin-report.php index 9467e058837..60efaf696f2 100644 --- a/includes/admin/reports/class-wc-admin-report.php +++ b/includes/admin/reports/class-wc-admin-report.php @@ -129,7 +129,7 @@ class WC_Admin_Report { $get_key = "order_items.{$key}"; break; default: - continue; + break; } if ( $value['function'] ) { From ebea6b96be28f052c87b62455f73b97d31102f6e Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Tue, 20 Nov 2018 12:07:57 -0800 Subject: [PATCH 61/98] When only selling to one country set customer location to that country --- includes/wc-core-functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/wc-core-functions.php b/includes/wc-core-functions.php index f01cd25fcc6..926a7578220 100644 --- a/includes/wc-core-functions.php +++ b/includes/wc-core-functions.php @@ -1079,7 +1079,8 @@ function wc_get_customer_default_location() { $location = wc_format_country_state_string( apply_filters( 'woocommerce_customer_default_location', get_option( 'woocommerce_default_country' ) ) ); break; default: - $location = wc_format_country_state_string( apply_filters( 'woocommerce_customer_default_location', '' ) ); + $countries = WC()->countries->get_allowed_countries(); + $location = wc_format_country_state_string( apply_filters( 'woocommerce_customer_default_location', 1 === count( $countries ) ? key( $countries ) : '' ) ); break; } From bf1d11e7346a66490211a2a927c6102c6e0de1eb Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Tue, 20 Nov 2018 19:37:28 -0200 Subject: [PATCH 62/98] Updated WooCommerec Sniffs to 0.0.5 --- composer.json | 2 +- composer.lock | 230 ++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 166 insertions(+), 66 deletions(-) diff --git a/composer.json b/composer.json index 1805882e17e..589513cf1cd 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "nette/utils": "~2.3.0", "phpunit/phpunit": "6.*", "woocommerce/woocommerce-git-hooks": "*", - "woocommerce/woocommerce-sniffs": "^0.0.4" + "woocommerce/woocommerce-sniffs": "^0.0.5" }, "scripts": { "pre-update-cmd": [ diff --git a/composer.lock b/composer.lock index 76ee6e72707..086983858b4 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5506583663b2a8cc91a1ee8f25ca0714", + "content-hash": "cb53f81a493f453b55e37363f7dc51a2", "packages": [ { "name": "composer/installers", @@ -1918,6 +1918,164 @@ "description": "Library for handling version information and constraints", "time": "2017-03-05T17:38:23+00:00" }, + { + "name": "phpcompatibility/php-compatibility", + "version": "9.0.0", + "source": { + "type": "git", + "url": "https://github.com/PHPCompatibility/PHPCompatibility.git", + "reference": "e9f4047e5edf53c88f36f1dafc0d49454ce13e25" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/e9f4047e5edf53c88f36f1dafc0d49454ce13e25", + "reference": "e9f4047e5edf53c88f36f1dafc0d49454ce13e25", + "shasum": "" + }, + "require": { + "php": ">=5.3", + "squizlabs/php_codesniffer": "^2.3 || ^3.0.2" + }, + "conflict": { + "squizlabs/php_codesniffer": "2.6.2" + }, + "require-dev": { + "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.", + "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." + }, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Contributors", + "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors" + }, + { + "name": "Wim Godden", + "homepage": "https://github.com/wimg", + "role": "lead" + }, + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + } + ], + "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.", + "homepage": "http://techblog.wimgodden.be/tag/codesniffer/", + "keywords": [ + "compatibility", + "phpcs", + "standards" + ], + "time": "2018-10-07T17:38:02+00:00" + }, + { + "name": "phpcompatibility/phpcompatibility-paragonie", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git", + "reference": "67d89dcef47f351144d24b247aa968f2269162f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/67d89dcef47f351144d24b247aa968f2269162f7", + "reference": "67d89dcef47f351144d24b247aa968f2269162f7", + "shasum": "" + }, + "require": { + "phpcompatibility/php-compatibility": "^9.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", + "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." + }, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Wim Godden", + "role": "lead" + }, + { + "name": "Juliette Reinders Folmer", + "role": "lead" + } + ], + "description": "A set of rulesets for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.", + "homepage": "http://phpcompatibility.com/", + "keywords": [ + "compatibility", + "paragonie", + "phpcs", + "polyfill", + "standards" + ], + "time": "2018-10-07T17:59:30+00:00" + }, + { + "name": "phpcompatibility/phpcompatibility-wp", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git", + "reference": "cb303f0067cd5b366a41d4fb0e254fb40ff02efd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/cb303f0067cd5b366a41d4fb0e254fb40ff02efd", + "reference": "cb303f0067cd5b366a41d4fb0e254fb40ff02efd", + "shasum": "" + }, + "require": { + "phpcompatibility/php-compatibility": "^9.0", + "phpcompatibility/phpcompatibility-paragonie": "^1.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", + "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." + }, + "type": "phpcodesniffer-standard", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Wim Godden", + "role": "lead" + }, + { + "name": "Juliette Reinders Folmer", + "role": "lead" + } + ], + "description": "A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.", + "homepage": "http://phpcompatibility.com/", + "keywords": [ + "compatibility", + "phpcs", + "standards", + "wordpress" + ], + "time": "2018-10-07T18:31:37+00:00" + }, { "name": "phpdocumentor/reflection-common", "version": "1.0.1", @@ -3727,64 +3885,6 @@ ], "time": "2018-01-29T19:49:41+00:00" }, - { - "name": "wimg/php-compatibility", - "version": "9.0.0", - "source": { - "type": "git", - "url": "https://github.com/PHPCompatibility/PHPCompatibility.git", - "reference": "e9f4047e5edf53c88f36f1dafc0d49454ce13e25" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/e9f4047e5edf53c88f36f1dafc0d49454ce13e25", - "reference": "e9f4047e5edf53c88f36f1dafc0d49454ce13e25", - "shasum": "" - }, - "require": { - "php": ">=5.3", - "squizlabs/php_codesniffer": "^2.3 || ^3.0.2" - }, - "conflict": { - "squizlabs/php_codesniffer": "2.6.2" - }, - "require-dev": { - "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0" - }, - "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.", - "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." - }, - "type": "phpcodesniffer-standard", - "notification-url": "https://packagist.org/downloads/", - "license": [ - "LGPL-3.0-or-later" - ], - "authors": [ - { - "name": "Contributors", - "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors" - }, - { - "name": "Wim Godden", - "homepage": "https://github.com/wimg", - "role": "lead" - }, - { - "name": "Juliette Reinders Folmer", - "homepage": "https://github.com/jrfnl", - "role": "lead" - } - ], - "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.", - "homepage": "http://techblog.wimgodden.be/tag/codesniffer/", - "keywords": [ - "compatibility", - "phpcs", - "standards" - ], - "time": "2018-10-07T17:38:02+00:00" - }, { "name": "woocommerce/woocommerce-git-hooks", "version": "1.0.5", @@ -3820,22 +3920,22 @@ }, { "name": "woocommerce/woocommerce-sniffs", - "version": "0.0.4", + "version": "0.0.5", "source": { "type": "git", "url": "https://github.com/woocommerce/woocommerce-sniffs.git", - "reference": "f436589c2e44734263964f05860242ae4bf6d025" + "reference": "f91f940ea0dca2b67be7a8a35c1ded41257b372f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/woocommerce/woocommerce-sniffs/zipball/f436589c2e44734263964f05860242ae4bf6d025", - "reference": "f436589c2e44734263964f05860242ae4bf6d025", + "url": "https://api.github.com/repos/woocommerce/woocommerce-sniffs/zipball/f91f940ea0dca2b67be7a8a35c1ded41257b372f", + "reference": "f91f940ea0dca2b67be7a8a35c1ded41257b372f", "shasum": "" }, "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", "php": ">=7.0", - "wimg/php-compatibility": "^9.0", + "phpcompatibility/phpcompatibility-wp": "2.0.0", "wp-coding-standards/wpcs": "^1.2" }, "type": "phpcodesniffer-standard", @@ -3856,7 +3956,7 @@ "woocommerce", "wordpress" ], - "time": "2018-11-19T18:40:14+00:00" + "time": "2018-11-20T21:33:22+00:00" }, { "name": "wp-coding-standards/wpcs", From 8d6d95935a81a42e9c5b9e23e8b60eea29ddfaff Mon Sep 17 00:00:00 2001 From: Gerhard Date: Wed, 21 Nov 2018 09:49:38 +0200 Subject: [PATCH 63/98] Populare arealabelledby attribute by actually passing the product_name in the $args. --- includes/wc-template-functions.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index ad0066fde0d..a7ef82e31cd 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -1580,14 +1580,15 @@ if ( ! function_exists( 'woocommerce_quantity_input' ) ) { } $defaults = array( - 'input_id' => uniqid( 'quantity_' ), - 'input_name' => 'quantity', - 'input_value' => '1', - 'max_value' => apply_filters( 'woocommerce_quantity_input_max', -1, $product ), - 'min_value' => apply_filters( 'woocommerce_quantity_input_min', 0, $product ), - 'step' => apply_filters( 'woocommerce_quantity_input_step', 1, $product ), - 'pattern' => apply_filters( 'woocommerce_quantity_input_pattern', has_filter( 'woocommerce_stock_amount', 'intval' ) ? '[0-9]*' : '' ), - 'inputmode' => apply_filters( 'woocommerce_quantity_input_inputmode', has_filter( 'woocommerce_stock_amount', 'intval' ) ? 'numeric' : '' ), + 'input_id' => uniqid( 'quantity_' ), + 'input_name' => 'quantity', + 'input_value' => '1', + 'max_value' => apply_filters( 'woocommerce_quantity_input_max', -1, $product ), + 'min_value' => apply_filters( 'woocommerce_quantity_input_min', 0, $product ), + 'step' => apply_filters( 'woocommerce_quantity_input_step', 1, $product ), + 'pattern' => apply_filters( 'woocommerce_quantity_input_pattern', has_filter( 'woocommerce_stock_amount', 'intval' ) ? '[0-9]*' : '' ), + 'inputmode' => apply_filters( 'woocommerce_quantity_input_inputmode', has_filter( 'woocommerce_stock_amount', 'intval' ) ? 'numeric' : '' ), + 'product_name' => $product->get_title(), ); $args = apply_filters( 'woocommerce_quantity_input_args', wp_parse_args( $args, $defaults ), $product ); From f58fcf6b3b143c0bf5251cd2864812efacf64d45 Mon Sep 17 00:00:00 2001 From: Gerhard Date: Wed, 21 Nov 2018 10:32:28 +0200 Subject: [PATCH 64/98] Add woocommerce_before_lost_password_form and woocommerce_after_lost_password_form actions and hook into woocommerce_output_all_notices --- includes/wc-template-hooks.php | 1 + templates/myaccount/form-lost-password.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/wc-template-hooks.php b/includes/wc-template-hooks.php index ea6d722a071..e84e83a86b7 100644 --- a/includes/wc-template-hooks.php +++ b/includes/wc-template-hooks.php @@ -300,4 +300,5 @@ add_action( 'woocommerce_before_cart', 'woocommerce_output_all_notices', 10 ); add_action( 'woocommerce_before_checkout_form', 'woocommerce_output_all_notices', 10 ); add_action( 'woocommerce_account_content', 'woocommerce_output_all_notices', 10 ); add_action( 'woocommerce_before_customer_login_form', 'woocommerce_output_all_notices', 10 ); +add_action( 'woocommerce_before_lost_password_form', 'woocommerce_output_all_notices', 10 ); add_action( 'before_woocommerce_pay', 'woocommerce_output_all_notices', 10 ); diff --git a/templates/myaccount/form-lost-password.php b/templates/myaccount/form-lost-password.php index dcf62b345e2..f537282fb1d 100644 --- a/templates/myaccount/form-lost-password.php +++ b/templates/myaccount/form-lost-password.php @@ -12,11 +12,12 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce/Templates - * @version 3.4.0 + * @version 3.5.2 */ defined( 'ABSPATH' ) || exit; +do_action( 'woocommerce_before_lost_password_form' ); ?>
@@ -40,3 +41,5 @@ defined( 'ABSPATH' ) || exit;
+ Date: Wed, 21 Nov 2018 11:01:37 -0200 Subject: [PATCH 65/98] phpcs fixes --- ...ass-wc-product-csv-importer-controller.php | 12 ++++++---- .../gateways/bacs/class-wc-gateway-bacs.php | 9 +++++--- includes/wc-core-functions.php | 9 +++++--- includes/wc-formatting-functions.php | 23 ++++++++++++------- 4 files changed, 35 insertions(+), 18 deletions(-) diff --git a/includes/admin/importers/class-wc-product-csv-importer-controller.php b/includes/admin/importers/class-wc-product-csv-importer-controller.php index 30535224c7b..befe5731fbf 100644 --- a/includes/admin/importers/class-wc-product-csv-importer-controller.php +++ b/includes/admin/importers/class-wc-product-csv-importer-controller.php @@ -96,7 +96,7 @@ class WC_Product_CSV_Importer_Controller { } $valid_filetypes = self::get_valid_csv_filetypes(); - $filetype = wp_check_filetype( $file, $valid_filetypes ); + $filetype = wp_check_filetype( $file, $valid_filetypes ); if ( in_array( $filetype['type'], $valid_filetypes, true ) ) { return true; } @@ -111,7 +111,8 @@ class WC_Product_CSV_Importer_Controller { */ protected static function get_valid_csv_filetypes() { return apply_filters( - 'woocommerce_csv_product_import_valid_filetypes', array( + 'woocommerce_csv_product_import_valid_filetypes', + array( 'csv' => 'text/csv', 'txt' => 'text/plain', ) @@ -424,7 +425,9 @@ class WC_Product_CSV_Importer_Controller { // phpcs:enable wp_localize_script( - 'wc-product-import', 'wc_product_import_params', array( + 'wc-product-import', + 'wc_product_import_params', + array( 'import_nonce' => wp_create_nonce( 'wc-product-import' ), 'mapping' => array( 'from' => $mapping_from, @@ -491,7 +494,8 @@ class WC_Product_CSV_Importer_Controller { */ $default_columns = $this->normalize_columns_names( apply_filters( - 'woocommerce_csv_product_import_mapping_default_columns', array( + 'woocommerce_csv_product_import_mapping_default_columns', + array( __( 'ID', 'woocommerce' ) => 'id', __( 'Type', 'woocommerce' ) => 'type', __( 'SKU', 'woocommerce' ) => 'sku', diff --git a/includes/gateways/bacs/class-wc-gateway-bacs.php b/includes/gateways/bacs/class-wc-gateway-bacs.php index fdd4a64af6e..c5c6dc1ee52 100644 --- a/includes/gateways/bacs/class-wc-gateway-bacs.php +++ b/includes/gateways/bacs/class-wc-gateway-bacs.php @@ -306,7 +306,8 @@ class WC_Gateway_BACS extends WC_Payment_Gateway { // BACS account fields shown on the thanks page and in emails. $account_fields = apply_filters( - 'woocommerce_bacs_account_fields', array( + 'woocommerce_bacs_account_fields', + array( 'bank_name' => array( 'label' => __( 'Bank', 'woocommerce' ), 'value' => $bacs_account->bank_name, @@ -327,7 +328,8 @@ class WC_Gateway_BACS extends WC_Payment_Gateway { 'label' => __( 'BIC', 'woocommerce' ), 'value' => $bacs_account->bic, ), - ), $order_id + ), + $order_id ); foreach ( $account_fields as $field_key => $field ) { @@ -386,7 +388,8 @@ class WC_Gateway_BACS extends WC_Payment_Gateway { // Locale information to be used - only those that are not 'Sort Code'. $this->locale = apply_filters( - 'woocommerce_get_bacs_locale', array( + 'woocommerce_get_bacs_locale', + array( 'AU' => array( 'sortcode' => array( 'label' => __( 'BSB', 'woocommerce' ), diff --git a/includes/wc-core-functions.php b/includes/wc-core-functions.php index f01cd25fcc6..b31d685975e 100644 --- a/includes/wc-core-functions.php +++ b/includes/wc-core-functions.php @@ -473,7 +473,8 @@ function get_woocommerce_currency_symbol( $currency = '' ) { } $symbols = apply_filters( - 'woocommerce_currency_symbols', array( + 'woocommerce_currency_symbols', + array( 'AED' => 'د.إ', 'AFN' => '؋', 'ALL' => 'L', @@ -1314,7 +1315,8 @@ function wc_get_credit_card_type_label( $type ) { $type = str_replace( '_', ' ', $type ); $labels = apply_filters( - 'woocommerce_credit_card_type_labels', array( + 'woocommerce_credit_card_type_labels', + array( 'mastercard' => __( 'MasterCard', 'woocommerce' ), 'visa' => __( 'Visa', 'woocommerce' ), 'discover' => __( 'Discover', 'woocommerce' ), @@ -1835,7 +1837,8 @@ function wc_list_pluck( $list, $callback_or_field, $index_key = null ) { function wc_get_permalink_structure() { $saved_permalinks = (array) get_option( 'woocommerce_permalinks', array() ); $permalinks = wp_parse_args( - array_filter( $saved_permalinks ), array( + array_filter( $saved_permalinks ), + array( 'product_base' => _x( 'product', 'slug', 'woocommerce' ), 'category_base' => _x( 'product-category', 'slug', 'woocommerce' ), 'tag_base' => _x( 'product-tag', 'slug', 'woocommerce' ), diff --git a/includes/wc-formatting-functions.php b/includes/wc-formatting-functions.php index 80ed8b30608..72da7baf80e 100644 --- a/includes/wc-formatting-functions.php +++ b/includes/wc-formatting-functions.php @@ -412,7 +412,8 @@ function wc_sanitize_textarea( $var ) { function wc_sanitize_tooltip( $var ) { return htmlspecialchars( wp_kses( - html_entity_decode( $var ), array( + html_entity_decode( $var ), + array( 'br' => array(), 'em' => array(), 'strong' => array(), @@ -541,8 +542,10 @@ function wc_get_price_decimals() { */ function wc_price( $price, $args = array() ) { $args = apply_filters( - 'wc_price_args', wp_parse_args( - $args, array( + 'wc_price_args', + wp_parse_args( + $args, + array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), @@ -1032,7 +1035,8 @@ function wc_format_product_short_description( $content ) { return wpautop( $markdown->transform( - $content, array( + $content, + array( 'unslash' => false, ) ) @@ -1380,10 +1384,13 @@ function wc_parse_relative_date_option( $raw_value ) { 'years' => __( 'Year(s)', 'woocommerce' ), ); - $value = wp_parse_args( (array) $raw_value, array( - 'number' => '', - 'unit' => 'days', - ) ); + $value = wp_parse_args( + (array) $raw_value, + array( + 'number' => '', + 'unit' => 'days', + ) + ); $value['number'] = ! empty( $value['number'] ) ? absint( $value['number'] ) : ''; From bfa9424d17de5048e711f73af5464fe03276639a Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Wed, 21 Nov 2018 11:07:05 -0200 Subject: [PATCH 66/98] Update WPCS sniff name The name of one of the WPCS sniffs changed from WordPress.CSRF.NonceVerification.NoNonceVerification to WordPress.Security.NonceVerification.NoNonceVerification. This commit updates all instances where this sniff is used in WooCommerce codebase. --- .../class-wc-product-csv-importer-controller.php | 10 +++++----- .../admin/importers/class-wc-tax-rate-importer.php | 2 +- includes/gateways/bacs/class-wc-gateway-bacs.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/admin/importers/class-wc-product-csv-importer-controller.php b/includes/admin/importers/class-wc-product-csv-importer-controller.php index befe5731fbf..f8cef598026 100644 --- a/includes/admin/importers/class-wc-product-csv-importer-controller.php +++ b/includes/admin/importers/class-wc-product-csv-importer-controller.php @@ -148,7 +148,7 @@ class WC_Product_CSV_Importer_Controller { $this->steps = apply_filters( 'woocommerce_product_csv_importer_steps', $default_steps ); - // phpcs:disable WordPress.CSRF.NonceVerification.NoNonceVerification + // phpcs:disable WordPress.Security.NonceVerification.NoNonceVerification $this->step = isset( $_REQUEST['step'] ) ? sanitize_key( $_REQUEST['step'] ) : current( array_keys( $this->steps ) ); $this->file = isset( $_REQUEST['file'] ) ? wc_clean( wp_unslash( $_REQUEST['file'] ) ) : ''; $this->update_existing = isset( $_REQUEST['update_existing'] ) ? (bool) $_REQUEST['update_existing'] : false; @@ -259,7 +259,7 @@ class WC_Product_CSV_Importer_Controller { * Dispatch current step and show correct view. */ public function dispatch() { - // phpcs:ignore WordPress.CSRF.NonceVerification.NoNonceVerification + // phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification if ( ! empty( $_POST['save_step'] ) && ! empty( $this->steps[ $this->step ]['handler'] ) ) { call_user_func( $this->steps[ $this->step ]['handler'], $this ); } @@ -307,7 +307,7 @@ class WC_Product_CSV_Importer_Controller { * @return string|WP_Error */ public function handle_upload() { - // phpcs:disable WordPress.CSRF.NonceVerification.NoNonceVerification -- Nonce already verified in WC_Product_CSV_Importer_Controller::upload_form_handler() + // phpcs:disable WordPress.Security.NonceVerification.NoNonceVerification -- Nonce already verified in WC_Product_CSV_Importer_Controller::upload_form_handler() $file_url = isset( $_POST['file_url'] ) ? wc_clean( wp_unslash( $_POST['file_url'] ) ) : ''; if ( empty( $file_url ) ) { @@ -411,7 +411,7 @@ class WC_Product_CSV_Importer_Controller { return; } - // phpcs:disable WordPress.CSRF.NonceVerification.NoNonceVerification -- Nonce already verified in WC_Admin_Importers::do_ajax_product_import() + // phpcs:disable WordPress.Security.NonceVerification.NoNonceVerification -- Nonce already verified in WC_Admin_Importers::do_ajax_product_import() if ( ! empty( $_POST['map_from'] ) && ! empty( $_POST['map_to'] ) ) { $mapping_from = wc_clean( wp_unslash( $_POST['map_from'] ) ); $mapping_to = wc_clean( wp_unslash( $_POST['map_to'] ) ); @@ -447,7 +447,7 @@ class WC_Product_CSV_Importer_Controller { * Done step. */ protected function done() { - // phpcs:disable WordPress.CSRF.NonceVerification.NoNonceVerification + // phpcs:disable WordPress.Security.NonceVerification.NoNonceVerification $imported = isset( $_GET['products-imported'] ) ? absint( $_GET['products-imported'] ) : 0; $updated = isset( $_GET['products-updated'] ) ? absint( $_GET['products-updated'] ) : 0; $failed = isset( $_GET['products-failed'] ) ? absint( $_GET['products-failed'] ) : 0; diff --git a/includes/admin/importers/class-wc-tax-rate-importer.php b/includes/admin/importers/class-wc-tax-rate-importer.php index 11773e7b2c3..263b2ad0e3d 100644 --- a/includes/admin/importers/class-wc-tax-rate-importer.php +++ b/includes/admin/importers/class-wc-tax-rate-importer.php @@ -200,7 +200,7 @@ class WC_Tax_Rate_Importer extends WP_Importer { * @return bool False if error uploading or invalid file, true otherwise */ public function handle_upload() { - // phpcs:disable WordPress.CSRF.NonceVerification.NoNonceVerification -- Nonce already verified in WC_Tax_Rate_Importer::dispatch() + // phpcs:disable WordPress.Security.NonceVerification.NoNonceVerification -- Nonce already verified in WC_Tax_Rate_Importer::dispatch() $file_url = isset( $_POST['file_url'] ) ? wc_clean( wp_unslash( $_POST['file_url'] ) ) : ''; if ( empty( $file_url ) ) { diff --git a/includes/gateways/bacs/class-wc-gateway-bacs.php b/includes/gateways/bacs/class-wc-gateway-bacs.php index c5c6dc1ee52..979c70a77c9 100644 --- a/includes/gateways/bacs/class-wc-gateway-bacs.php +++ b/includes/gateways/bacs/class-wc-gateway-bacs.php @@ -205,7 +205,7 @@ class WC_Gateway_BACS extends WC_Payment_Gateway { $accounts = array(); - // phpcs:disable WordPress.CSRF.NonceVerification.NoNonceVerification -- Nonce verification already handled in WC_Admin_Settings::save() + // phpcs:disable WordPress.Security.NonceVerification.NoNonceVerification -- Nonce verification already handled in WC_Admin_Settings::save() if ( isset( $_POST['bacs_account_name'] ) && isset( $_POST['bacs_account_number'] ) && isset( $_POST['bacs_bank_name'] ) && isset( $_POST['bacs_sort_code'] ) && isset( $_POST['bacs_iban'] ) && isset( $_POST['bacs_bic'] ) ) { From 2c8d006c37d7b6ae15ab01aadb8c591fe164d8b2 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Wed, 21 Nov 2018 11:08:26 -0200 Subject: [PATCH 67/98] Update PHPCompatibility sniff names The name of some sniffs changed in the most recent PHPCompatiblity version. This commit update all instances where those names are used in WooCommerce codebase. --- includes/admin/importers/class-wc-tax-rate-importer.php | 2 +- includes/class-wc-geolite-integration.php | 2 +- includes/class-wc-geolocation.php | 2 +- includes/class-wc-order-item.php | 2 +- includes/export/abstract-wc-csv-exporter.php | 2 +- includes/log-handlers/class-wc-log-handler-db.php | 2 +- includes/wc-core-functions.php | 4 ++-- includes/wc-formatting-functions.php | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/includes/admin/importers/class-wc-tax-rate-importer.php b/includes/admin/importers/class-wc-tax-rate-importer.php index 263b2ad0e3d..32e49b53943 100644 --- a/includes/admin/importers/class-wc-tax-rate-importer.php +++ b/includes/admin/importers/class-wc-tax-rate-importer.php @@ -101,7 +101,7 @@ class WC_Tax_Rate_Importer extends WP_Importer { */ private function import_start() { if ( function_exists( 'gc_enable' ) ) { - gc_enable(); // phpcs:ignore PHPCompatibility.PHP.NewFunctions.gc_enableFound + gc_enable(); // phpcs:ignore PHPCompatibility.FunctionUse.NewFunctions.gc_enableFound } wc_set_time_limit( 0 ); @ob_flush(); diff --git a/includes/class-wc-geolite-integration.php b/includes/class-wc-geolite-integration.php index 49e9fc9941f..a5a33b8eead 100644 --- a/includes/class-wc-geolite-integration.php +++ b/includes/class-wc-geolite-integration.php @@ -55,7 +55,7 @@ class WC_Geolite_Integration { $iso_code = ''; try { - $reader = new MaxMind\Db\Reader( $this->database ); // phpcs:ignore PHPCompatibility.PHP.NewLanguageConstructs.t_ns_separatorFound + $reader = new MaxMind\Db\Reader( $this->database ); // phpcs:ignore PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound $data = $reader->get( $ip_address ); if ( isset( $data['country']['iso_code'] ) ) { diff --git a/includes/class-wc-geolocation.php b/includes/class-wc-geolocation.php index 8c85b7e8eab..93fccadf788 100644 --- a/includes/class-wc-geolocation.php +++ b/includes/class-wc-geolocation.php @@ -265,7 +265,7 @@ class WC_Geolocation { $dest_path = trailingslashit( $upload_dir['basedir'] ) . $database; // Extract files with PharData. Tool built into PHP since 5.3. - $file = new PharData( $tmp_database_path ); // phpcs:ignore PHPCompatibility.PHP.NewClasses.phardataFound + $file = new PharData( $tmp_database_path ); // phpcs:ignore PHPCompatibility.Classes.NewClasses.phardataFound $file_path = trailingslashit( $file->current()->getFileName() ) . $database; // Extract under uploads directory. diff --git a/includes/class-wc-order-item.php b/includes/class-wc-order-item.php index f0f8148d33b..215f4e693c1 100644 --- a/includes/class-wc-order-item.php +++ b/includes/class-wc-order-item.php @@ -85,7 +85,7 @@ class WC_Order_Item extends WC_Data implements ArrayAccess { */ public function apply_changes() { if ( function_exists( 'array_replace' ) ) { - $this->data = array_replace( $this->data, $this->changes ); // phpcs:ignore PHPCompatibility.PHP.NewFunctions.array_replaceFound + $this->data = array_replace( $this->data, $this->changes ); // phpcs:ignore PHPCompatibility.FunctionUse.NewFunctions.array_replaceFound } else { // PHP 5.2 compatibility. foreach ( $this->changes as $key => $change ) { $this->data[ $key ] = $change; diff --git a/includes/export/abstract-wc-csv-exporter.php b/includes/export/abstract-wc-csv-exporter.php index 57c7fdbba76..5364dc6d61e 100644 --- a/includes/export/abstract-wc-csv-exporter.php +++ b/includes/export/abstract-wc-csv-exporter.php @@ -171,7 +171,7 @@ abstract class WC_CSV_Exporter { */ public function send_headers() { if ( function_exists( 'gc_enable' ) ) { - gc_enable(); // phpcs:ignore PHPCompatibility.PHP.NewFunctions.gc_enableFound + gc_enable(); // phpcs:ignore PHPCompatibility.FunctionUse.NewFunctions.gc_enableFound } if ( function_exists( 'apache_setenv' ) ) { @apache_setenv( 'no-gzip', 1 ); // @codingStandardsIgnoreLine diff --git a/includes/log-handlers/class-wc-log-handler-db.php b/includes/log-handlers/class-wc-log-handler-db.php index fa9238b96ef..9991dfafd48 100644 --- a/includes/log-handlers/class-wc-log-handler-db.php +++ b/includes/log-handlers/class-wc-log-handler-db.php @@ -166,7 +166,7 @@ class WC_Log_Handler_DB extends WC_Log_Handler { * @see http://php.net/manual/en/function.debug-backtrace.php#refsect1-function.debug-backtrace-parameters */ if ( defined( 'DEBUG_BACKTRACE_IGNORE_ARGS' ) ) { - $debug_backtrace_arg = DEBUG_BACKTRACE_IGNORE_ARGS; // phpcs:ignore PHPCompatibility.PHP.NewConstants.debug_backtrace_ignore_argsFound + $debug_backtrace_arg = DEBUG_BACKTRACE_IGNORE_ARGS; // phpcs:ignore PHPCompatibility.Constants.NewConstants.debug_backtrace_ignore_argsFound } else { $debug_backtrace_arg = false; } diff --git a/includes/wc-core-functions.php b/includes/wc-core-functions.php index b31d685975e..6129f12583f 100644 --- a/includes/wc-core-functions.php +++ b/includes/wc-core-functions.php @@ -1477,7 +1477,7 @@ function wc_get_shipping_method_count( $include_legacy = false ) { * @param int $limit Time limit. */ function wc_set_time_limit( $limit = 0 ) { - if ( function_exists( 'set_time_limit' ) && false === strpos( ini_get( 'disable_functions' ), 'set_time_limit' ) && ! ini_get( 'safe_mode' ) ) { // phpcs:ignore PHPCompatibility.PHP.DeprecatedIniDirectives.safe_modeDeprecatedRemoved + if ( function_exists( 'set_time_limit' ) && false === strpos( ini_get( 'disable_functions' ), 'set_time_limit' ) && ! ini_get( 'safe_mode' ) ) { // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.safe_modeDeprecatedRemoved @set_time_limit( $limit ); // @codingStandardsIgnoreLine } } @@ -2115,7 +2115,7 @@ function wc_decimal_to_fraction( $decimal ) { */ function wc_round_discount( $value, $precision ) { if ( version_compare( PHP_VERSION, '5.3.0', '>=' ) ) { - return round( $value, $precision, WC_DISCOUNT_ROUNDING_MODE ); // phpcs:ignore PHPCompatibility.PHP.NewFunctionParameters.round_modeFound + return round( $value, $precision, WC_DISCOUNT_ROUNDING_MODE ); // phpcs:ignore PHPCompatibility.FunctionUse.NewFunctionParameters.round_modeFound } if ( 2 === WC_DISCOUNT_ROUNDING_MODE ) { diff --git a/includes/wc-formatting-functions.php b/includes/wc-formatting-functions.php index 72da7baf80e..9b363bac4b6 100644 --- a/includes/wc-formatting-functions.php +++ b/includes/wc-formatting-functions.php @@ -228,7 +228,7 @@ function wc_round_tax_total( $value, $precision = null ) { $precision = is_null( $precision ) ? wc_get_price_decimals() : intval( $precision ); if ( version_compare( PHP_VERSION, '5.3.0', '>=' ) ) { - $rounded_tax = round( $value, $precision, wc_get_tax_rounding_mode() ); // phpcs:ignore PHPCompatibility.PHP.NewFunctionParameters.round_modeFound + $rounded_tax = round( $value, $precision, wc_get_tax_rounding_mode() ); // phpcs:ignore PHPCompatibility.FunctionUse.NewFunctionParameters.round_modeFound } elseif ( 2 === wc_get_tax_rounding_mode() ) { $rounded_tax = wc_legacy_round_half_down( $value, $precision ); } else { From 4c581f5a87378c5099a2c985d64dec71f9999545 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Wed, 21 Nov 2018 12:30:06 -0200 Subject: [PATCH 68/98] Remove PHP 7.3 from the list of build jobs that are allowed to fail Now that all the required changes to make WooCommerce work fine with PHP 7.3 were implemented, it is safe to remove PHP 7.3 from the list of Travis build jobs that are allowed to fail. --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 901a9931e17..80ceac43a15 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,8 +35,6 @@ matrix: allow_failures: - php: 7.1 env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1 - - php: 7.3 - env: WP_VERSION=5.0-beta5 WP_MULTISITE=0 before_script: - | From 7c7f0725efda891bb7afafa8a6767e0031342799 Mon Sep 17 00:00:00 2001 From: Gerhard Potgieter Date: Wed, 21 Nov 2018 19:27:33 +0200 Subject: [PATCH 69/98] Update new account email copy to be representative of auto generated accounts also. (#21999) * Update customer new account email copy to be more friendly for auto generated usernames. * Bump template versions --- templates/emails/customer-new-account.php | 4 ++-- templates/emails/plain/customer-new-account.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/emails/customer-new-account.php b/templates/emails/customer-new-account.php index 2acd635fb18..573cf3b1fec 100644 --- a/templates/emails/customer-new-account.php +++ b/templates/emails/customer-new-account.php @@ -12,7 +12,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce/Templates/Emails - * @version 3.5.0 + * @version 3.5.2 */ if ( ! defined( 'ABSPATH' ) ) { @@ -26,7 +26,7 @@ if ( ! defined( 'ABSPATH' ) ) {

-

' . esc_html( $user_login ) . '', make_clickable( esc_url( wc_get_page_permalink( 'myaccount' ) ) ) ); ?>

+

' . esc_html( $user_login ) . '', make_clickable( esc_url( wc_get_page_permalink( 'myaccount' ) ) ) ); ?>

diff --git a/templates/emails/plain/customer-new-account.php b/templates/emails/plain/customer-new-account.php index 9fc86d042a2..9f64213bd14 100644 --- a/templates/emails/plain/customer-new-account.php +++ b/templates/emails/plain/customer-new-account.php @@ -12,7 +12,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce/Templates/Emails/Plain - * @version 3.5.0 + * @version 3.5.2 */ if ( ! defined( 'ABSPATH' ) ) { @@ -24,7 +24,7 @@ echo '= ' . esc_html( $email_heading ) . " =\n\n"; /* translators: %s Customer first name */ echo sprintf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_login ) ) . "\n\n"; /* translators: %1$s: Site title, %2$s: Username, %3$s: My account link */ -echo sprintf( esc_html__( 'Thanks for creating an account on %1$s. As a reminder, the username you chose is %2$s. You can access your account area to view orders, change your password, and more at: %3$s', 'woocommerce' ), esc_html( $blogname ), '' . esc_html( $user_login ) . '', esc_html( wc_get_page_permalink( 'myaccount' ) ) ) . "\n\n"; +echo sprintf( esc_html__( 'Thanks for creating an account on %1$s. Your username is %2$s. You can access your account area to view orders, change your password, and more at: %3$s', 'woocommerce' ), esc_html( $blogname ), '' . esc_html( $user_login ) . '', esc_html( wc_get_page_permalink( 'myaccount' ) ) ) . "\n\n"; if ( 'yes' === get_option( 'woocommerce_registration_generate_password' ) && $password_generated ) { /* translators: %s Auto generated password */ From fa8ec35006f6ba88e067eb74bb9fd6efa260d257 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Wed, 21 Nov 2018 16:10:36 -0200 Subject: [PATCH 70/98] Fixed REST API authentication when using 3rd party auth methods Closes #21789 --- includes/api/class-wc-rest-authentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/class-wc-rest-authentication.php b/includes/api/class-wc-rest-authentication.php index 52c10611c6f..20ffe746f6d 100644 --- a/includes/api/class-wc-rest-authentication.php +++ b/includes/api/class-wc-rest-authentication.php @@ -39,7 +39,7 @@ class WC_REST_Authentication { */ public function __construct() { add_filter( 'determine_current_user', array( $this, 'authenticate' ), 15 ); - add_filter( 'rest_authentication_errors', array( $this, 'check_authentication_error' ) ); + add_filter( 'rest_authentication_errors', array( $this, 'check_authentication_error' ), 15 ); add_filter( 'rest_post_dispatch', array( $this, 'send_unauthorized_headers' ), 50 ); add_filter( 'rest_pre_dispatch', array( $this, 'check_user_permissions' ), 10, 3 ); } From 6a21ec401cfbeb36ea92a2dd86a64f6d38b9bb29 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Wed, 21 Nov 2018 16:12:35 -0200 Subject: [PATCH 71/98] Fixed coding standards --- includes/api/class-wc-rest-authentication.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/includes/api/class-wc-rest-authentication.php b/includes/api/class-wc-rest-authentication.php index 20ffe746f6d..7e620354e94 100644 --- a/includes/api/class-wc-rest-authentication.php +++ b/includes/api/class-wc-rest-authentication.php @@ -140,15 +140,15 @@ class WC_REST_Authentication { $consumer_secret = ''; // If the $_GET parameters are present, use those first. - if ( ! empty( $_GET['consumer_key'] ) && ! empty( $_GET['consumer_secret'] ) ) { - $consumer_key = $_GET['consumer_key']; // WPCS: sanitization ok. - $consumer_secret = $_GET['consumer_secret']; // WPCS: sanitization ok. + if ( ! empty( $_GET['consumer_key'] ) && ! empty( $_GET['consumer_secret'] ) ) { // WPCS: CSRF ok. + $consumer_key = $_GET['consumer_key']; // WPCS: CSRF ok, sanitization ok. + $consumer_secret = $_GET['consumer_secret']; // WPCS: CSRF ok, sanitization ok. } // If the above is not present, we will do full basic auth. if ( ! $consumer_key && ! empty( $_SERVER['PHP_AUTH_USER'] ) && ! empty( $_SERVER['PHP_AUTH_PW'] ) ) { - $consumer_key = $_SERVER['PHP_AUTH_USER']; // WPCS: sanitization ok. - $consumer_secret = $_SERVER['PHP_AUTH_PW']; // WPCS: sanitization ok. + $consumer_key = $_SERVER['PHP_AUTH_USER']; // WPCS: CSRF ok, sanitization ok. + $consumer_secret = $_SERVER['PHP_AUTH_PW']; // WPCS: CSRF ok, sanitization ok. } // Stop if don't have any key. @@ -353,7 +353,7 @@ class WC_REST_Authentication { */ private function check_oauth_signature( $user, $params ) { $http_method = isset( $_SERVER['REQUEST_METHOD'] ) ? strtoupper( $_SERVER['REQUEST_METHOD'] ) : ''; // WPCS: sanitization ok. - $request_path = isset( $_SERVER['REQUEST_URI'] ) ? parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH ) : ''; // WPCS: sanitization ok. + $request_path = isset( $_SERVER['REQUEST_URI'] ) ? wp_parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH ) : ''; // WPCS: sanitization ok. $wp_base = get_home_url( null, '/', 'relative' ); if ( substr( $request_path, 0, strlen( $wp_base ) ) === $wp_base ) { $request_path = substr( $request_path, strlen( $wp_base ) ); @@ -468,7 +468,7 @@ class WC_REST_Authentication { $used_nonces = array(); } - if ( in_array( $nonce, $used_nonces ) ) { + if ( in_array( $nonce, $used_nonces, true ) ) { return new WP_Error( 'woocommerce_rest_authentication_error', __( 'Invalid nonce - nonce has already been used.', 'woocommerce' ), array( 'status' => 401 ) ); } @@ -510,7 +510,8 @@ class WC_REST_Authentication { SELECT key_id, user_id, permissions, consumer_key, consumer_secret, nonces FROM {$wpdb->prefix}woocommerce_api_keys WHERE consumer_key = %s - ", $consumer_key + ", + $consumer_key ) ); From b3bfb77edbbfd6d48a633960da6a11faf7dcc9bb Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Thu, 22 Nov 2018 10:58:55 -0200 Subject: [PATCH 72/98] fix phpcs error --- includes/wc-core-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-core-functions.php b/includes/wc-core-functions.php index 52276cf4fb0..c2cf1c7e1be 100644 --- a/includes/wc-core-functions.php +++ b/includes/wc-core-functions.php @@ -1081,7 +1081,7 @@ function wc_get_customer_default_location() { break; default: $countries = WC()->countries->get_allowed_countries(); - $location = wc_format_country_state_string( apply_filters( 'woocommerce_customer_default_location', 1 === count( $countries ) ? key( $countries ) : '' ) ); + $location = wc_format_country_state_string( apply_filters( 'woocommerce_customer_default_location', 1 === count( $countries ) ? key( $countries ) : '' ) ); break; } From 0f343256c224e40cbc6eba548992a8e355e60ca3 Mon Sep 17 00:00:00 2001 From: Tiago Noronha Date: Fri, 23 Nov 2018 00:59:33 +0000 Subject: [PATCH 73/98] Multiple styling fixes --- assets/css/twenty-nineteen-rtl.css | 2 +- assets/css/twenty-nineteen.css | 2 +- assets/css/twenty-nineteen.scss | 139 +++++++++++++++++++++++++---- assets/css/wc-setup-rtl.css | 2 +- assets/css/wc-setup.css | 2 +- 5 files changed, 126 insertions(+), 21 deletions(-) diff --git a/assets/css/twenty-nineteen-rtl.css b/assets/css/twenty-nineteen-rtl.css index 94fe8eeef91..660543cc793 100644 --- a/assets/css/twenty-nineteen-rtl.css +++ b/assets/css/twenty-nineteen-rtl.css @@ -1 +1 @@ -@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.88889em}.woocommerce-pagination ul.page-numbers{margin:0;padding:0;display:block;font-weight:700;letter-spacing:-.02em;line-height:1.2}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:0 calc(.5 * 1rem);display:inline-block}.onsale{position:absolute;top:0;right:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;letter-spacing:-.02em;line-height:1.2;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;right:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:left;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-right:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:right;top:0;right:0;position:absolute}.star-rating span{overflow:hidden;float:right;top:0;right:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;right:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:right;clear:both;margin-left:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:right;margin-left:.25rem}.single-product form.cart .quantity{float:right;margin-left:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-left:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:right}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:right}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:right}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:right}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;left:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-left:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-left:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:left}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;right:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-right:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:left;margin-top:2px}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 0 0 .5rem}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-left:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:left;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:right;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:right;margin-right:.5rem;margin-left:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-right:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{right:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{left:-1px}.widget_rating_filter li{text-align:left}.widget_rating_filter li .star-rating{float:right;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-left:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;left:.5rem;padding-right:1rem;padding-left:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:before{content:"→";display:inline-block;margin-left:.25rem;color:#111}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:right;margin-left:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-left:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:right;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-right:.5rem}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;left:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;left:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{left:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-right:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{right:50%;top:0;margin-top:-4px;-webkit-transform:translatex(50%) rotate(-180deg);-ms-transform:translatex(50%) rotate(-180deg);transform:translatex(50%) rotate(-180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem .7rem .7rem 0}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{padding-right:0}.wc_payment_method{list-style:none;border-bottom:1px solid #ddd}.wc_payment_method .payment_box{padding:2rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:left}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-right:4px;margin-left:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (min-width:768px){.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{float:left;width:25%;margin-bottom:0}.woocommerce-account .woocommerce-MyAccount-content{float:right}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file +@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{display:inline-block;text-align:center;box-sizing:border-box;word-break:break-all;color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.88889em}.woocommerce-pagination ul.page-numbers{margin:0;padding:0;display:block;font-weight:700;letter-spacing:-.02em;line-height:1.2}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:0 calc(.5 * 1rem);display:inline-block}.onsale{position:absolute;top:0;right:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;letter-spacing:-.02em;line-height:1.2;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;list-style:none;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error a.button,.woocommerce-info a.button{background:#111}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;right:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:left;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce table.shop_table td,.woocommerce table.shop_table th,.woocommerce-page table.shop_table td,.woocommerce-page table.shop_table th{word-break:normal}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-right:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:right;top:0;right:0;position:absolute}.star-rating span{overflow:hidden;float:right;top:0;right:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;right:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:right;clear:both;margin-left:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:right;margin-left:.25rem}.single-product form.cart .quantity{float:right;margin-left:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-left:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:right}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:right}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:right}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:right}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;left:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-left:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-left:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:left}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;right:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-right:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:right;margin-top:7px;line-height:20px;color:#fff;margin-left:.5rem}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 0 0 .5rem}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-left:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:left;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:right;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:right;margin-right:.5rem;margin-left:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-right:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{right:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{left:-1px}.widget_rating_filter li{text-align:left}.widget_rating_filter li .star-rating{float:right;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-left:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;left:.5rem;padding-right:1rem;padding-left:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-account table.account-orders-table .button{margin:0 0 .35rem .35rem}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:right;margin-left:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-left:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0;padding:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:right;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-right:.5rem}#ship-to-different-address{font-size:1em;display:inline-block}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block;text-align:left;padding-left:45px}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;left:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;left:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{left:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-right:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{right:50%;top:0;margin-top:-4px;-webkit-transform:translatex(50%) rotate(-180deg);-ms-transform:translatex(50%) rotate(-180deg);transform:translatex(50%) rotate(-180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem .7rem .7rem 0}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{margin:2rem 0 1rem;padding-right:0}.wc_payment_method{list-style:none}.wc_payment_method .payment_box{padding:1rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:first-child{margin-top:0}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{display:block;margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:left}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-right:4px;margin-left:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce-order-overview{margin-bottom:2rem}.woocommerce-table--order-details{margin-bottom:2rem}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (max-width:768px){.woocommerce table.shop_table_responsive tr,.woocommerce-page table.shop_table_responsive tr{margin:0 0 1.5rem}.woocommerce table.shop_table_responsive tr:first-child,.woocommerce-page table.shop_table_responsive tr:first-child{border-top:1px solid}.woocommerce table.shop_table_responsive tr:last-child,.woocommerce-page table.shop_table_responsive tr:last-child{margin-bottom:0}.woocommerce table.shop_table_responsive tr td,.woocommerce-page table.shop_table_responsive tr td{border-bottom-width:0}.woocommerce table.shop_table_responsive tr td:last-child,.woocommerce-page table.shop_table_responsive tr td:last-child{border-bottom-width:1px}}@media only screen and (min-width:768px){.woocommerce table.shop_table tbody tr,.woocommerce-page table.shop_table tbody tr{font-size:.88889em}.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{float:none;width:100%;margin-bottom:1.5rem}.woocommerce-account .woocommerce-MyAccount-navigation li{display:inline-block;margin:0 0 0 1rem;padding:0;border-bottom:0}.woocommerce-account .woocommerce-MyAccount-navigation li:last-child{margin-left:0}.woocommerce-account .woocommerce-MyAccount-content{float:none;width:100%}#ship-to-different-address{display:block}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file diff --git a/assets/css/twenty-nineteen.css b/assets/css/twenty-nineteen.css index 18d0bac2bae..a04ac66ced9 100644 --- a/assets/css/twenty-nineteen.css +++ b/assets/css/twenty-nineteen.css @@ -1 +1 @@ -@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.88889em}.woocommerce-pagination ul.page-numbers{margin:0;padding:0;display:block;font-weight:700;letter-spacing:-.02em;line-height:1.2}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:0 calc(.5 * 1rem);display:inline-block}.onsale{position:absolute;top:0;left:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;letter-spacing:-.02em;line-height:1.2;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;left:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:right;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-left:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:left;top:0;left:0;position:absolute}.star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;left:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:left;clear:both;margin-right:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:left;margin-right:.25rem}.single-product form.cart .quantity{float:left;margin-right:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-right:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:left}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:left}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:left}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:left}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;right:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-right:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-right:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:right}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;left:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-left:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:right;margin-top:2px}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 .5rem 0 0}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-right:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:right;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:left;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:left;margin-left:.5rem;margin-right:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-left:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{left:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{right:-1px}.widget_rating_filter li{text-align:right}.widget_rating_filter li .star-rating{float:left;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-right:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;right:.5rem;padding-left:1rem;padding-right:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:before{content:"→";display:inline-block;margin-right:.25rem;color:#111}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:left;margin-right:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-right:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:left;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-left:.5rem}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;right:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;right:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{right:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-left:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{left:50%;top:0;margin-top:-4px;-webkit-transform:translatex(-50%) rotate(180deg);-ms-transform:translatex(-50%) rotate(180deg);transform:translatex(-50%) rotate(180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem 0 .7rem .7rem}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{padding-left:0}.wc_payment_method{list-style:none;border-bottom:1px solid #ddd}.wc_payment_method .payment_box{padding:2rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:right}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-left:4px;margin-right:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (min-width:768px){.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{float:right;width:25%;margin-bottom:0}.woocommerce-account .woocommerce-MyAccount-content{float:left}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file +@charset "UTF-8";@font-face{font-family:star;src:url(../fonts/star.eot);src:url(../fonts/star.eot?#iefix) format("embedded-opentype"),url(../fonts/star.woff) format("woff"),url(../fonts/star.ttf) format("truetype"),url(../fonts/star.svg#star) format("svg");font-weight:400;font-style:normal}@font-face{font-family:WooCommerce;src:url(../fonts/WooCommerce.eot);src:url(../fonts/WooCommerce.eot?#iefix) format("embedded-opentype"),url(../fonts/WooCommerce.woff) format("woff"),url(../fonts/WooCommerce.ttf) format("truetype"),url(../fonts/WooCommerce.svg#WooCommerce) format("svg");font-weight:400;font-style:normal}a.button{display:inline-block;text-align:center;box-sizing:border-box;word-break:break-all;color:#fff;text-decoration:none!important}a.button:hover,a.button:visited{color:#fff}.woocommerce form .form-row .required{color:#b22222;text-decoration:none;visibility:hidden}.woocommerce form .form-row .required[title]{border:0!important}.woocommerce form .form-row .optional{visibility:visible}.woocommerce-breadcrumb{margin-bottom:3rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-pagination{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.88889em}.woocommerce-pagination ul.page-numbers{margin:0;padding:0;display:block;font-weight:700;letter-spacing:-.02em;line-height:1.2}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:0 calc(.5 * 1rem);display:inline-block}.onsale{position:absolute;top:0;left:0;display:inline-block;background:#0073aa;color:#fff;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:.71111em;font-weight:700;letter-spacing:-.02em;line-height:1.2;padding:.5rem;position:absolute;text-transform:uppercase;top:0;z-index:1}.price{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.price del{opacity:.5;display:inline-block}.price ins{display:inline-block}.woocommerce-error,.woocommerce-info,.woocommerce-message{margin-bottom:1.5rem;padding:1rem;background:#eee;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;list-style:none;overflow:hidden}.woocommerce-message{background:#eee;color:#111}.woocommerce-error,.woocommerce-info{color:#fff}.woocommerce-error a,.woocommerce-info a{color:#fff}.woocommerce-error a:hover,.woocommerce-info a:hover{color:#fff}.woocommerce-error a.button,.woocommerce-info a.button{background:#111}.woocommerce-error{background:#b22222}.woocommerce-info{background:#0073aa}.woocommerce-store-notice{background:#0073aa;color:#fff;padding:1rem;position:absolute;top:0;left:0;width:100%;z-index:999}.admin-bar .woocommerce-store-notice{top:32px}.woocommerce-store-notice__dismiss-link{float:right;color:#fff}.woocommerce-store-notice__dismiss-link:hover{text-decoration:underline;color:#fff}.woocommerce table.shop_table td,.woocommerce table.shop_table th,.woocommerce-page table.shop_table td,.woocommerce-page table.shop_table th{word-break:normal}.woocommerce-products-header__title.page-title{font-size:1.6875em;font-weight:700;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-result-count{margin:0;padding:.75rem 0}ul.products{margin:0;padding:0}ul.products li.product{list-style:none}ul.products li.product .woocommerce-loop-product__link{display:block}ul.products li.product .woocommerce-loop-product__title{margin:.8rem 0;font-size:.88889em}ul.products li.product .woocommerce-loop-product__title:before{content:none}ul.products li.product .price,ul.products li.product .star-rating,ul.products li.product .woocommerce-loop-product__title{color:#111}ul.products li.product .star-rating{margin-bottom:.8rem}ul.products li.product .price{margin-bottom:1.3rem}ul.products li.product .price,ul.products li.product .star-rating{display:block;font-size:.88889em}ul.products li.product .woocommerce-placeholder{border:1px solid #f2f2f2}ul.products li.product .button{vertical-align:middle}ul.products li.product .button.loading{opacity:.5}ul.products li.product .added_to_cart{margin-left:.5rem;font-size:.88889em;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.star-rating{overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:star}.star-rating::before{content:'\73\73\73\73\73';float:left;top:0;left:0;position:absolute}.star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.star-rating span::before{content:'\53\53\53\53\53';top:0;position:absolute;left:0}a.remove{display:inline-block;width:20px;height:20px;line-height:17px;font-size:20px;font-weight:700;text-align:center;border-radius:100%;text-decoration:none!important;background:#b22222;color:#fff}a.remove:hover{background:#000;color:#fff!important}.wc-item-meta,dl.variation{list-style:none outside}.wc-item-meta .wc-item-meta-label,.wc-item-meta dt,dl.variation .wc-item-meta-label,dl.variation dt{float:left;clear:both;margin-right:.25rem;list-style:none outside}.wc-item-meta dd,dl.variation dd{margin:0}.wc-item-meta p,.wc-item-meta:last-child,dl.variation p,dl.variation:last-child{margin-bottom:0}.single-product div.product{position:relative}.single-product .single-featured-image-header{display:none}.single-product .entry .entry-title{margin-top:0}.single-product .entry .entry-title:before{margin-top:0}.single-product .summary p.price{margin-bottom:2rem}.single-product .woocommerce-product-rating{margin-bottom:2rem;line-height:1}.single-product .woocommerce-product-rating .star-rating{float:left;margin-right:.25rem}.single-product form.cart .quantity{float:left;margin-right:.5rem}.single-product form.cart input{width:5em}.single-product .woocommerce-variation-add-to-cart .button{padding-top:.72rem;padding-bottom:.72rem}.single-product .woocommerce-variation-add-to-cart .button.disabled{opacity:.2}table.variations label{margin:0}table.variations select{margin-right:.5rem}.woocommerce-product-gallery{position:relative;margin-bottom:3rem}.woocommerce-product-gallery figure{margin:0;padding:0}.woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0;padding:0}.woocommerce-product-gallery .zoomImg{background-color:#fff;opacity:0}.woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder{border:1px solid #f2f2f2}.woocommerce-product-gallery .woocommerce-product-gallery__image:nth-child(n+2){width:25%;display:inline-block}.woocommerce-product-gallery .flex-control-thumbs li{list-style:none;cursor:pointer;float:left}.woocommerce-product-gallery .flex-control-thumbs img{opacity:.5}.woocommerce-product-gallery .flex-control-thumbs img.flex-active,.woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1}.woocommerce-product-gallery img{display:block;height:auto}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li{width:33.3333%}.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1){clear:left}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li{width:25%}.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1){clear:left}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li{width:20%}.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1){clear:left}.woocommerce-product-gallery__trigger{position:absolute;top:1rem;right:1rem;z-index:99}.woocommerce-tabs{margin:0 0 2rem}.woocommerce-tabs ul{margin:0 0 1.5rem;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.woocommerce-tabs ul li{margin-right:1rem}.woocommerce-tabs ul li a{color:#111;text-decoration:none;font-weight:700}.woocommerce-tabs ul li.active a{color:#0073aa;box-shadow:0 2px 0 #0073aa}.woocommerce-tabs .panel>*{margin-top:0!important}.woocommerce-tabs .panel h2{margin:0 0 1rem;font-size:1em}.woocommerce-tabs .panel h2:before{content:none}.woocommerce-tabs #comments{padding-top:0}.woocommerce-tabs .comment-reply-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1em;font-weight:700;margin:0 0 .75rem;display:block}.woocommerce-tabs #reviews ol.commentlist{padding:0}.woocommerce-tabs #reviews li.comment,.woocommerce-tabs #reviews li.review{list-style:none;margin-right:0;margin-bottom:2.5rem}.woocommerce-tabs #reviews li.comment .avatar,.woocommerce-tabs #reviews li.review .avatar{max-height:36px;width:auto;float:right}.woocommerce-tabs #reviews li.comment p.meta,.woocommerce-tabs #reviews li.review p.meta{margin-bottom:.5em}.woocommerce-tabs #reviews p.stars{margin-top:0}.woocommerce-tabs #reviews p.stars a{position:relative;height:1em;width:1em;text-indent:-999em;display:inline-block;text-decoration:none;box-shadow:none}.woocommerce-tabs #reviews p.stars a::before{display:block;position:absolute;top:0;left:0;width:1em;height:1em;line-height:1;font-family:WooCommerce;content:'\e021';text-indent:0}.woocommerce-tabs #reviews p.stars a:hover~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars:hover a::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active::before{content:'\e020'}.woocommerce-tabs #reviews p.stars.selected a.active~a::before{content:'\e021'}.woocommerce-tabs #reviews p.stars.selected a:not(.active)::before{content:'\e020'}.widget.woocommerce ul{padding-left:0}.widget.woocommerce ul li{list-style:none}.site-footer .widget .product_list_widget,.widget .product_list_widget{margin-bottom:1.5rem}.site-footer .widget .product_list_widget a,.widget .product_list_widget a{display:block;box-shadow:none}.site-footer .widget .product_list_widget a:hover,.widget .product_list_widget a:hover{box-shadow:none}.site-footer .widget .product_list_widget li,.widget .product_list_widget li{padding:.5rem 0}.site-footer .widget .product_list_widget li a.remove,.widget .product_list_widget li a.remove{float:left;margin-top:7px;line-height:20px;color:#fff;margin-right:.5rem}.site-footer .widget .product_list_widget img,.widget .product_list_widget img{display:none}.widget_shopping_cart .buttons a{display:inline-block;margin:0 .5rem 0 0}.widget_layered_nav .chosen:before{content:"×";display:inline-block;width:16px;height:16px;line-height:16px;font-size:16px;text-align:center;border-radius:100%;border:1px solid #000;margin-right:.25rem}.widget_price_filter .price_slider{margin-bottom:1rem}.widget_price_filter .price_slider_amount{text-align:right;line-height:2.4;font-size:.8751em}.widget_price_filter .price_slider_amount .button{float:left;padding:.4rem 1rem}.widget_price_filter .ui-slider{position:relative;text-align:left;margin-left:.5rem;margin-right:.5rem}.widget_price_filter .ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1em;height:1em;background-color:#000;border-radius:1em;cursor:ew-resize;outline:0;top:-.3em;margin-left:-.5em}.widget_price_filter .ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;border-radius:1em;background-color:#000}.widget_price_filter .price_slider_wrapper .ui-widget-content{border-radius:1em;background-color:#666;border:0}.widget_price_filter .ui-slider-horizontal{height:.5em}.widget_price_filter .ui-slider-horizontal .ui-slider-range{top:0;height:100%}.widget_price_filter .ui-slider-horizontal .ui-slider-range-min{left:-1px}.widget_price_filter .ui-slider-horizontal .ui-slider-range-max{right:-1px}.widget_rating_filter li{text-align:right}.widget_rating_filter li .star-rating{float:left;margin-top:.3rem}.widget_product_search form{position:relative}.widget_product_search .search-field{padding-right:100px}.widget_product_search input[type=submit]{position:absolute;top:.5rem;right:.5rem;padding-left:1rem;padding-right:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;margin:0 0 2rem}.woocommerce-account .woocommerce-MyAccount-navigation ul{margin:0;padding:0}.woocommerce-account .woocommerce-MyAccount-navigation li{list-style:none;padding:.5rem 0;border-bottom:1px solid #ccc}.woocommerce-account .woocommerce-MyAccount-navigation li:first-child{padding-top:0}.woocommerce-account .woocommerce-MyAccount-navigation li a{box-shadow:none;text-decoration:none;font-weight:600}.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{color:#005177;text-decoration:underline}.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{text-decoration:underline}.woocommerce-account table.account-orders-table .button{margin:0 .35rem .35rem 0}.woocommerce-cart-form img{max-width:42px;height:auto;display:block}.woocommerce-cart-form dl.variation{margin-top:0}.woocommerce-cart-form dl.variation p,.woocommerce-cart-form dl.variation:last-child{margin-bottom:0}.woocommerce-cart-form .product-remove{text-align:center}.woocommerce-cart-form .actions .input-text{width:200px!important;float:left;margin-right:.25rem}.woocommerce-cart-form .quantity input{width:4rem}.cart_totals td,.cart_totals th{vertical-align:top}.cart_totals th{padding-right:1rem}.cart_totals .woocommerce-shipping-destination{margin-bottom:0}.shipping-calculator-button{margin-top:.5rem;display:inline-block}.shipping-calculator-form{margin:1rem 0 0 0}#shipping_method{list-style:none;margin:0;padding:0}#shipping_method li{margin-bottom:.5rem}#shipping_method li input{float:left;margin-top:.17rem}#shipping_method li label{line-height:1.5rem}.checkout-button{display:block;padding:1rem 2rem;border:2px solid #000;text-align:center;font-weight:800}.checkout-button:hover{border-color:#999}.checkout-button:after{content:"→";margin-left:.5rem}#ship-to-different-address{font-size:1em;display:inline-block}#ship-to-different-address label{font-weight:300;cursor:pointer}#ship-to-different-address label span{position:relative;display:block;text-align:right;padding-right:45px}#ship-to-different-address label span:before{content:"";display:block;height:16px;width:30px;border:2px solid #bbb;background:#bbb;border-radius:13rem;box-sizing:content-box;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s;position:absolute;top:4px;right:0}#ship-to-different-address label span:after{content:"";display:block;width:14px;height:14px;background:#fff;position:absolute;top:7px;right:17px;border-radius:13rem;-webkit-transition:all ease-in-out .3s;transition:all ease-in-out .3s}#ship-to-different-address label input[type=checkbox]{display:none}#ship-to-different-address label input[type=checkbox]:checked+span:after{right:3px}#ship-to-different-address label input[type=checkbox]:checked+span:before{border-color:#000;background:#000}.woocommerce-no-js form.woocommerce-form-coupon,.woocommerce-no-js form.woocommerce-form-login{display:block!important}.woocommerce-no-js .showcoupon,.woocommerce-no-js .woocommerce-form-coupon-toggle,.woocommerce-no-js .woocommerce-form-login-toggle{display:none!important}.woocommerce-terms-and-conditions{border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:rgba(0,0,0,.05)}.woocommerce-terms-and-conditions-link{display:inline-block}.woocommerce-terms-and-conditions-link:after{content:"";display:inline-block;border-style:solid;margin-bottom:2px;margin-left:.25rem;border-width:6px 6px 0 6px;border-color:#111 transparent transparent transparent}.woocommerce-terms-and-conditions-link.woocommerce-terms-and-conditions-link--open:after{border-width:0 6px 6px 6px;border-color:transparent transparent #111 transparent}.woocommerce-checkout .woocommerce-input-wrapper .description{background:#4169e1;color:#fff;border-radius:3px;padding:1rem;margin:.5rem 0 0;clear:both;display:none;position:relative}.woocommerce-checkout .woocommerce-input-wrapper .description a{color:#fff;text-decoration:underline;border:0;box-shadow:none}.woocommerce-checkout .woocommerce-input-wrapper .description:before{left:50%;top:0;margin-top:-4px;-webkit-transform:translatex(-50%) rotate(180deg);-ms-transform:translatex(-50%) rotate(180deg);transform:translatex(-50%) rotate(180deg);content:"";position:absolute;border-width:4px 6px 0 6px;border-style:solid;border-color:#4169e1 transparent transparent transparent;z-index:100;display:block}.woocommerce-checkout .select2-choice,.woocommerce-checkout .select2-choice:hover{box-shadow:none!important}.woocommerce-checkout .select2-choice{padding:.7rem 0 .7rem .7rem}.woocommerce-checkout .select2-container .select2-selection--single{height:48px}.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:48px}.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}.woocommerce-checkout .select2-container--focus .select2-selection{border-color:#000}.woocommerce-checkout-review-order-table td{padding:1rem .5rem}.woocommerce-checkout-review-order-table dl.variation{margin:0}.woocommerce-checkout-review-order-table dl.variation p{margin:0}.woocommerce-checkout-review-order ul{margin:2rem 0 1rem;padding-left:0}.wc_payment_method{list-style:none}.wc_payment_method .payment_box{padding:1rem;background:#eee}.wc_payment_method .payment_box ol:last-of-type,.wc_payment_method .payment_box ul:last-of-type{margin-bottom:0}.wc_payment_method .payment_box fieldset{padding:1.5rem;padding-bottom:0;border:0;background:#f6f6f6}.wc_payment_method .payment_box li{list-style:none}.wc_payment_method .payment_box p:first-child{margin-top:0}.wc_payment_method .payment_box p:last-child{margin-bottom:0}.wc_payment_method>label:first-of-type{display:block;margin:1rem 0}.wc_payment_method>label:first-of-type img{max-height:24px;max-width:200px;float:right}.wc_payment_method label{cursor:pointer}.wc_payment_method input.input-radio[name=payment_method]{display:none}.wc_payment_method input.input-radio[name=payment_method]+label:before{content:"";display:inline-block;width:16px;height:16px;border:2px solid #fff;box-shadow:0 0 0 2px #000;background:#fff;margin-left:4px;margin-right:.5rem;border-radius:100%;-webkit-transform:translateY(2px);-ms-transform:translateY(2px);transform:translateY(2px)}.wc_payment_method input.input-radio[name=payment_method]:checked+label:before{background:#000}.woocommerce-order-overview{margin-bottom:2rem}.woocommerce-table--order-details{margin-bottom:2rem}.woocommerce .content-area .site-main{margin:calc(2 * 1rem) 1rem}@media only screen and (max-width:768px){.woocommerce table.shop_table_responsive tr,.woocommerce-page table.shop_table_responsive tr{margin:0 0 1.5rem}.woocommerce table.shop_table_responsive tr:first-child,.woocommerce-page table.shop_table_responsive tr:first-child{border-top:1px solid}.woocommerce table.shop_table_responsive tr:last-child,.woocommerce-page table.shop_table_responsive tr:last-child{margin-bottom:0}.woocommerce table.shop_table_responsive tr td,.woocommerce-page table.shop_table_responsive tr td{border-bottom-width:0}.woocommerce table.shop_table_responsive tr td:last-child,.woocommerce-page table.shop_table_responsive tr td:last-child{border-bottom-width:1px}}@media only screen and (min-width:768px){.woocommerce table.shop_table tbody tr,.woocommerce-page table.shop_table tbody tr{font-size:.88889em}.woocommerce-products-header__title.page-title{font-size:2.25em}.woocommerce-pagination .next.page-numbers,.woocommerce-pagination .prev.page-numbers,.woocommerce-pagination a.page-numbers,.woocommerce-pagination span.page-numbers{padding:1rem}.woocommerce-account .woocommerce-MyAccount-navigation{float:none;width:100%;margin-bottom:1.5rem}.woocommerce-account .woocommerce-MyAccount-navigation li{display:inline-block;margin:0 1rem 0 0;padding:0;border-bottom:0}.woocommerce-account .woocommerce-MyAccount-navigation li:last-child{margin-right:0}.woocommerce-account .woocommerce-MyAccount-content{float:none;width:100%}#ship-to-different-address{display:block}.woocommerce .content-area{margin:0 calc(10% + 60px)}.woocommerce .content-area .site-main{margin:0;max-width:calc(8 * (100vw / 12) - 28px)}.single-product .entry .entry-content,.single-product .entry .entry-summary{max-width:none;margin:0 0 3rem;padding:0}.single-product .entry .entry-content>*,.single-product .entry .entry-summary>*{max-width:none}}@media only screen and (min-width:1168px){.woocommerce .content-area .site-main{max-width:calc(6 * (100vw / 12) - 28px)}} \ No newline at end of file diff --git a/assets/css/twenty-nineteen.scss b/assets/css/twenty-nineteen.scss index 4f4171cd8ed..3e1ac0fb89c 100644 --- a/assets/css/twenty-nineteen.scss +++ b/assets/css/twenty-nineteen.scss @@ -39,6 +39,10 @@ $highlights-color: #0073aa; * Global elements */ a.button { + display: inline-block; + text-align: center; + box-sizing: border-box; + word-break: break-all; color: #fff; text-decoration: none !important; @@ -132,7 +136,9 @@ a.button { margin-bottom: 1.5rem; padding: 1rem; background: #eee; + font-size: 0.88889em; font-family: $headings; + list-style: none; overflow: hidden; } @@ -151,6 +157,10 @@ a.button { &:hover { color: #fff; } + + &.button { + background: #111; + } } } @@ -187,6 +197,18 @@ a.button { } } +/** +* Tables +*/ +.woocommerce, +.woocommerce-page { + table.shop_table { + td, th { + word-break: normal; + } + } +} + /** * Shop page */ @@ -662,8 +684,11 @@ table.variations { padding: 0.5rem 0; a.remove { - float: right; - margin-top: 2px; + float: left; + margin-top: 7px; + line-height: 20px; + color: #fff; + margin-right: .5rem; } } @@ -815,13 +840,6 @@ table.variations { padding: 0.5rem 0; border-bottom: 1px solid #ccc; - &:before { - content: "→"; - display: inline-block; - margin-right: 0.25rem; - color: $body-color; - } - &:first-child { padding-top: 0; } @@ -844,6 +862,12 @@ table.variations { } } } + + table.account-orders-table { + .button { + margin: 0 .35rem .35rem 0; + } + } } /** @@ -910,6 +934,7 @@ table.variations { #shipping_method { list-style: none; margin: 0; + padding: 0; li { margin-bottom: 0.5rem; @@ -946,6 +971,9 @@ table.variations { * Checkout */ #ship-to-different-address { + font-size: 1em; + display: inline-block; + label { font-weight: 300; cursor: pointer; @@ -953,6 +981,8 @@ table.variations { span { position: relative; display: block; + text-align: right; + padding-right: 45px; &:before { content: ""; @@ -1106,16 +1136,16 @@ table.variations { .woocommerce-checkout-review-order { ul { + margin: 2rem 0 1rem; padding-left: 0; } } .wc_payment_method { list-style: none; - border-bottom: 1px solid #ddd; .payment_box { - padding: 2rem; + padding: 1rem; background: #eee; ul, @@ -1136,12 +1166,19 @@ table.variations { list-style: none; } - p:last-child { - margin-bottom: 0; + p { + &:first-child { + margin-top: 0; + } + + &:last-child { + margin-bottom: 0; + } } } > label:first-of-type { + display: block; margin: 1rem 0; img { @@ -1182,6 +1219,14 @@ table.variations { } } +.woocommerce-order-overview { + margin-bottom: 2rem; +} + +.woocommerce-table--order-details { + margin-bottom: 2rem; +} + /** * Layout stuff */ @@ -1193,7 +1238,48 @@ table.variations { } } +@media only screen and (max-width: 768px) { + .woocommerce, + .woocommerce-page { + table.shop_table_responsive { + tr { + margin: 0 0 1.5rem; + + &:first-child { + border-top: 1px solid; + } + + &:last-child { + margin-bottom: 0; + } + + td { + border-bottom-width: 0; + + &:last-child { + border-bottom-width: 1px; + } + } + } + } + } +} + @media only screen and (min-width: 768px) { + /** + * Tables + */ + .woocommerce, + .woocommerce-page { + table.shop_table { + tbody { + tr { + font-size: 0.88889em; + } + } + } + } + /** * Shop page */ @@ -1215,16 +1301,35 @@ table.variations { */ .woocommerce-account { .woocommerce-MyAccount-navigation { - float: right; - width: 25%; - margin-bottom: 0; + float: none; + width: 100%; + margin-bottom: 1.5rem; + + li { + display: inline-block; + margin: 0 1rem 0 0; + padding: 0; + border-bottom: 0; + + &:last-child { + margin-right: 0; + } + } } .woocommerce-MyAccount-content { - float: left; + float: none; + width: 100%; } } + /** + * Checkout + */ + #ship-to-different-address { + display: block; + } + /** * Layout stuff */ diff --git a/assets/css/wc-setup-rtl.css b/assets/css/wc-setup-rtl.css index c73cc3663bd..6b2179baf75 100644 --- a/assets/css/wc-setup-rtl.css +++ b/assets/css/wc-setup-rtl.css @@ -1 +1 @@ -@charset "UTF-8";body{margin:65px auto 24px;box-shadow:none;background:#f1f1f1;padding:0}#wc-logo{border:0;margin:0 0 24px;padding:0;text-align:center}#wc-logo img{max-width:30%}.wc-setup{text-align:center}.wc-setup .select2-container{text-align:right}.wc-setup .hidden{display:none}.wc-setup-content{box-shadow:0 1px 3px rgba(0,0,0,.13);padding:2em;margin:0 0 20px;background:#fff;overflow:hidden;zoom:1;text-align:right}.wc-setup-content h1,.wc-setup-content h2,.wc-setup-content h3,.wc-setup-content table{margin:0 0 20px;border:0;padding:0;color:#666;clear:none;font-weight:500}.wc-setup-content p{margin:20px 0;font-size:1em;line-height:1.75em;color:#666}.wc-setup-content table{font-size:1em;line-height:1.75em;color:#666}.wc-setup-content a{color:#a16696}.wc-setup-content a:focus,.wc-setup-content a:hover{color:#111}.wc-setup-content .form-table th{width:35%;vertical-align:top;font-weight:400}.wc-setup-content .form-table td{vertical-align:top}.wc-setup-content .form-table td input,.wc-setup-content .form-table td select{width:100%;box-sizing:border-box}.wc-setup-content .form-table td input[size]{width:auto}.wc-setup-content .form-table td .description{line-height:1.5em;display:block;margin-top:.25em;color:#999;font-style:italic}.wc-setup-content .form-table td .input-checkbox,.wc-setup-content .form-table td .input-radio{width:auto;box-sizing:inherit;padding:inherit;margin:0 0 0 .5em;box-shadow:none}.wc-setup-content .form-table .section_title td{padding:0}.wc-setup-content .form-table .section_title td h2,.wc-setup-content .form-table .section_title td p{margin:12px 0 0}.wc-setup-content .form-table td,.wc-setup-content .form-table th{padding:12px 0;margin:0;border:0}.wc-setup-content .form-table td:first-child,.wc-setup-content .form-table th:first-child{padding-left:1em}.wc-setup-content table.tax-rates{width:100%;font-size:.92em}.wc-setup-content table.tax-rates th{padding:0;text-align:center;width:auto;vertical-align:middle}.wc-setup-content table.tax-rates td{border:1px solid #f5f5f5;padding:6px;text-align:center;vertical-align:middle}.wc-setup-content table.tax-rates td input{outline:0;border:0;padding:0;box-shadow:none;text-align:center;width:100%}.wc-setup-content table.tax-rates td.sort{cursor:move;color:#ccc}.wc-setup-content table.tax-rates td.sort::before{content:'\f333';font-family:dashicons}.wc-setup-content table.tax-rates td.readonly{background:#f5f5f5}.wc-setup-content table.tax-rates .add{padding:1em 1em 0 0;line-height:1em;font-size:1em;width:0;margin:6px 0 0;height:0;overflow:hidden;position:relative;display:inline-block}.wc-setup-content table.tax-rates .add::before{content:'\f502';font-family:dashicons;position:absolute;right:0;top:0}.wc-setup-content table.tax-rates .remove{padding:1em 1em 0 0;line-height:1em;font-size:1em;width:0;margin:0;height:0;overflow:hidden;position:relative;display:inline-block}.wc-setup-content table.tax-rates .remove::before{content:'\f182';font-family:dashicons;position:absolute;right:0;top:0}.wc-setup-content .wc-setup-pages{width:100%;border-top:1px solid #eee}.wc-setup-content .wc-setup-pages thead th{display:none}.wc-setup-content .wc-setup-pages .page-name{width:30%;font-weight:700}.wc-setup-content .wc-setup-pages td,.wc-setup-content .wc-setup-pages th{padding:14px 0;border-bottom:1px solid #eee}.wc-setup-content .wc-setup-pages td:first-child,.wc-setup-content .wc-setup-pages th:first-child{padding-left:9px}.wc-setup-content .wc-setup-pages th{padding-top:0}.wc-setup-content .wc-setup-pages .page-options p{color:#777;margin:6px 24px 0 0;line-height:1.75em}.wc-setup-content .wc-setup-pages .page-options p input{vertical-align:middle;margin:1px 0 0;height:1.75em;width:1.75em;line-height:1.75em}.wc-setup-content .wc-setup-pages .page-options p label{line-height:1}@media screen and (max-width:782px){.wc-setup-content .form-table tbody th{width:auto}}.wc-setup-content .twitter-share-button{float:left}.wc-setup-content .wc-setup-next-steps{overflow:hidden;margin:0 0 24px;padding-bottom:2px}.wc-setup-content .wc-setup-next-steps h2{margin-bottom:12px}.wc-setup-content .wc-setup-next-steps .wc-setup-next-steps-first{float:right;width:50%;box-sizing:border-box}.wc-setup-content .wc-setup-next-steps .wc-setup-next-steps-last{float:left;width:50%;box-sizing:border-box}.wc-setup-content .wc-setup-next-steps ul{padding:0 0 0 2em;list-style:none outside;margin:0}.wc-setup-content .wc-setup-next-steps ul li a{display:block;padding:0 0 .75em}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button{background-color:#f7f7f7;border-color:#ccc;color:#23282d;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #ccc;text-shadow:-1px 0 1px #eee,0 1px 1px #eee;font-size:1em;height:auto;line-height:1.75em;margin:0 0 .75em;opacity:1;padding:1em;text-align:center}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button:active,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button:focus,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button:hover{background:#f5f5f5;border-color:#aaa}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary{color:#fff;background-color:#bb77ae;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;text-shadow:0 -1px 1px #a36597,-1px 0 1px #a36597,0 1px 1px #a36597,1px 0 1px #a36597}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary:active,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary:focus,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary:hover{color:#fff;background:#a36597;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.wc-setup-content .wc-setup-next-steps ul li a::before{color:#82878c;font:normal 20px/1 dashicons;speak:none;display:inline-block;padding:0 0 0 10px;top:1px;position:relative;text-decoration:none!important;vertical-align:top}.wc-setup-content .wc-setup-next-steps ul .learn-more a::before{content:'\f105'}.wc-setup-content .wc-setup-next-steps ul .video-walkthrough a::before{content:'\f126'}.wc-setup-content .wc-setup-next-steps ul .newsletter a::before{content:'\f465'}.wc-setup-content .updated,.wc-setup-content .woocommerce-newsletter{padding:24px 24px 0;margin:0 0 24px;overflow:hidden;background:#f5f5f5}.wc-setup-content .updated p,.wc-setup-content .woocommerce-newsletter p{padding:0;margin:0 0 12px}.wc-setup-content .updated form,.wc-setup-content .updated p:last-child,.wc-setup-content .woocommerce-newsletter form,.wc-setup-content .woocommerce-newsletter p:last-child{margin:0 0 24px}.wc-setup-content .woocommerce-tracker{margin:24px 0;border:1px solid #eee;padding:20px;border-radius:4px;overflow:hidden}.wc-setup-content .woocommerce-tracker p{font-size:14px;line-height:1.5em}.wc-setup-content .woocommerce-tracker .checkbox{line-height:24px;font-weight:500;font-size:1em;margin-top:0;margin-bottom:20px}.wc-setup-content .checkbox input[type=checkbox]{opacity:0;position:absolute;right:-9999px}.wc-setup-content .checkbox label{position:relative;display:inline-block;padding-right:28px}.wc-setup-content .checkbox label:after,.wc-setup-content .checkbox label:before{position:absolute;content:"";display:inline-block}.wc-setup-content .checkbox label:before{height:16px;width:16px;right:0;top:3px;border:1px solid #aaa;background-color:#fff;border-radius:3px}.wc-setup-content .checkbox label:after{height:5px;width:9px;border-right:2px solid;border-bottom:2px solid;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);right:4px;top:7px;color:#fff}.wc-setup-content .checkbox input[type=checkbox]+label::after{content:none}.wc-setup-content .checkbox input[type=checkbox]:checked+label::after{content:""}.wc-setup-content .checkbox input[type=checkbox]:focus+label::before{outline:#3b99fc auto 5px}.wc-setup-content .checkbox input[type=checkbox]:checked+label::before{background:#935687;border-color:#935687}.wc-setup-steps{padding:0 0 24px;margin:0;list-style:none outside;overflow:hidden;color:#ccc;width:100%;display:-webkit-inline-box;display:inline-flex}.wc-setup-steps li{width:100%;float:right;padding:0 0 .8em;margin:0;text-align:center;position:relative;border-bottom:4px solid #ccc;line-height:1.4em}.wc-setup-steps li a{color:#a16696;text-decoration:none;padding:1.5em;margin:-1.5em;position:relative;z-index:1}.wc-setup-steps li a:focus,.wc-setup-steps li a:hover{color:#111;text-decoration:underline}.wc-setup-steps li::before{content:'';border:4px solid #ccc;border-radius:100%;width:4px;height:4px;position:absolute;bottom:0;right:50%;margin-right:-6px;margin-bottom:-8px;background:#fff}.wc-setup-steps li.active{border-color:#a16696;color:#a16696;font-weight:700}.wc-setup-steps li.active::before{border-color:#a16696}.wc-setup-steps li.done{border-color:#a16696;color:#a16696}.wc-setup-steps li.done::before{border-color:#a16696;background:#a16696}.wc-setup .wc-setup-actions{overflow:hidden;margin:20px 0 0;position:relative}.wc-setup .wc-setup-actions .button{font-size:1.25em;padding:.5em 1em;line-height:1em;margin-left:.5em;margin-bottom:2px;height:auto;border-radius:4px}.wc-setup .wc-setup-actions .button-primary{background-color:#bb77ae;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;text-shadow:0 -1px 1px #a36597,-1px 0 1px #a36597,0 1px 1px #a36597,1px 0 1px #a36597;margin:0;opacity:1}.wc-setup .wc-setup-actions .button-primary:active,.wc-setup .wc-setup-actions .button-primary:focus,.wc-setup .wc-setup-actions .button-primary:hover{background:#a36597;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.wc-setup-content p:last-child{margin-bottom:0}.wc-setup-content p.store-setup{margin-top:0}.wc-setup-footer-links{font-size:.85em;color:#7b7b7b;margin:1.18em auto;display:inline-block;text-align:center}.wc-wizard-storefront .wc-wizard-storefront-intro{padding:40px 40px 0;background:#f5f5f5;text-align:center}.wc-wizard-storefront .wc-wizard-storefront-intro img{margin:40px 0 0 0;width:100%;display:block}.wc-wizard-storefront .wc-wizard-storefront-features{list-style:none outside;margin:0 0 20px;padding:0 30px 0 0;overflow:hidden}.wc-wizard-storefront .wc-wizard-storefront-feature{margin:0;padding:20px 2em 20px 30px;width:50%;box-sizing:border-box}.wc-wizard-storefront .wc-wizard-storefront-feature::before{margin-right:-2em;position:absolute}.wc-wizard-storefront .wc-wizard-storefront-feature.first{clear:both;float:right}.wc-wizard-storefront .wc-wizard-storefront-feature.last{float:left}.wc-wizard-storefront .wc-wizard-storefront-feature__bulletproof::before{content:'🔒'}.wc-wizard-storefront .wc-wizard-storefront-feature__mobile::before{content:'📱'}.wc-wizard-storefront .wc-wizard-storefront-feature__accessibility::before{content:'👓'}.wc-wizard-storefront .wc-wizard-storefront-feature__search::before{content:'🔍'}.wc-wizard-storefront .wc-wizard-storefront-feature__compatibility::before{content:'🔧'}.wc-wizard-storefront .wc-wizard-storefront-feature__extendable::before{content:'🎨'}.wc-wizard-services{border:1px solid #eee;padding:0;margin:0 0 1em;list-style:none outside;border-radius:4px;overflow:hidden}.wc-wizard-services p{margin:0 0 1em 0;padding:0;font-size:1em;line-height:1.5em}.wc-wizard-service-item,.wc-wizard-services-list-toggle{display:-webkit-box;display:flex;flex-wrap:nowrap;-webkit-box-pack:justify;justify-content:space-between;padding:0;border-bottom:1px solid #eee;color:#666;-webkit-box-align:center;align-items:center}.wc-wizard-service-item:last-child,.wc-wizard-services-list-toggle:last-child{border-bottom:0}.wc-wizard-service-item .payment-gateway-fee,.wc-wizard-services-list-toggle .payment-gateway-fee{color:#a6a6a6}.wc-wizard-service-item .wc-wizard-service-name,.wc-wizard-services-list-toggle .wc-wizard-service-name{flex-basis:0;min-width:160px;text-align:center;font-weight:700;padding:2em 0;align-self:stretch;display:-webkit-box;display:flex;-webkit-box-align:baseline;align-items:baseline}.wc-wizard-payment-gateway-form .wc-wizard-service-item .wc-wizard-service-name,.wc-wizard-payment-gateway-form .wc-wizard-services-list-toggle .wc-wizard-service-name{-webkit-box-pack:center;justify-content:center}.wc-wizard-service-item .wc-wizard-service-name img,.wc-wizard-services-list-toggle .wc-wizard-service-name img{max-width:75px}.wc-wizard-service-item.stripe-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.stripe-logo .wc-wizard-service-name img{padding:8px 0}.wc-wizard-service-item.paypal-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.paypal-logo .wc-wizard-service-name img{max-width:87px;padding:2px 0}.wc-wizard-service-item.klarna-logo .wc-wizard-service-name,.wc-wizard-services-list-toggle.klarna-logo .wc-wizard-service-name{background:#000}.wc-wizard-service-item.klarna-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.klarna-logo .wc-wizard-service-name img{max-width:87px;padding:12px 0}.wc-wizard-service-item.square-logo .wc-wizard-service-name,.wc-wizard-services-list-toggle.square-logo .wc-wizard-service-name{background:#000}.wc-wizard-service-item.square-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.square-logo .wc-wizard-service-name img{max-width:95px;padding:12px 0}.wc-wizard-service-item.eway-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.eway-logo .wc-wizard-service-name img{max-width:87px}.wc-wizard-service-item.payfast-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.payfast-logo .wc-wizard-service-name img{max-width:140px}.wc-wizard-service-item .wc-wizard-service-description,.wc-wizard-services-list-toggle .wc-wizard-service-description{-webkit-box-flex:1;flex-grow:1;padding:20px}.wc-wizard-service-item .wc-wizard-service-description p,.wc-wizard-services-list-toggle .wc-wizard-service-description p{margin-bottom:1em}.wc-wizard-service-item .wc-wizard-service-description p:last-child,.wc-wizard-services-list-toggle .wc-wizard-service-description p:last-child{margin-bottom:0}.wc-wizard-service-item .wc-wizard-service-description .wc-wizard-service-settings-description,.wc-wizard-services-list-toggle .wc-wizard-service-description .wc-wizard-service-settings-description{display:block;font-style:italic;color:#999}.wc-wizard-service-item .wc-wizard-service-enable,.wc-wizard-services-list-toggle .wc-wizard-service-enable{flex-basis:0;min-width:75px;text-align:center;cursor:pointer;padding:2em 0;position:relative;max-height:1.5em;align-self:flex-start}.wc-wizard-service-item .wc-wizard-service-toggle,.wc-wizard-services-list-toggle .wc-wizard-service-toggle{height:16px;width:32px;border:2px solid #935687;background-color:#935687;display:inline-block;text-indent:-9999px;border-radius:10em;position:relative}.wc-wizard-service-item .wc-wizard-service-toggle input[type=checkbox],.wc-wizard-services-list-toggle .wc-wizard-service-toggle input[type=checkbox]{display:none}.wc-wizard-service-item .wc-wizard-service-toggle:before,.wc-wizard-services-list-toggle .wc-wizard-service-toggle:before{content:"";display:block;width:16px;height:16px;background:#fff;position:absolute;top:0;left:0;border-radius:100%}.wc-wizard-service-item .wc-wizard-service-toggle.disabled,.wc-wizard-services-list-toggle .wc-wizard-service-toggle.disabled{border-color:#999;background-color:#999}.wc-wizard-service-item .wc-wizard-service-toggle.disabled:before,.wc-wizard-services-list-toggle .wc-wizard-service-toggle.disabled:before{left:auto;right:0}.wc-wizard-service-item .wc-wizard-service-settings,.wc-wizard-services-list-toggle .wc-wizard-service-settings{display:none;margin-top:.75em;margin-bottom:0;cursor:default}.wc-wizard-service-item .wc-wizard-service-settings.hide,.wc-wizard-services-list-toggle .wc-wizard-service-settings.hide{display:none}.wc-wizard-service-item.checked .wc-wizard-service-settings,.wc-wizard-services-list-toggle.checked .wc-wizard-service-settings{display:inline-block}.wc-wizard-service-item.checked .wc-wizard-service-settings.hide,.wc-wizard-services-list-toggle.checked .wc-wizard-service-settings.hide{display:none}.wc-wizard-service-item.closed,.wc-wizard-services-list-toggle.closed{border-bottom:0}.wc-wizard-services-list-toggle{cursor:pointer}.wc-wizard-services-list-toggle .wc-wizard-service-enable::before{content:"\f343";font-family:dashicons;visibility:initial;color:#666;font-size:25px;margin-top:-7px;margin-right:-5px;position:absolute;visibility:visible}.wc-wizard-services-list-toggle.closed .wc-wizard-service-enable::before{content:"\f347"}.wc-wizard-services-list-toggle .wc-wizard-service-enable input{visibility:hidden;position:relative}.wc-wizard-services.manual .wc-wizard-service-item{display:none}.wc-wizard-services.shipping{margin:0}.wc-wizard-services.shipping .wc-wizard-service-name{font-weight:400;text-align:right;-webkit-box-align:center;align-items:center;max-height:5em;padding:0}.wc-wizard-services.shipping .wc-wizard-service-item{padding-right:2em;padding-top:.67em}.wc-wizard-services.shipping .wc-wizard-service-item:first-child{border-bottom:0;padding-bottom:0;font-weight:700}.wc-wizard-services.shipping .wc-wizard-service-item:first-child .wc-wizard-service-name{font-weight:700}.wc-wizard-services.shipping .shipping-method-setting,.wc-wizard-services.shipping .wc-wizard-shipping-method-select{display:-webkit-box;display:flex}.wc-wizard-services.shipping .shipping-method-setting.hide,.wc-wizard-services.shipping .wc-wizard-shipping-method-select.hide{display:none}.wc-wizard-services.shipping .shipping-method-setting input,.wc-wizard-services.shipping .wc-wizard-shipping-method-dropdown{margin-left:2em;margin-bottom:1em}.wc-wizard-services.shipping .shipping-method-setting input .select2,.wc-wizard-services.shipping .wc-wizard-shipping-method-dropdown .select2{min-width:130px}.wc-wizard-services.shipping .wc-wizard-service-description{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;color:#a6a6a6}.wc-wizard-services.shipping .wc-wizard-service-item:not(:first-child) .wc-wizard-service-description{font-size:.92em;padding-bottom:10px}.wc-wizard-services.shipping .shipping-method-setting input{width:95px;border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:28px;padding-right:8px;padding-left:24px;font-size:14px;color:#444;background-color:#fff;display:inline-block}.wc-wizard-services.shipping .shipping-method-description,.wc-wizard-services.shipping .shipping-method-setting .description{color:#7e7e7e;font-size:.9em}.wc-wizard-services.shipping .shipping-method-setting input::-webkit-input-placeholder{color:#e1e1e1}.wc-wizard-services.shipping .shipping-method-setting input::-moz-placeholder{color:#e1e1e1}.wc-wizard-services.shipping .shipping-method-setting input:-ms-input-placeholder{color:#e1e1e1}.wc-wizard-services.shipping .shipping-method-setting input::-ms-input-placeholder{color:#e1e1e1}.wc-wizard-services.shipping .shipping-method-setting input::placeholder{color:#e1e1e1}.wc-setup-shipping-units p{line-height:1.5em;font-size:13px;margin-bottom:.25em;text-align:center}.wc-setup-shipping-units .wc-setup-shipping-unit{margin-bottom:1.75em}.wc-setup-shipping-units .wc-setup-shipping-unit .select2{min-width:125px;top:-5px}.hide{display:none}.wc-wizard-features{display:-webkit-box;display:flex;flex-wrap:wrap;list-style:none;padding:0}.wc-wizard-features .wc-wizard-feature-item{flex-basis:calc(50% - 4em - 3px);border:1px solid #eee;padding:2em}.wc-wizard-features .wc-wizard-feature-item:nth-child(1){border-radius:0 4px 0 0}.wc-wizard-features .wc-wizard-feature-item:nth-child(2){border-right:0;border-radius:4px 0 0 0}.wc-wizard-features .wc-wizard-feature-item:nth-child(3){border-top:0;border-radius:0 0 4px 0}.wc-wizard-features .wc-wizard-feature-item:nth-child(4){border-top:0;border-right:0;border-radius:0 0 0 4px}.wc-wizard-features p.wc-wizard-feature-description,.wc-wizard-features p.wc-wizard-feature-name{margin:0;line-height:1.5em}h3.jetpack-reasons{text-align:center;margin:3em 0 1em 0;font-size:14px}.jetpack-logo,.wcs-notice{display:block;margin:1.75em auto 2em auto;max-height:175px}.activate-splash .jetpack-logo{width:170px;margin-bottom:0}.activate-splash .wcs-notice{margin-top:1em;padding-right:57px}.step{text-align:center}.wc-setup .wc-setup-actions .button{font-weight:300;font-size:16px;padding:1em 2em;box-shadow:none;min-width:12em;min-width:auto;margin-top:10px}.wc-setup .wc-setup-actions .button:active,.wc-setup .wc-setup-actions .button:focus,.wc-setup .wc-setup-actions .button:hover{box-shadow:none}.wc-setup .wc-setup-actions .plugin-install-info{display:block;font-style:italic;color:#999;font-size:14px;line-height:1.5em;margin:5px 0}.wc-setup .wc-setup-actions .plugin-install-info>*{display:block}.wc-setup .wc-setup-actions .plugin-install-info .plugin-install-info-list-item::after{content:', '}.wc-setup .wc-setup-actions .plugin-install-info .plugin-install-info-list-item:last-of-type::after{content:'. '}.wc-setup .wc-setup-actions .plugin-install-info a{white-space:nowrap}.wc-setup .wc-setup-actions .plugin-install-info a:not(:hover):not(:focus){color:inherit}.plugin-install-source{background:rgba(187,119,174,.15)}.plugin-install-source:not(.wc-wizard-service-item){box-shadow:0 0 0 10px rgba(187,119,174,.15)}.location-prompt{color:#666;font-size:13px;font-weight:500;margin-bottom:.5em;margin-top:.85em;display:inline-block}.location-input{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:30px;width:calc(100% - 8px - 24px - 2px);padding-right:8px;padding-left:24px;font-size:16px;color:#444;background-color:#fff;display:inline-block}.location-input.dropdown{width:100%}.address-step .select2{min-width:100%}.store-address-container .city-and-postcode{display:-webkit-box;display:flex}.store-address-container .city-and-postcode div{flex-basis:50%;margin-left:1em}.store-address-container .city-and-postcode div:last-of-type{margin-left:0}.store-address-container .select2-container,.store-address-container input[type=text],.store-address-container select{margin-bottom:10px}.product-type-container{margin-top:14px;margin-bottom:1px}#woocommerce_sell_in_person{margin-right:0}.wc-wizard-service-settings .payment-email-input{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:30px;padding:0 8px;font-size:14px;color:#444;background-color:#fff;display:inline-block}.wc-wizard-service-settings .payment-email-input[disabled]{color:#aaa}.newsletter-form-container{display:-webkit-box;display:flex}.newsletter-form-container .newsletter-form-email{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:42px;padding:0 8px;font-size:16px;color:#666;background-color:#fff;display:inline-block;margin-left:6px;-webkit-box-flex:1;flex-grow:1}.newsletter-form-container .newsletter-form-button-container{-webkit-box-flex:0;flex-grow:0}.wc-setup .wc-setup-actions .button.newsletter-form-button{height:42px;padding:0 1em;margin:0}.wc-wizard-next-steps{border:1px solid #eee;border-radius:4px;list-style:none;padding:0}.wc-wizard-next-steps li{padding:0}.wc-wizard-next-steps .wc-wizard-next-step-item{display:-webkit-box;display:flex;border-top:1px solid #eee}.wc-wizard-next-steps .wc-wizard-next-step-item:first-child{border-top:0}.wc-wizard-next-steps .wc-wizard-next-step-description{-webkit-box-flex:1;flex-grow:1;margin:1.5em}.wc-wizard-next-steps .wc-wizard-next-step-action{-webkit-box-flex:0;flex-grow:0;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}.wc-wizard-next-steps .wc-wizard-next-step-action .button{margin:1em 1.5em}.wc-wizard-next-steps p.next-step-heading{margin:0;font-size:.95em;font-weight:400;font-variant:all-petite-caps}.wc-wizard-next-steps p.next-step-extra-info{margin:0}.wc-wizard-next-steps h3.next-step-description{margin:0;font-size:16px;font-weight:600}.wc-wizard-next-steps .wc-wizard-additional-steps{border-top:1px solid #eee}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-wizard-next-step-description{margin-bottom:0}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-setup-actions{margin:0 0 1.5em 0}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-setup-actions .button{font-size:15px;margin:1em 1.5em 1em 0}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-setup-actions .button::last-child{margin-left:1.5em}p.next-steps-help-text{color:#9f9f9f;padding:0 2em;text-align:center;font-size:.9em}p.jetpack-terms{font-size:.8em;text-align:center;max-width:480px;margin:0 auto;line-height:1.5em}.woocommerce-error{background:#ffe6e5;border-color:#ffc5c2;padding:1em;margin-bottom:1em}.woocommerce-error p{margin-top:0;margin-bottom:.5em;color:#444}.woocommerce-error a{color:#ff645c}.woocommerce-error .reconnect-reminder{font-size:.85em}.woocommerce-error .wc-setup-actions .button{font-size:14px}.wc-wizard-service-setting-ppec_paypal_reroute_requests,.wc-wizard-service-setting-stripe_create_account{display:-webkit-box;display:flex;-webkit-box-align:start;align-items:flex-start}.wc-wizard-service-setting-ppec_paypal_reroute_requests .payment-checkbox-input,.wc-wizard-service-setting-stripe_create_account .payment-checkbox-input{-webkit-box-ordinal-group:2;order:1;margin-top:5px;margin-right:0;margin-left:0;width:1.5em}.wc-wizard-service-setting-ppec_paypal_reroute_requests .ppec_paypal_reroute_requests,.wc-wizard-service-setting-ppec_paypal_reroute_requests .stripe_create_account,.wc-wizard-service-setting-stripe_create_account .ppec_paypal_reroute_requests,.wc-wizard-service-setting-stripe_create_account .stripe_create_account{-webkit-box-ordinal-group:3;order:2;margin-right:.3em}.wc-wizard-service-setting-ppec_paypal_email,.wc-wizard-service-setting-stripe_email{margin-top:.75em;margin-right:1.5em}.wc-wizard-service-setting-ppec_paypal_email label.ppec_paypal_email,.wc-wizard-service-setting-ppec_paypal_email label.stripe_email,.wc-wizard-service-setting-stripe_email label.ppec_paypal_email,.wc-wizard-service-setting-stripe_email label.stripe_email{position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.wc-wizard-service-setting-ppec_paypal_email input.payment-email-input,.wc-wizard-service-setting-stripe_email input.payment-email-input{box-sizing:border-box;margin-bottom:.5em;width:100%;height:32px}.wc-setup-content .recommended-step{border:1px solid #ebebeb;border-radius:4px;padding:2.5em}.wc-setup-content .recommended-item{list-style:none}.wc-setup-content .recommended-item:last-child label{margin-bottom:0}.wc-setup-content .recommended-item label{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;margin-bottom:1.5em}.wc-setup-content .recommended-item label:after,.wc-setup-content .recommended-item label:before{top:auto}.wc-setup-content .recommended-item label:after{margin-top:-1.5px}.wc-setup-content .recommended-item .recommended-item-icon{border:1px solid #fff;border-radius:7px;height:3.5em;margin-left:1em;margin-right:4px}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-storefront_theme{background-color:#f4a224;max-height:3em;max-width:3em;padding:.25em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-automated_taxes{background-color:#d0011b;max-height:1.75em;padding:.875em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-mailchimp{background-color:#209bbb;height:2em;padding:.75em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-woocommerce_services{background-color:#f0f0f0;max-height:1.5em;padding:1.3em .7em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-shipstation{background-color:#f0f0f0;padding:.3em}.wc-setup-content .recommended-item .recommended-item-description-container h3{font-size:15px;font-weight:700;letter-spacing:.5px;margin-bottom:0}.wc-setup-content .recommended-item .recommended-item-description-container p{margin-top:0;line-height:1.5em}.wc-wizard-service-info{padding:1em 2em;background-color:#fafafa}.help_tip{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wc-setup #tiptip_content{background:#5f6973}.wc-setup #tiptip_holder.tip_top #tiptip_arrow_inner{border-top-color:#5f6973}.wc-setup-shipping-recommended{border-bottom:1px solid #eee;margin-top:0;padding:30px 0} \ No newline at end of file +@charset "UTF-8";body{margin:65px auto 24px;box-shadow:none;background:#f1f1f1;padding:0}#wc-logo{border:0;margin:0 0 24px;padding:0;text-align:center}#wc-logo img{max-width:30%}.wc-setup{text-align:center}.wc-setup .select2-container{text-align:right}.wc-setup .hidden{display:none}.wc-setup-content{box-shadow:0 1px 3px rgba(0,0,0,.13);padding:2em;margin:0 0 20px;background:#fff;overflow:hidden;zoom:1;text-align:right}.wc-setup-content h1,.wc-setup-content h2,.wc-setup-content h3,.wc-setup-content table{margin:0 0 20px;border:0;padding:0;color:#666;clear:none;font-weight:500}.wc-setup-content p{margin:20px 0;font-size:1em;line-height:1.75em;color:#666}.wc-setup-content table{font-size:1em;line-height:1.75em;color:#666}.wc-setup-content a{color:#a16696}.wc-setup-content a:focus,.wc-setup-content a:hover{color:#111}.wc-setup-content .form-table th{width:35%;vertical-align:top;font-weight:400}.wc-setup-content .form-table td{vertical-align:top}.wc-setup-content .form-table td input,.wc-setup-content .form-table td select{width:100%;box-sizing:border-box}.wc-setup-content .form-table td input[size]{width:auto}.wc-setup-content .form-table td .description{line-height:1.5em;display:block;margin-top:.25em;color:#999;font-style:italic}.wc-setup-content .form-table td .input-checkbox,.wc-setup-content .form-table td .input-radio{width:auto;box-sizing:inherit;padding:inherit;margin:0 0 0 .5em;box-shadow:none}.wc-setup-content .form-table .section_title td{padding:0}.wc-setup-content .form-table .section_title td h2,.wc-setup-content .form-table .section_title td p{margin:12px 0 0}.wc-setup-content .form-table td,.wc-setup-content .form-table th{padding:12px 0;margin:0;border:0}.wc-setup-content .form-table td:first-child,.wc-setup-content .form-table th:first-child{padding-left:1em}.wc-setup-content table.tax-rates{width:100%;font-size:.92em}.wc-setup-content table.tax-rates th{padding:0;text-align:center;width:auto;vertical-align:middle}.wc-setup-content table.tax-rates td{border:1px solid #f5f5f5;padding:6px;text-align:center;vertical-align:middle}.wc-setup-content table.tax-rates td input{outline:0;border:0;padding:0;box-shadow:none;text-align:center;width:100%}.wc-setup-content table.tax-rates td.sort{cursor:move;color:#ccc}.wc-setup-content table.tax-rates td.sort::before{content:'\f333';font-family:dashicons}.wc-setup-content table.tax-rates td.readonly{background:#f5f5f5}.wc-setup-content table.tax-rates .add{padding:1em 1em 0 0;line-height:1em;font-size:1em;width:0;margin:6px 0 0;height:0;overflow:hidden;position:relative;display:inline-block}.wc-setup-content table.tax-rates .add::before{content:'\f502';font-family:dashicons;position:absolute;right:0;top:0}.wc-setup-content table.tax-rates .remove{padding:1em 1em 0 0;line-height:1em;font-size:1em;width:0;margin:0;height:0;overflow:hidden;position:relative;display:inline-block}.wc-setup-content table.tax-rates .remove::before{content:'\f182';font-family:dashicons;position:absolute;right:0;top:0}.wc-setup-content .wc-setup-pages{width:100%;border-top:1px solid #eee}.wc-setup-content .wc-setup-pages thead th{display:none}.wc-setup-content .wc-setup-pages .page-name{width:30%;font-weight:700}.wc-setup-content .wc-setup-pages td,.wc-setup-content .wc-setup-pages th{padding:14px 0;border-bottom:1px solid #eee}.wc-setup-content .wc-setup-pages td:first-child,.wc-setup-content .wc-setup-pages th:first-child{padding-left:9px}.wc-setup-content .wc-setup-pages th{padding-top:0}.wc-setup-content .wc-setup-pages .page-options p{color:#777;margin:6px 24px 0 0;line-height:1.75em}.wc-setup-content .wc-setup-pages .page-options p input{vertical-align:middle;margin:1px 0 0;height:1.75em;width:1.75em;line-height:1.75em}.wc-setup-content .wc-setup-pages .page-options p label{line-height:1}@media screen and (max-width:782px){.wc-setup-content .form-table tbody th{width:auto}}.wc-setup-content .twitter-share-button{float:left}.wc-setup-content .wc-setup-next-steps{overflow:hidden;margin:0 0 24px;padding-bottom:2px}.wc-setup-content .wc-setup-next-steps h2{margin-bottom:12px}.wc-setup-content .wc-setup-next-steps .wc-setup-next-steps-first{float:right;width:50%;box-sizing:border-box}.wc-setup-content .wc-setup-next-steps .wc-setup-next-steps-last{float:left;width:50%;box-sizing:border-box}.wc-setup-content .wc-setup-next-steps ul{padding:0 0 0 2em;list-style:none outside;margin:0}.wc-setup-content .wc-setup-next-steps ul li a{display:block;padding:0 0 .75em}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button{background-color:#f7f7f7;border-color:#ccc;color:#23282d;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #ccc;text-shadow:-1px 0 1px #eee,0 1px 1px #eee;font-size:1em;height:auto;line-height:1.75em;margin:0 0 .75em;opacity:1;padding:1em;text-align:center}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button:active,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button:focus,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button:hover{background:#f5f5f5;border-color:#aaa}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary{color:#fff;background-color:#bb77ae;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;text-shadow:0 -1px 1px #a36597,-1px 0 1px #a36597,0 1px 1px #a36597,1px 0 1px #a36597}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary:active,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary:focus,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary:hover{color:#fff;background:#a36597;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.wc-setup-content .wc-setup-next-steps ul li a::before{color:#82878c;font:normal 20px/1 dashicons;speak:none;display:inline-block;padding:0 0 0 10px;top:1px;position:relative;text-decoration:none!important;vertical-align:top}.wc-setup-content .wc-setup-next-steps ul .learn-more a::before{content:'\f105'}.wc-setup-content .wc-setup-next-steps ul .video-walkthrough a::before{content:'\f126'}.wc-setup-content .wc-setup-next-steps ul .newsletter a::before{content:'\f465'}.wc-setup-content .updated,.wc-setup-content .woocommerce-newsletter{padding:24px 24px 0;margin:0 0 24px;overflow:hidden;background:#f5f5f5}.wc-setup-content .updated p,.wc-setup-content .woocommerce-newsletter p{padding:0;margin:0 0 12px}.wc-setup-content .updated form,.wc-setup-content .updated p:last-child,.wc-setup-content .woocommerce-newsletter form,.wc-setup-content .woocommerce-newsletter p:last-child{margin:0 0 24px}.wc-setup-content .woocommerce-tracker{margin:24px 0;border:1px solid #eee;padding:20px;border-radius:4px;overflow:hidden}.wc-setup-content .woocommerce-tracker p{font-size:14px;line-height:1.5em}.wc-setup-content .woocommerce-tracker .checkbox{line-height:24px;font-weight:500;font-size:1em;margin-top:0;margin-bottom:20px}.wc-setup-content .checkbox input[type=checkbox]{opacity:0;position:absolute;right:-9999px}.wc-setup-content .checkbox label{position:relative;display:inline-block;padding-right:28px}.wc-setup-content .checkbox label:after,.wc-setup-content .checkbox label:before{position:absolute;content:"";display:inline-block}.wc-setup-content .checkbox label:before{height:16px;width:16px;right:0;top:3px;border:1px solid #aaa;background-color:#fff;border-radius:3px}.wc-setup-content .checkbox label:after{height:5px;width:9px;border-right:2px solid;border-bottom:2px solid;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);right:4px;top:7px;color:#fff}.wc-setup-content .checkbox input[type=checkbox]+label::after{content:none}.wc-setup-content .checkbox input[type=checkbox]:checked+label::after{content:""}.wc-setup-content .checkbox input[type=checkbox]:focus+label::before{outline:#3b99fc auto 5px}.wc-setup-content .checkbox input[type=checkbox]:checked+label::before{background:#935687;border-color:#935687}.wc-setup-steps{padding:0 0 24px;margin:0;list-style:none outside;overflow:hidden;color:#ccc;width:100%;display:-webkit-inline-box;display:inline-flex}.wc-setup-steps li{width:100%;float:right;padding:0 0 .8em;margin:0;text-align:center;position:relative;border-bottom:4px solid #ccc;line-height:1.4em}.wc-setup-steps li a{color:#a16696;text-decoration:none;padding:1.5em;margin:-1.5em;position:relative;z-index:1}.wc-setup-steps li a:focus,.wc-setup-steps li a:hover{color:#111;text-decoration:underline}.wc-setup-steps li::before{content:'';border:4px solid #ccc;border-radius:100%;width:4px;height:4px;position:absolute;bottom:0;right:50%;margin-right:-6px;margin-bottom:-8px;background:#fff}.wc-setup-steps li.active{border-color:#a16696;color:#a16696;font-weight:700}.wc-setup-steps li.active::before{border-color:#a16696}.wc-setup-steps li.done{border-color:#a16696;color:#a16696}.wc-setup-steps li.done::before{border-color:#a16696;background:#a16696}.wc-setup .wc-setup-actions{overflow:hidden;margin:20px 0 0;position:relative}.wc-setup .wc-setup-actions .button{font-size:1.25em;padding:.5em 1em;line-height:1em;margin-left:.5em;margin-bottom:2px;height:auto;border-radius:4px}.wc-setup .wc-setup-actions .button-primary{background-color:#bb77ae;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;text-shadow:0 -1px 1px #a36597,-1px 0 1px #a36597,0 1px 1px #a36597,1px 0 1px #a36597;margin:0;opacity:1}.wc-setup .wc-setup-actions .button-primary:active,.wc-setup .wc-setup-actions .button-primary:focus,.wc-setup .wc-setup-actions .button-primary:hover{background:#a36597;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.wc-setup-content p:last-child{margin-bottom:0}.wc-setup-content p.store-setup{margin-top:0}.wc-setup-footer-links{font-size:.85em;color:#7b7b7b;margin:1.18em auto;display:inline-block;text-align:center}.wc-wizard-storefront .wc-wizard-storefront-intro{padding:40px 40px 0;background:#f5f5f5;text-align:center}.wc-wizard-storefront .wc-wizard-storefront-intro img{margin:40px 0 0 0;width:100%;display:block}.wc-wizard-storefront .wc-wizard-storefront-features{list-style:none outside;margin:0 0 20px;padding:0 30px 0 0;overflow:hidden}.wc-wizard-storefront .wc-wizard-storefront-feature{margin:0;padding:20px 2em 20px 30px;width:50%;box-sizing:border-box}.wc-wizard-storefront .wc-wizard-storefront-feature::before{margin-right:-2em;position:absolute}.wc-wizard-storefront .wc-wizard-storefront-feature.first{clear:both;float:right}.wc-wizard-storefront .wc-wizard-storefront-feature.last{float:left}.wc-wizard-storefront .wc-wizard-storefront-feature__bulletproof::before{content:'🔒'}.wc-wizard-storefront .wc-wizard-storefront-feature__mobile::before{content:'📱'}.wc-wizard-storefront .wc-wizard-storefront-feature__accessibility::before{content:'👓'}.wc-wizard-storefront .wc-wizard-storefront-feature__search::before{content:'🔍'}.wc-wizard-storefront .wc-wizard-storefront-feature__compatibility::before{content:'🔧'}.wc-wizard-storefront .wc-wizard-storefront-feature__extendable::before{content:'🎨'}.wc-wizard-services{border:1px solid #eee;padding:0;margin:0 0 1em;list-style:none outside;border-radius:4px;overflow:hidden}.wc-wizard-services p{margin:0 0 1em 0;padding:0;font-size:1em;line-height:1.5em}.wc-wizard-service-item,.wc-wizard-services-list-toggle{display:-webkit-box;display:flex;flex-wrap:nowrap;-webkit-box-pack:justify;justify-content:space-between;padding:0;border-bottom:1px solid #eee;color:#666;-webkit-box-align:center;align-items:center}.wc-wizard-service-item:last-child,.wc-wizard-services-list-toggle:last-child{border-bottom:0}.wc-wizard-service-item .payment-gateway-fee,.wc-wizard-services-list-toggle .payment-gateway-fee{color:#a6a6a6}.wc-wizard-service-item .wc-wizard-service-name,.wc-wizard-services-list-toggle .wc-wizard-service-name{flex-basis:0;min-width:160px;text-align:center;font-weight:700;padding:2em 0;align-self:stretch;display:-webkit-box;display:flex;-webkit-box-align:baseline;align-items:baseline}.wc-wizard-payment-gateway-form .wc-wizard-service-item .wc-wizard-service-name,.wc-wizard-payment-gateway-form .wc-wizard-services-list-toggle .wc-wizard-service-name{-webkit-box-pack:center;justify-content:center}.wc-wizard-service-item .wc-wizard-service-name img,.wc-wizard-services-list-toggle .wc-wizard-service-name img{max-width:75px}.wc-wizard-service-item.stripe-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.stripe-logo .wc-wizard-service-name img{padding:8px 0}.wc-wizard-service-item.paypal-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.paypal-logo .wc-wizard-service-name img{max-width:87px;padding:2px 0}.wc-wizard-service-item.klarna-logo .wc-wizard-service-name,.wc-wizard-services-list-toggle.klarna-logo .wc-wizard-service-name{background:#000}.wc-wizard-service-item.klarna-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.klarna-logo .wc-wizard-service-name img{max-width:87px;padding:12px 0}.wc-wizard-service-item.square-logo .wc-wizard-service-name,.wc-wizard-services-list-toggle.square-logo .wc-wizard-service-name{background:#000}.wc-wizard-service-item.square-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.square-logo .wc-wizard-service-name img{max-width:95px;padding:12px 0}.wc-wizard-service-item.eway-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.eway-logo .wc-wizard-service-name img{max-width:87px}.wc-wizard-service-item.payfast-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.payfast-logo .wc-wizard-service-name img{max-width:140px}.wc-wizard-service-item .wc-wizard-service-description,.wc-wizard-services-list-toggle .wc-wizard-service-description{-webkit-box-flex:1;flex-grow:1;padding:20px}.wc-wizard-service-item .wc-wizard-service-description p,.wc-wizard-services-list-toggle .wc-wizard-service-description p{margin-bottom:1em}.wc-wizard-service-item .wc-wizard-service-description p:last-child,.wc-wizard-services-list-toggle .wc-wizard-service-description p:last-child{margin-bottom:0}.wc-wizard-service-item .wc-wizard-service-description .wc-wizard-service-settings-description,.wc-wizard-services-list-toggle .wc-wizard-service-description .wc-wizard-service-settings-description{display:block;font-style:italic;color:#999}.wc-wizard-service-item .wc-wizard-service-enable,.wc-wizard-services-list-toggle .wc-wizard-service-enable{flex-basis:0;min-width:75px;text-align:center;cursor:pointer;padding:2em 0;position:relative;max-height:1.5em;align-self:flex-start}.wc-wizard-service-item .wc-wizard-service-toggle,.wc-wizard-services-list-toggle .wc-wizard-service-toggle{height:16px;width:32px;border:2px solid #935687;background-color:#935687;display:inline-block;text-indent:-9999px;border-radius:10em;position:relative}.wc-wizard-service-item .wc-wizard-service-toggle input[type=checkbox],.wc-wizard-services-list-toggle .wc-wizard-service-toggle input[type=checkbox]{display:none}.wc-wizard-service-item .wc-wizard-service-toggle:before,.wc-wizard-services-list-toggle .wc-wizard-service-toggle:before{content:"";display:block;width:16px;height:16px;background:#fff;position:absolute;top:0;left:0;border-radius:100%}.wc-wizard-service-item .wc-wizard-service-toggle.disabled,.wc-wizard-services-list-toggle .wc-wizard-service-toggle.disabled{border-color:#999;background-color:#999}.wc-wizard-service-item .wc-wizard-service-toggle.disabled:before,.wc-wizard-services-list-toggle .wc-wizard-service-toggle.disabled:before{left:auto;right:0}.wc-wizard-service-item .wc-wizard-service-settings,.wc-wizard-services-list-toggle .wc-wizard-service-settings{display:none;margin-top:.75em;margin-bottom:0;cursor:default}.wc-wizard-service-item .wc-wizard-service-settings.hide,.wc-wizard-services-list-toggle .wc-wizard-service-settings.hide{display:none}.wc-wizard-service-item.checked .wc-wizard-service-settings,.wc-wizard-services-list-toggle.checked .wc-wizard-service-settings{display:inline-block}.wc-wizard-service-item.checked .wc-wizard-service-settings.hide,.wc-wizard-services-list-toggle.checked .wc-wizard-service-settings.hide{display:none}.wc-wizard-service-item.closed,.wc-wizard-services-list-toggle.closed{border-bottom:0}.wc-wizard-services-list-toggle{cursor:pointer}.wc-wizard-services-list-toggle .wc-wizard-service-enable::before{content:"\f343";font-family:dashicons;visibility:initial;color:#666;font-size:25px;margin-top:-7px;margin-right:-5px;position:absolute;visibility:visible}.wc-wizard-services-list-toggle.closed .wc-wizard-service-enable::before{content:"\f347"}.wc-wizard-services-list-toggle .wc-wizard-service-enable input{visibility:hidden;position:relative}.wc-wizard-services.manual .wc-wizard-service-item{display:none}.wc-wizard-services.shipping{margin:0}.wc-wizard-services.shipping .wc-wizard-service-name{font-weight:400;text-align:right;-webkit-box-align:center;align-items:center;max-height:5em;padding:0}.wc-wizard-services.shipping .wc-wizard-service-item{padding-right:2em;padding-top:.67em}.wc-wizard-services.shipping .wc-wizard-service-item:first-child{border-bottom:0;padding-bottom:0;font-weight:700}.wc-wizard-services.shipping .wc-wizard-service-item:first-child .wc-wizard-service-name{font-weight:700}.wc-wizard-services.shipping .shipping-method-setting,.wc-wizard-services.shipping .wc-wizard-shipping-method-select{display:-webkit-box;display:flex}.wc-wizard-services.shipping .shipping-method-setting.hide,.wc-wizard-services.shipping .wc-wizard-shipping-method-select.hide{display:none}.wc-wizard-services.shipping .shipping-method-setting input,.wc-wizard-services.shipping .wc-wizard-shipping-method-dropdown{margin-left:2em;margin-bottom:1em}.wc-wizard-services.shipping .shipping-method-setting input .select2,.wc-wizard-services.shipping .wc-wizard-shipping-method-dropdown .select2{min-width:130px}.wc-wizard-services.shipping .wc-wizard-service-description{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;color:#a6a6a6}.wc-wizard-services.shipping .wc-wizard-service-item:not(:first-child) .wc-wizard-service-description{font-size:.92em;padding-bottom:10px}.wc-wizard-services.shipping .shipping-method-setting input{width:95px;border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:28px;padding-right:8px;padding-left:24px;font-size:14px;color:#444;background-color:#fff;display:inline-block}.wc-wizard-services.shipping .shipping-method-description,.wc-wizard-services.shipping .shipping-method-setting .description{color:#7e7e7e;font-size:.9em}.wc-wizard-services.shipping .shipping-method-setting input::-webkit-input-placeholder{color:#e1e1e1}.wc-wizard-services.shipping .shipping-method-setting input::-ms-input-placeholder{color:#e1e1e1}.wc-wizard-services.shipping .shipping-method-setting input::placeholder{color:#e1e1e1}.wc-setup-shipping-units p{line-height:1.5em;font-size:13px;margin-bottom:.25em;text-align:center}.wc-setup-shipping-units .wc-setup-shipping-unit{margin-bottom:1.75em}.wc-setup-shipping-units .wc-setup-shipping-unit .select2{min-width:125px;top:-5px}.hide{display:none}.wc-wizard-features{display:-webkit-box;display:flex;flex-wrap:wrap;list-style:none;padding:0}.wc-wizard-features .wc-wizard-feature-item{flex-basis:calc(50% - 4em - 3px);border:1px solid #eee;padding:2em}.wc-wizard-features .wc-wizard-feature-item:nth-child(1){border-radius:0 4px 0 0}.wc-wizard-features .wc-wizard-feature-item:nth-child(2){border-right:0;border-radius:4px 0 0 0}.wc-wizard-features .wc-wizard-feature-item:nth-child(3){border-top:0;border-radius:0 0 4px 0}.wc-wizard-features .wc-wizard-feature-item:nth-child(4){border-top:0;border-right:0;border-radius:0 0 0 4px}.wc-wizard-features p.wc-wizard-feature-description,.wc-wizard-features p.wc-wizard-feature-name{margin:0;line-height:1.5em}h3.jetpack-reasons{text-align:center;margin:3em 0 1em 0;font-size:14px}.jetpack-logo,.wcs-notice{display:block;margin:1.75em auto 2em auto;max-height:175px}.activate-splash .jetpack-logo{width:170px;margin-bottom:0}.activate-splash .wcs-notice{margin-top:1em;padding-right:57px}.step{text-align:center}.wc-setup .wc-setup-actions .button{font-weight:300;font-size:16px;padding:1em 2em;box-shadow:none;min-width:12em;min-width:auto;margin-top:10px}.wc-setup .wc-setup-actions .button:active,.wc-setup .wc-setup-actions .button:focus,.wc-setup .wc-setup-actions .button:hover{box-shadow:none}.wc-setup .wc-setup-actions .plugin-install-info{display:block;font-style:italic;color:#999;font-size:14px;line-height:1.5em;margin:5px 0}.wc-setup .wc-setup-actions .plugin-install-info>*{display:block}.wc-setup .wc-setup-actions .plugin-install-info .plugin-install-info-list-item::after{content:', '}.wc-setup .wc-setup-actions .plugin-install-info .plugin-install-info-list-item:last-of-type::after{content:'. '}.wc-setup .wc-setup-actions .plugin-install-info a{white-space:nowrap}.wc-setup .wc-setup-actions .plugin-install-info a:not(:hover):not(:focus){color:inherit}.plugin-install-source{background:rgba(187,119,174,.15)}.plugin-install-source:not(.wc-wizard-service-item){box-shadow:0 0 0 10px rgba(187,119,174,.15)}.location-prompt{color:#666;font-size:13px;font-weight:500;margin-bottom:.5em;margin-top:.85em;display:inline-block}.location-input{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:30px;width:calc(100% - 8px - 24px - 2px);padding-right:8px;padding-left:24px;font-size:16px;color:#444;background-color:#fff;display:inline-block}.location-input.dropdown{width:100%}.address-step .select2{min-width:100%}.store-address-container .city-and-postcode{display:-webkit-box;display:flex}.store-address-container .city-and-postcode div{flex-basis:50%;margin-left:1em}.store-address-container .city-and-postcode div:last-of-type{margin-left:0}.store-address-container .select2-container,.store-address-container input[type=text],.store-address-container select{margin-bottom:10px}.product-type-container{margin-top:14px;margin-bottom:1px}#woocommerce_sell_in_person{margin-right:0}.wc-wizard-service-settings .payment-email-input{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:30px;padding:0 8px;font-size:14px;color:#444;background-color:#fff;display:inline-block}.wc-wizard-service-settings .payment-email-input[disabled]{color:#aaa}.newsletter-form-container{display:-webkit-box;display:flex}.newsletter-form-container .newsletter-form-email{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:42px;padding:0 8px;font-size:16px;color:#666;background-color:#fff;display:inline-block;margin-left:6px;-webkit-box-flex:1;flex-grow:1}.newsletter-form-container .newsletter-form-button-container{-webkit-box-flex:0;flex-grow:0}.wc-setup .wc-setup-actions .button.newsletter-form-button{height:42px;padding:0 1em;margin:0}.wc-wizard-next-steps{border:1px solid #eee;border-radius:4px;list-style:none;padding:0}.wc-wizard-next-steps li{padding:0}.wc-wizard-next-steps .wc-wizard-next-step-item{display:-webkit-box;display:flex;border-top:1px solid #eee}.wc-wizard-next-steps .wc-wizard-next-step-item:first-child{border-top:0}.wc-wizard-next-steps .wc-wizard-next-step-description{-webkit-box-flex:1;flex-grow:1;margin:1.5em}.wc-wizard-next-steps .wc-wizard-next-step-action{-webkit-box-flex:0;flex-grow:0;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}.wc-wizard-next-steps .wc-wizard-next-step-action .button{margin:1em 1.5em}.wc-wizard-next-steps p.next-step-heading{margin:0;font-size:.95em;font-weight:400;font-variant:all-petite-caps}.wc-wizard-next-steps p.next-step-extra-info{margin:0}.wc-wizard-next-steps h3.next-step-description{margin:0;font-size:16px;font-weight:600}.wc-wizard-next-steps .wc-wizard-additional-steps{border-top:1px solid #eee}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-wizard-next-step-description{margin-bottom:0}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-setup-actions{margin:0 0 1.5em 0}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-setup-actions .button{font-size:15px;margin:1em 1.5em 1em 0}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-setup-actions .button::last-child{margin-left:1.5em}p.next-steps-help-text{color:#9f9f9f;padding:0 2em;text-align:center;font-size:.9em}p.jetpack-terms{font-size:.8em;text-align:center;max-width:480px;margin:0 auto;line-height:1.5em}.woocommerce-error{background:#ffe6e5;border-color:#ffc5c2;padding:1em;margin-bottom:1em}.woocommerce-error p{margin-top:0;margin-bottom:.5em;color:#444}.woocommerce-error a{color:#ff645c}.woocommerce-error .reconnect-reminder{font-size:.85em}.woocommerce-error .wc-setup-actions .button{font-size:14px}.wc-wizard-service-setting-ppec_paypal_reroute_requests,.wc-wizard-service-setting-stripe_create_account{display:-webkit-box;display:flex;-webkit-box-align:start;align-items:flex-start}.wc-wizard-service-setting-ppec_paypal_reroute_requests .payment-checkbox-input,.wc-wizard-service-setting-stripe_create_account .payment-checkbox-input{-webkit-box-ordinal-group:2;order:1;margin-top:5px;margin-right:0;margin-left:0;width:1.5em}.wc-wizard-service-setting-ppec_paypal_reroute_requests .ppec_paypal_reroute_requests,.wc-wizard-service-setting-ppec_paypal_reroute_requests .stripe_create_account,.wc-wizard-service-setting-stripe_create_account .ppec_paypal_reroute_requests,.wc-wizard-service-setting-stripe_create_account .stripe_create_account{-webkit-box-ordinal-group:3;order:2;margin-right:.3em}.wc-wizard-service-setting-ppec_paypal_email,.wc-wizard-service-setting-stripe_email{margin-top:.75em;margin-right:1.5em}.wc-wizard-service-setting-ppec_paypal_email label.ppec_paypal_email,.wc-wizard-service-setting-ppec_paypal_email label.stripe_email,.wc-wizard-service-setting-stripe_email label.ppec_paypal_email,.wc-wizard-service-setting-stripe_email label.stripe_email{position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.wc-wizard-service-setting-ppec_paypal_email input.payment-email-input,.wc-wizard-service-setting-stripe_email input.payment-email-input{box-sizing:border-box;margin-bottom:.5em;width:100%;height:32px}.wc-setup-content .recommended-step{border:1px solid #ebebeb;border-radius:4px;padding:2.5em}.wc-setup-content .recommended-item{list-style:none}.wc-setup-content .recommended-item:last-child label{margin-bottom:0}.wc-setup-content .recommended-item label{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;margin-bottom:1.5em}.wc-setup-content .recommended-item label:after,.wc-setup-content .recommended-item label:before{top:auto}.wc-setup-content .recommended-item label:after{margin-top:-1.5px}.wc-setup-content .recommended-item .recommended-item-icon{border:1px solid #fff;border-radius:7px;height:3.5em;margin-left:1em;margin-right:4px}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-storefront_theme{background-color:#f4a224;max-height:3em;max-width:3em;padding:.25em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-automated_taxes{background-color:#d0011b;max-height:1.75em;padding:.875em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-mailchimp{background-color:#209bbb;height:2em;padding:.75em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-woocommerce_services{background-color:#f0f0f0;max-height:1.5em;padding:1.3em .7em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-shipstation{background-color:#f0f0f0;padding:.3em}.wc-setup-content .recommended-item .recommended-item-description-container h3{font-size:15px;font-weight:700;letter-spacing:.5px;margin-bottom:0}.wc-setup-content .recommended-item .recommended-item-description-container p{margin-top:0;line-height:1.5em}.wc-wizard-service-info{padding:1em 2em;background-color:#fafafa}.help_tip{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wc-setup #tiptip_content{background:#5f6973}.wc-setup #tiptip_holder.tip_top #tiptip_arrow_inner{border-top-color:#5f6973}.wc-setup-shipping-recommended{border-bottom:1px solid #eee;margin-top:0;padding:30px 0} \ No newline at end of file diff --git a/assets/css/wc-setup.css b/assets/css/wc-setup.css index e89f02594b2..78261945a67 100644 --- a/assets/css/wc-setup.css +++ b/assets/css/wc-setup.css @@ -1 +1 @@ -@charset "UTF-8";body{margin:65px auto 24px;box-shadow:none;background:#f1f1f1;padding:0}#wc-logo{border:0;margin:0 0 24px;padding:0;text-align:center}#wc-logo img{max-width:30%}.wc-setup{text-align:center}.wc-setup .select2-container{text-align:left}.wc-setup .hidden{display:none}.wc-setup-content{box-shadow:0 1px 3px rgba(0,0,0,.13);padding:2em;margin:0 0 20px;background:#fff;overflow:hidden;zoom:1;text-align:left}.wc-setup-content h1,.wc-setup-content h2,.wc-setup-content h3,.wc-setup-content table{margin:0 0 20px;border:0;padding:0;color:#666;clear:none;font-weight:500}.wc-setup-content p{margin:20px 0;font-size:1em;line-height:1.75em;color:#666}.wc-setup-content table{font-size:1em;line-height:1.75em;color:#666}.wc-setup-content a{color:#a16696}.wc-setup-content a:focus,.wc-setup-content a:hover{color:#111}.wc-setup-content .form-table th{width:35%;vertical-align:top;font-weight:400}.wc-setup-content .form-table td{vertical-align:top}.wc-setup-content .form-table td input,.wc-setup-content .form-table td select{width:100%;box-sizing:border-box}.wc-setup-content .form-table td input[size]{width:auto}.wc-setup-content .form-table td .description{line-height:1.5em;display:block;margin-top:.25em;color:#999;font-style:italic}.wc-setup-content .form-table td .input-checkbox,.wc-setup-content .form-table td .input-radio{width:auto;box-sizing:inherit;padding:inherit;margin:0 .5em 0 0;box-shadow:none}.wc-setup-content .form-table .section_title td{padding:0}.wc-setup-content .form-table .section_title td h2,.wc-setup-content .form-table .section_title td p{margin:12px 0 0}.wc-setup-content .form-table td,.wc-setup-content .form-table th{padding:12px 0;margin:0;border:0}.wc-setup-content .form-table td:first-child,.wc-setup-content .form-table th:first-child{padding-right:1em}.wc-setup-content table.tax-rates{width:100%;font-size:.92em}.wc-setup-content table.tax-rates th{padding:0;text-align:center;width:auto;vertical-align:middle}.wc-setup-content table.tax-rates td{border:1px solid #f5f5f5;padding:6px;text-align:center;vertical-align:middle}.wc-setup-content table.tax-rates td input{outline:0;border:0;padding:0;box-shadow:none;text-align:center;width:100%}.wc-setup-content table.tax-rates td.sort{cursor:move;color:#ccc}.wc-setup-content table.tax-rates td.sort::before{content:'\f333';font-family:dashicons}.wc-setup-content table.tax-rates td.readonly{background:#f5f5f5}.wc-setup-content table.tax-rates .add{padding:1em 0 0 1em;line-height:1em;font-size:1em;width:0;margin:6px 0 0;height:0;overflow:hidden;position:relative;display:inline-block}.wc-setup-content table.tax-rates .add::before{content:'\f502';font-family:dashicons;position:absolute;left:0;top:0}.wc-setup-content table.tax-rates .remove{padding:1em 0 0 1em;line-height:1em;font-size:1em;width:0;margin:0;height:0;overflow:hidden;position:relative;display:inline-block}.wc-setup-content table.tax-rates .remove::before{content:'\f182';font-family:dashicons;position:absolute;left:0;top:0}.wc-setup-content .wc-setup-pages{width:100%;border-top:1px solid #eee}.wc-setup-content .wc-setup-pages thead th{display:none}.wc-setup-content .wc-setup-pages .page-name{width:30%;font-weight:700}.wc-setup-content .wc-setup-pages td,.wc-setup-content .wc-setup-pages th{padding:14px 0;border-bottom:1px solid #eee}.wc-setup-content .wc-setup-pages td:first-child,.wc-setup-content .wc-setup-pages th:first-child{padding-right:9px}.wc-setup-content .wc-setup-pages th{padding-top:0}.wc-setup-content .wc-setup-pages .page-options p{color:#777;margin:6px 0 0 24px;line-height:1.75em}.wc-setup-content .wc-setup-pages .page-options p input{vertical-align:middle;margin:1px 0 0;height:1.75em;width:1.75em;line-height:1.75em}.wc-setup-content .wc-setup-pages .page-options p label{line-height:1}@media screen and (max-width:782px){.wc-setup-content .form-table tbody th{width:auto}}.wc-setup-content .twitter-share-button{float:right}.wc-setup-content .wc-setup-next-steps{overflow:hidden;margin:0 0 24px;padding-bottom:2px}.wc-setup-content .wc-setup-next-steps h2{margin-bottom:12px}.wc-setup-content .wc-setup-next-steps .wc-setup-next-steps-first{float:left;width:50%;box-sizing:border-box}.wc-setup-content .wc-setup-next-steps .wc-setup-next-steps-last{float:right;width:50%;box-sizing:border-box}.wc-setup-content .wc-setup-next-steps ul{padding:0 2em 0 0;list-style:none outside;margin:0}.wc-setup-content .wc-setup-next-steps ul li a{display:block;padding:0 0 .75em}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button{background-color:#f7f7f7;border-color:#ccc;color:#23282d;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #ccc;text-shadow:1px 0 1px #eee,0 1px 1px #eee;font-size:1em;height:auto;line-height:1.75em;margin:0 0 .75em;opacity:1;padding:1em;text-align:center}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button:active,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button:focus,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button:hover{background:#f5f5f5;border-color:#aaa}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary{color:#fff;background-color:#bb77ae;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;text-shadow:0 -1px 1px #a36597,1px 0 1px #a36597,0 1px 1px #a36597,-1px 0 1px #a36597}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary:active,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary:focus,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary:hover{color:#fff;background:#a36597;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.wc-setup-content .wc-setup-next-steps ul li a::before{color:#82878c;font:normal 20px/1 dashicons;speak:none;display:inline-block;padding:0 10px 0 0;top:1px;position:relative;text-decoration:none!important;vertical-align:top}.wc-setup-content .wc-setup-next-steps ul .learn-more a::before{content:'\f105'}.wc-setup-content .wc-setup-next-steps ul .video-walkthrough a::before{content:'\f126'}.wc-setup-content .wc-setup-next-steps ul .newsletter a::before{content:'\f465'}.wc-setup-content .updated,.wc-setup-content .woocommerce-newsletter{padding:24px 24px 0;margin:0 0 24px;overflow:hidden;background:#f5f5f5}.wc-setup-content .updated p,.wc-setup-content .woocommerce-newsletter p{padding:0;margin:0 0 12px}.wc-setup-content .updated form,.wc-setup-content .updated p:last-child,.wc-setup-content .woocommerce-newsletter form,.wc-setup-content .woocommerce-newsletter p:last-child{margin:0 0 24px}.wc-setup-content .woocommerce-tracker{margin:24px 0;border:1px solid #eee;padding:20px;border-radius:4px;overflow:hidden}.wc-setup-content .woocommerce-tracker p{font-size:14px;line-height:1.5em}.wc-setup-content .woocommerce-tracker .checkbox{line-height:24px;font-weight:500;font-size:1em;margin-top:0;margin-bottom:20px}.wc-setup-content .checkbox input[type=checkbox]{opacity:0;position:absolute;left:-9999px}.wc-setup-content .checkbox label{position:relative;display:inline-block;padding-left:28px}.wc-setup-content .checkbox label:after,.wc-setup-content .checkbox label:before{position:absolute;content:"";display:inline-block}.wc-setup-content .checkbox label:before{height:16px;width:16px;left:0;top:3px;border:1px solid #aaa;background-color:#fff;border-radius:3px}.wc-setup-content .checkbox label:after{height:5px;width:9px;border-left:2px solid;border-bottom:2px solid;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);left:4px;top:7px;color:#fff}.wc-setup-content .checkbox input[type=checkbox]+label::after{content:none}.wc-setup-content .checkbox input[type=checkbox]:checked+label::after{content:""}.wc-setup-content .checkbox input[type=checkbox]:focus+label::before{outline:#3b99fc auto 5px}.wc-setup-content .checkbox input[type=checkbox]:checked+label::before{background:#935687;border-color:#935687}.wc-setup-steps{padding:0 0 24px;margin:0;list-style:none outside;overflow:hidden;color:#ccc;width:100%;display:-webkit-inline-box;display:inline-flex}.wc-setup-steps li{width:100%;float:left;padding:0 0 .8em;margin:0;text-align:center;position:relative;border-bottom:4px solid #ccc;line-height:1.4em}.wc-setup-steps li a{color:#a16696;text-decoration:none;padding:1.5em;margin:-1.5em;position:relative;z-index:1}.wc-setup-steps li a:focus,.wc-setup-steps li a:hover{color:#111;text-decoration:underline}.wc-setup-steps li::before{content:'';border:4px solid #ccc;border-radius:100%;width:4px;height:4px;position:absolute;bottom:0;left:50%;margin-left:-6px;margin-bottom:-8px;background:#fff}.wc-setup-steps li.active{border-color:#a16696;color:#a16696;font-weight:700}.wc-setup-steps li.active::before{border-color:#a16696}.wc-setup-steps li.done{border-color:#a16696;color:#a16696}.wc-setup-steps li.done::before{border-color:#a16696;background:#a16696}.wc-setup .wc-setup-actions{overflow:hidden;margin:20px 0 0;position:relative}.wc-setup .wc-setup-actions .button{font-size:1.25em;padding:.5em 1em;line-height:1em;margin-right:.5em;margin-bottom:2px;height:auto;border-radius:4px}.wc-setup .wc-setup-actions .button-primary{background-color:#bb77ae;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;text-shadow:0 -1px 1px #a36597,1px 0 1px #a36597,0 1px 1px #a36597,-1px 0 1px #a36597;margin:0;opacity:1}.wc-setup .wc-setup-actions .button-primary:active,.wc-setup .wc-setup-actions .button-primary:focus,.wc-setup .wc-setup-actions .button-primary:hover{background:#a36597;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.wc-setup-content p:last-child{margin-bottom:0}.wc-setup-content p.store-setup{margin-top:0}.wc-setup-footer-links{font-size:.85em;color:#7b7b7b;margin:1.18em auto;display:inline-block;text-align:center}.wc-wizard-storefront .wc-wizard-storefront-intro{padding:40px 40px 0;background:#f5f5f5;text-align:center}.wc-wizard-storefront .wc-wizard-storefront-intro img{margin:40px 0 0 0;width:100%;display:block}.wc-wizard-storefront .wc-wizard-storefront-features{list-style:none outside;margin:0 0 20px;padding:0 0 0 30px;overflow:hidden}.wc-wizard-storefront .wc-wizard-storefront-feature{margin:0;padding:20px 30px 20px 2em;width:50%;box-sizing:border-box}.wc-wizard-storefront .wc-wizard-storefront-feature::before{margin-left:-2em;position:absolute}.wc-wizard-storefront .wc-wizard-storefront-feature.first{clear:both;float:left}.wc-wizard-storefront .wc-wizard-storefront-feature.last{float:right}.wc-wizard-storefront .wc-wizard-storefront-feature__bulletproof::before{content:'🔒'}.wc-wizard-storefront .wc-wizard-storefront-feature__mobile::before{content:'📱'}.wc-wizard-storefront .wc-wizard-storefront-feature__accessibility::before{content:'👓'}.wc-wizard-storefront .wc-wizard-storefront-feature__search::before{content:'🔍'}.wc-wizard-storefront .wc-wizard-storefront-feature__compatibility::before{content:'🔧'}.wc-wizard-storefront .wc-wizard-storefront-feature__extendable::before{content:'🎨'}.wc-wizard-services{border:1px solid #eee;padding:0;margin:0 0 1em;list-style:none outside;border-radius:4px;overflow:hidden}.wc-wizard-services p{margin:0 0 1em 0;padding:0;font-size:1em;line-height:1.5em}.wc-wizard-service-item,.wc-wizard-services-list-toggle{display:-webkit-box;display:flex;flex-wrap:nowrap;-webkit-box-pack:justify;justify-content:space-between;padding:0;border-bottom:1px solid #eee;color:#666;-webkit-box-align:center;align-items:center}.wc-wizard-service-item:last-child,.wc-wizard-services-list-toggle:last-child{border-bottom:0}.wc-wizard-service-item .payment-gateway-fee,.wc-wizard-services-list-toggle .payment-gateway-fee{color:#a6a6a6}.wc-wizard-service-item .wc-wizard-service-name,.wc-wizard-services-list-toggle .wc-wizard-service-name{flex-basis:0;min-width:160px;text-align:center;font-weight:700;padding:2em 0;align-self:stretch;display:-webkit-box;display:flex;-webkit-box-align:baseline;align-items:baseline}.wc-wizard-payment-gateway-form .wc-wizard-service-item .wc-wizard-service-name,.wc-wizard-payment-gateway-form .wc-wizard-services-list-toggle .wc-wizard-service-name{-webkit-box-pack:center;justify-content:center}.wc-wizard-service-item .wc-wizard-service-name img,.wc-wizard-services-list-toggle .wc-wizard-service-name img{max-width:75px}.wc-wizard-service-item.stripe-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.stripe-logo .wc-wizard-service-name img{padding:8px 0}.wc-wizard-service-item.paypal-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.paypal-logo .wc-wizard-service-name img{max-width:87px;padding:2px 0}.wc-wizard-service-item.klarna-logo .wc-wizard-service-name,.wc-wizard-services-list-toggle.klarna-logo .wc-wizard-service-name{background:#000}.wc-wizard-service-item.klarna-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.klarna-logo .wc-wizard-service-name img{max-width:87px;padding:12px 0}.wc-wizard-service-item.square-logo .wc-wizard-service-name,.wc-wizard-services-list-toggle.square-logo .wc-wizard-service-name{background:#000}.wc-wizard-service-item.square-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.square-logo .wc-wizard-service-name img{max-width:95px;padding:12px 0}.wc-wizard-service-item.eway-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.eway-logo .wc-wizard-service-name img{max-width:87px}.wc-wizard-service-item.payfast-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.payfast-logo .wc-wizard-service-name img{max-width:140px}.wc-wizard-service-item .wc-wizard-service-description,.wc-wizard-services-list-toggle .wc-wizard-service-description{-webkit-box-flex:1;flex-grow:1;padding:20px}.wc-wizard-service-item .wc-wizard-service-description p,.wc-wizard-services-list-toggle .wc-wizard-service-description p{margin-bottom:1em}.wc-wizard-service-item .wc-wizard-service-description p:last-child,.wc-wizard-services-list-toggle .wc-wizard-service-description p:last-child{margin-bottom:0}.wc-wizard-service-item .wc-wizard-service-description .wc-wizard-service-settings-description,.wc-wizard-services-list-toggle .wc-wizard-service-description .wc-wizard-service-settings-description{display:block;font-style:italic;color:#999}.wc-wizard-service-item .wc-wizard-service-enable,.wc-wizard-services-list-toggle .wc-wizard-service-enable{flex-basis:0;min-width:75px;text-align:center;cursor:pointer;padding:2em 0;position:relative;max-height:1.5em;align-self:flex-start}.wc-wizard-service-item .wc-wizard-service-toggle,.wc-wizard-services-list-toggle .wc-wizard-service-toggle{height:16px;width:32px;border:2px solid #935687;background-color:#935687;display:inline-block;text-indent:-9999px;border-radius:10em;position:relative}.wc-wizard-service-item .wc-wizard-service-toggle input[type=checkbox],.wc-wizard-services-list-toggle .wc-wizard-service-toggle input[type=checkbox]{display:none}.wc-wizard-service-item .wc-wizard-service-toggle:before,.wc-wizard-services-list-toggle .wc-wizard-service-toggle:before{content:"";display:block;width:16px;height:16px;background:#fff;position:absolute;top:0;right:0;border-radius:100%}.wc-wizard-service-item .wc-wizard-service-toggle.disabled,.wc-wizard-services-list-toggle .wc-wizard-service-toggle.disabled{border-color:#999;background-color:#999}.wc-wizard-service-item .wc-wizard-service-toggle.disabled:before,.wc-wizard-services-list-toggle .wc-wizard-service-toggle.disabled:before{right:auto;left:0}.wc-wizard-service-item .wc-wizard-service-settings,.wc-wizard-services-list-toggle .wc-wizard-service-settings{display:none;margin-top:.75em;margin-bottom:0;cursor:default}.wc-wizard-service-item .wc-wizard-service-settings.hide,.wc-wizard-services-list-toggle .wc-wizard-service-settings.hide{display:none}.wc-wizard-service-item.checked .wc-wizard-service-settings,.wc-wizard-services-list-toggle.checked .wc-wizard-service-settings{display:inline-block}.wc-wizard-service-item.checked .wc-wizard-service-settings.hide,.wc-wizard-services-list-toggle.checked .wc-wizard-service-settings.hide{display:none}.wc-wizard-service-item.closed,.wc-wizard-services-list-toggle.closed{border-bottom:0}.wc-wizard-services-list-toggle{cursor:pointer}.wc-wizard-services-list-toggle .wc-wizard-service-enable::before{content:"\f343";font-family:dashicons;visibility:initial;color:#666;font-size:25px;margin-top:-7px;margin-left:-5px;position:absolute;visibility:visible}.wc-wizard-services-list-toggle.closed .wc-wizard-service-enable::before{content:"\f347"}.wc-wizard-services-list-toggle .wc-wizard-service-enable input{visibility:hidden;position:relative}.wc-wizard-services.manual .wc-wizard-service-item{display:none}.wc-wizard-services.shipping{margin:0}.wc-wizard-services.shipping .wc-wizard-service-name{font-weight:400;text-align:left;-webkit-box-align:center;align-items:center;max-height:5em;padding:0}.wc-wizard-services.shipping .wc-wizard-service-item{padding-left:2em;padding-top:.67em}.wc-wizard-services.shipping .wc-wizard-service-item:first-child{border-bottom:0;padding-bottom:0;font-weight:700}.wc-wizard-services.shipping .wc-wizard-service-item:first-child .wc-wizard-service-name{font-weight:700}.wc-wizard-services.shipping .shipping-method-setting,.wc-wizard-services.shipping .wc-wizard-shipping-method-select{display:-webkit-box;display:flex}.wc-wizard-services.shipping .shipping-method-setting.hide,.wc-wizard-services.shipping .wc-wizard-shipping-method-select.hide{display:none}.wc-wizard-services.shipping .shipping-method-setting input,.wc-wizard-services.shipping .wc-wizard-shipping-method-dropdown{margin-right:2em;margin-bottom:1em}.wc-wizard-services.shipping .shipping-method-setting input .select2,.wc-wizard-services.shipping .wc-wizard-shipping-method-dropdown .select2{min-width:130px}.wc-wizard-services.shipping .wc-wizard-service-description{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;color:#a6a6a6}.wc-wizard-services.shipping .wc-wizard-service-item:not(:first-child) .wc-wizard-service-description{font-size:.92em;padding-bottom:10px}.wc-wizard-services.shipping .shipping-method-setting input{width:95px;border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:28px;padding-left:8px;padding-right:24px;font-size:14px;color:#444;background-color:#fff;display:inline-block}.wc-wizard-services.shipping .shipping-method-description,.wc-wizard-services.shipping .shipping-method-setting .description{color:#7e7e7e;font-size:.9em}.wc-wizard-services.shipping .shipping-method-setting input::-webkit-input-placeholder{color:#e1e1e1}.wc-wizard-services.shipping .shipping-method-setting input::-moz-placeholder{color:#e1e1e1}.wc-wizard-services.shipping .shipping-method-setting input:-ms-input-placeholder{color:#e1e1e1}.wc-wizard-services.shipping .shipping-method-setting input::-ms-input-placeholder{color:#e1e1e1}.wc-wizard-services.shipping .shipping-method-setting input::placeholder{color:#e1e1e1}.wc-setup-shipping-units p{line-height:1.5em;font-size:13px;margin-bottom:.25em;text-align:center}.wc-setup-shipping-units .wc-setup-shipping-unit{margin-bottom:1.75em}.wc-setup-shipping-units .wc-setup-shipping-unit .select2{min-width:125px;top:-5px}.hide{display:none}.wc-wizard-features{display:-webkit-box;display:flex;flex-wrap:wrap;list-style:none;padding:0}.wc-wizard-features .wc-wizard-feature-item{flex-basis:calc(50% - 4em - 3px);border:1px solid #eee;padding:2em}.wc-wizard-features .wc-wizard-feature-item:nth-child(1){border-radius:4px 0 0 0}.wc-wizard-features .wc-wizard-feature-item:nth-child(2){border-left:0;border-radius:0 4px 0 0}.wc-wizard-features .wc-wizard-feature-item:nth-child(3){border-top:0;border-radius:0 0 0 4px}.wc-wizard-features .wc-wizard-feature-item:nth-child(4){border-top:0;border-left:0;border-radius:0 0 4px 0}.wc-wizard-features p.wc-wizard-feature-description,.wc-wizard-features p.wc-wizard-feature-name{margin:0;line-height:1.5em}h3.jetpack-reasons{text-align:center;margin:3em 0 1em 0;font-size:14px}.jetpack-logo,.wcs-notice{display:block;margin:1.75em auto 2em auto;max-height:175px}.activate-splash .jetpack-logo{width:170px;margin-bottom:0}.activate-splash .wcs-notice{margin-top:1em;padding-left:57px}.step{text-align:center}.wc-setup .wc-setup-actions .button{font-weight:300;font-size:16px;padding:1em 2em;box-shadow:none;min-width:12em;min-width:auto;margin-top:10px}.wc-setup .wc-setup-actions .button:active,.wc-setup .wc-setup-actions .button:focus,.wc-setup .wc-setup-actions .button:hover{box-shadow:none}.wc-setup .wc-setup-actions .plugin-install-info{display:block;font-style:italic;color:#999;font-size:14px;line-height:1.5em;margin:5px 0}.wc-setup .wc-setup-actions .plugin-install-info>*{display:block}.wc-setup .wc-setup-actions .plugin-install-info .plugin-install-info-list-item::after{content:', '}.wc-setup .wc-setup-actions .plugin-install-info .plugin-install-info-list-item:last-of-type::after{content:'. '}.wc-setup .wc-setup-actions .plugin-install-info a{white-space:nowrap}.wc-setup .wc-setup-actions .plugin-install-info a:not(:hover):not(:focus){color:inherit}.plugin-install-source{background:rgba(187,119,174,.15)}.plugin-install-source:not(.wc-wizard-service-item){box-shadow:0 0 0 10px rgba(187,119,174,.15)}.location-prompt{color:#666;font-size:13px;font-weight:500;margin-bottom:.5em;margin-top:.85em;display:inline-block}.location-input{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:30px;width:calc(100% - 8px - 24px - 2px);padding-left:8px;padding-right:24px;font-size:16px;color:#444;background-color:#fff;display:inline-block}.location-input.dropdown{width:100%}.address-step .select2{min-width:100%}.store-address-container .city-and-postcode{display:-webkit-box;display:flex}.store-address-container .city-and-postcode div{flex-basis:50%;margin-right:1em}.store-address-container .city-and-postcode div:last-of-type{margin-right:0}.store-address-container .select2-container,.store-address-container input[type=text],.store-address-container select{margin-bottom:10px}.product-type-container{margin-top:14px;margin-bottom:1px}#woocommerce_sell_in_person{margin-left:0}.wc-wizard-service-settings .payment-email-input{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:30px;padding:0 8px;font-size:14px;color:#444;background-color:#fff;display:inline-block}.wc-wizard-service-settings .payment-email-input[disabled]{color:#aaa}.newsletter-form-container{display:-webkit-box;display:flex}.newsletter-form-container .newsletter-form-email{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:42px;padding:0 8px;font-size:16px;color:#666;background-color:#fff;display:inline-block;margin-right:6px;-webkit-box-flex:1;flex-grow:1}.newsletter-form-container .newsletter-form-button-container{-webkit-box-flex:0;flex-grow:0}.wc-setup .wc-setup-actions .button.newsletter-form-button{height:42px;padding:0 1em;margin:0}.wc-wizard-next-steps{border:1px solid #eee;border-radius:4px;list-style:none;padding:0}.wc-wizard-next-steps li{padding:0}.wc-wizard-next-steps .wc-wizard-next-step-item{display:-webkit-box;display:flex;border-top:1px solid #eee}.wc-wizard-next-steps .wc-wizard-next-step-item:first-child{border-top:0}.wc-wizard-next-steps .wc-wizard-next-step-description{-webkit-box-flex:1;flex-grow:1;margin:1.5em}.wc-wizard-next-steps .wc-wizard-next-step-action{-webkit-box-flex:0;flex-grow:0;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}.wc-wizard-next-steps .wc-wizard-next-step-action .button{margin:1em 1.5em}.wc-wizard-next-steps p.next-step-heading{margin:0;font-size:.95em;font-weight:400;font-variant:all-petite-caps}.wc-wizard-next-steps p.next-step-extra-info{margin:0}.wc-wizard-next-steps h3.next-step-description{margin:0;font-size:16px;font-weight:600}.wc-wizard-next-steps .wc-wizard-additional-steps{border-top:1px solid #eee}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-wizard-next-step-description{margin-bottom:0}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-setup-actions{margin:0 0 1.5em 0}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-setup-actions .button{font-size:15px;margin:1em 0 1em 1.5em}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-setup-actions .button::last-child{margin-right:1.5em}p.next-steps-help-text{color:#9f9f9f;padding:0 2em;text-align:center;font-size:.9em}p.jetpack-terms{font-size:.8em;text-align:center;max-width:480px;margin:0 auto;line-height:1.5em}.woocommerce-error{background:#ffe6e5;border-color:#ffc5c2;padding:1em;margin-bottom:1em}.woocommerce-error p{margin-top:0;margin-bottom:.5em;color:#444}.woocommerce-error a{color:#ff645c}.woocommerce-error .reconnect-reminder{font-size:.85em}.woocommerce-error .wc-setup-actions .button{font-size:14px}.wc-wizard-service-setting-ppec_paypal_reroute_requests,.wc-wizard-service-setting-stripe_create_account{display:-webkit-box;display:flex;-webkit-box-align:start;align-items:flex-start}.wc-wizard-service-setting-ppec_paypal_reroute_requests .payment-checkbox-input,.wc-wizard-service-setting-stripe_create_account .payment-checkbox-input{-webkit-box-ordinal-group:2;order:1;margin-top:5px;margin-left:0;margin-right:0;width:1.5em}.wc-wizard-service-setting-ppec_paypal_reroute_requests .ppec_paypal_reroute_requests,.wc-wizard-service-setting-ppec_paypal_reroute_requests .stripe_create_account,.wc-wizard-service-setting-stripe_create_account .ppec_paypal_reroute_requests,.wc-wizard-service-setting-stripe_create_account .stripe_create_account{-webkit-box-ordinal-group:3;order:2;margin-left:.3em}.wc-wizard-service-setting-ppec_paypal_email,.wc-wizard-service-setting-stripe_email{margin-top:.75em;margin-left:1.5em}.wc-wizard-service-setting-ppec_paypal_email label.ppec_paypal_email,.wc-wizard-service-setting-ppec_paypal_email label.stripe_email,.wc-wizard-service-setting-stripe_email label.ppec_paypal_email,.wc-wizard-service-setting-stripe_email label.stripe_email{position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.wc-wizard-service-setting-ppec_paypal_email input.payment-email-input,.wc-wizard-service-setting-stripe_email input.payment-email-input{box-sizing:border-box;margin-bottom:.5em;width:100%;height:32px}.wc-setup-content .recommended-step{border:1px solid #ebebeb;border-radius:4px;padding:2.5em}.wc-setup-content .recommended-item{list-style:none}.wc-setup-content .recommended-item:last-child label{margin-bottom:0}.wc-setup-content .recommended-item label{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;margin-bottom:1.5em}.wc-setup-content .recommended-item label:after,.wc-setup-content .recommended-item label:before{top:auto}.wc-setup-content .recommended-item label:after{margin-top:-1.5px}.wc-setup-content .recommended-item .recommended-item-icon{border:1px solid #fff;border-radius:7px;height:3.5em;margin-right:1em;margin-left:4px}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-storefront_theme{background-color:#f4a224;max-height:3em;max-width:3em;padding:.25em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-automated_taxes{background-color:#d0011b;max-height:1.75em;padding:.875em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-mailchimp{background-color:#209bbb;height:2em;padding:.75em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-woocommerce_services{background-color:#f0f0f0;max-height:1.5em;padding:1.3em .7em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-shipstation{background-color:#f0f0f0;padding:.3em}.wc-setup-content .recommended-item .recommended-item-description-container h3{font-size:15px;font-weight:700;letter-spacing:.5px;margin-bottom:0}.wc-setup-content .recommended-item .recommended-item-description-container p{margin-top:0;line-height:1.5em}.wc-wizard-service-info{padding:1em 2em;background-color:#fafafa}.help_tip{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wc-setup #tiptip_content{background:#5f6973}.wc-setup #tiptip_holder.tip_top #tiptip_arrow_inner{border-top-color:#5f6973}.wc-setup-shipping-recommended{border-bottom:1px solid #eee;margin-top:0;padding:30px 0} \ No newline at end of file +@charset "UTF-8";body{margin:65px auto 24px;box-shadow:none;background:#f1f1f1;padding:0}#wc-logo{border:0;margin:0 0 24px;padding:0;text-align:center}#wc-logo img{max-width:30%}.wc-setup{text-align:center}.wc-setup .select2-container{text-align:left}.wc-setup .hidden{display:none}.wc-setup-content{box-shadow:0 1px 3px rgba(0,0,0,.13);padding:2em;margin:0 0 20px;background:#fff;overflow:hidden;zoom:1;text-align:left}.wc-setup-content h1,.wc-setup-content h2,.wc-setup-content h3,.wc-setup-content table{margin:0 0 20px;border:0;padding:0;color:#666;clear:none;font-weight:500}.wc-setup-content p{margin:20px 0;font-size:1em;line-height:1.75em;color:#666}.wc-setup-content table{font-size:1em;line-height:1.75em;color:#666}.wc-setup-content a{color:#a16696}.wc-setup-content a:focus,.wc-setup-content a:hover{color:#111}.wc-setup-content .form-table th{width:35%;vertical-align:top;font-weight:400}.wc-setup-content .form-table td{vertical-align:top}.wc-setup-content .form-table td input,.wc-setup-content .form-table td select{width:100%;box-sizing:border-box}.wc-setup-content .form-table td input[size]{width:auto}.wc-setup-content .form-table td .description{line-height:1.5em;display:block;margin-top:.25em;color:#999;font-style:italic}.wc-setup-content .form-table td .input-checkbox,.wc-setup-content .form-table td .input-radio{width:auto;box-sizing:inherit;padding:inherit;margin:0 .5em 0 0;box-shadow:none}.wc-setup-content .form-table .section_title td{padding:0}.wc-setup-content .form-table .section_title td h2,.wc-setup-content .form-table .section_title td p{margin:12px 0 0}.wc-setup-content .form-table td,.wc-setup-content .form-table th{padding:12px 0;margin:0;border:0}.wc-setup-content .form-table td:first-child,.wc-setup-content .form-table th:first-child{padding-right:1em}.wc-setup-content table.tax-rates{width:100%;font-size:.92em}.wc-setup-content table.tax-rates th{padding:0;text-align:center;width:auto;vertical-align:middle}.wc-setup-content table.tax-rates td{border:1px solid #f5f5f5;padding:6px;text-align:center;vertical-align:middle}.wc-setup-content table.tax-rates td input{outline:0;border:0;padding:0;box-shadow:none;text-align:center;width:100%}.wc-setup-content table.tax-rates td.sort{cursor:move;color:#ccc}.wc-setup-content table.tax-rates td.sort::before{content:'\f333';font-family:dashicons}.wc-setup-content table.tax-rates td.readonly{background:#f5f5f5}.wc-setup-content table.tax-rates .add{padding:1em 0 0 1em;line-height:1em;font-size:1em;width:0;margin:6px 0 0;height:0;overflow:hidden;position:relative;display:inline-block}.wc-setup-content table.tax-rates .add::before{content:'\f502';font-family:dashicons;position:absolute;left:0;top:0}.wc-setup-content table.tax-rates .remove{padding:1em 0 0 1em;line-height:1em;font-size:1em;width:0;margin:0;height:0;overflow:hidden;position:relative;display:inline-block}.wc-setup-content table.tax-rates .remove::before{content:'\f182';font-family:dashicons;position:absolute;left:0;top:0}.wc-setup-content .wc-setup-pages{width:100%;border-top:1px solid #eee}.wc-setup-content .wc-setup-pages thead th{display:none}.wc-setup-content .wc-setup-pages .page-name{width:30%;font-weight:700}.wc-setup-content .wc-setup-pages td,.wc-setup-content .wc-setup-pages th{padding:14px 0;border-bottom:1px solid #eee}.wc-setup-content .wc-setup-pages td:first-child,.wc-setup-content .wc-setup-pages th:first-child{padding-right:9px}.wc-setup-content .wc-setup-pages th{padding-top:0}.wc-setup-content .wc-setup-pages .page-options p{color:#777;margin:6px 0 0 24px;line-height:1.75em}.wc-setup-content .wc-setup-pages .page-options p input{vertical-align:middle;margin:1px 0 0;height:1.75em;width:1.75em;line-height:1.75em}.wc-setup-content .wc-setup-pages .page-options p label{line-height:1}@media screen and (max-width:782px){.wc-setup-content .form-table tbody th{width:auto}}.wc-setup-content .twitter-share-button{float:right}.wc-setup-content .wc-setup-next-steps{overflow:hidden;margin:0 0 24px;padding-bottom:2px}.wc-setup-content .wc-setup-next-steps h2{margin-bottom:12px}.wc-setup-content .wc-setup-next-steps .wc-setup-next-steps-first{float:left;width:50%;box-sizing:border-box}.wc-setup-content .wc-setup-next-steps .wc-setup-next-steps-last{float:right;width:50%;box-sizing:border-box}.wc-setup-content .wc-setup-next-steps ul{padding:0 2em 0 0;list-style:none outside;margin:0}.wc-setup-content .wc-setup-next-steps ul li a{display:block;padding:0 0 .75em}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button{background-color:#f7f7f7;border-color:#ccc;color:#23282d;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #ccc;text-shadow:1px 0 1px #eee,0 1px 1px #eee;font-size:1em;height:auto;line-height:1.75em;margin:0 0 .75em;opacity:1;padding:1em;text-align:center}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button:active,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button:focus,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button:hover{background:#f5f5f5;border-color:#aaa}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary{color:#fff;background-color:#bb77ae;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;text-shadow:0 -1px 1px #a36597,1px 0 1px #a36597,0 1px 1px #a36597,-1px 0 1px #a36597}.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary:active,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary:focus,.wc-setup-content .wc-setup-next-steps ul .setup-product a.button-primary:hover{color:#fff;background:#a36597;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.wc-setup-content .wc-setup-next-steps ul li a::before{color:#82878c;font:normal 20px/1 dashicons;speak:none;display:inline-block;padding:0 10px 0 0;top:1px;position:relative;text-decoration:none!important;vertical-align:top}.wc-setup-content .wc-setup-next-steps ul .learn-more a::before{content:'\f105'}.wc-setup-content .wc-setup-next-steps ul .video-walkthrough a::before{content:'\f126'}.wc-setup-content .wc-setup-next-steps ul .newsletter a::before{content:'\f465'}.wc-setup-content .updated,.wc-setup-content .woocommerce-newsletter{padding:24px 24px 0;margin:0 0 24px;overflow:hidden;background:#f5f5f5}.wc-setup-content .updated p,.wc-setup-content .woocommerce-newsletter p{padding:0;margin:0 0 12px}.wc-setup-content .updated form,.wc-setup-content .updated p:last-child,.wc-setup-content .woocommerce-newsletter form,.wc-setup-content .woocommerce-newsletter p:last-child{margin:0 0 24px}.wc-setup-content .woocommerce-tracker{margin:24px 0;border:1px solid #eee;padding:20px;border-radius:4px;overflow:hidden}.wc-setup-content .woocommerce-tracker p{font-size:14px;line-height:1.5em}.wc-setup-content .woocommerce-tracker .checkbox{line-height:24px;font-weight:500;font-size:1em;margin-top:0;margin-bottom:20px}.wc-setup-content .checkbox input[type=checkbox]{opacity:0;position:absolute;left:-9999px}.wc-setup-content .checkbox label{position:relative;display:inline-block;padding-left:28px}.wc-setup-content .checkbox label:after,.wc-setup-content .checkbox label:before{position:absolute;content:"";display:inline-block}.wc-setup-content .checkbox label:before{height:16px;width:16px;left:0;top:3px;border:1px solid #aaa;background-color:#fff;border-radius:3px}.wc-setup-content .checkbox label:after{height:5px;width:9px;border-left:2px solid;border-bottom:2px solid;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);left:4px;top:7px;color:#fff}.wc-setup-content .checkbox input[type=checkbox]+label::after{content:none}.wc-setup-content .checkbox input[type=checkbox]:checked+label::after{content:""}.wc-setup-content .checkbox input[type=checkbox]:focus+label::before{outline:#3b99fc auto 5px}.wc-setup-content .checkbox input[type=checkbox]:checked+label::before{background:#935687;border-color:#935687}.wc-setup-steps{padding:0 0 24px;margin:0;list-style:none outside;overflow:hidden;color:#ccc;width:100%;display:-webkit-inline-box;display:inline-flex}.wc-setup-steps li{width:100%;float:left;padding:0 0 .8em;margin:0;text-align:center;position:relative;border-bottom:4px solid #ccc;line-height:1.4em}.wc-setup-steps li a{color:#a16696;text-decoration:none;padding:1.5em;margin:-1.5em;position:relative;z-index:1}.wc-setup-steps li a:focus,.wc-setup-steps li a:hover{color:#111;text-decoration:underline}.wc-setup-steps li::before{content:'';border:4px solid #ccc;border-radius:100%;width:4px;height:4px;position:absolute;bottom:0;left:50%;margin-left:-6px;margin-bottom:-8px;background:#fff}.wc-setup-steps li.active{border-color:#a16696;color:#a16696;font-weight:700}.wc-setup-steps li.active::before{border-color:#a16696}.wc-setup-steps li.done{border-color:#a16696;color:#a16696}.wc-setup-steps li.done::before{border-color:#a16696;background:#a16696}.wc-setup .wc-setup-actions{overflow:hidden;margin:20px 0 0;position:relative}.wc-setup .wc-setup-actions .button{font-size:1.25em;padding:.5em 1em;line-height:1em;margin-right:.5em;margin-bottom:2px;height:auto;border-radius:4px}.wc-setup .wc-setup-actions .button-primary{background-color:#bb77ae;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597;text-shadow:0 -1px 1px #a36597,1px 0 1px #a36597,0 1px 1px #a36597,-1px 0 1px #a36597;margin:0;opacity:1}.wc-setup .wc-setup-actions .button-primary:active,.wc-setup .wc-setup-actions .button-primary:focus,.wc-setup .wc-setup-actions .button-primary:hover{background:#a36597;border-color:#a36597;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 #a36597}.wc-setup-content p:last-child{margin-bottom:0}.wc-setup-content p.store-setup{margin-top:0}.wc-setup-footer-links{font-size:.85em;color:#7b7b7b;margin:1.18em auto;display:inline-block;text-align:center}.wc-wizard-storefront .wc-wizard-storefront-intro{padding:40px 40px 0;background:#f5f5f5;text-align:center}.wc-wizard-storefront .wc-wizard-storefront-intro img{margin:40px 0 0 0;width:100%;display:block}.wc-wizard-storefront .wc-wizard-storefront-features{list-style:none outside;margin:0 0 20px;padding:0 0 0 30px;overflow:hidden}.wc-wizard-storefront .wc-wizard-storefront-feature{margin:0;padding:20px 30px 20px 2em;width:50%;box-sizing:border-box}.wc-wizard-storefront .wc-wizard-storefront-feature::before{margin-left:-2em;position:absolute}.wc-wizard-storefront .wc-wizard-storefront-feature.first{clear:both;float:left}.wc-wizard-storefront .wc-wizard-storefront-feature.last{float:right}.wc-wizard-storefront .wc-wizard-storefront-feature__bulletproof::before{content:'🔒'}.wc-wizard-storefront .wc-wizard-storefront-feature__mobile::before{content:'📱'}.wc-wizard-storefront .wc-wizard-storefront-feature__accessibility::before{content:'👓'}.wc-wizard-storefront .wc-wizard-storefront-feature__search::before{content:'🔍'}.wc-wizard-storefront .wc-wizard-storefront-feature__compatibility::before{content:'🔧'}.wc-wizard-storefront .wc-wizard-storefront-feature__extendable::before{content:'🎨'}.wc-wizard-services{border:1px solid #eee;padding:0;margin:0 0 1em;list-style:none outside;border-radius:4px;overflow:hidden}.wc-wizard-services p{margin:0 0 1em 0;padding:0;font-size:1em;line-height:1.5em}.wc-wizard-service-item,.wc-wizard-services-list-toggle{display:-webkit-box;display:flex;flex-wrap:nowrap;-webkit-box-pack:justify;justify-content:space-between;padding:0;border-bottom:1px solid #eee;color:#666;-webkit-box-align:center;align-items:center}.wc-wizard-service-item:last-child,.wc-wizard-services-list-toggle:last-child{border-bottom:0}.wc-wizard-service-item .payment-gateway-fee,.wc-wizard-services-list-toggle .payment-gateway-fee{color:#a6a6a6}.wc-wizard-service-item .wc-wizard-service-name,.wc-wizard-services-list-toggle .wc-wizard-service-name{flex-basis:0;min-width:160px;text-align:center;font-weight:700;padding:2em 0;align-self:stretch;display:-webkit-box;display:flex;-webkit-box-align:baseline;align-items:baseline}.wc-wizard-payment-gateway-form .wc-wizard-service-item .wc-wizard-service-name,.wc-wizard-payment-gateway-form .wc-wizard-services-list-toggle .wc-wizard-service-name{-webkit-box-pack:center;justify-content:center}.wc-wizard-service-item .wc-wizard-service-name img,.wc-wizard-services-list-toggle .wc-wizard-service-name img{max-width:75px}.wc-wizard-service-item.stripe-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.stripe-logo .wc-wizard-service-name img{padding:8px 0}.wc-wizard-service-item.paypal-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.paypal-logo .wc-wizard-service-name img{max-width:87px;padding:2px 0}.wc-wizard-service-item.klarna-logo .wc-wizard-service-name,.wc-wizard-services-list-toggle.klarna-logo .wc-wizard-service-name{background:#000}.wc-wizard-service-item.klarna-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.klarna-logo .wc-wizard-service-name img{max-width:87px;padding:12px 0}.wc-wizard-service-item.square-logo .wc-wizard-service-name,.wc-wizard-services-list-toggle.square-logo .wc-wizard-service-name{background:#000}.wc-wizard-service-item.square-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.square-logo .wc-wizard-service-name img{max-width:95px;padding:12px 0}.wc-wizard-service-item.eway-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.eway-logo .wc-wizard-service-name img{max-width:87px}.wc-wizard-service-item.payfast-logo .wc-wizard-service-name img,.wc-wizard-services-list-toggle.payfast-logo .wc-wizard-service-name img{max-width:140px}.wc-wizard-service-item .wc-wizard-service-description,.wc-wizard-services-list-toggle .wc-wizard-service-description{-webkit-box-flex:1;flex-grow:1;padding:20px}.wc-wizard-service-item .wc-wizard-service-description p,.wc-wizard-services-list-toggle .wc-wizard-service-description p{margin-bottom:1em}.wc-wizard-service-item .wc-wizard-service-description p:last-child,.wc-wizard-services-list-toggle .wc-wizard-service-description p:last-child{margin-bottom:0}.wc-wizard-service-item .wc-wizard-service-description .wc-wizard-service-settings-description,.wc-wizard-services-list-toggle .wc-wizard-service-description .wc-wizard-service-settings-description{display:block;font-style:italic;color:#999}.wc-wizard-service-item .wc-wizard-service-enable,.wc-wizard-services-list-toggle .wc-wizard-service-enable{flex-basis:0;min-width:75px;text-align:center;cursor:pointer;padding:2em 0;position:relative;max-height:1.5em;align-self:flex-start}.wc-wizard-service-item .wc-wizard-service-toggle,.wc-wizard-services-list-toggle .wc-wizard-service-toggle{height:16px;width:32px;border:2px solid #935687;background-color:#935687;display:inline-block;text-indent:-9999px;border-radius:10em;position:relative}.wc-wizard-service-item .wc-wizard-service-toggle input[type=checkbox],.wc-wizard-services-list-toggle .wc-wizard-service-toggle input[type=checkbox]{display:none}.wc-wizard-service-item .wc-wizard-service-toggle:before,.wc-wizard-services-list-toggle .wc-wizard-service-toggle:before{content:"";display:block;width:16px;height:16px;background:#fff;position:absolute;top:0;right:0;border-radius:100%}.wc-wizard-service-item .wc-wizard-service-toggle.disabled,.wc-wizard-services-list-toggle .wc-wizard-service-toggle.disabled{border-color:#999;background-color:#999}.wc-wizard-service-item .wc-wizard-service-toggle.disabled:before,.wc-wizard-services-list-toggle .wc-wizard-service-toggle.disabled:before{right:auto;left:0}.wc-wizard-service-item .wc-wizard-service-settings,.wc-wizard-services-list-toggle .wc-wizard-service-settings{display:none;margin-top:.75em;margin-bottom:0;cursor:default}.wc-wizard-service-item .wc-wizard-service-settings.hide,.wc-wizard-services-list-toggle .wc-wizard-service-settings.hide{display:none}.wc-wizard-service-item.checked .wc-wizard-service-settings,.wc-wizard-services-list-toggle.checked .wc-wizard-service-settings{display:inline-block}.wc-wizard-service-item.checked .wc-wizard-service-settings.hide,.wc-wizard-services-list-toggle.checked .wc-wizard-service-settings.hide{display:none}.wc-wizard-service-item.closed,.wc-wizard-services-list-toggle.closed{border-bottom:0}.wc-wizard-services-list-toggle{cursor:pointer}.wc-wizard-services-list-toggle .wc-wizard-service-enable::before{content:"\f343";font-family:dashicons;visibility:initial;color:#666;font-size:25px;margin-top:-7px;margin-left:-5px;position:absolute;visibility:visible}.wc-wizard-services-list-toggle.closed .wc-wizard-service-enable::before{content:"\f347"}.wc-wizard-services-list-toggle .wc-wizard-service-enable input{visibility:hidden;position:relative}.wc-wizard-services.manual .wc-wizard-service-item{display:none}.wc-wizard-services.shipping{margin:0}.wc-wizard-services.shipping .wc-wizard-service-name{font-weight:400;text-align:left;-webkit-box-align:center;align-items:center;max-height:5em;padding:0}.wc-wizard-services.shipping .wc-wizard-service-item{padding-left:2em;padding-top:.67em}.wc-wizard-services.shipping .wc-wizard-service-item:first-child{border-bottom:0;padding-bottom:0;font-weight:700}.wc-wizard-services.shipping .wc-wizard-service-item:first-child .wc-wizard-service-name{font-weight:700}.wc-wizard-services.shipping .shipping-method-setting,.wc-wizard-services.shipping .wc-wizard-shipping-method-select{display:-webkit-box;display:flex}.wc-wizard-services.shipping .shipping-method-setting.hide,.wc-wizard-services.shipping .wc-wizard-shipping-method-select.hide{display:none}.wc-wizard-services.shipping .shipping-method-setting input,.wc-wizard-services.shipping .wc-wizard-shipping-method-dropdown{margin-right:2em;margin-bottom:1em}.wc-wizard-services.shipping .shipping-method-setting input .select2,.wc-wizard-services.shipping .wc-wizard-shipping-method-dropdown .select2{min-width:130px}.wc-wizard-services.shipping .wc-wizard-service-description{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;color:#a6a6a6}.wc-wizard-services.shipping .wc-wizard-service-item:not(:first-child) .wc-wizard-service-description{font-size:.92em;padding-bottom:10px}.wc-wizard-services.shipping .shipping-method-setting input{width:95px;border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:28px;padding-left:8px;padding-right:24px;font-size:14px;color:#444;background-color:#fff;display:inline-block}.wc-wizard-services.shipping .shipping-method-description,.wc-wizard-services.shipping .shipping-method-setting .description{color:#7e7e7e;font-size:.9em}.wc-wizard-services.shipping .shipping-method-setting input::-webkit-input-placeholder{color:#e1e1e1}.wc-wizard-services.shipping .shipping-method-setting input::-ms-input-placeholder{color:#e1e1e1}.wc-wizard-services.shipping .shipping-method-setting input::placeholder{color:#e1e1e1}.wc-setup-shipping-units p{line-height:1.5em;font-size:13px;margin-bottom:.25em;text-align:center}.wc-setup-shipping-units .wc-setup-shipping-unit{margin-bottom:1.75em}.wc-setup-shipping-units .wc-setup-shipping-unit .select2{min-width:125px;top:-5px}.hide{display:none}.wc-wizard-features{display:-webkit-box;display:flex;flex-wrap:wrap;list-style:none;padding:0}.wc-wizard-features .wc-wizard-feature-item{flex-basis:calc(50% - 4em - 3px);border:1px solid #eee;padding:2em}.wc-wizard-features .wc-wizard-feature-item:nth-child(1){border-radius:4px 0 0 0}.wc-wizard-features .wc-wizard-feature-item:nth-child(2){border-left:0;border-radius:0 4px 0 0}.wc-wizard-features .wc-wizard-feature-item:nth-child(3){border-top:0;border-radius:0 0 0 4px}.wc-wizard-features .wc-wizard-feature-item:nth-child(4){border-top:0;border-left:0;border-radius:0 0 4px 0}.wc-wizard-features p.wc-wizard-feature-description,.wc-wizard-features p.wc-wizard-feature-name{margin:0;line-height:1.5em}h3.jetpack-reasons{text-align:center;margin:3em 0 1em 0;font-size:14px}.jetpack-logo,.wcs-notice{display:block;margin:1.75em auto 2em auto;max-height:175px}.activate-splash .jetpack-logo{width:170px;margin-bottom:0}.activate-splash .wcs-notice{margin-top:1em;padding-left:57px}.step{text-align:center}.wc-setup .wc-setup-actions .button{font-weight:300;font-size:16px;padding:1em 2em;box-shadow:none;min-width:12em;min-width:auto;margin-top:10px}.wc-setup .wc-setup-actions .button:active,.wc-setup .wc-setup-actions .button:focus,.wc-setup .wc-setup-actions .button:hover{box-shadow:none}.wc-setup .wc-setup-actions .plugin-install-info{display:block;font-style:italic;color:#999;font-size:14px;line-height:1.5em;margin:5px 0}.wc-setup .wc-setup-actions .plugin-install-info>*{display:block}.wc-setup .wc-setup-actions .plugin-install-info .plugin-install-info-list-item::after{content:', '}.wc-setup .wc-setup-actions .plugin-install-info .plugin-install-info-list-item:last-of-type::after{content:'. '}.wc-setup .wc-setup-actions .plugin-install-info a{white-space:nowrap}.wc-setup .wc-setup-actions .plugin-install-info a:not(:hover):not(:focus){color:inherit}.plugin-install-source{background:rgba(187,119,174,.15)}.plugin-install-source:not(.wc-wizard-service-item){box-shadow:0 0 0 10px rgba(187,119,174,.15)}.location-prompt{color:#666;font-size:13px;font-weight:500;margin-bottom:.5em;margin-top:.85em;display:inline-block}.location-input{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:30px;width:calc(100% - 8px - 24px - 2px);padding-left:8px;padding-right:24px;font-size:16px;color:#444;background-color:#fff;display:inline-block}.location-input.dropdown{width:100%}.address-step .select2{min-width:100%}.store-address-container .city-and-postcode{display:-webkit-box;display:flex}.store-address-container .city-and-postcode div{flex-basis:50%;margin-right:1em}.store-address-container .city-and-postcode div:last-of-type{margin-right:0}.store-address-container .select2-container,.store-address-container input[type=text],.store-address-container select{margin-bottom:10px}.product-type-container{margin-top:14px;margin-bottom:1px}#woocommerce_sell_in_person{margin-left:0}.wc-wizard-service-settings .payment-email-input{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:30px;padding:0 8px;font-size:14px;color:#444;background-color:#fff;display:inline-block}.wc-wizard-service-settings .payment-email-input[disabled]{color:#aaa}.newsletter-form-container{display:-webkit-box;display:flex}.newsletter-form-container .newsletter-form-email{border:1px solid #aaa;border-color:#ddd;border-radius:4px;height:42px;padding:0 8px;font-size:16px;color:#666;background-color:#fff;display:inline-block;margin-right:6px;-webkit-box-flex:1;flex-grow:1}.newsletter-form-container .newsletter-form-button-container{-webkit-box-flex:0;flex-grow:0}.wc-setup .wc-setup-actions .button.newsletter-form-button{height:42px;padding:0 1em;margin:0}.wc-wizard-next-steps{border:1px solid #eee;border-radius:4px;list-style:none;padding:0}.wc-wizard-next-steps li{padding:0}.wc-wizard-next-steps .wc-wizard-next-step-item{display:-webkit-box;display:flex;border-top:1px solid #eee}.wc-wizard-next-steps .wc-wizard-next-step-item:first-child{border-top:0}.wc-wizard-next-steps .wc-wizard-next-step-description{-webkit-box-flex:1;flex-grow:1;margin:1.5em}.wc-wizard-next-steps .wc-wizard-next-step-action{-webkit-box-flex:0;flex-grow:0;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}.wc-wizard-next-steps .wc-wizard-next-step-action .button{margin:1em 1.5em}.wc-wizard-next-steps p.next-step-heading{margin:0;font-size:.95em;font-weight:400;font-variant:all-petite-caps}.wc-wizard-next-steps p.next-step-extra-info{margin:0}.wc-wizard-next-steps h3.next-step-description{margin:0;font-size:16px;font-weight:600}.wc-wizard-next-steps .wc-wizard-additional-steps{border-top:1px solid #eee}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-wizard-next-step-description{margin-bottom:0}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-setup-actions{margin:0 0 1.5em 0}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-setup-actions .button{font-size:15px;margin:1em 0 1em 1.5em}.wc-wizard-next-steps .wc-wizard-additional-steps .wc-setup-actions .button::last-child{margin-right:1.5em}p.next-steps-help-text{color:#9f9f9f;padding:0 2em;text-align:center;font-size:.9em}p.jetpack-terms{font-size:.8em;text-align:center;max-width:480px;margin:0 auto;line-height:1.5em}.woocommerce-error{background:#ffe6e5;border-color:#ffc5c2;padding:1em;margin-bottom:1em}.woocommerce-error p{margin-top:0;margin-bottom:.5em;color:#444}.woocommerce-error a{color:#ff645c}.woocommerce-error .reconnect-reminder{font-size:.85em}.woocommerce-error .wc-setup-actions .button{font-size:14px}.wc-wizard-service-setting-ppec_paypal_reroute_requests,.wc-wizard-service-setting-stripe_create_account{display:-webkit-box;display:flex;-webkit-box-align:start;align-items:flex-start}.wc-wizard-service-setting-ppec_paypal_reroute_requests .payment-checkbox-input,.wc-wizard-service-setting-stripe_create_account .payment-checkbox-input{-webkit-box-ordinal-group:2;order:1;margin-top:5px;margin-left:0;margin-right:0;width:1.5em}.wc-wizard-service-setting-ppec_paypal_reroute_requests .ppec_paypal_reroute_requests,.wc-wizard-service-setting-ppec_paypal_reroute_requests .stripe_create_account,.wc-wizard-service-setting-stripe_create_account .ppec_paypal_reroute_requests,.wc-wizard-service-setting-stripe_create_account .stripe_create_account{-webkit-box-ordinal-group:3;order:2;margin-left:.3em}.wc-wizard-service-setting-ppec_paypal_email,.wc-wizard-service-setting-stripe_email{margin-top:.75em;margin-left:1.5em}.wc-wizard-service-setting-ppec_paypal_email label.ppec_paypal_email,.wc-wizard-service-setting-ppec_paypal_email label.stripe_email,.wc-wizard-service-setting-stripe_email label.ppec_paypal_email,.wc-wizard-service-setting-stripe_email label.stripe_email{position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.wc-wizard-service-setting-ppec_paypal_email input.payment-email-input,.wc-wizard-service-setting-stripe_email input.payment-email-input{box-sizing:border-box;margin-bottom:.5em;width:100%;height:32px}.wc-setup-content .recommended-step{border:1px solid #ebebeb;border-radius:4px;padding:2.5em}.wc-setup-content .recommended-item{list-style:none}.wc-setup-content .recommended-item:last-child label{margin-bottom:0}.wc-setup-content .recommended-item label{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;margin-bottom:1.5em}.wc-setup-content .recommended-item label:after,.wc-setup-content .recommended-item label:before{top:auto}.wc-setup-content .recommended-item label:after{margin-top:-1.5px}.wc-setup-content .recommended-item .recommended-item-icon{border:1px solid #fff;border-radius:7px;height:3.5em;margin-right:1em;margin-left:4px}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-storefront_theme{background-color:#f4a224;max-height:3em;max-width:3em;padding:.25em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-automated_taxes{background-color:#d0011b;max-height:1.75em;padding:.875em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-mailchimp{background-color:#209bbb;height:2em;padding:.75em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-woocommerce_services{background-color:#f0f0f0;max-height:1.5em;padding:1.3em .7em}.wc-setup-content .recommended-item .recommended-item-icon.recommended-item-icon-shipstation{background-color:#f0f0f0;padding:.3em}.wc-setup-content .recommended-item .recommended-item-description-container h3{font-size:15px;font-weight:700;letter-spacing:.5px;margin-bottom:0}.wc-setup-content .recommended-item .recommended-item-description-container p{margin-top:0;line-height:1.5em}.wc-wizard-service-info{padding:1em 2em;background-color:#fafafa}.help_tip{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wc-setup #tiptip_content{background:#5f6973}.wc-setup #tiptip_holder.tip_top #tiptip_arrow_inner{border-top-color:#5f6973}.wc-setup-shipping-recommended{border-bottom:1px solid #eee;margin-top:0;padding:30px 0} \ No newline at end of file From 05bae41b2470b0c1baa8ce9632a88547975bbed7 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Fri, 23 Nov 2018 11:17:43 -0200 Subject: [PATCH 74/98] Fix phpcs violations automatically using phpcbf --- includes/class-wc-countries.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/includes/class-wc-countries.php b/includes/class-wc-countries.php index f173da48606..73c5d76f2d0 100644 --- a/includes/class-wc-countries.php +++ b/includes/class-wc-countries.php @@ -473,7 +473,8 @@ class WC_Countries { public function get_address_formats() { if ( empty( $this->address_formats ) ) { $this->address_formats = apply_filters( - 'woocommerce_localisation_address_formats', array( + 'woocommerce_localisation_address_formats', + array( 'default' => "{name}\n{company}\n{address_1}\n{address_2}\n{city}\n{state}\n{postcode}\n{country}", 'AU' => "{name}\n{company}\n{address_1}\n{address_2}\n{city} {state} {postcode}\n{country}", 'AT' => "{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}", @@ -557,8 +558,10 @@ class WC_Countries { // Substitute address parts into the string. $replace = array_map( - 'esc_html', apply_filters( - 'woocommerce_formatted_address_replacements', array( + 'esc_html', + apply_filters( + 'woocommerce_formatted_address_replacements', + array( '{first_name}' => $args['first_name'], '{last_name}' => $args['last_name'], '{name}' => $args['first_name'] . ' ' . $args['last_name'], @@ -580,7 +583,8 @@ class WC_Countries { '{state_code}' => strtoupper( $state ), '{postcode_upper}' => strtoupper( $args['postcode'] ), '{country_upper}' => strtoupper( $full_country ), - ), $args + ), + $args ) ); @@ -737,7 +741,8 @@ class WC_Countries { public function get_country_locale() { if ( empty( $this->locale ) ) { $this->locale = apply_filters( - 'woocommerce_get_country_locale', array( + 'woocommerce_get_country_locale', + array( 'AE' => array( 'postcode' => array( 'required' => false, From 57f44798cb71bd805bb8d379c9c6e789c37cba02 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Fri, 23 Nov 2018 12:57:51 -0200 Subject: [PATCH 75/98] Fix phpcs violations automatically using phpcbf --- includes/class-wc-install.php | 22 ++-- .../class-wc-coupon-data-store-cpt.php | 9 +- .../class-wc-customer-data-store.php | 31 ++++-- .../class-wc-customer-download-data-store.php | 3 +- .../data-stores/class-wc-data-store-wp.php | 9 +- .../class-wc-payment-token-data-store.php | 3 +- .../class-wc-product-data-store-cpt.php | 39 +++++-- ...ass-wc-product-variable-data-store-cpt.php | 27 +++-- ...ss-wc-product-variation-data-store-cpt.php | 9 +- .../class-wc-shipping-zone-data-store.php | 12 ++- includes/wc-update-functions.php | 102 ++++++++++-------- 11 files changed, 167 insertions(+), 99 deletions(-) diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index 752a40bad1c..fa80bf968dd 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -404,7 +404,8 @@ class WC_Install { include_once dirname( __FILE__ ) . '/admin/wc-admin-functions.php'; $pages = apply_filters( - 'woocommerce_create_pages', array( + 'woocommerce_create_pages', + array( 'shop' => array( 'name' => _x( 'shop', 'Page slug', 'woocommerce' ), 'title' => _x( 'Shop', 'Page title', 'woocommerce' ), @@ -594,21 +595,21 @@ class WC_Install { // Add constraint to download logs if the columns matches. if ( ! empty( $download_permissions_column_type ) && ! empty( $download_log_column_type ) && $download_permissions_column_type === $download_log_column_type ) { $constraint_prefix = ! is_multisite() || ( is_main_site() && is_main_network() ) ? 'fk_' : str_replace( $wpdb->base_prefix, 'fk_', $wpdb->prefix ); - $fk_result = $wpdb->get_row( " - SELECT COUNT(*) AS fk_count + $fk_result = $wpdb->get_row( + "SELECT COUNT(*) AS fk_count FROM information_schema.TABLE_CONSTRAINTS WHERE CONSTRAINT_SCHEMA = '{$wpdb->dbname}' AND CONSTRAINT_NAME = '{$constraint_prefix}wc_download_log_permission_id' AND CONSTRAINT_TYPE = 'FOREIGN KEY' - AND TABLE_NAME = '{$wpdb->prefix}wc_download_log' - " ); // WPCS: unprepared SQL ok. + AND TABLE_NAME = '{$wpdb->prefix}wc_download_log'" + ); // WPCS: unprepared SQL ok. if ( 0 === (int) $fk_result->fk_count ) { - $wpdb->query( " - ALTER TABLE `{$wpdb->prefix}wc_download_log` + $wpdb->query( + "ALTER TABLE `{$wpdb->prefix}wc_download_log` ADD CONSTRAINT `{$constraint_prefix}wc_download_log_permission_id` FOREIGN KEY (`permission_id`) - REFERENCES `{$wpdb->prefix}woocommerce_downloadable_product_permissions` (`permission_id`) ON DELETE CASCADE; - " ); // WPCS: unprepared SQL ok. + REFERENCES `{$wpdb->prefix}woocommerce_downloadable_product_permissions` (`permission_id`) ON DELETE CASCADE;" + ); // WPCS: unprepared SQL ok. } } } @@ -1396,7 +1397,8 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta ( $skin = new Automatic_Upgrader_Skin(); $upgrader = new Theme_Upgrader( $skin ); $api = themes_api( - 'theme_information', array( + 'theme_information', + array( 'slug' => $theme_slug, 'fields' => array( 'sections' => false ), ) diff --git a/includes/data-stores/class-wc-coupon-data-store-cpt.php b/includes/data-stores/class-wc-coupon-data-store-cpt.php index 507dd0d063c..3f51cc25f78 100644 --- a/includes/data-stores/class-wc-coupon-data-store-cpt.php +++ b/includes/data-stores/class-wc-coupon-data-store-cpt.php @@ -76,7 +76,8 @@ class WC_Coupon_Data_Store_CPT extends WC_Data_Store_WP implements WC_Coupon_Dat 'post_date' => gmdate( 'Y-m-d H:i:s', $coupon->get_date_created()->getOffsetTimestamp() ), 'post_date_gmt' => gmdate( 'Y-m-d H:i:s', $coupon->get_date_created()->getTimestamp() ), ) - ), true + ), + true ); if ( $coupon_id ) { @@ -191,7 +192,8 @@ class WC_Coupon_Data_Store_CPT extends WC_Data_Store_WP implements WC_Coupon_Dat */ public function delete( &$coupon, $args = array() ) { $args = wp_parse_args( - $args, array( + $args, + array( 'force_delete' => false, ) ); @@ -343,7 +345,8 @@ class WC_Coupon_Data_Store_CPT extends WC_Data_Store_WP implements WC_Coupon_Dat add_post_meta( $id, 'usage_count', $coupon->get_usage_count( 'edit' ), true ); $wpdb->query( $wpdb->prepare( - "UPDATE $wpdb->postmeta SET meta_value = meta_value {$operator} 1 WHERE meta_key = 'usage_count' AND post_id = %d;", // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + "UPDATE $wpdb->postmeta SET meta_value = meta_value {$operator} 1 WHERE meta_key = 'usage_count' AND post_id = %d;", $id ) ); diff --git a/includes/data-stores/class-wc-customer-data-store.php b/includes/data-stores/class-wc-customer-data-store.php index d907e61893c..9f256c7e56f 100644 --- a/includes/data-stores/class-wc-customer-data-store.php +++ b/includes/data-stores/class-wc-customer-data-store.php @@ -117,11 +117,13 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat wp_update_user( apply_filters( - 'woocommerce_update_customer_args', array( + 'woocommerce_update_customer_args', + array( 'ID' => $customer->get_id(), 'role' => $customer->get_role(), 'display_name' => $customer->get_display_name(), - ), $customer + ), + $customer ) ); $wp_user = new WP_User( $customer->get_id() ); @@ -186,11 +188,13 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat public function update( &$customer ) { wp_update_user( apply_filters( - 'woocommerce_update_customer_args', array( + 'woocommerce_update_customer_args', + array( 'ID' => $customer->get_id(), 'user_email' => $customer->get_email(), 'display_name' => $customer->get_display_name(), - ), $customer + ), + $customer ) ); @@ -225,7 +229,8 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat } $args = wp_parse_args( - $args, array( + $args, + array( 'reassign' => 0, ) ); @@ -437,18 +442,23 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat $query = new WP_User_Query( apply_filters( - 'woocommerce_customer_search_customers', array( + 'woocommerce_customer_search_customers', + array( 'search' => '*' . esc_attr( $term ) . '*', 'search_columns' => array( 'user_login', 'user_url', 'user_email', 'user_nicename', 'display_name' ), 'fields' => 'ID', 'number' => $limit, - ), $term, $limit, 'main_query' + ), + $term, + $limit, + 'main_query' ) ); $query2 = new WP_User_Query( apply_filters( - 'woocommerce_customer_search_customers', array( + 'woocommerce_customer_search_customers', + array( 'fields' => 'ID', 'number' => $limit, 'meta_query' => array( @@ -464,7 +474,10 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat 'compare' => 'LIKE', ), ), - ), $term, $limit, 'meta_query' + ), + $term, + $limit, + 'meta_query' ) ); diff --git a/includes/data-stores/class-wc-customer-download-data-store.php b/includes/data-stores/class-wc-customer-download-data-store.php index 95179f1b904..209c2f7c45a 100644 --- a/includes/data-stores/class-wc-customer-download-data-store.php +++ b/includes/data-stores/class-wc-customer-download-data-store.php @@ -281,7 +281,8 @@ class WC_Customer_Download_Data_Store implements WC_Customer_Download_Data_Store global $wpdb; $args = wp_parse_args( - $args, array( + $args, + array( 'user_email' => '', 'user_id' => '', 'order_id' => '', diff --git a/includes/data-stores/class-wc-data-store-wp.php b/includes/data-stores/class-wc-data-store-wp.php index 229d144a9b5..e3beede74c2 100644 --- a/includes/data-stores/class-wc-data-store-wp.php +++ b/includes/data-stores/class-wc-data-store-wp.php @@ -495,9 +495,12 @@ class WC_Data_Store_WP { protected function get_search_stopwords() { // Translators: This is a comma-separated list of very common words that should be excluded from a search, like a, an, and the. These are usually called "stopwords". You should not simply translate these individual words into your language. Instead, look for and provide commonly accepted stopwords in your language. $stopwords = array_map( - 'wc_strtolower', array_map( - 'trim', explode( - ',', _x( + 'wc_strtolower', + array_map( + 'trim', + explode( + ',', + _x( 'about,an,are,as,at,be,by,com,for,from,how,in,is,it,of,on,or,that,the,this,to,was,what,when,where,who,will,with,www', 'Comma-separated list of search stopwords in your language', 'woocommerce' diff --git a/includes/data-stores/class-wc-payment-token-data-store.php b/includes/data-stores/class-wc-payment-token-data-store.php index e6aee033c00..6fcfe36bf8f 100644 --- a/includes/data-stores/class-wc-payment-token-data-store.php +++ b/includes/data-stores/class-wc-payment-token-data-store.php @@ -235,7 +235,8 @@ class WC_Payment_Token_Data_Store extends WC_Data_Store_WP implements WC_Payment public function get_tokens( $args ) { global $wpdb; $args = wp_parse_args( - $args, array( + $args, + array( 'token_id' => '', 'user_id' => '', 'gateway_id' => '', diff --git a/includes/data-stores/class-wc-product-data-store-cpt.php b/includes/data-stores/class-wc-product-data-store-cpt.php index 23d82e8c0c8..3fb95a2db2c 100644 --- a/includes/data-stores/class-wc-product-data-store-cpt.php +++ b/includes/data-stores/class-wc-product-data-store-cpt.php @@ -99,7 +99,8 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da $id = wp_insert_post( apply_filters( - 'woocommerce_new_product_data', array( + 'woocommerce_new_product_data', + array( 'post_type' => 'product', 'post_status' => $product->get_status() ? $product->get_status() : 'publish', 'post_author' => get_current_user_id(), @@ -114,7 +115,8 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da 'post_date_gmt' => gmdate( 'Y-m-d H:i:s', $product->get_date_created( 'edit' )->getTimestamp() ), 'post_name' => $product->get_slug( 'edit' ), ) - ), true + ), + true ); if ( $id && ! is_wp_error( $id ) ) { @@ -262,7 +264,8 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da $post_type = $product->is_type( 'variation' ) ? 'product_variation' : 'product'; $args = wp_parse_args( - $args, array( + $args, + array( 'force_delete' => false, ) ); @@ -429,7 +432,8 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da 'is_visible' => 0, 'is_variation' => 0, 'is_taxonomy' => 0, - ), (array) $meta_attribute_value + ), + (array) $meta_attribute_value ); // Check if is a taxonomy attribute. @@ -953,7 +957,8 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da AND $wpdb->postmeta.meta_key = '_sku' AND $wpdb->postmeta.meta_value = %s AND $wpdb->postmeta.post_id <> %d LIMIT 1", - wp_slash( $sku ), $product_id + wp_slash( $sku ), + $product_id ) ); } @@ -1233,7 +1238,9 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery $wpdb->query( $wpdb->prepare( - "UPDATE {$wpdb->postmeta} SET meta_value = meta_value + %f WHERE post_id = %d AND meta_key='_stock'", $stock_quantity, $product_id_with_stock + "UPDATE {$wpdb->postmeta} SET meta_value = meta_value + %f WHERE post_id = %d AND meta_key='_stock'", + $stock_quantity, + $product_id_with_stock ) ); break; @@ -1241,7 +1248,9 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery $wpdb->query( $wpdb->prepare( - "UPDATE {$wpdb->postmeta} SET meta_value = meta_value - %f WHERE post_id = %d AND meta_key='_stock'", $stock_quantity, $product_id_with_stock + "UPDATE {$wpdb->postmeta} SET meta_value = meta_value - %f WHERE post_id = %d AND meta_key='_stock'", + $stock_quantity, + $product_id_with_stock ) ); break; @@ -1249,7 +1258,9 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery $wpdb->query( $wpdb->prepare( - "UPDATE {$wpdb->postmeta} SET meta_value = %f WHERE post_id = %d AND meta_key='_stock'", $stock_quantity, $product_id_with_stock + "UPDATE {$wpdb->postmeta} SET meta_value = %f WHERE post_id = %d AND meta_key='_stock'", + $stock_quantity, + $product_id_with_stock ) ); break; @@ -1278,7 +1289,9 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery $wpdb->query( $wpdb->prepare( - "UPDATE {$wpdb->postmeta} SET meta_value = meta_value + %f WHERE post_id = %d AND meta_key='total_sales'", $quantity, $product_id + "UPDATE {$wpdb->postmeta} SET meta_value = meta_value + %f WHERE post_id = %d AND meta_key='total_sales'", + $quantity, + $product_id ) ); break; @@ -1286,7 +1299,9 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery $wpdb->query( $wpdb->prepare( - "UPDATE {$wpdb->postmeta} SET meta_value = meta_value - %f WHERE post_id = %d AND meta_key='total_sales'", $quantity, $product_id + "UPDATE {$wpdb->postmeta} SET meta_value = meta_value - %f WHERE post_id = %d AND meta_key='total_sales'", + $quantity, + $product_id ) ); break; @@ -1294,7 +1309,9 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery $wpdb->query( $wpdb->prepare( - "UPDATE {$wpdb->postmeta} SET meta_value = %f WHERE post_id = %d AND meta_key='total_sales'", $quantity, $product_id + "UPDATE {$wpdb->postmeta} SET meta_value = %f WHERE post_id = %d AND meta_key='total_sales'", + $quantity, + $product_id ) ); break; diff --git a/includes/data-stores/class-wc-product-variable-data-store-cpt.php b/includes/data-stores/class-wc-product-variable-data-store-cpt.php index 91e19171492..0ab6aca7724 100644 --- a/includes/data-stores/class-wc-product-variable-data-store-cpt.php +++ b/includes/data-stores/class-wc-product-variable-data-store-cpt.php @@ -43,7 +43,8 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple 'is_visible' => 0, 'is_variation' => 0, 'is_taxonomy' => 0, - ), (array) $meta_attribute_value + ), + (array) $meta_attribute_value ); // Maintain data integrity. 4.9 changed sanitization functions - update the values here so variations function correctly. @@ -184,7 +185,8 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple $values = array_unique( $wpdb->get_col( $wpdb->prepare( - "SELECT meta_value FROM {$wpdb->postmeta} WHERE meta_key = %s AND post_id IN (" . implode( ',', array_map( 'absint', $child_ids ) ) . ')', // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + "SELECT meta_value FROM {$wpdb->postmeta} WHERE meta_key = %s AND post_id IN (" . implode( ',', array_map( 'absint', $child_ids ) ) . ')', wc_variation_attribute_name( $attribute['name'] ) ) ) @@ -286,38 +288,44 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple if ( $for_display ) { if ( 'incl' === get_option( 'woocommerce_tax_display_shop' ) ) { $price = '' === $price ? '' : wc_get_price_including_tax( - $variation, array( + $variation, + array( 'qty' => 1, 'price' => $price, ) ); $regular_price = '' === $regular_price ? '' : wc_get_price_including_tax( - $variation, array( + $variation, + array( 'qty' => 1, 'price' => $regular_price, ) ); $sale_price = '' === $sale_price ? '' : wc_get_price_including_tax( - $variation, array( + $variation, + array( 'qty' => 1, 'price' => $sale_price, ) ); } else { $price = '' === $price ? '' : wc_get_price_excluding_tax( - $variation, array( + $variation, + array( 'qty' => 1, 'price' => $price, ) ); $regular_price = '' === $regular_price ? '' : wc_get_price_excluding_tax( - $variation, array( + $variation, + array( 'qty' => 1, 'price' => $regular_price, ) ); $sale_price = '' === $sale_price ? '' : wc_get_price_excluding_tax( - $variation, array( + $variation, + array( 'qty' => 1, 'price' => $sale_price, ) @@ -437,7 +445,8 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple if ( $children ) { $children_with_status = $wpdb->get_var( $wpdb->prepare( - "SELECT COUNT( post_id ) FROM $wpdb->postmeta WHERE meta_key = '_stock_status' AND meta_value = %s AND post_id IN ( " . implode( ',', array_map( 'absint', $children ) ) . ' )', // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + "SELECT COUNT( post_id ) FROM $wpdb->postmeta WHERE meta_key = '_stock_status' AND meta_value = %s AND post_id IN ( " . implode( ',', array_map( 'absint', $children ) ) . ' )', $status ) ); diff --git a/includes/data-stores/class-wc-product-variation-data-store-cpt.php b/includes/data-stores/class-wc-product-variation-data-store-cpt.php index b209f4b485c..aeb2a769208 100644 --- a/includes/data-stores/class-wc-product-variation-data-store-cpt.php +++ b/includes/data-stores/class-wc-product-variation-data-store-cpt.php @@ -113,7 +113,8 @@ class WC_Product_Variation_Data_Store_CPT extends WC_Product_Data_Store_CPT impl $id = wp_insert_post( apply_filters( - 'woocommerce_new_product_variation_data', array( + 'woocommerce_new_product_variation_data', + array( 'post_type' => 'product_variation', 'post_status' => $product->get_status() ? $product->get_status() : 'publish', 'post_author' => get_current_user_id(), @@ -127,7 +128,8 @@ class WC_Product_Variation_Data_Store_CPT extends WC_Product_Data_Store_CPT impl 'post_date_gmt' => gmdate( 'Y-m-d H:i:s', $product->get_date_created( 'edit' )->getTimestamp() ), 'post_name' => $product->get_slug( 'edit' ), ) - ), true + ), + true ); if ( $id && ! is_wp_error( $id ) ) { @@ -432,7 +434,8 @@ class WC_Product_Variation_Data_Store_CPT extends WC_Product_Data_Store_CPT impl // Remove old taxonomies attributes so data is kept up to date - first get attribute key names. $delete_attribute_keys = $wpdb->get_col( $wpdb->prepare( - "SELECT meta_key FROM {$wpdb->postmeta} WHERE meta_key LIKE %s AND meta_key NOT IN ( '" . implode( "','", array_map( 'esc_sql', $updated_attribute_keys ) ) . "' ) AND post_id = %d", // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQLPlaceholders.QuotedDynamicPlaceholderGeneration + // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQLPlaceholders.QuotedDynamicPlaceholderGeneration + "SELECT meta_key FROM {$wpdb->postmeta} WHERE meta_key LIKE %s AND meta_key NOT IN ( '" . implode( "','", array_map( 'esc_sql', $updated_attribute_keys ) ) . "' ) AND post_id = %d", $wpdb->esc_like( 'attribute_' ) . '%', $product->get_id() ) diff --git a/includes/data-stores/class-wc-shipping-zone-data-store.php b/includes/data-stores/class-wc-shipping-zone-data-store.php index c6b9f8e3e67..8a439919ea1 100644 --- a/includes/data-stores/class-wc-shipping-zone-data-store.php +++ b/includes/data-stores/class-wc-shipping-zone-data-store.php @@ -25,7 +25,8 @@ class WC_Shipping_Zone_Data_Store extends WC_Data_Store_WP implements WC_Shippin public function create( &$zone ) { global $wpdb; $wpdb->insert( - $wpdb->prefix . 'woocommerce_shipping_zones', array( + $wpdb->prefix . 'woocommerce_shipping_zones', + array( 'zone_name' => $zone->get_zone_name(), 'zone_order' => $zone->get_zone_order(), ) @@ -48,10 +49,12 @@ class WC_Shipping_Zone_Data_Store extends WC_Data_Store_WP implements WC_Shippin global $wpdb; if ( $zone->get_id() ) { $wpdb->update( - $wpdb->prefix . 'woocommerce_shipping_zones', array( + $wpdb->prefix . 'woocommerce_shipping_zones', + array( 'zone_name' => $zone->get_zone_name(), 'zone_order' => $zone->get_zone_order(), - ), array( 'zone_id' => $zone->get_id() ) + ), + array( 'zone_id' => $zone->get_id() ) ); } $zone->save_meta_data(); @@ -317,7 +320,8 @@ class WC_Shipping_Zone_Data_Store extends WC_Data_Store_WP implements WC_Shippin foreach ( $zone->get_zone_locations( 'edit' ) as $location ) { $wpdb->insert( - $wpdb->prefix . 'woocommerce_shipping_zone_locations', array( + $wpdb->prefix . 'woocommerce_shipping_zone_locations', + array( 'zone_id' => $zone->get_id(), 'location_code' => $location->code, 'location_type' => $location->type, diff --git a/includes/wc-update-functions.php b/includes/wc-update-functions.php index 7b0dd070c82..1abdc424bd6 100644 --- a/includes/wc-update-functions.php +++ b/includes/wc-update-functions.php @@ -317,7 +317,8 @@ function wc_update_200_line_items() { } $item_id = wc_add_order_item( - $order_tax_row->post_id, array( + $order_tax_row->post_id, + array( 'order_item_name' => $order_tax['label'], 'order_item_type' => 'tax', ) @@ -737,16 +738,16 @@ function wc_update_240_shipping_methods() { foreach ( $shipping_methods as $flat_rate_option_key => $shipping_method ) { // Stop this running more than once if routine is repeated. if ( version_compare( $shipping_method->get_option( 'version', 0 ), '2.4.0', '<' ) ) { - $has_classes = count( WC()->shipping->get_shipping_classes() ) > 0; - $cost_key = $has_classes ? 'no_class_cost' : 'cost'; - $min_fee = $shipping_method->get_option( 'minimum_fee' ); - $math_cost_strings = array( + $has_classes = count( WC()->shipping->get_shipping_classes() ) > 0; + $cost_key = $has_classes ? 'no_class_cost' : 'cost'; + $min_fee = $shipping_method->get_option( 'minimum_fee' ); + $math_cost_strings = array( 'cost' => array(), 'no_class_cost' => array(), ); $math_cost_strings[ $cost_key ][] = $shipping_method->get_option( 'cost' ); - $fee = $shipping_method->get_option( 'fee' ); + $fee = $shipping_method->get_option( 'fee' ); if ( $fee ) { $math_cost_strings[ $cost_key ][] = strstr( $fee, '%' ) ? '[fee percent="' . str_replace( '%', '', $fee ) . '" min="' . esc_attr( $min_fee ) . '"]' : $fee; @@ -1087,7 +1088,8 @@ function wc_update_260_zone_methods() { // Move data. foreach ( $old_methods as $old_method ) { $wpdb->insert( - $wpdb->prefix . 'woocommerce_shipping_zone_methods', array( + $wpdb->prefix . 'woocommerce_shipping_zone_methods', + array( 'zone_id' => $old_method->zone_id, 'method_id' => $old_method->shipping_method_type, 'method_order' => $old_method->shipping_method_order, @@ -1422,7 +1424,8 @@ function wc_update_320_mexican_states() { SET meta_value = %s WHERE meta_key IN ( '_billing_state', '_shipping_state' ) AND meta_value = %s", - $new, $old + $new, + $old ) ); $wpdb->update( @@ -1511,11 +1514,13 @@ function wc_update_330_webhooks() { 'pending' => 'disabled', ); - $posts = get_posts( array( - 'posts_per_page' => -1, - 'post_type' => 'shop_webhook', - 'post_status' => 'any', - ) ); + $posts = get_posts( + array( + 'posts_per_page' => -1, + 'post_type' => 'shop_webhook', + 'post_status' => 'any', + ) + ); foreach ( $posts as $post ) { $webhook = new WC_Webhook(); @@ -1544,19 +1549,22 @@ function wc_update_330_set_default_product_cat() { $default_category = get_option( 'default_product_cat', 0 ); if ( $default_category ) { - $result = $wpdb->query( $wpdb->prepare( " - INSERT INTO {$wpdb->term_relationships} (object_id, term_taxonomy_id) - SELECT DISTINCT posts.ID, %s FROM {$wpdb->posts} posts - LEFT JOIN - ( - SELECT object_id FROM {$wpdb->term_relationships} term_relationships - LEFT JOIN {$wpdb->term_taxonomy} term_taxonomy ON term_relationships.term_taxonomy_id = term_taxonomy.term_taxonomy_id - WHERE term_taxonomy.taxonomy = 'product_cat' - ) AS tax_query - ON posts.ID = tax_query.object_id - WHERE posts.post_type = 'product' - AND tax_query.object_id IS NULL - ", $default_category ) ); + $result = $wpdb->query( + $wpdb->prepare( + "INSERT INTO {$wpdb->term_relationships} (object_id, term_taxonomy_id) + SELECT DISTINCT posts.ID, %s FROM {$wpdb->posts} posts + LEFT JOIN + ( + SELECT object_id FROM {$wpdb->term_relationships} term_relationships + LEFT JOIN {$wpdb->term_taxonomy} term_taxonomy ON term_relationships.term_taxonomy_id = term_taxonomy.term_taxonomy_id + WHERE term_taxonomy.taxonomy = 'product_cat' + ) AS tax_query + ON posts.ID = tax_query.object_id + WHERE posts.post_type = 'product' + AND tax_query.object_id IS NULL", + $default_category + ) + ); wp_cache_flush(); delete_transient( 'wc_term_counts' ); wp_update_term_count_now( array( $default_category ), 'product_cat' ); @@ -1576,16 +1584,19 @@ function wc_update_330_product_stock_status() { $min_stock_amount = (int) get_option( 'woocommerce_notify_no_stock_amount', 0 ); // Get all products that have stock management enabled, stock less than or equal to min stock amount, and backorders enabled. - $post_ids = $wpdb->get_col( $wpdb->prepare( " - SELECT t1.post_id FROM $wpdb->postmeta t1 - INNER JOIN $wpdb->postmeta t2 - ON t1.post_id = t2.post_id - AND t1.meta_key = '_manage_stock' AND t1.meta_value = 'yes' - AND t2.meta_key = '_stock' AND t2.meta_value <= %d - INNER JOIN $wpdb->postmeta t3 - ON t2.post_id = t3.post_id - AND t3.meta_key = '_backorders' AND ( t3.meta_value = 'yes' OR t3.meta_value = 'notify' ) - ", $min_stock_amount ) ); // WPCS: db call ok, unprepared SQL ok, cache ok. + $post_ids = $wpdb->get_col( + $wpdb->prepare( + "SELECT t1.post_id FROM $wpdb->postmeta t1 + INNER JOIN $wpdb->postmeta t2 + ON t1.post_id = t2.post_id + AND t1.meta_key = '_manage_stock' AND t1.meta_value = 'yes' + AND t2.meta_key = '_stock' AND t2.meta_value <= %d + INNER JOIN $wpdb->postmeta t3 + ON t2.post_id = t3.post_id + AND t3.meta_key = '_backorders' AND ( t3.meta_value = 'yes' OR t3.meta_value = 'notify' )", + $min_stock_amount + ) + ); // WPCS: db call ok, unprepared SQL ok, cache ok. if ( empty( $post_ids ) ) { return; @@ -1594,11 +1605,11 @@ function wc_update_330_product_stock_status() { $post_ids = array_map( 'absint', $post_ids ); // Set the status to onbackorder for those products. - $wpdb->query( " - UPDATE $wpdb->postmeta + $wpdb->query( + "UPDATE $wpdb->postmeta SET meta_value = 'onbackorder' - WHERE meta_key = '_stock_status' AND post_id IN ( " . implode( ',', $post_ids ) . ' ) - ' ); // WPCS: db call ok, unprepared SQL ok, cache ok. + WHERE meta_key = '_stock_status' AND post_id IN ( " . implode( ',', $post_ids ) . ' )' + ); // WPCS: db call ok, unprepared SQL ok, cache ok. } /** @@ -1737,7 +1748,8 @@ function wc_update_340_state() { SET meta_value = %s WHERE meta_key IN ( '_billing_state', '_shipping_state' ) AND meta_value = %s", - $new, $old + $new, + $old ) ); $wpdb->update( @@ -1811,14 +1823,14 @@ function wc_update_340_db_version() { function wc_update_343_cleanup_foreign_keys() { global $wpdb; - $results = $wpdb->get_results( " - SELECT CONSTRAINT_NAME + $results = $wpdb->get_results( + "SELECT CONSTRAINT_NAME FROM information_schema.TABLE_CONSTRAINTS WHERE CONSTRAINT_SCHEMA = '{$wpdb->dbname}' AND CONSTRAINT_NAME LIKE '%wc_download_log_ib%' AND CONSTRAINT_TYPE = 'FOREIGN KEY' - AND TABLE_NAME = '{$wpdb->prefix}wc_download_log' - " ); + AND TABLE_NAME = '{$wpdb->prefix}wc_download_log'" + ); if ( $results ) { foreach ( $results as $fk ) { From 6ec2b26972e7671ca3a3248f1bf2154bb4ca901f Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Fri, 23 Nov 2018 15:10:52 -0200 Subject: [PATCH 76/98] Update WordPress.DB.PreparedSQL.NotPrepared sniff name The latest version of WPCS that was added to WC last week, changed the name of some sniffs. This commit updates the name of one of those sniffs from WordPress.WP.PreparedSQL.NotPrepared to WordPress.DB.PreparedSQL.NotPrepared. --- includes/class-wc-install.php | 2 +- .../data-stores/class-wc-coupon-data-store-cpt.php | 2 +- .../data-stores/class-wc-customer-data-store.php | 6 +++--- .../class-wc-customer-download-data-store.php | 2 +- includes/data-stores/class-wc-data-store-wp.php | 2 +- .../class-wc-payment-token-data-store.php | 2 +- .../data-stores/class-wc-product-data-store-cpt.php | 4 ++-- .../class-wc-product-variable-data-store-cpt.php | 12 ++++++------ .../class-wc-product-variation-data-store-cpt.php | 2 +- .../class-wc-shipping-zone-data-store.php | 4 ++-- includes/wc-update-functions.php | 2 +- 11 files changed, 20 insertions(+), 20 deletions(-) diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index fa80bf968dd..343772f976e 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -890,7 +890,7 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta ( $tables = self::get_tables(); foreach ( $tables as $table ) { - $wpdb->query( "DROP TABLE IF EXISTS {$table}" ); // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + $wpdb->query( "DROP TABLE IF EXISTS {$table}" ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared } } diff --git a/includes/data-stores/class-wc-coupon-data-store-cpt.php b/includes/data-stores/class-wc-coupon-data-store-cpt.php index 3f51cc25f78..986b3c5bcc9 100644 --- a/includes/data-stores/class-wc-coupon-data-store-cpt.php +++ b/includes/data-stores/class-wc-coupon-data-store-cpt.php @@ -345,7 +345,7 @@ class WC_Coupon_Data_Store_CPT extends WC_Data_Store_WP implements WC_Coupon_Dat add_post_meta( $id, 'usage_count', $coupon->get_usage_count( 'edit' ), true ); $wpdb->query( $wpdb->prepare( - // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared "UPDATE $wpdb->postmeta SET meta_value = meta_value {$operator} 1 WHERE meta_key = 'usage_count' AND post_id = %d;", $id ) diff --git a/includes/data-stores/class-wc-customer-data-store.php b/includes/data-stores/class-wc-customer-data-store.php index 9f256c7e56f..ecde3db2138 100644 --- a/includes/data-stores/class-wc-customer-data-store.php +++ b/includes/data-stores/class-wc-customer-data-store.php @@ -331,7 +331,7 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat global $wpdb; $last_order = $wpdb->get_var( - // phpcs:disable WordPress.WP.PreparedSQL.NotPrepared + // phpcs:disable WordPress.DB.PreparedSQL.NotPrepared "SELECT posts.ID FROM $wpdb->posts AS posts LEFT JOIN {$wpdb->postmeta} AS meta on posts.ID = meta.post_id @@ -364,7 +364,7 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat global $wpdb; $count = $wpdb->get_var( - // phpcs:disable WordPress.WP.PreparedSQL.NotPrepared + // phpcs:disable WordPress.DB.PreparedSQL.NotPrepared "SELECT COUNT(*) FROM $wpdb->posts as posts LEFT JOIN {$wpdb->postmeta} AS meta ON posts.ID = meta.post_id @@ -399,7 +399,7 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat $statuses = array_map( 'esc_sql', wc_get_is_paid_statuses() ); $spent = $wpdb->get_var( - // phpcs:disable WordPress.WP.PreparedSQL.NotPrepared + // phpcs:disable WordPress.DB.PreparedSQL.NotPrepared apply_filters( 'woocommerce_customer_get_total_spent_query', "SELECT SUM(meta2.meta_value) diff --git a/includes/data-stores/class-wc-customer-download-data-store.php b/includes/data-stores/class-wc-customer-download-data-store.php index 209c2f7c45a..a26fed73b61 100644 --- a/includes/data-stores/class-wc-customer-download-data-store.php +++ b/includes/data-stores/class-wc-customer-download-data-store.php @@ -346,7 +346,7 @@ class WC_Customer_Download_Data_Store implements WC_Customer_Download_Data_Store $query[] = $wpdb->prepare( 'LIMIT %d, %d', absint( $args['limit'] ) * absint( $args['page'] - 1 ), absint( $args['limit'] ) ); } - // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared $results = $wpdb->get_results( implode( ' ', $query ), $get_results_output ); switch ( $args['return'] ) { diff --git a/includes/data-stores/class-wc-data-store-wp.php b/includes/data-stores/class-wc-data-store-wp.php index e3beede74c2..9ee29557f07 100644 --- a/includes/data-stores/class-wc-data-store-wp.php +++ b/includes/data-stores/class-wc-data-store-wp.php @@ -75,7 +75,7 @@ class WC_Data_Store_WP { $db_info = $this->get_db_info(); $raw_meta_data = $wpdb->get_results( $wpdb->prepare( - // phpcs:disable WordPress.WP.PreparedSQL.NotPrepared + // phpcs:disable WordPress.DB.PreparedSQL.NotPrepared "SELECT {$db_info['meta_id_field']} as meta_id, meta_key, meta_value FROM {$db_info['table']} WHERE {$db_info['object_id_field']} = %d diff --git a/includes/data-stores/class-wc-payment-token-data-store.php b/includes/data-stores/class-wc-payment-token-data-store.php index 6fcfe36bf8f..073e3711cb3 100644 --- a/includes/data-stores/class-wc-payment-token-data-store.php +++ b/includes/data-stores/class-wc-payment-token-data-store.php @@ -276,7 +276,7 @@ class WC_Payment_Token_Data_Store extends WC_Data_Store_WP implements WC_Payment $where[] = $wpdb->prepare( 'type = %s', $args['type'] ); } - // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared $token_results = $wpdb->get_results( $sql . ' WHERE ' . implode( ' AND ', $where ) . ' ' . $limits ); return $token_results; diff --git a/includes/data-stores/class-wc-product-data-store-cpt.php b/includes/data-stores/class-wc-product-data-store-cpt.php index 3fb95a2db2c..34dad6f3455 100644 --- a/includes/data-stores/class-wc-product-data-store-cpt.php +++ b/includes/data-stores/class-wc-product-data-store-cpt.php @@ -876,7 +876,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da } return $wpdb->get_results( - // phpcs:disable WordPress.WP.PreparedSQL.NotPrepared + // phpcs:disable WordPress.DB.PreparedSQL.NotPrepared $wpdb->prepare( "SELECT post.ID as id, post.post_parent as parent_id FROM `$wpdb->posts` AS post LEFT JOIN `$wpdb->postmeta` AS meta ON post.ID = meta.post_id @@ -1155,7 +1155,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da $related_product_query = (array) apply_filters( 'woocommerce_product_related_posts_query', $this->get_related_products_query( $cats_array, $tags_array, $exclude_ids, $limit + 10 ), $product_id, $args ); - // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery, WordPress.WP.PreparedSQL.NotPrepared + // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery, WordPress.DB.PreparedSQL.NotPrepared return $wpdb->get_col( implode( ' ', $related_product_query ) ); } diff --git a/includes/data-stores/class-wc-product-variable-data-store-cpt.php b/includes/data-stores/class-wc-product-variable-data-store-cpt.php index 0ab6aca7724..08b486ec8e9 100644 --- a/includes/data-stores/class-wc-product-variable-data-store-cpt.php +++ b/includes/data-stores/class-wc-product-variable-data-store-cpt.php @@ -185,7 +185,7 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple $values = array_unique( $wpdb->get_col( $wpdb->prepare( - // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared "SELECT meta_value FROM {$wpdb->postmeta} WHERE meta_key = %s AND post_id IN (" . implode( ',', array_map( 'absint', $child_ids ) ) . ')', wc_variation_attribute_name( $attribute['name'] ) ) @@ -402,7 +402,7 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple public function child_has_weight( $product ) { global $wpdb; $children = $product->get_visible_children(); - return $children ? null !== $wpdb->get_var( "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_weight' AND meta_value > 0 AND post_id IN ( " . implode( ',', array_map( 'absint', $children ) ) . ' )' ) : false; // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + return $children ? null !== $wpdb->get_var( "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_weight' AND meta_value > 0 AND post_id IN ( " . implode( ',', array_map( 'absint', $children ) ) . ' )' ) : false; // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared } /** @@ -415,7 +415,7 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple public function child_has_dimensions( $product ) { global $wpdb; $children = $product->get_visible_children(); - return $children ? null !== $wpdb->get_var( "SELECT post_id FROM $wpdb->postmeta WHERE meta_key IN ( '_length', '_width', '_height' ) AND meta_value > 0 AND post_id IN ( " . implode( ',', array_map( 'absint', $children ) ) . ' )' ) : false; // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + return $children ? null !== $wpdb->get_var( "SELECT post_id FROM $wpdb->postmeta WHERE meta_key IN ( '_length', '_width', '_height' ) AND meta_value > 0 AND post_id IN ( " . implode( ',', array_map( 'absint', $children ) ) . ' )' ) : false; // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared } /** @@ -445,7 +445,7 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple if ( $children ) { $children_with_status = $wpdb->get_var( $wpdb->prepare( - // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared "SELECT COUNT( post_id ) FROM $wpdb->postmeta WHERE meta_key = '_stock_status' AND meta_value = %s AND post_id IN ( " . implode( ',', array_map( 'absint', $children ) ) . ' )', $status ) @@ -496,7 +496,7 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple if ( $product->get_manage_stock() ) { $status = $product->get_stock_status(); $children = $product->get_children(); - $managed_children = $children ? array_unique( $wpdb->get_col( "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_manage_stock' AND meta_value != 'yes' AND post_id IN ( " . implode( ',', array_map( 'absint', $children ) ) . ' )' ) ) : array(); // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + $managed_children = $children ? array_unique( $wpdb->get_col( "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_manage_stock' AND meta_value != 'yes' AND post_id IN ( " . implode( ',', array_map( 'absint', $children ) ) . ' )' ) ) : array(); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared $changed = false; foreach ( $managed_children as $managed_child ) { if ( update_post_meta( $managed_child, '_stock_status', $status ) ) { @@ -521,7 +521,7 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple global $wpdb; $children = $product->get_visible_children(); - $prices = $children ? array_unique( $wpdb->get_col( "SELECT meta_value FROM $wpdb->postmeta WHERE meta_key = '_price' AND post_id IN ( " . implode( ',', array_map( 'absint', $children ) ) . ' )' ) ) : array(); // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + $prices = $children ? array_unique( $wpdb->get_col( "SELECT meta_value FROM $wpdb->postmeta WHERE meta_key = '_price' AND post_id IN ( " . implode( ',', array_map( 'absint', $children ) ) . ' )' ) ) : array(); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared delete_post_meta( $product->get_id(), '_price' ); delete_post_meta( $product->get_id(), '_sale_price' ); diff --git a/includes/data-stores/class-wc-product-variation-data-store-cpt.php b/includes/data-stores/class-wc-product-variation-data-store-cpt.php index aeb2a769208..eb3a99a201b 100644 --- a/includes/data-stores/class-wc-product-variation-data-store-cpt.php +++ b/includes/data-stores/class-wc-product-variation-data-store-cpt.php @@ -434,7 +434,7 @@ class WC_Product_Variation_Data_Store_CPT extends WC_Product_Data_Store_CPT impl // Remove old taxonomies attributes so data is kept up to date - first get attribute key names. $delete_attribute_keys = $wpdb->get_col( $wpdb->prepare( - // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQLPlaceholders.QuotedDynamicPlaceholderGeneration + // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQLPlaceholders.QuotedDynamicPlaceholderGeneration "SELECT meta_key FROM {$wpdb->postmeta} WHERE meta_key LIKE %s AND meta_key NOT IN ( '" . implode( "','", array_map( 'esc_sql', $updated_attribute_keys ) ) . "' ) AND post_id = %d", $wpdb->esc_like( 'attribute_' ) . '%', $product->get_id() diff --git a/includes/data-stores/class-wc-shipping-zone-data-store.php b/includes/data-stores/class-wc-shipping-zone-data-store.php index 8a439919ea1..342db072a62 100644 --- a/includes/data-stores/class-wc-shipping-zone-data-store.php +++ b/includes/data-stores/class-wc-shipping-zone-data-store.php @@ -143,7 +143,7 @@ class WC_Shipping_Zone_Data_Store extends WC_Data_Store_WP implements WC_Shippin $raw_methods_sql = "SELECT method_id, method_order, instance_id, is_enabled FROM {$wpdb->prefix}woocommerce_shipping_zone_methods WHERE zone_id = %d"; } - return $wpdb->get_results( $wpdb->prepare( $raw_methods_sql, $zone_id ) ); // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + return $wpdb->get_results( $wpdb->prepare( $raw_methods_sql, $zone_id ) ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared } /** @@ -248,7 +248,7 @@ class WC_Shipping_Zone_Data_Store extends WC_Data_Store_WP implements WC_Shippin return $wpdb->get_var( "SELECT zones.zone_id FROM {$wpdb->prefix}woocommerce_shipping_zones as zones LEFT OUTER JOIN {$wpdb->prefix}woocommerce_shipping_zone_locations as locations ON zones.zone_id = locations.zone_id AND location_type != 'postcode' - WHERE " . implode( ' ', $criteria ) // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + WHERE " . implode( ' ', $criteria ) // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared . ' ORDER BY zone_order ASC, zone_id ASC LIMIT 1' ); } diff --git a/includes/wc-update-functions.php b/includes/wc-update-functions.php index 1abdc424bd6..ccb8e6de66a 100644 --- a/includes/wc-update-functions.php +++ b/includes/wc-update-functions.php @@ -1834,7 +1834,7 @@ function wc_update_343_cleanup_foreign_keys() { if ( $results ) { foreach ( $results as $fk ) { - $wpdb->query( "ALTER TABLE {$wpdb->prefix}wc_download_log DROP FOREIGN KEY {$fk->CONSTRAINT_NAME}" ); // phpcs:ignore WordPress.WP.PreparedSQL.NotPrepared + $wpdb->query( "ALTER TABLE {$wpdb->prefix}wc_download_log DROP FOREIGN KEY {$fk->CONSTRAINT_NAME}" ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared } } } From e39a86d4eece4e4f03ae56701b7a86d400fad1b2 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Fri, 23 Nov 2018 14:49:08 -0400 Subject: [PATCH 77/98] fix PHP 5.2 sniffs in class-wc-install.php --- includes/class-wc-install.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index 752a40bad1c..c98a695318f 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -1222,7 +1222,8 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta ( */ public static function background_installer( $plugin_to_install_id, $plugin_to_install ) { // Explicitly clear the event. - wp_clear_scheduled_hook( 'woocommerce_plugin_background_installer', func_get_args() ); + $args = func_get_args(); + wp_clear_scheduled_hook( 'woocommerce_plugin_background_installer', $args ); if ( ! empty( $plugin_to_install['repo-slug'] ) ) { require_once ABSPATH . 'wp-admin/includes/file.php'; @@ -1234,7 +1235,10 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta ( $skin = new Automatic_Upgrader_Skin(); $upgrader = new WP_Upgrader( $skin ); - $installed_plugins = array_reduce( array_keys( get_plugins() ), array( __CLASS__, 'associate_plugin_file' ), array() ); + $installed_plugins = array_reduce( array_keys( get_plugins() ), array( __CLASS__, 'associate_plugin_file' ) ); + if ( empty( $installed_plugins ) ) { + $installed_plugins = array(); + } $plugin_slug = $plugin_to_install['repo-slug']; $plugin_file = isset( $plugin_to_install['file'] ) ? $plugin_to_install['file'] : $plugin_slug . '.php'; $installed = false; @@ -1377,7 +1381,8 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta ( */ public static function theme_background_installer( $theme_slug ) { // Explicitly clear the event. - wp_clear_scheduled_hook( 'woocommerce_theme_background_installer', func_get_args() ); + $args = func_get_args(); + wp_clear_scheduled_hook( 'woocommerce_theme_background_installer', $args ); if ( ! empty( $theme_slug ) ) { // Suppress feedback. From 695d3eb4338f68cb384b9565f150f65c9df5973d Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Mon, 26 Nov 2018 11:10:07 -0800 Subject: [PATCH 78/98] Add hold stock minutes check to order pay shortcode also --- includes/shortcodes/class-wc-shortcode-checkout.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/shortcodes/class-wc-shortcode-checkout.php b/includes/shortcodes/class-wc-shortcode-checkout.php index 0ec68b3510b..f4646b9e3e1 100644 --- a/includes/shortcodes/class-wc-shortcode-checkout.php +++ b/includes/shortcodes/class-wc-shortcode-checkout.php @@ -84,8 +84,9 @@ class WC_Shortcode_Checkout { // Pay for existing order. if ( isset( $_GET['pay_for_order'], $_GET['key'] ) && $order_id ) { // WPCS: input var ok, CSRF ok. try { - $order_key = isset( $_GET['key'] ) ? wc_clean( wp_unslash( $_GET['key'] ) ) : ''; // WPCS: input var ok, CSRF ok. - $order = wc_get_order( $order_id ); + $order_key = isset( $_GET['key'] ) ? wc_clean( wp_unslash( $_GET['key'] ) ) : ''; // WPCS: input var ok, CSRF ok. + $order = wc_get_order( $order_id ); + $hold_stock_minutes = (int) get_option( 'woocommerce_hold_stock_minutes', 0 ); // Order or payment link is invalid. if ( ! $order || $order->get_id() !== $order_id || $order->get_order_key() !== $order_key ) { @@ -149,7 +150,7 @@ class WC_Shortcode_Checkout { } // Check stock based on all items in the cart and consider any held stock within pending orders. - $held_stock = wc_get_held_stock_quantity( $product, $order->get_id() ); + $held_stock = ( $hold_stock_minutes > 0 ) ? wc_get_held_stock_quantity( $product, $order->get_id() ) : 0; $required_stock = $quantities[ $product->get_stock_managed_by_id() ]; if ( $product->get_stock_quantity() < ( $held_stock + $required_stock ) ) { From 13371c7e8b0bf62fa1dbe2b144141648765f26c1 Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Mon, 26 Nov 2018 11:16:58 -0800 Subject: [PATCH 79/98] Check product exists before getting title --- includes/wc-template-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index a7ef82e31cd..9cdd5087f2c 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -1588,7 +1588,7 @@ if ( ! function_exists( 'woocommerce_quantity_input' ) ) { 'step' => apply_filters( 'woocommerce_quantity_input_step', 1, $product ), 'pattern' => apply_filters( 'woocommerce_quantity_input_pattern', has_filter( 'woocommerce_stock_amount', 'intval' ) ? '[0-9]*' : '' ), 'inputmode' => apply_filters( 'woocommerce_quantity_input_inputmode', has_filter( 'woocommerce_stock_amount', 'intval' ) ? 'numeric' : '' ), - 'product_name' => $product->get_title(), + 'product_name' => $product ? $product->get_title() : '', ); $args = apply_filters( 'woocommerce_quantity_input_args', wp_parse_args( $args, $defaults ), $product ); From 0079312e1ca52b114c186e65aa76d07f6da33900 Mon Sep 17 00:00:00 2001 From: Lee Willis Date: Tue, 27 Nov 2018 11:20:27 +0000 Subject: [PATCH 80/98] Remove erroneous "break" --- includes/api/v2/class-wc-rest-system-status-v2-controller.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/api/v2/class-wc-rest-system-status-v2-controller.php b/includes/api/v2/class-wc-rest-system-status-v2-controller.php index 40308030720..2bf0d4ab9c0 100644 --- a/includes/api/v2/class-wc-rest-system-status-v2-controller.php +++ b/includes/api/v2/class-wc-rest-system-status-v2-controller.php @@ -835,7 +835,6 @@ class WC_REST_System_Status_V2_Controller extends WC_REST_Controller { 'changelog' => $body->sections['changelog'], ); set_transient( md5( $plugin ) . '_version_data', $version_data, DAY_IN_SECONDS ); - break; } } } From 6f24d5b283012b3a795363fe2c61f5edcbae6cc1 Mon Sep 17 00:00:00 2001 From: Lee Willis Date: Tue, 27 Nov 2018 12:05:10 +0000 Subject: [PATCH 81/98] Coding standard fix --- includes/api/v2/class-wc-rest-system-status-v2-controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/api/v2/class-wc-rest-system-status-v2-controller.php b/includes/api/v2/class-wc-rest-system-status-v2-controller.php index 2bf0d4ab9c0..4352dfbe13e 100644 --- a/includes/api/v2/class-wc-rest-system-status-v2-controller.php +++ b/includes/api/v2/class-wc-rest-system-status-v2-controller.php @@ -37,7 +37,8 @@ class WC_REST_System_Status_V2_Controller extends WC_REST_Controller { */ public function register_routes() { register_rest_route( - $this->namespace, '/' . $this->rest_base, + $this->namespace, + '/' . $this->rest_base, array( array( 'methods' => WP_REST_Server::READABLE, From 5f7ee03a7e111c9dd402ac105454d90b6ba56664 Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Tue, 27 Nov 2018 10:51:24 -0800 Subject: [PATCH 82/98] Bump "Tested up to" header --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 013bedcce6c..8e82fce0653 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: automattic, mikejolley, jameskoster, claudiosanches, claudiulodro, kloon, rodrigosprimo, jshreve, coderkevin Tags: ecommerce, e-commerce, store, sales, sell, shop, cart, checkout, downloadable, downloads, paypal, storefront, woo commerce Requires at least: 4.7 -Tested up to: 4.9 +Tested up to: 5.0 Stable tag: 3.5.0 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html From d5f7afbff3aa63b2e090bc0429b1ced3b8cc04cb Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Tue, 27 Nov 2018 11:08:47 -0800 Subject: [PATCH 83/98] Simplify contraint --- includes/class-wc-install.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index 713407e1509..725fe1d47eb 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -597,19 +597,18 @@ class WC_Install { // Add constraint to download logs if the columns matches. if ( ! empty( $download_permissions_column_type ) && ! empty( $download_log_column_type ) && $download_permissions_column_type === $download_log_column_type ) { - $constraint_prefix = ! is_multisite() || ( is_main_site() && is_main_network() ) ? 'fk_' . $wpdb->prefix : str_replace( $wpdb->base_prefix, 'fk_', $wpdb->prefix ); $fk_result = $wpdb->get_row( " SELECT COUNT(*) AS fk_count FROM information_schema.TABLE_CONSTRAINTS WHERE CONSTRAINT_SCHEMA = '{$wpdb->dbname}' - AND CONSTRAINT_NAME = '{$constraint_prefix}wc_download_log_permission_id' + AND CONSTRAINT_NAME = 'fk_{$wpdb->prefix}wc_download_log_permission_id' AND CONSTRAINT_TYPE = 'FOREIGN KEY' AND TABLE_NAME = '{$wpdb->prefix}wc_download_log' " ); // WPCS: unprepared SQL ok. if ( 0 === (int) $fk_result->fk_count ) { $wpdb->query( " ALTER TABLE `{$wpdb->prefix}wc_download_log` - ADD CONSTRAINT `{$constraint_prefix}wc_download_log_permission_id` + ADD CONSTRAINT `fk_{$wpdb->prefix}wc_download_log_permission_id` FOREIGN KEY (`permission_id`) REFERENCES `{$wpdb->prefix}woocommerce_downloadable_product_permissions` (`permission_id`) ON DELETE CASCADE; " ); // WPCS: unprepared SQL ok. From b433219f71a76fc84b382b20f9efc5a13b047f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=C3=BCel=20van=20der=20Steege?= Date: Thu, 29 Nov 2018 15:25:24 +0100 Subject: [PATCH 84/98] Fix incorrect return type documentation for product factory `get_product()`. This method returns `false` if the product cannot be loaded, not `null`. --- includes/class-wc-product-factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-product-factory.php b/includes/class-wc-product-factory.php index 8e5791deddd..02bd8d1cd5a 100644 --- a/includes/class-wc-product-factory.php +++ b/includes/class-wc-product-factory.php @@ -20,7 +20,7 @@ class WC_Product_Factory { * * @param mixed $product_id WC_Product|WP_Post|int|bool $product Product instance, post instance, numeric or false to use global $post. * @param array $deprecated Previously used to pass arguments to the factory, e.g. to force a type. - * @return WC_Product|bool Product object or null if the product cannot be loaded. + * @return WC_Product|bool Product object or false if the product cannot be loaded. */ public function get_product( $product_id = false, $deprecated = array() ) { $product_id = $this->get_product_id( $product_id ); From d1533261f55263dde93cc50d774ebe869b92d109 Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Tue, 27 Nov 2018 10:13:58 -0800 Subject: [PATCH 85/98] Extra sanitizing around payment_method_title --- .../api/class-wc-rest-orders-controller.php | 3 + .../api/legacy/v2/class-wc-api-orders.php | 4 +- .../api/legacy/v3/class-wc-api-orders.php | 4 +- .../v1/class-wc-rest-orders-controller.php | 3 + .../v2/class-wc-rest-orders-v2-controller.php | 3 + templates/order/order-details.php | 12 ++- tests/unit-tests/api/orders.php | 76 +++++++++++++++++++ tests/unit-tests/api/v2/orders.php | 76 +++++++++++++++++++ 8 files changed, 175 insertions(+), 6 deletions(-) diff --git a/includes/api/class-wc-rest-orders-controller.php b/includes/api/class-wc-rest-orders-controller.php index 72b7d0b7418..8c114d99d73 100644 --- a/includes/api/class-wc-rest-orders-controller.php +++ b/includes/api/class-wc-rest-orders-controller.php @@ -105,6 +105,9 @@ class WC_REST_Orders_Controller extends WC_REST_Orders_V2_Controller { } } break; + case 'payment_method_title' : + $order->set_payment_method_title( sanitize_text_field( $value ) ); + break; case 'meta_data': if ( is_array( $value ) ) { foreach ( $value as $meta ) { diff --git a/includes/api/legacy/v2/class-wc-api-orders.php b/includes/api/legacy/v2/class-wc-api-orders.php index de7b3850bc2..2c3f74160e8 100644 --- a/includes/api/legacy/v2/class-wc-api-orders.php +++ b/includes/api/legacy/v2/class-wc-api-orders.php @@ -433,7 +433,7 @@ class WC_API_Orders extends WC_API_Resource { } update_post_meta( $order->get_id(), '_payment_method', $data['payment_details']['method_id'] ); - update_post_meta( $order->get_id(), '_payment_method_title', $data['payment_details']['method_title'] ); + update_post_meta( $order->get_id(), '_payment_method_title', sanitize_text_field( $data['payment_details']['method_title'] ) ); // mark as paid if set if ( isset( $data['payment_details']['paid'] ) && true === $data['payment_details']['paid'] ) { @@ -585,7 +585,7 @@ class WC_API_Orders extends WC_API_Resource { // Method title. if ( isset( $data['payment_details']['method_title'] ) ) { - update_post_meta( $order->get_id(), '_payment_method_title', $data['payment_details']['method_title'] ); + update_post_meta( $order->get_id(), '_payment_method_title', sanitize_text_field( $data['payment_details']['method_title'] ) ); } // Mark as paid if set. diff --git a/includes/api/legacy/v3/class-wc-api-orders.php b/includes/api/legacy/v3/class-wc-api-orders.php index 6cfdfba8627..b9c3ff0e812 100644 --- a/includes/api/legacy/v3/class-wc-api-orders.php +++ b/includes/api/legacy/v3/class-wc-api-orders.php @@ -473,7 +473,7 @@ class WC_API_Orders extends WC_API_Resource { } update_post_meta( $order->get_id(), '_payment_method', $data['payment_details']['method_id'] ); - update_post_meta( $order->get_id(), '_payment_method_title', $data['payment_details']['method_title'] ); + update_post_meta( $order->get_id(), '_payment_method_title', sanitize_text_field( $data['payment_details']['method_title'] ) ); // mark as paid if set if ( isset( $data['payment_details']['paid'] ) && true === $data['payment_details']['paid'] ) { @@ -622,7 +622,7 @@ class WC_API_Orders extends WC_API_Resource { // Method title. if ( isset( $data['payment_details']['method_title'] ) ) { - update_post_meta( $order->get_id(), '_payment_method_title', $data['payment_details']['method_title'] ); + update_post_meta( $order->get_id(), '_payment_method_title', sanitize_text_field( $data['payment_details']['method_title'] ) ); } // Mark as paid if set. diff --git a/includes/api/v1/class-wc-rest-orders-controller.php b/includes/api/v1/class-wc-rest-orders-controller.php index 804e3fb571e..f9c429ba311 100644 --- a/includes/api/v1/class-wc-rest-orders-controller.php +++ b/includes/api/v1/class-wc-rest-orders-controller.php @@ -481,6 +481,9 @@ class WC_REST_Orders_V1_Controller extends WC_REST_Posts_Controller { } } break; + case 'payment_method_title' : + $order->set_payment_method_title( sanitize_text_field( $value ) ); + break; default : if ( is_callable( array( $order, "set_{$key}" ) ) ) { $order->{"set_{$key}"}( $value ); diff --git a/includes/api/v2/class-wc-rest-orders-v2-controller.php b/includes/api/v2/class-wc-rest-orders-v2-controller.php index 85675a4fbde..5ff77304eba 100644 --- a/includes/api/v2/class-wc-rest-orders-v2-controller.php +++ b/includes/api/v2/class-wc-rest-orders-v2-controller.php @@ -472,6 +472,9 @@ class WC_REST_Orders_V2_Controller extends WC_REST_Legacy_Orders_Controller { } } break; + case 'payment_method_title' : + $order->set_payment_method_title( sanitize_text_field( $value ) ); + break; case 'meta_data': if ( is_array( $value ) ) { foreach ( $value as $meta ) { diff --git a/templates/order/order-details.php b/templates/order/order-details.php index b3c3d5af810..3a3ced00100 100644 --- a/templates/order/order-details.php +++ b/templates/order/order-details.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.0 + * @version 3.5.2 */ if ( ! defined( 'ABSPATH' ) ) { @@ -71,10 +71,18 @@ if ( $show_downloads ) { get_order_item_totals() as $key => $total ) { + switch ( $key ) { + case 'payment_method': + $value = esc_html( $total['value'] ); + break; + default: + $value = $total['value']; + break; + } ?> - + assertEquals( 1, count( $data['shipping_lines'] ) ); } + /** + * Test the sanitization of the payment_method_title field through the API. + * + * @since 3.5.2 + */ + public function test_create_update_order_payment_method_title_sanitize() { + wp_set_current_user( $this->user ); + $product = WC_Helper_Product::create_simple_product(); + + // Test when creating order. + $request = new WP_REST_Request( 'POST', '/wc/v3/orders' ); + $request->set_body_params( + array( + 'payment_method' => 'bacs', + 'payment_method_title' => '

Sanitize this

', + 'set_paid' => true, + 'billing' => array( + 'first_name' => 'John', + 'last_name' => 'Doe', + 'address_1' => '969 Market', + 'address_2' => '', + 'city' => 'San Francisco', + 'state' => 'CA', + 'postcode' => '94103', + 'country' => 'US', + 'email' => 'john.doe@example.com', + 'phone' => '(555) 555-5555', + ), + 'shipping' => array( + 'first_name' => 'John', + 'last_name' => 'Doe', + 'address_1' => '969 Market', + 'address_2' => '', + 'city' => 'San Francisco', + 'state' => 'CA', + 'postcode' => '94103', + 'country' => 'US', + ), + 'line_items' => array( + array( + 'product_id' => $product->get_id(), + 'quantity' => 2, + ), + ), + 'shipping_lines' => array( + array( + 'method_id' => 'flat_rate', + 'method_title' => 'Flat rate', + 'total' => '10', + ), + ), + ) + ); + $response = $this->server->dispatch( $request ); + $data = $response->get_data(); + $order = wc_get_order( $data['id'] ); + $this->assertEquals( 201, $response->get_status() ); + $this->assertEquals( $order->get_payment_method(), $data['payment_method'] ); + $this->assertEquals( $order->get_payment_method_title(), 'Sanitize this' ); + + // Test when updating order. + $request = new WP_REST_Request( 'PUT', '/wc/v3/orders/' . $data['id'] ); + $request->set_body_params( + array( + 'payment_method' => 'bacs', + 'payment_method_title' => '

Sanitize this too

' + ) + ); + $response = $this->server->dispatch( $request ); + $data = $response->get_data(); + $order = wc_get_order( $data['id'] ); + $this->assertEquals( 200, $response->get_status() ); + $this->assertEquals( $order->get_payment_method(), $data['payment_method'] ); + $this->assertEquals( $order->get_payment_method_title(), 'Sanitize this too' ); + } + /** * Tests creating an order without required fields. * @since 3.5.0 diff --git a/tests/unit-tests/api/v2/orders.php b/tests/unit-tests/api/v2/orders.php index 041bd5610cb..a431c0c309f 100644 --- a/tests/unit-tests/api/v2/orders.php +++ b/tests/unit-tests/api/v2/orders.php @@ -208,6 +208,82 @@ class WC_Tests_API_Orders_V2 extends WC_REST_Unit_Test_Case { $this->assertEquals( 1, count( $data['shipping_lines'] ) ); } + /** + * Test the sanitization of the payment_method_title field through the API. + * + * @since 3.5.2 + */ + public function test_create_update_order_payment_method_title_sanitize() { + wp_set_current_user( $this->user ); + $product = WC_Helper_Product::create_simple_product(); + + // Test when creating order. + $request = new WP_REST_Request( 'POST', '/wc/v3/orders' ); + $request->set_body_params( + array( + 'payment_method' => 'bacs', + 'payment_method_title' => '

Sanitize this

', + 'set_paid' => true, + 'billing' => array( + 'first_name' => 'John', + 'last_name' => 'Doe', + 'address_1' => '969 Market', + 'address_2' => '', + 'city' => 'San Francisco', + 'state' => 'CA', + 'postcode' => '94103', + 'country' => 'US', + 'email' => 'john.doe@example.com', + 'phone' => '(555) 555-5555', + ), + 'shipping' => array( + 'first_name' => 'John', + 'last_name' => 'Doe', + 'address_1' => '969 Market', + 'address_2' => '', + 'city' => 'San Francisco', + 'state' => 'CA', + 'postcode' => '94103', + 'country' => 'US', + ), + 'line_items' => array( + array( + 'product_id' => $product->get_id(), + 'quantity' => 2, + ), + ), + 'shipping_lines' => array( + array( + 'method_id' => 'flat_rate', + 'method_title' => 'Flat rate', + 'total' => '10', + ), + ), + ) + ); + $response = $this->server->dispatch( $request ); + $data = $response->get_data(); + $order = wc_get_order( $data['id'] ); + $this->assertEquals( 201, $response->get_status() ); + $this->assertEquals( $order->get_payment_method(), $data['payment_method'] ); + $this->assertEquals( $order->get_payment_method_title(), 'Sanitize this' ); + + // Test when updating order. + $request = new WP_REST_Request( 'PUT', '/wc/v3/orders/' . $data['id'] ); + $request->set_body_params( + array( + 'payment_method' => 'bacs', + 'payment_method_title' => '

Sanitize this too

' + ) + ); + $response = $this->server->dispatch( $request ); + $data = $response->get_data(); + $order = wc_get_order( $data['id'] ); + $this->assertEquals( 200, $response->get_status() ); + $this->assertEquals( $order->get_payment_method(), $data['payment_method'] ); + $this->assertEquals( $order->get_payment_method_title(), 'Sanitize this too' ); + } + /** * Tests creating an order without required fields. * @since 3.0.0 From 2bccd4899a280a700678eb5ebe824aaae31b2b05 Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Wed, 28 Nov 2018 09:34:30 -0800 Subject: [PATCH 86/98] Revise to make code cleaner --- includes/api/class-wc-rest-orders-controller.php | 3 --- includes/api/v1/class-wc-rest-orders-controller.php | 3 +++ includes/api/v2/class-wc-rest-orders-v2-controller.php | 6 +++--- templates/order/order-details.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/api/class-wc-rest-orders-controller.php b/includes/api/class-wc-rest-orders-controller.php index 8c114d99d73..72b7d0b7418 100644 --- a/includes/api/class-wc-rest-orders-controller.php +++ b/includes/api/class-wc-rest-orders-controller.php @@ -105,9 +105,6 @@ class WC_REST_Orders_Controller extends WC_REST_Orders_V2_Controller { } } break; - case 'payment_method_title' : - $order->set_payment_method_title( sanitize_text_field( $value ) ); - break; case 'meta_data': if ( is_array( $value ) ) { foreach ( $value as $meta ) { diff --git a/includes/api/v1/class-wc-rest-orders-controller.php b/includes/api/v1/class-wc-rest-orders-controller.php index f9c429ba311..b560e9cfd09 100644 --- a/includes/api/v1/class-wc-rest-orders-controller.php +++ b/includes/api/v1/class-wc-rest-orders-controller.php @@ -1151,6 +1151,9 @@ class WC_REST_Orders_V1_Controller extends WC_REST_Posts_Controller { 'description' => __( 'Payment method title.', 'woocommerce' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), + 'arg_options' => array( + 'sanitize_callback' => 'sanitize_text_field', + ), ), 'set_paid' => array( 'description' => __( 'Define if the order is paid. It will set the status to processing and reduce stock items.', 'woocommerce' ), diff --git a/includes/api/v2/class-wc-rest-orders-v2-controller.php b/includes/api/v2/class-wc-rest-orders-v2-controller.php index 5ff77304eba..5b312f9a394 100644 --- a/includes/api/v2/class-wc-rest-orders-v2-controller.php +++ b/includes/api/v2/class-wc-rest-orders-v2-controller.php @@ -472,9 +472,6 @@ class WC_REST_Orders_V2_Controller extends WC_REST_Legacy_Orders_Controller { } } break; - case 'payment_method_title' : - $order->set_payment_method_title( sanitize_text_field( $value ) ); - break; case 'meta_data': if ( is_array( $value ) ) { foreach ( $value as $meta ) { @@ -1106,6 +1103,9 @@ class WC_REST_Orders_V2_Controller extends WC_REST_Legacy_Orders_Controller { 'description' => __( 'Payment method title.', 'woocommerce' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), + 'arg_options' => array( + 'sanitize_callback' => 'sanitize_text_field', + ), ), 'transaction_id' => array( 'description' => __( 'Unique transaction ID.', 'woocommerce' ), diff --git a/templates/order/order-details.php b/templates/order/order-details.php index 3a3ced00100..79ff14dc06a 100644 --- a/templates/order/order-details.php +++ b/templates/order/order-details.php @@ -82,7 +82,7 @@ if ( $show_downloads ) { ?> - + Date: Wed, 28 Nov 2018 09:35:59 -0800 Subject: [PATCH 87/98] Remove duplicate sanitizing --- includes/api/v1/class-wc-rest-orders-controller.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/api/v1/class-wc-rest-orders-controller.php b/includes/api/v1/class-wc-rest-orders-controller.php index b560e9cfd09..a430e54ebd6 100644 --- a/includes/api/v1/class-wc-rest-orders-controller.php +++ b/includes/api/v1/class-wc-rest-orders-controller.php @@ -481,9 +481,6 @@ class WC_REST_Orders_V1_Controller extends WC_REST_Posts_Controller { } } break; - case 'payment_method_title' : - $order->set_payment_method_title( sanitize_text_field( $value ) ); - break; default : if ( is_callable( array( $order, "set_{$key}" ) ) ) { $order->{"set_{$key}"}( $value ); From 2fed9b94a31d8f9a8bd8e08305ff8ab2e2d117eb Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Wed, 28 Nov 2018 09:37:27 -0800 Subject: [PATCH 88/98] Remove duplicate sanitizing --- templates/order/order-details.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/templates/order/order-details.php b/templates/order/order-details.php index 79ff14dc06a..0f8e8185e77 100644 --- a/templates/order/order-details.php +++ b/templates/order/order-details.php @@ -71,18 +71,10 @@ if ( $show_downloads ) { get_order_item_totals() as $key => $total ) { - switch ( $key ) { - case 'payment_method': - $value = esc_html( $total['value'] ); - break; - default: - $value = $total['value']; - break; - } ?> - + Date: Mon, 3 Dec 2018 11:52:36 +0100 Subject: [PATCH 89/98] Don't remove existing meta queries via REST API. --- includes/abstracts/abstract-wc-rest-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/abstracts/abstract-wc-rest-controller.php b/includes/abstracts/abstract-wc-rest-controller.php index eff9533bd2e..43964f52318 100644 --- a/includes/abstracts/abstract-wc-rest-controller.php +++ b/includes/abstracts/abstract-wc-rest-controller.php @@ -374,7 +374,7 @@ abstract class WC_REST_Controller extends WP_REST_Controller { * @return array */ protected function add_meta_query( $args, $meta_query ) { - if ( ! empty( $args['meta_query'] ) ) { + if ( empty( $args['meta_query'] ) ) { $args['meta_query'] = array(); } From 8732d200e166cb4ddfc4f6d2b522d2606ecbb65f Mon Sep 17 00:00:00 2001 From: Adrian Jagusch Date: Mon, 3 Dec 2018 15:27:45 +0100 Subject: [PATCH 90/98] Properly close option tag in customer search --- includes/admin/settings/views/html-keys-edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/settings/views/html-keys-edit.php b/includes/admin/settings/views/html-keys-edit.php index 3b1232034c2..1f7d37952f1 100644 --- a/includes/admin/settings/views/html-keys-edit.php +++ b/includes/admin/settings/views/html-keys-edit.php @@ -47,7 +47,7 @@ defined( 'ABSPATH' ) || exit; ); ?> From 379f257e3d4d1a0ae930b3cac776295878582b60 Mon Sep 17 00:00:00 2001 From: Justin Shreve Date: Tue, 4 Dec 2018 11:20:34 -0500 Subject: [PATCH 91/98] Load the correct class for settings options --- includes/api/class-wc-rest-settings-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/class-wc-rest-settings-controller.php b/includes/api/class-wc-rest-settings-controller.php index 905c2be4a98..f3ad622e467 100644 --- a/includes/api/class-wc-rest-settings-controller.php +++ b/includes/api/class-wc-rest-settings-controller.php @@ -61,7 +61,7 @@ class WC_REST_Settings_Controller extends WC_REST_Settings_V2_Controller { * @return WP_Error|WP_REST_Response */ public function update_item( $request ) { - $options_controller = new WC_REST_Dev_Setting_Options_Controller(); + $options_controller = new WC_REST_Setting_Options_Controller(); $response = $options_controller->update_item( $request ); return $response; From a91bc5b1ec4cec868b53b6d06c9b84ca82e0ad69 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Tue, 4 Dec 2018 16:04:24 -0200 Subject: [PATCH 92/98] phpcs fixes using phpcbf --- includes/class-wc-install.php | 2 +- includes/wc-update-functions.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/class-wc-install.php b/includes/class-wc-install.php index 25e87ab91ad..260e6a21923 100644 --- a/includes/class-wc-install.php +++ b/includes/class-wc-install.php @@ -119,7 +119,7 @@ class WC_Install { ), '3.5.2' => array( 'wc_update_352_drop_download_log_fk', - ) + ), ); /** diff --git a/includes/wc-update-functions.php b/includes/wc-update-functions.php index eb3e01c97ee..82cb24789c1 100644 --- a/includes/wc-update-functions.php +++ b/includes/wc-update-functions.php @@ -1892,14 +1892,14 @@ function wc_update_350_db_version() { */ function wc_update_352_drop_download_log_fk() { global $wpdb; - $results = $wpdb->get_results( " - SELECT CONSTRAINT_NAME + $results = $wpdb->get_results( + "SELECT CONSTRAINT_NAME FROM information_schema.TABLE_CONSTRAINTS WHERE CONSTRAINT_SCHEMA = '{$wpdb->dbname}' AND CONSTRAINT_NAME = 'fk_wc_download_log_permission_id' AND CONSTRAINT_TYPE = 'FOREIGN KEY' - AND TABLE_NAME = '{$wpdb->prefix}wc_download_log' - " ); + AND TABLE_NAME = '{$wpdb->prefix}wc_download_log'" + ); // We only need to drop the old key as WC_Install::create_tables() takes care of creating the new FK. if ( $results ) { From 06112042380224d6ddfaa7f8ce3fc1138007bc45 Mon Sep 17 00:00:00 2001 From: Aslam Shekh Date: Wed, 5 Dec 2018 08:12:57 -0800 Subject: [PATCH 93/98] Fixed Wordpress standard as per given suggestion on here:- https://github.com/woocommerce/woocommerce/pull/22122#issuecomment-444207375 --- .../includes/Simplify/PaymentsApi.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/gateways/simplify-commerce/includes/Simplify/PaymentsApi.php b/includes/gateways/simplify-commerce/includes/Simplify/PaymentsApi.php index c6f2a894179..3abd7615cae 100644 --- a/includes/gateways/simplify-commerce/includes/Simplify/PaymentsApi.php +++ b/includes/gateways/simplify-commerce/includes/Simplify/PaymentsApi.php @@ -205,9 +205,9 @@ class Simplify_PaymentsApi $url = $this->fixUrl($url) . urlencode(lcfirst($object->getClazz())) . '/'; $queryParams = array(); - if ($action == "show") { + if ( 'show' == $action ) { $url .= urlencode($object->id); - } elseif ($action == "list") { + } elseif ( 'list' == $action ) { $queryParams = array_merge($queryParams, array('max' => $object->max, 'offset' => $object->offset)); if (is_array($object->filter) && count(array_keys($object->filter))) { foreach ($object->filter as $key => $value) { @@ -225,11 +225,11 @@ class Simplify_PaymentsApi $url .= $query; } - } elseif ($action == "delete") { + } elseif ( 'delete' == $action ) { $url .= urlencode($object->id); - } elseif ($action == "update") { + } elseif ( 'update' == $action ) { $url .= urlencode($object->id); - } elseif ($action == "create") { + } elseif ( 'create' == $action ) { } return $url; } From 522df962173a609e8601c632f600c3a730891691 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Wed, 5 Dec 2018 11:52:07 -0200 Subject: [PATCH 94/98] Make sure PHPUnit tests runs when using PHP 7.2+ in the Travis builds Due to a recent change in the Travis environment, WooCommerce unit tests stopped working with the following error (see for example https://travis-ci.org/woocommerce/woocommerce/jobs/463470674#L876) in the PHP 7.2 and 7.3 build jobs: Fatal error: Class PHPUnit_Util_Test may not inherit from final class (PHPUnit\Util\Test) in /tmp/wordpress-tests-lib/includes/phpunit6-compat.php on line 18 This error is happening because Travis started ignoring the PHPUnit version that we install manually via Composer (https://github.com/woocommerce/woocommerce/blob/f7bc3fb85195df8f96c70d2846b0104ee224fef2/tests/bin/travis.sh#L6) and started using the PHPUnit version that is shipped with each of its PHP docker images. This means that for the docker images running PHP 7.2 and 7.3, PHPUnit 7 is used but the WordPress unit test framework is not compatible with PHPUnit 7 (see WordPress core ticket https://core.trac.wordpress.org/ticket/43218) and produces the error above. I believe that this is happening because Travis changed the directory where it installs composer global packages from `$HOME/.composer/` to `$HOME/.config/composer/` (https://github.com/travis-ci/travis-ci/issues/7289#issuecomment-427333966) and we add `$HOME/.composer/vendor/bin:$PATH` to the `$PATH`. So this commit simply updates the path in the line where we add it to the `$PATH`. I tried to use `composer exec` instead of updating `$PATH` but that didn't work for PHP 5.2. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 80ceac43a15..be05d8d4b13 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,7 +44,7 @@ before_script: else echo "xdebug.ini does not exist" fi - - export PATH="$HOME/.composer/vendor/bin:$PATH" + - export PATH="$HOME/.config/composer/vendor/bin:$PATH" - bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION - bash tests/bin/travis.sh before From adbce426c565396029be1397000b24994b04d4ed Mon Sep 17 00:00:00 2001 From: grigorijurasov Date: Thu, 6 Dec 2018 12:38:42 +0200 Subject: [PATCH 95/98] Line 27 - replacing a typo in the comment Line 27 - there's currently a typo, `numer`, changing that to `number` --- templates/emails/admin-cancelled-order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/emails/admin-cancelled-order.php b/templates/emails/admin-cancelled-order.php index 7073349157b..15517743313 100644 --- a/templates/emails/admin-cancelled-order.php +++ b/templates/emails/admin-cancelled-order.php @@ -24,7 +24,7 @@ if ( ! defined( 'ABSPATH' ) ) { */ do_action( 'woocommerce_email_header', $email_heading, $email ); ?> - +

get_formatted_billing_full_name() ), esc_html( $order->get_order_number() ) ); ?>

Date: Fri, 7 Dec 2018 00:13:39 +1000 Subject: [PATCH 96/98] Removed @author tag from docbloc in the template files --- templates/auth/footer.php | 1 - templates/auth/form-grant-access.php | 1 - templates/auth/header.php | 1 - templates/cart/cart-item-data.php | 1 - templates/cart/cart-totals.php | 1 - templates/cart/cross-sells.php | 1 - templates/cart/mini-cart.php | 1 - templates/cart/proceed-to-checkout-button.php | 1 - templates/checkout/form-billing.php | 1 - templates/checkout/form-shipping.php | 1 - templates/checkout/order-receipt.php | 1 - templates/checkout/review-order.php | 1 - templates/checkout/thankyou.php | 1 - templates/content-product_cat.php | 1 - templates/emails/email-addresses.php | 1 - templates/emails/email-customer-details.php | 1 - templates/emails/email-footer.php | 1 - templates/emails/email-header.php | 1 - templates/emails/plain/email-order-items.php | 1 - templates/global/breadcrumb.php | 1 - templates/global/form-login.php | 1 - templates/global/sidebar.php | 1 - templates/global/wrapper-end.php | 1 - templates/global/wrapper-start.php | 1 - templates/loop/add-to-cart.php | 1 - templates/loop/loop-end.php | 1 - templates/loop/loop-start.php | 1 - templates/loop/no-products-found.php | 1 - templates/loop/orderby.php | 1 - templates/loop/price.php | 1 - templates/loop/rating.php | 1 - templates/loop/result-count.php | 1 - templates/loop/sale-flash.php | 1 - templates/myaccount/dashboard.php | 1 - templates/myaccount/downloads.php | 1 - templates/myaccount/my-address.php | 1 - templates/myaccount/my-downloads.php | 1 - templates/myaccount/navigation.php | 1 - templates/myaccount/orders.php | 1 - templates/myaccount/payment-methods.php | 1 - templates/myaccount/view-order.php | 1 - templates/order/order-details-item.php | 1 - templates/order/order-details.php | 1 - templates/order/order-downloads.php | 1 - templates/order/tracking.php | 1 - templates/product-searchform.php | 1 - templates/single-product-reviews.php | 1 - templates/single-product.php | 1 - templates/single-product/add-to-cart/variation.php | 1 - templates/single-product/meta.php | 1 - templates/single-product/photoswipe.php | 1 - templates/single-product/price.php | 1 - templates/single-product/product-attributes.php | 1 - templates/single-product/rating.php | 1 - templates/single-product/related.php | 1 - templates/single-product/review-rating.php | 1 - templates/single-product/review.php | 1 - templates/single-product/sale-flash.php | 1 - templates/single-product/short-description.php | 1 - templates/single-product/stock.php | 1 - templates/single-product/tabs/additional-information.php | 1 - templates/single-product/tabs/description.php | 1 - templates/single-product/tabs/tabs.php | 1 - templates/single-product/title.php | 1 - templates/single-product/up-sells.php | 1 - 65 files changed, 65 deletions(-) diff --git a/templates/auth/footer.php b/templates/auth/footer.php index c54810cbe2b..50b2ced04b0 100644 --- a/templates/auth/footer.php +++ b/templates/auth/footer.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates/Auth * @version 2.4.0 */ diff --git a/templates/auth/form-grant-access.php b/templates/auth/form-grant-access.php index 1a58595e426..30f107fa152 100644 --- a/templates/auth/form-grant-access.php +++ b/templates/auth/form-grant-access.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates/Auth * @version 2.4.0 */ diff --git a/templates/auth/header.php b/templates/auth/header.php index fdbc6483364..0709890c1e5 100644 --- a/templates/auth/header.php +++ b/templates/auth/header.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates/Auth * @version 2.4.0 */ diff --git a/templates/cart/cart-item-data.php b/templates/cart/cart-item-data.php index 98f3296e37b..90ef7962e47 100644 --- a/templates/cart/cart-item-data.php +++ b/templates/cart/cart-item-data.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.4.0 */ diff --git a/templates/cart/cart-totals.php b/templates/cart/cart-totals.php index 517c803d866..aea31f2988b 100644 --- a/templates/cart/cart-totals.php +++ b/templates/cart/cart-totals.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.3.6 */ diff --git a/templates/cart/cross-sells.php b/templates/cart/cross-sells.php index 8a0376add89..903bbbbeb76 100644 --- a/templates/cart/cross-sells.php +++ b/templates/cart/cross-sells.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.0.0 */ diff --git a/templates/cart/mini-cart.php b/templates/cart/mini-cart.php index 2ef59e98baf..b105dd5ddc0 100644 --- a/templates/cart/mini-cart.php +++ b/templates/cart/mini-cart.php @@ -13,7 +13,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.5.0 */ diff --git a/templates/cart/proceed-to-checkout-button.php b/templates/cart/proceed-to-checkout-button.php index 33069918b9b..823e83d6901 100644 --- a/templates/cart/proceed-to-checkout-button.php +++ b/templates/cart/proceed-to-checkout-button.php @@ -13,7 +13,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.4.0 */ diff --git a/templates/checkout/form-billing.php b/templates/checkout/form-billing.php index 1f5cbfc0335..e09dd829d1d 100644 --- a/templates/checkout/form-billing.php +++ b/templates/checkout/form-billing.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.0.9 */ diff --git a/templates/checkout/form-shipping.php b/templates/checkout/form-shipping.php index e5867f6466f..c7ae79adebe 100644 --- a/templates/checkout/form-shipping.php +++ b/templates/checkout/form-shipping.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.0.9 */ diff --git a/templates/checkout/order-receipt.php b/templates/checkout/order-receipt.php index e7d351c752a..fae638a9ff4 100644 --- a/templates/checkout/order-receipt.php +++ b/templates/checkout/order-receipt.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.2.0 */ diff --git a/templates/checkout/review-order.php b/templates/checkout/review-order.php index e97bf694401..91e613dd6b2 100644 --- a/templates/checkout/review-order.php +++ b/templates/checkout/review-order.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.3.0 */ diff --git a/templates/checkout/thankyou.php b/templates/checkout/thankyou.php index 7453974ffaf..129aa642c40 100644 --- a/templates/checkout/thankyou.php +++ b/templates/checkout/thankyou.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.2.0 */ diff --git a/templates/content-product_cat.php b/templates/content-product_cat.php index c4e3d9afaac..d2f8516ba21 100644 --- a/templates/content-product_cat.php +++ b/templates/content-product_cat.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.6.1 */ diff --git a/templates/emails/email-addresses.php b/templates/emails/email-addresses.php index 2cce13d8d91..0bcd1dbfd61 100644 --- a/templates/emails/email-addresses.php +++ b/templates/emails/email-addresses.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates/Emails * @version 3.2.1 */ diff --git a/templates/emails/email-customer-details.php b/templates/emails/email-customer-details.php index acce35d7882..8493c789cd4 100644 --- a/templates/emails/email-customer-details.php +++ b/templates/emails/email-customer-details.php @@ -13,7 +13,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates/Emails * @version 2.5.0 */ diff --git a/templates/emails/email-footer.php b/templates/emails/email-footer.php index 5266ddd2e41..784b02fb070 100644 --- a/templates/emails/email-footer.php +++ b/templates/emails/email-footer.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates/Emails * @version 2.3.0 */ diff --git a/templates/emails/email-header.php b/templates/emails/email-header.php index 78984b50b54..4f9eebd3986 100644 --- a/templates/emails/email-header.php +++ b/templates/emails/email-header.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates/Emails * @version 2.4.0 */ diff --git a/templates/emails/plain/email-order-items.php b/templates/emails/plain/email-order-items.php index 1cdd92697b8..8392ec0ccc7 100644 --- a/templates/emails/plain/email-order-items.php +++ b/templates/emails/plain/email-order-items.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates/Emails/Plain * @version 3.2.0 */ diff --git a/templates/global/breadcrumb.php b/templates/global/breadcrumb.php index ab98be1fff0..67abda2a5d6 100644 --- a/templates/global/breadcrumb.php +++ b/templates/global/breadcrumb.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.3.0 * @see woocommerce_breadcrumb() diff --git a/templates/global/form-login.php b/templates/global/form-login.php index 3dc991879e8..025c48748fc 100644 --- a/templates/global/form-login.php +++ b/templates/global/form-login.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.3.0 */ diff --git a/templates/global/sidebar.php b/templates/global/sidebar.php index 09baaaac92e..3f1d701f9b2 100644 --- a/templates/global/sidebar.php +++ b/templates/global/sidebar.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ diff --git a/templates/global/wrapper-end.php b/templates/global/wrapper-end.php index 363c911eaa5..40abe9bc3f5 100644 --- a/templates/global/wrapper-end.php +++ b/templates/global/wrapper-end.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.3.0 */ diff --git a/templates/global/wrapper-start.php b/templates/global/wrapper-start.php index 3b0d787eb76..4261de0fa02 100644 --- a/templates/global/wrapper-start.php +++ b/templates/global/wrapper-start.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.3.0 */ diff --git a/templates/loop/add-to-cart.php b/templates/loop/add-to-cart.php index 67182c69576..fd61b187d50 100644 --- a/templates/loop/add-to-cart.php +++ b/templates/loop/add-to-cart.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.3.0 */ diff --git a/templates/loop/loop-end.php b/templates/loop/loop-end.php index 7d4e229fffa..c9613271562 100644 --- a/templates/loop/loop-end.php +++ b/templates/loop/loop-end.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.0.0 */ diff --git a/templates/loop/loop-start.php b/templates/loop/loop-start.php index 34bbd5b8af3..e7cd2e286ac 100644 --- a/templates/loop/loop-start.php +++ b/templates/loop/loop-start.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.3.0 */ diff --git a/templates/loop/no-products-found.php b/templates/loop/no-products-found.php index 5f64034dc72..6012c14668c 100644 --- a/templates/loop/no-products-found.php +++ b/templates/loop/no-products-found.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.0.0 */ diff --git a/templates/loop/orderby.php b/templates/loop/orderby.php index 5ffb058e7bd..21ab02f7d74 100644 --- a/templates/loop/orderby.php +++ b/templates/loop/orderby.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.3.0 */ diff --git a/templates/loop/price.php b/templates/loop/price.php index 9b498eb83dc..8273527447a 100644 --- a/templates/loop/price.php +++ b/templates/loop/price.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ diff --git a/templates/loop/rating.php b/templates/loop/rating.php index 2e34f0647d6..d0ea7a1bb81 100644 --- a/templates/loop/rating.php +++ b/templates/loop/rating.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.0.0 */ diff --git a/templates/loop/result-count.php b/templates/loop/result-count.php index 620ef7188b8..4ff56ac7fa6 100644 --- a/templates/loop/result-count.php +++ b/templates/loop/result-count.php @@ -13,7 +13,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.3.0 */ diff --git a/templates/loop/sale-flash.php b/templates/loop/sale-flash.php index ff812e6ec52..f7307e80fae 100644 --- a/templates/loop/sale-flash.php +++ b/templates/loop/sale-flash.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ diff --git a/templates/myaccount/dashboard.php b/templates/myaccount/dashboard.php index 1228f95777b..07db6dc09eb 100644 --- a/templates/myaccount/dashboard.php +++ b/templates/myaccount/dashboard.php @@ -13,7 +13,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ diff --git a/templates/myaccount/downloads.php b/templates/myaccount/downloads.php index 2bb00d712e6..96b806602fd 100644 --- a/templates/myaccount/downloads.php +++ b/templates/myaccount/downloads.php @@ -13,7 +13,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.2.0 */ diff --git a/templates/myaccount/my-address.php b/templates/myaccount/my-address.php index 6ef25a84e39..2d3c42a8bbf 100644 --- a/templates/myaccount/my-address.php +++ b/templates/myaccount/my-address.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ diff --git a/templates/myaccount/my-downloads.php b/templates/myaccount/my-downloads.php index 1fda83fce65..c20bbdf5867 100644 --- a/templates/myaccount/my-downloads.php +++ b/templates/myaccount/my-downloads.php @@ -13,7 +13,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.0.0 * @deprecated 2.6.0 diff --git a/templates/myaccount/navigation.php b/templates/myaccount/navigation.php index 72e91b2d8c0..cca86825258 100644 --- a/templates/myaccount/navigation.php +++ b/templates/myaccount/navigation.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ diff --git a/templates/myaccount/orders.php b/templates/myaccount/orders.php index 45309c01152..2606e5e3642 100644 --- a/templates/myaccount/orders.php +++ b/templates/myaccount/orders.php @@ -13,7 +13,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.2.0 */ diff --git a/templates/myaccount/payment-methods.php b/templates/myaccount/payment-methods.php index 56bcd922ad7..5601e3ae45e 100644 --- a/templates/myaccount/payment-methods.php +++ b/templates/myaccount/payment-methods.php @@ -13,7 +13,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ diff --git a/templates/myaccount/view-order.php b/templates/myaccount/view-order.php index aeacc9e3b3b..b404b3d2d78 100644 --- a/templates/myaccount/view-order.php +++ b/templates/myaccount/view-order.php @@ -13,7 +13,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.0.0 */ diff --git a/templates/order/order-details-item.php b/templates/order/order-details-item.php index 5d78bec8e41..16721ddeaa1 100644 --- a/templates/order/order-details-item.php +++ b/templates/order/order-details-item.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.0.0 */ diff --git a/templates/order/order-details.php b/templates/order/order-details.php index 0f8e8185e77..ecc189c9e93 100644 --- a/templates/order/order-details.php +++ b/templates/order/order-details.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.5.2 */ diff --git a/templates/order/order-downloads.php b/templates/order/order-downloads.php index 50ff7dbee88..1a7c28469ec 100644 --- a/templates/order/order-downloads.php +++ b/templates/order/order-downloads.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author Automattic * @package WooCommerce/Templates * @version 3.3.0 */ diff --git a/templates/order/tracking.php b/templates/order/tracking.php index cba04eaa7f4..388c8530789 100644 --- a/templates/order/tracking.php +++ b/templates/order/tracking.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.2.0 */ diff --git a/templates/product-searchform.php b/templates/product-searchform.php index 50e528550ce..92e515b9fd5 100644 --- a/templates/product-searchform.php +++ b/templates/product-searchform.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.3.0 */ diff --git a/templates/single-product-reviews.php b/templates/single-product-reviews.php index b0f19745233..15b5ddfeb65 100644 --- a/templates/single-product-reviews.php +++ b/templates/single-product-reviews.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.5.0 */ diff --git a/templates/single-product.php b/templates/single-product.php index f8b35dad8af..045317a3a99 100644 --- a/templates/single-product.php +++ b/templates/single-product.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ diff --git a/templates/single-product/add-to-cart/variation.php b/templates/single-product/add-to-cart/variation.php index 3e4ae710a20..1f5914a9ac2 100644 --- a/templates/single-product/add-to-cart/variation.php +++ b/templates/single-product/add-to-cart/variation.php @@ -6,7 +6,6 @@ * The values will be dynamically replaced after selecting attributes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.5.0 */ diff --git a/templates/single-product/meta.php b/templates/single-product/meta.php index a12ab1f7f22..d9cfef44408 100644 --- a/templates/single-product/meta.php +++ b/templates/single-product/meta.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.0.0 */ diff --git a/templates/single-product/photoswipe.php b/templates/single-product/photoswipe.php index a92f6aa1912..7d91793ef16 100644 --- a/templates/single-product/photoswipe.php +++ b/templates/single-product/photoswipe.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.0.0 */ diff --git a/templates/single-product/price.php b/templates/single-product/price.php index 3dfc17a2226..a94e2d1536e 100644 --- a/templates/single-product/price.php +++ b/templates/single-product/price.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.0.0 */ diff --git a/templates/single-product/product-attributes.php b/templates/single-product/product-attributes.php index f047da98863..5ffc4307599 100644 --- a/templates/single-product/product-attributes.php +++ b/templates/single-product/product-attributes.php @@ -13,7 +13,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.1.0 */ diff --git a/templates/single-product/rating.php b/templates/single-product/rating.php index df55e56b107..6dcd32cf66c 100644 --- a/templates/single-product/rating.php +++ b/templates/single-product/rating.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.1.0 */ diff --git a/templates/single-product/related.php b/templates/single-product/related.php index aa0992fd36e..7617263aa4d 100644 --- a/templates/single-product/related.php +++ b/templates/single-product/related.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.0.0 */ diff --git a/templates/single-product/review-rating.php b/templates/single-product/review-rating.php index 2fcdf28a4f3..6f72add4db0 100644 --- a/templates/single-product/review-rating.php +++ b/templates/single-product/review-rating.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.1.0 */ diff --git a/templates/single-product/review.php b/templates/single-product/review.php index 596b92dde35..cc2e52feee8 100644 --- a/templates/single-product/review.php +++ b/templates/single-product/review.php @@ -13,7 +13,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ diff --git a/templates/single-product/sale-flash.php b/templates/single-product/sale-flash.php index 2ca8ae8bfdf..50e6e29f07a 100644 --- a/templates/single-product/sale-flash.php +++ b/templates/single-product/sale-flash.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ diff --git a/templates/single-product/short-description.php b/templates/single-product/short-description.php index e3d631320f2..0bb12b743af 100644 --- a/templates/single-product/short-description.php +++ b/templates/single-product/short-description.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author Automattic * @package WooCommerce/Templates * @version 3.3.0 */ diff --git a/templates/single-product/stock.php b/templates/single-product/stock.php index 4a45929d8d3..ce877480b4e 100644 --- a/templates/single-product/stock.php +++ b/templates/single-product/stock.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.0.0 */ diff --git a/templates/single-product/tabs/additional-information.php b/templates/single-product/tabs/additional-information.php index e682eeae93b..831e65743ff 100644 --- a/templates/single-product/tabs/additional-information.php +++ b/templates/single-product/tabs/additional-information.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.0.0 */ diff --git a/templates/single-product/tabs/description.php b/templates/single-product/tabs/description.php index 08bb56d31af..c83cc8ef954 100644 --- a/templates/single-product/tabs/description.php +++ b/templates/single-product/tabs/description.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.0.0 */ diff --git a/templates/single-product/tabs/tabs.php b/templates/single-product/tabs/tabs.php index 5d5217c3a74..6e58ee1fe86 100644 --- a/templates/single-product/tabs/tabs.php +++ b/templates/single-product/tabs/tabs.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 2.4.0 */ diff --git a/templates/single-product/title.php b/templates/single-product/title.php index 93e51506220..f117c11089d 100644 --- a/templates/single-product/title.php +++ b/templates/single-product/title.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ diff --git a/templates/single-product/up-sells.php b/templates/single-product/up-sells.php index baaa90e753e..b0bb9c40873 100644 --- a/templates/single-product/up-sells.php +++ b/templates/single-product/up-sells.php @@ -11,7 +11,6 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates * @version 3.0.0 */ From 8dbb79561063c6351679858031ff873200f35ffe Mon Sep 17 00:00:00 2001 From: Faisal Alvi Date: Fri, 7 Dec 2018 18:57:03 +0530 Subject: [PATCH 97/98] abs-wc-widget-coding-stds Few coding standard fixes in the file abstract-wc-widget.php --- includes/abstracts/abstract-wc-widget.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/abstracts/abstract-wc-widget.php b/includes/abstracts/abstract-wc-widget.php index 22dd2be276b..0b4a10d61e8 100644 --- a/includes/abstracts/abstract-wc-widget.php +++ b/includes/abstracts/abstract-wc-widget.php @@ -59,8 +59,8 @@ abstract class WC_Widget extends WP_Widget { */ public function __construct() { $widget_ops = array( - 'classname' => $this->widget_cssclass, - 'description' => $this->widget_description, + 'classname' => $this->widget_cssclass, + 'description' => $this->widget_description, 'customize_selective_refresh' => true, ); @@ -299,7 +299,7 @@ abstract class WC_Widget extends WP_Widget { $link = get_term_link( get_query_var( 'product_tag' ), 'product_tag' ); } else { $queried_object = get_queried_object(); - $link = get_term_link( $queried_object->slug, $queried_object->taxonomy ); + $link = get_term_link( $queried_object->slug, $queried_object->taxonomy ); } // Min/Max. From 52f13f87082ccba66dcb4e4b8f8f40e3fe9966ee Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Fri, 7 Dec 2018 09:27:56 -0600 Subject: [PATCH 98/98] fix phpcs sniffs in class-wc-widget-rating-filter.php --- includes/widgets/class-wc-widget-rating-filter.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/includes/widgets/class-wc-widget-rating-filter.php b/includes/widgets/class-wc-widget-rating-filter.php index bd70575892f..0c9d6dbc53c 100644 --- a/includes/widgets/class-wc-widget-rating-filter.php +++ b/includes/widgets/class-wc-widget-rating-filter.php @@ -121,11 +121,14 @@ class WC_Widget_Rating_Filter extends WC_Widget { $class = in_array( $rating, $rating_filter, true ) ? 'wc-layered-nav-rating chosen' : 'wc-layered-nav-rating'; $link = apply_filters( 'woocommerce_rating_filter_link', $link_ratings ? add_query_arg( 'rating_filter', $link_ratings ) : remove_query_arg( 'rating_filter' ) ); $rating_html = wc_get_star_rating_html( $rating ); - $count_html = wp_kses( apply_filters( 'woocommerce_rating_filter_count', "({$count})", $count, $rating ), array( - 'em' => array(), - 'span' => array(), - 'strong' => array(), - ) ); + $count_html = wp_kses( + apply_filters( 'woocommerce_rating_filter_count', "({$count})", $count, $rating ), + array( + 'em' => array(), + 'span' => array(), + 'strong' => array(), + ) + ); printf( '
  • %s %s
  • ', esc_attr( $class ), esc_url( $link ), $rating_html, $count_html ); // WPCS: XSS ok. }