From a64c7bbc9490cab4ad5f86c754a3b85220753519 Mon Sep 17 00:00:00 2001 From: Neil Gee Date: Fri, 4 Nov 2022 15:31:53 +1100 Subject: [PATCH] revrt media breakpoints --- includes-child/beaverbuilder.php | 4 +- includes-child/woocommerce/woo.css | 20 ++++----- includes-child/woocommerce/woocommerce.php | 8 ++-- style.css | 49 +++++++++++++++------- 4 files changed, 46 insertions(+), 35 deletions(-) diff --git a/includes-child/beaverbuilder.php b/includes-child/beaverbuilder.php index 513be48..fe6e4de 100644 --- a/includes-child/beaverbuilder.php +++ b/includes-child/beaverbuilder.php @@ -100,8 +100,8 @@ function wb_builder_register_settings_form_short( $form, $id ) { $form['title'] = 'Beavertron Global Settings'; $form['tabs']['general']['sections']['rows']['fields']['row_width']['default'] = '1200'; $form['tabs']['general']['sections']['rows']['fields']['row_width_default']['default'] = 'full'; - $form['tabs']['general']['sections']['responsive']['fields']['responsive_breakpoint']['default'] = '809'; - $form['tabs']['general']['sections']['responsive']['fields']['medium_breakpoint']['default'] = '1079'; + $form['tabs']['general']['sections']['responsive']['fields']['mobile_breakpoint']['default'] = '767'; + $form['tabs']['general']['sections']['responsive']['fields']['medium_breakpoint']['default'] = '1024'; $form['tabs']['general']['sections']['responsive']['fields']['responsive_col_max_width']['default'] = '0'; } diff --git a/includes-child/woocommerce/woo.css b/includes-child/woocommerce/woo.css index 68ea649..bd2511f 100644 --- a/includes-child/woocommerce/woo.css +++ b/includes-child/woocommerce/woo.css @@ -21,7 +21,6 @@ button.woocommerce-form-login__submit { float: left; } } - .woocommerce-MyAccount-navigation .is-active a { color: #004380; @@ -149,7 +148,7 @@ button.woocommerce-form-login__submit { padding: 1%; } -.woocommerce a[title="View Cart"]{ +.woocommerce a[title="View Cart"] { display: block; clear:both; } @@ -168,13 +167,10 @@ button.woocommerce-form-login__submit { .woocommerce div.product div.images img, .woocommerce #content div.product div.images img, .woocommerce-page div.product div.images img, -.woocommerce-page #content div.product div.images img { - width: auto; -} - +.woocommerce-page #content div.product div.images img, .woocommerce ul.products li.product a img, .woocommerce-page ul.products li.product a img { - width:auto; + width: auto; } .woocommerce-cart table.cart input { @@ -291,7 +287,7 @@ button.woocommerce-form-login__submit { * @link https://getbootstrap.com/docs/4.0/components/alerts/ */ .stock { - color: #004085; + color: #999; background-color: #cce5ff; border-color: #b8daff; position: relative; @@ -323,11 +319,13 @@ button.woocommerce-form-login__submit { .woocommerce-page .cart-collaterals .cart_totals { width: 100% !important; } + #shipping_method { clear: left; text-align: left; padding-top: 10px !important; } + .woocommerce-shipping-destination, .woocommerce-shipping-calculator, .woocommerce table.shop_table_responsive tr td, @@ -336,15 +334,12 @@ button.woocommerce-form-login__submit { } } - /* Variations */ - .variations tr { display: flex; } /* 2 Column WooCommerce Checkout */ - @media(min-width:810px) { .woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1 { @@ -374,5 +369,4 @@ button.woocommerce-form-login__submit { /* Center Checkout Processing Icon Spinner */ .woocommerce .blockUI.blockOverlay:before { position:fixed!important -} - +} \ No newline at end of file diff --git a/includes-child/woocommerce/woocommerce.php b/includes-child/woocommerce/woocommerce.php index 9df4696..a742f2a 100644 --- a/includes-child/woocommerce/woocommerce.php +++ b/includes-child/woocommerce/woocommerce.php @@ -194,11 +194,11 @@ function bt_thank_you() { * Filter to remove SKU number * @since 1.7.0 */ -$bt_woo_sku = get_theme_mod( 'bt_woo_sku' ); +// $bt_woo_sku = get_theme_mod( 'bt_woo_sku' ); -if( $bt_woo_sku === 'disabled' ) { - add_filter( 'wc_product_sku_enabled', '__return_false' ); -} +// if( $bt_woo_sku === 'disabled' ) { +// add_filter( 'wc_product_sku_enabled', '__return_false' ); +// } /** diff --git a/style.css b/style.css index 24a6169..0f3c363 100644 --- a/style.css +++ b/style.css @@ -1,10 +1,10 @@ /* Theme Name: Beavertron -Theme URI: https://www.wpbeaches.com +Theme URI: https://wpbeaches.com Version: 1.7.1 Description: An BB child theme that can be used as a clean slate for custom development. Author: Neil Gowran -Author URI: https://www.wpbeaches.com +Author URI: https://wpbeaches.com template: bb-theme */ @@ -938,8 +938,7 @@ li.comment { } /* CSS Snippets - * Rows, Lists and Quotes - * + * Utility CLasses - Rows, Lists and Quotes *---------------------------------------------------------------------------------------------------- */ /* Align buttons across columns - make sure column Equal Heights is set for Flex @@ -989,17 +988,15 @@ li.comment { margin-top: 0; } - .fl-col-small.split-list .fl-node-content { + .fl-col-small.split-list .fl-module-content { margin-bottom: 0; padding-bottom: 0 !important; - padding-top: 5px !important; } - .fl-col-small + .fl-col-small .split-list .fl-node-content { - margin-top:0; + .fl-col-small + .fl-col-small.split-list .fl-module-content { + margin-top:0 !important; margin-bottom: 20px; - padding-top: 5px !important; - } + } } .no-list li { @@ -1069,6 +1066,7 @@ body.has-blocks .fl-post-content ol { top: -5px; } + /* Icon Centre Icons --------------------------------------------- */ .icon-top .fl-icon { @@ -1082,6 +1080,7 @@ body.has-blocks .fl-post-content ol { float: none; } +/* Flip FontAwsome phone icon */ i.fa-phone{ transform: rotate(110deg); } @@ -1159,16 +1158,16 @@ a.anchor { /* Builder & Bootstrap Stuff ---------------------------------------------------------------------------------------------------- */ - +/* Remove BB tooltips */ * .fl-help-tooltip{ display: none !important; } - +/* Remove BB Draft button */ .fl-builder-button-group [data-action="draft"] { display: none; } -.fl-builder-edit .collapse:not(.show) { +.fl-builder-edit .collapse:not(.show) { display: block; } @@ -1179,11 +1178,31 @@ a.anchor { margin-top: 0 !important; } +/* Toggle when using Bootstraps Collapse +--------------------------------------------- */ +a[aria-expanded="true"]::after { + content: '\f077'; + font-family: 'Font Awesome 5 Free'; + font-weight: 900; + color: #32407b; + font-size: 13px; + margin-left: 5px; +} + +a[aria-expanded="false"]::after { + content: '\f054'; + font-family: 'Font Awesome 5 Free'; + font-weight: 900; + color: #32407b; + margin-left: 5px; + font-size: 13px; +} + /* Print Styles ---------------------------------------------------------------------------------------------------- */ @media print { - + *, *:before, *:after { @@ -1257,7 +1276,6 @@ a.anchor { display: none !important; } - h1, h2, h3, @@ -1270,7 +1288,6 @@ a.anchor { widows: 3; } - img { page-break-after: avoid; page-break-inside: avoid;