Skip to content

Commit

Permalink
revrt media breakpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
neilgee committed Nov 4, 2022
1 parent c48e15a commit a64c7bb
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 35 deletions.
4 changes: 2 additions & 2 deletions includes-child/beaverbuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down
20 changes: 7 additions & 13 deletions includes-child/woocommerce/woo.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ button.woocommerce-form-login__submit {
float: left;
}
}


.woocommerce-MyAccount-navigation .is-active a {
color: #004380;
Expand Down Expand Up @@ -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;
}
Expand All @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand All @@ -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 {
Expand Down Expand Up @@ -374,5 +369,4 @@ button.woocommerce-form-login__submit {
/* Center Checkout Processing Icon Spinner */
.woocommerce .blockUI.blockOverlay:before {
position:fixed!important
}

}
8 changes: 4 additions & 4 deletions includes-child/woocommerce/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
// }


/**
Expand Down
49 changes: 33 additions & 16 deletions style.css
Original file line number Diff line number Diff line change
@@ -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
*/

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -1069,6 +1066,7 @@ body.has-blocks .fl-post-content ol {
top: -5px;
}


/* Icon Centre Icons
--------------------------------------------- */
.icon-top .fl-icon {
Expand All @@ -1082,6 +1080,7 @@ body.has-blocks .fl-post-content ol {
float: none;
}

/* Flip FontAwsome phone icon */
i.fa-phone{
transform: rotate(110deg);
}
Expand Down Expand Up @@ -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;
}

Expand All @@ -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 {
Expand Down Expand Up @@ -1257,7 +1276,6 @@ a.anchor {
display: none !important;
}


h1,
h2,
h3,
Expand All @@ -1270,7 +1288,6 @@ a.anchor {
widows: 3;
}


img {
page-break-after: avoid;
page-break-inside: avoid;
Expand Down

0 comments on commit a64c7bb

Please sign in to comment.