Skip to content

Commit

Permalink
Delete price.php
Browse files Browse the repository at this point in the history
  • Loading branch information
crftwrk committed Jun 5, 2023
1 parent 241067d commit ad1eba5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 57 deletions.
57 changes: 31 additions & 26 deletions scss/bootscore_woocommerce/_wc_loop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,50 @@ WooCommerce Loop

// Products

// Price font-size
.card .price .woocommerce-Price-amount.amount {
font-size: 1.25rem;
}
.woocommerce .card {

// Star ratings
.card .star-rating,
.woocommerce .card .star-rating {
float: none;
margin: 1rem auto;
}
// Product link
a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
text-decoration: none;

.card .star-rating span::before {
text-align: left;
}
&:hover {
text-decoration: none;
}
}

// Loop link
a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
text-decoration: none;
// Product title
.woocommerce-loop-product__title {
@extend .h5;
}

&:hover {
text-decoration: none;
// Star ratings
.star-rating {
float: none;
margin: $spacer auto;

span::before {
text-align: left;
}
}
}

// Categories
// Price
.price {
display: block;
margin-bottom: 1rem;
}

// If loop item is WC subcategory, set btn to bottom
}

// Buttons
.product .card-body a.button,
.product-category .card-body a {
margin-top: auto;
}


// Categories

// Category loop image
.product-category .card img {
@extend .card-img-top;
}

// Category loop title
.card .woocommerce-loop-product__title {
@extend .h5;
}
3 changes: 1 addition & 2 deletions scss/bootscore_woocommerce/_wc_product.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ WooCommerce Product Page
--------------------------------------------------------------*/

// Product page price font-size
.woocommerce div.product p.price,
.woocommerce div.product span.price {
.woocommerce div.product p.price {
font-size: 2rem;
}

Expand Down
2 changes: 1 addition & 1 deletion woocommerce/content-product-cat.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
exit;
}
?>
<div <?php wc_product_cat_class('col-md-6 col-lg-4 col-xxl-3 mb-4', $category); ?>>
<div <?php wc_product_cat_class('col-md-6 col-lg-4 col-xxl-3', $category); ?>>

<div class="card h-100">

Expand Down
28 changes: 0 additions & 28 deletions woocommerce/loop/price.php

This file was deleted.

0 comments on commit ad1eba5

Please sign in to comment.