Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing fallback for previous horizontal loop card images #450

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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