Skip to content

Commit

Permalink
Merge pull request #450 from bootscore/Add-missing-fallback-for-previ…
Browse files Browse the repository at this point in the history
…ous-horizontal-loop-card-images

Add missing fallback for previous horizontal loop card images
  • Loading branch information
justinkruit committed Apr 15, 2023
2 parents f3429db + 766665c commit 3cd00f6
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 22 deletions.
2 changes: 1 addition & 1 deletion scss/_bscore_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
@import "bootscore/header";
@import "bootscore/loop";
@import "bootscore/markups";
@import "bootscore/recycle_bin";
@import "bootscore/single";
@import "bootscore/temporary";
@import "bootscore/top_button";
@import "bootscore/utilities";
@import "bootscore/widgets";
2 changes: 1 addition & 1 deletion scss/_bscore_woocommerce.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
@import "bootscore_woocommerce/wc_product_grouped";
@import "bootscore_woocommerce/wc_product_single";
@import "bootscore_woocommerce/wc_product_variable";
@import "bootscore_woocommerce/wc_recycle_bin";
@import "bootscore_woocommerce/wc_sale_badge";
@import "bootscore_woocommerce/wc_shipping";
@import "bootscore_woocommerce/wc_shop_page";
@import "bootscore_woocommerce/wc_temporary";
@import "bootscore_woocommerce/wc_tables";
@import "bootscore_woocommerce/wc_tabs";
@import "bootscore_woocommerce/wc_thank_you";
Expand Down
63 changes: 63 additions & 0 deletions scss/bootscore/_recycle_bin.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*--------------------------------------------------------------
Recycle bin
--------------------------------------------------------------*/

// Remove autop (WP 5.7 bug near shortcode)
// https://wordpress.org/support/topic/how-to-stop-wp-from-adding-p-tag-automatically/
p:empty:before {
content: none;
}

// Hide racaptcha v3 badge
.grecaptcha-badge {
display: none !important;
}

// Dark mode text-body in loop (remove in Bootstrap 5.3.0)
.dark-theme .text-body {
color: var(--#{$prefix}light) !important;
}


// Fallback for previous horizontal card images
// See https://github.com/bootscore/bootscore/issues/447
// Remove in v6
// category.php, archive.php, author.php and search results
@include media-breakpoint-down(lg) {
.card-img-left-md img {
border-top-left-radius: $border-radius;
border-top-right-radius: $border-radius;
width: 100%;
height: auto;
}
}

@include media-breakpoint-up(lg) {
.card-img-left-md img {
border-top-left-radius: $border-radius;
border-bottom-left-radius: $border-radius;
object-fit: cover;
width: 100%;
height: 100%;
}
}

// Sticky post in index.php
@include media-breakpoint-down(md) {
.card-img-left img {
border-top-left-radius: $border-radius;
border-top-right-radius: $border-radius;
width: 100%;
height: auto;
}
}

@include media-breakpoint-up(md) {
.card-img-left img {
border-top-left-radius: $border-radius;
border-bottom-left-radius: $border-radius;
object-fit: cover;
width: 100%;
height: 100%;
}
}
19 changes: 0 additions & 19 deletions scss/bootscore/_temporary.scss

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*--------------------------------------------------------------
WooCommerce Temporary
WooCommerce Recycle bin
--------------------------------------------------------------*/

// Hide duplicate empty mini-cart message in cart page
Expand Down

0 comments on commit 3cd00f6

Please sign in to comment.