Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Add theming docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed May 28, 2020
1 parent d24df30 commit fb15265
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/theming/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Theming WooCommerce Blocks

This page includes all documentation regarding WooCommerce Blocks and themes.

- [Product grid blocks style update in 2.7.0](./product-grid-270.md)
39 changes: 39 additions & 0 deletions docs/theming/product-grid-270.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Product grid blocks style update in 2.7.0

In WC Blocks 2.7.0, some of the styles of the product grid blocks were updated to make the experience more consistent. Below, there are CSS code snippets that can undo those changes.

## Product images

Images in product grid blocks expand to occupy all the available horizontal space if they are small. This change can be undone with this CSS snippet:

```CSS
.wc-block-grid__products .wc-block-grid__product-image img {
width: auto;
}
```

## All Products prices

Prices in the _All Products_ block follow the same layout as the other product grid blocks. This can be undone with:

```CSS
.wc-block-grid__product-price .wc-block-grid__product-price__regular {
font-size: 0.8em;
line-height: 1;
color: #555;
margin-top: -0.25em;
display: block;
}
.wc-block-grid__product-price .wc-block-grid__product-price__value {
letter-spacing: -1px;
font-weight: 600;
display: block;
font-size: 1.25em;
line-height: 1.25;
color: #000;
margin-left: 0;
}
.wc-block-grid__product-price .wc-block-grid__product-price__value span {
white-space: nowrap;
}
```

0 comments on commit fb15265

Please sign in to comment.