Skip to content

Commit

Permalink
Improved Woo product styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lushkant committed Feb 12, 2024
1 parent 1bc996a commit 99537f1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ public function generate_inline_styles() {

// Set product videos to 16/9 aspect ratio.
$styles .= '.woocommerce ul.products li.product .woocommerce-product-gallery__image video.rsfv-video,
.woocommerce ul.products li.product .woocommerce-product-gallery__image iframe.rsfv-video,
.woocommerce div.product div.woocommerce-product-gallery figure.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image video.rsfv-video,
.woocommerce ul.products li.product .woocommerce-product-gallery__image iframe.rsfv-video,
.woocommerce div.product div.woocommerce-product-gallery figure.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image iframe.rsfv-video
.woocommerce div.product div.woocommerce-product-gallery figure.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image iframe.rsfv-video,
.woocommerce.product.rsfv-has-video div.woocommerce-product-gallery figure.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image video.rsfv-video,
.woocommerce.product.rsfv-has-video div.woocommerce-product-gallery figure.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image iframe.rsfv-video,
{ height: auto; width: 100% !important; aspect-ratio: 16/9; }';

$styles .= '.woocommerce-loop-product__title { margin-top: 20px; }';
Expand Down

0 comments on commit 99537f1

Please sign in to comment.