From af859a9b9672c21742a047c87db14e6be28f8c42 Mon Sep 17 00:00:00 2001 From: azkyakhan Date: Wed, 19 May 2021 15:13:48 +0530 Subject: [PATCH 1/2] Refactored styling of product page (#621) --- CHANGELOG.md | 7 +++ components/atoms/a-product-rating.vue | 5 +- .../molecules/m-product-add-to-cart.vue | 2 + .../molecules/m-product-additional-info.vue | 9 ++- components/molecules/m-product-gallery.vue | 3 - .../m-product-options-configurable.vue | 36 ++++-------- components/molecules/m-product-short-info.vue | 40 ++++++++----- components/organisms/o-product-details.vue | 56 +++++++++---------- pages/Product.vue | 26 +++------ 9 files changed, 85 insertions(+), 99 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bff55673f..14bb0186c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Added `VueObserveVisibility` and `VueLazyload` dependency +### Changed / Improved +- Replaced flex with css grid in product galley and info(#621) +- Removed margin from product rating(#621) +- Renamed class of guide, compare and save actions(#621) +- Updated margin of product additional info tabs(#621) +- Formatted HTML markup and reordered CSS styles(#621) + ## [1.0.4] - 04.01.2020 ### Added diff --git a/components/atoms/a-product-rating.vue b/components/atoms/a-product-rating.vue index d4b3cd203..1a055f99d 100644 --- a/components/atoms/a-product-rating.vue +++ b/components/atoms/a-product-rating.vue @@ -47,12 +47,11 @@ export default { &__rating { display: flex; align-items: center; - margin: var(--spacer-xs) 0 0 0; } + &__count { color: var(--c-text); - text-decoration: none; - margin: 0 0 0 var(--spacer-xs); + margin-left: var(--spacer-xs); } } diff --git a/components/molecules/m-product-add-to-cart.vue b/components/molecules/m-product-add-to-cart.vue index 7140b98c0..518188314 100644 --- a/components/molecules/m-product-add-to-cart.vue +++ b/components/molecules/m-product-add-to-cart.vue @@ -6,6 +6,7 @@ :message="alert.message" :type="alert.type" /> + + + +
+ @@ -28,16 +31,18 @@ :subtitle="banner.subtitle" :title="banner.title" :image="banner.image" - class="banner sf-banner--slim" + class="banner" /> + + From 6fafd63c87b8dd7f41e5429789d5f4f9c4047073 Mon Sep 17 00:00:00 2001 From: azkyakhan Date: Wed, 19 May 2021 17:48:54 +0530 Subject: [PATCH 2/2] Removed extra space in o-product-details (#621) --- components/organisms/o-product-details.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/components/organisms/o-product-details.vue b/components/organisms/o-product-details.vue index 0387858be..d7ddf5270 100644 --- a/components/organisms/o-product-details.vue +++ b/components/organisms/o-product-details.vue @@ -175,7 +175,6 @@ export default { .secondary-action { display: block; margin: var(--spacer-xl) 0 var(--spacer-base) auto; - } .m-product-add-to-cart {