Skip to content

Commit

Permalink
Merge pull request #215 from vtex-apps/feature/aspect-ratio-and-css
Browse files Browse the repository at this point in the history
`aspectRatio` on summary and fixed styles.
  • Loading branch information
Iaron da Costa Araújo authored Apr 13, 2020
2 parents 72af2de + 8cda786 commit a3f0812
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- `aspectRatio` and `maxHeight` on `product-summary-image#shelf`.

### Fixed
- Some styles on product summary and price components.

## [3.34.0] - 2020-04-07
### Added
Expand Down
4 changes: 3 additions & 1 deletion store/blocks.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@

"product-summary-image#shelf": {
"props": {
"showBadge": false
"showBadge": false,
"aspectRatio": "1:1",
"maxHeight": 300
}
},
"stack-layout#prodsum": {
Expand Down
11 changes: 10 additions & 1 deletion store/blocks/product.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"rowGap": 0
},
"children": [
"vtex.store-components:product-name",
"flex-layout.row#product-name",
"product-rating-summary",
"flex-layout.row#list-price-savings",
"flex-layout.row#selling-price",
Expand All @@ -96,6 +96,15 @@
]
},

"flex-layout.row#product-name": {
"props": {
"marginBottom": 3
},
"children": [
"vtex.store-components:product-name"
]
},

"sku-selector": {
"props": {
"variationsSpacing": 3,
Expand Down
12 changes: 8 additions & 4 deletions styles/css/vtex.product-price.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.listPrice {
color: #979899;
color: #727273;
margin-bottom: .25rem;
font-size: 1rem;
}

.sellingPrice {
Expand All @@ -14,7 +15,7 @@
}

.installments {
color: #3f3f40;
color: #727273;
margin-bottom: 1rem;
}

Expand All @@ -24,7 +25,7 @@
}

.sellingPriceValue--summary {
font-size: 1.2rem;
font-size: 1.25rem;
font-weight: 600;
color: #2E2E2E;
}
Expand All @@ -37,7 +38,8 @@
}

.savings-discount--summary {
font-size: 0.9rem;
font-size: 0.875rem;
font-weight: 600;
vertical-align: baseline;
color: #FFFFFF;
padding-left: 0.5rem;
Expand All @@ -46,8 +48,10 @@

.listPrice--summary {
margin-bottom: 0.25rem;
font-size: .875rem;
}

.installments--summary {
margin-bottom: 2rem;
font-size: 0.875rem;
}
4 changes: 4 additions & 0 deletions styles/css/vtex.product-summary.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@
.imageContainer {
text-align: center;
}

.image {
border-radius: 0.25rem;
}

0 comments on commit a3f0812

Please sign in to comment.