From f57e0c67200d6efde74ade6f404cb0e1fda49d90 Mon Sep 17 00:00:00 2001 From: jitendra Date: Mon, 1 Oct 2018 12:07:32 +0530 Subject: [PATCH 1/4] Configurable option on cart page --- packages/Webkul/Checkout/src/Cart.php | 7 +++++-- packages/Webkul/Shipping/composer.json | 2 +- .../Shop/src/Resources/views/checkout/cart/index.blade.php | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/Webkul/Checkout/src/Cart.php b/packages/Webkul/Checkout/src/Cart.php index ec1c41953..67f4a1f54 100644 --- a/packages/Webkul/Checkout/src/Cart.php +++ b/packages/Webkul/Checkout/src/Cart.php @@ -368,10 +368,10 @@ class Cart { } if($data['is_configurable'] == "true") { - $this->canAddOrUpdate($parent->child->id, $parent->quantity); - $parent = $cart->items()->create($itemData['parent']); + $this->canAddOrUpdate($parent->child->id, $parent->quantity); + $itemData['child']['parent_id'] = $parent->id; $cart->items()->create($itemData['child']); @@ -503,7 +503,10 @@ class Cart { $data = []; foreach($item->product->super_attributes as $attribute) { + dd($item->child); + dd($attribute->options); $option = $attribute->options()->where('id', $item->child->{$attribute->code})->first(); + $data['attributes'][$attribute->code] = [ 'attribute_name' => $attribute->name, 'option_label' => $option->label, diff --git a/packages/Webkul/Shipping/composer.json b/packages/Webkul/Shipping/composer.json index 7e3676e4f..f894797bb 100644 --- a/packages/Webkul/Shipping/composer.json +++ b/packages/Webkul/Shipping/composer.json @@ -17,7 +17,7 @@ "extra": { "laravel": { "providers": [ - "Webkul\\Cart\\Providers\\ShippingServiceProvider" + "Webkul\\Shipping\\Providers\\ShippingServiceProvider" ], "aliases": {} } diff --git a/packages/Webkul/Shop/src/Resources/views/checkout/cart/index.blade.php b/packages/Webkul/Shop/src/Resources/views/checkout/cart/index.blade.php index 18ae5c9e1..d1b9239d9 100644 --- a/packages/Webkul/Shop/src/Resources/views/checkout/cart/index.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/checkout/cart/index.blade.php @@ -49,11 +49,11 @@ @if ($product->type == 'configurable')
- {{-- @foreach (cart::getItemAttributeOptionDetails($item) as $key => $option) + @foreach (cart::getItemAttributeOptionDetails($item) as $key => $option) {{ (!$key ? '' : ' , ') . $option['attribute_name'] . ' : ' . $option['option_label'] }} - @endforeach --}} + @endforeach
@endif From 0de154a4f2a454c0826aa3931f622c04554ce8b0 Mon Sep 17 00:00:00 2001 From: prashant-webkul Date: Mon, 1 Oct 2018 12:14:14 +0530 Subject: [PATCH 2/4] merging with master --- .../Shop/src/Resources/assets/sass/app.scss | 2035 ++--------------- .../src/Resources/assets/sass/components.scss | 57 + .../src/Resources/assets/sass/override.scss | 69 + .../views/home/featured-products.blade.php | 2 +- .../views/home/new-products.blade.php | 2 +- .../Resources/views/products/index.blade.php | 64 +- .../list/layered-navigation.blade.php | 2 - .../views/products/list/toolbar.blade.php | 2 +- public/themes/default/assets/css/shop.css | 1858 +++------------ 9 files changed, 723 insertions(+), 3368 deletions(-) create mode 100644 packages/Webkul/Shop/src/Resources/assets/sass/components.scss create mode 100644 packages/Webkul/Shop/src/Resources/assets/sass/override.scss diff --git a/packages/Webkul/Shop/src/Resources/assets/sass/app.scss b/packages/Webkul/Shop/src/Resources/assets/sass/app.scss index 97f608e66..0ebf9eaad 100644 --- a/packages/Webkul/Shop/src/Resources/assets/sass/app.scss +++ b/packages/Webkul/Shop/src/Resources/assets/sass/app.scss @@ -1,24 +1,229 @@ @import url("https://fonts.googleapis.com/css?family=Montserrat:400,500"); +@import "variables"; @import "icons"; @import "mixins"; -@import "variables"; +@import "override"; +@import "components"; -body { - margin: 0; - padding: 0; - font-weight: 500; - max-width: 100%; + + +//main store front layouting +.main-container-wrapper { + max-width: 90%; width: auto; - color: $font-color; - font-size: $font-size-base; + margin-left: auto; + margin-right: auto; + + .content-container { + display: block; + } + + .product-grid-4 { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); + grid-column-gap: 27px; + grid-row-gap: 15px; + grid-auto-rows: auto; + } + + .product-grid-3 { + display: grid; + grid-template-columns: repeat(3, minmax(240px, 1fr)); + grid-column-gap: 27px; + grid-row-gap: 15px; + grid-auto-rows: auto; + } + + .product-list { + .product-card { + width: 100%; + display: inline-block; + margin-bottom: 20px; + + .product-image { + float: left; + width: 30%; + height: 350px; + + img { + height: 100%; + } + } + + .product-information { + float: right; + width: 70%; + padding-left: 30px; + } + + &:last-child { + margin-bottom: 0; + } + } + } + + section.featured-products { + display: block; + margin-bottom: 5%; + + .featured-heading { + width: 100%; + text-align: center; + text-transform: uppercase; + font-size: 18px; + margin-bottom: 20px; + + .featured-separator { + color: lightgray; + } + } + } + + section.news-update { + display: block; + box-sizing: border-box; + width: 100%; + margin-bottom: 5%; + + .news-update-grid { + display: grid; + grid-template-columns: 58.5% 40%; + grid-gap: 20px; + + .block1 { + display: block; + box-sizing: border-box; + + img { + display: flex; + height: 100%; + width: 100%; + } + } + + .block2 { + display: block; + box-sizing: border-box; + display: grid; + grid-template-rows: repeat(2, minmax(50%, 1fr)); + grid-row-gap: 20px; + + .sub-block1 { + display: block; + box-sizing: border-box; + + img { + width: 100%; + } + } + + .sub-block2 { + display: block; + box-sizing: border-box; + + img { + width: 100%; + } + } + } + } + } } -* { - font-family: "Montserrat", sans-serif; -} +//category page +.main { + .category-block { + display: flex; + flex-direction: row; + width: 100%; -.btn.btn-primary{ - border-radius: 0px; + .category-block { + width: 100%; + display: block; + + .hero-image { + border: 1px solid green; + + img { + width: 100%; + height: 400px; + } + } + } + } + + .top-toolbar { + width: 100%; + display: inline-block; + + .page-info { + float: left; + color: $font-color; + line-height: 45px; + + span:first-child { + display: inline; + } + + span:last-child { + display: none; + } + } + + .pager { + float: right; + + label { + margin-right: 5px; + } + + select { + background: #FFFFFF; + border: 1px solid #C7C7C7; + border-radius: 3px; + color: $font-color; + padding: 10px; + } + + .view-mode { + display: inline-block; + margin-right: 20px; + + a, span { + display: inline-block; + vertical-align: middle; + + &.grid-view { + margin-right: 10px; + } + } + + .sort-filter { + display: none; + } + } + + .sorter { + display: inline-block; + margin-right: 10px; + } + + .limiter { + display: inline-block; + } + } + } + + .reponsive-sorter-limiter { + display: none; + } + + .bottom-toolbar { + display: block; + margin-top: 40px; + margin-bottom: 40px; + text-align: center; + } } .header { @@ -299,314 +504,7 @@ body { } } - -//=======>Need to be removed -// header page responsive css start here -@media all and (max-width: 480px) { - - .header { - // border: 1px solid black; - margin-top: 16px; - margin-bottom: 21px; - - .header-top { - margin-bottom: 16px; - display: flex; - // max-width: 92%; - width: 100%; - margin-left: auto; - margin-right: auto; - // border: 1px solid indigo; - align-items: center; - justify-content: space-between; - - div.left-content { - display: flex; - flex-direction: row; - justify-content: flex-start; - align-items: center; - - ul.logo-container { - margin-right: 12px; - - li { - display: flex; - } - } - - ul.search-container { - li.search-group { - display: none; - } - } - } - - div.right-content { - display: none; - } - - .right-responsive { - display: inherit; - } - } - - .search-suggestion { - display: none; - - .search-content { - border-top: 1px solid $border-color; - border-bottom: 1px solid $border-color; - height: 48px; - - .icon.search-icon { - margin-left: 15px; - margin-top: 12px; - } - - span { - margin-bottom: -7px; - margin-left: 5px; - } - - .right { - float: right; - margin-right: 15px; - } - } - - .suggestion { - margin-top: 14px; - height: 32px; - margin-bottom: 14px; - border-bottom: 1px solid $border-color; - - span { - margin-left: 48px; - } - } - } - - .header-bottom { - height: 200px; - margin-left: auto; - margin-right: auto; - border-top: none; - border-bottom: none; - display: none; - - ul.nav { - width: 100%; - height: 100px; - } - - .nav > li { - float: none; - border-bottom: 1px solid $border-color; - - a { - margin-left: 10px; - } - - .dropdown-right-icon{ - float: right; - margin-top: 5px; - margin-right: 5px; - } - } - - .nav > li:first-child { - border-top: 1px solid $border-color; - } - - .nav > li:last-child { - float:none; - - span { - color: #FF6472; - letter-spacing: -0.38px; - } - - img { - margin-left: 20px; - } - } - - /* submenu positioning*/ - - .nav ul { - position: absolute; - white-space: nowrap; - border: 1px solid #B1B1B1; - background-color:white; - z-index: 1; - left: -99999em; - } - - .nav > li:hover > ul { - left: auto; - min-width: 100%; - } - - .nav > li li:hover > ul { - left: 100%; - margin-left: 1px; - top: -1px; - } - - .nav > li:hover > a:first-child:nth-last-child(2):before { - margin-top:-5px - } - - .nav li li > a:first-child:nth-last-child(2):before { - margin-top: -5px - } - - .nav li li:hover > a:first-child:nth-last-child(2):before { - right: 10px; - } - } - } - -} - -@media all and (min-width: 481px) and (max-width: 920px) { - - .header { - // border: 1px solid black; - margin-top: 16px; - margin-bottom: 21px; - - .header-top { - margin-bottom: 16px; - display: flex; - // max-width: 92%; - width: 100%; - margin-left: auto; - margin-right: auto; - // border: 1px solid indigo; - align-items: center; - justify-content: space-between; - - div.left-content { - display: flex; - flex-direction: row; - justify-content: flex-start; - align-items: center; - - ul.logo-container { - margin-right: 12px; - - li { - display: flex; - } - } - - ul.search-container { - li.search-group { - display: none; - } - } - } - - div.right-content { - display: none; - } - - .right-responsive { - display: inherit; - } - } - - .search-suggestion { - display: none; - } - - .header-bottom { - height: 200px; - margin-left: auto; - margin-right: auto; - border-top: none; - border-bottom: none; - display: none; - - ul.nav { - width: 100%; - height: 100px; - } - - .nav > li { - float: none; - border-bottom: 1px solid $border-color; - - a { - margin-left: 10px; - } - - .dropdown-right-icon{ - float: right; - margin-top: 5px; - margin-right: 5px; - } - } - - .nav > li:first-child { - border-top: 1px solid $border-color; - } - - .nav > li:last-child { - float:none; - - span { - color: #FF6472; - letter-spacing: -0.38px; - } - - img { - margin-left: 20px; - } - } - - /* submenu positioning*/ - - .nav ul { - position: absolute; - white-space: nowrap; - border: 1px solid #B1B1B1; - background-color:white; - z-index: 1; - left: -99999em; - } - - .nav > li:hover > ul { - left: auto; - min-width: 100%; - } - - .nav > li li:hover > ul { - left: 100%; - margin-left: 1px; - top: -1px; - } - - .nav > li:hover > a:first-child:nth-last-child(2):before { - margin-top:-5px - } - - .nav li li > a:first-child:nth-last-child(2):before { - margin-top: -5px - } - - .nav li li:hover > a:first-child:nth-last-child(2):before { - right: 10px; - } - } - } - -} -// header page responsive ends here -//<=======Need to be removed - - +//slider styles section.slider-block { display: block; margin-left: auto; @@ -674,6 +572,7 @@ section.slider-block { } } +//layered filter wrapper styles .layered-filter-wrapper { width: 25%; float: left; @@ -760,487 +659,7 @@ section.slider-block { } } -.main-container-wrapper { - max-width: 80%; - width: auto; - margin-left: auto; - margin-right: auto; - - .content-container { - display: flex; - width: 100%; - flex-direction: row; - } - - .product-grid { - display: grid; - grid-gap: 30px; - - &.max-2-col { - grid-template-columns: repeat(2, minmax(auto, 1fr)); - } - - &.max-3-col { - grid-template-columns: repeat(3, minmax(auto, 1fr)); - } - - &.max-4-col { - grid-template-columns: repeat(4, minmax(auto, 1fr)); - } - } - - .product-card { - - .product-image { - margin-bottom: 10px; - background: #F2F2F2; - - img { - align-self: center; - max-width: 100%; - width: auto; - margin-bottom: 14px; - } - } - - .product-name { - margin-bottom: 14px; - width: 100%; - color: $font-color; - - a { - color: $font-color; - } - } - - .product-description { - margin-bottom: 14px; - display: none; - } - - .product-ratings { - width: 100%; - margin-bottom: 14px; - - .icon { - width: 16px; - height: 16px; - } - - .total-reviews { - display: none; - } - } - - .cart-fav-seg { - display: inline-flex; - width: 100%; - align-items: center; - - .addtocart { - border-radius: 0px; - margin-right: 10px; - text-transform: uppercase; - white-space: nowrap; - } - } - } - - .product-list { - .product-card { - width: 100%; - display: inline-block; - margin-bottom: 20px; - - .product-image { - float: left; - width: 30%; - height: 350px; - - img { - height: 100%; - } - } - - .product-information { - float: right; - width: 70%; - padding-left: 30px; - } - - &:last-child { - margin-bottom: 0; - } - } - } - - .top-toolbar { - width: 100%; - display: inline-block; - margin-bottom: 25px; - - .page-info { - float: left; - color: $font-color; - line-height: 45px; - - span:first-child { - display: inline; - } - - span:last-child { - display: none; - } - } - - .pager { - float: right; - - label { - margin-right: 5px; - } - - select { - background: #FFFFFF; - border: 1px solid #C7C7C7; - border-radius: 3px; - color: $font-color; - padding: 10px; - } - - .view-mode { - display: inline-block; - margin-right: 20px; - - a, span { - display: inline-block; - vertical-align: middle; - - &.grid-view { - margin-right: 10px; - } - } - - .sort-filter { - display: none; - } - } - - .sorter { - display: inline-block; - margin-right: 10px; - } - - .limiter { - display: inline-block; - } - } - } - - .reponsive-sorter-limiter { - display: none; - } - - .bottom-toolbar { - display: block; - margin-top: 40px; - margin-bottom: 40px; - text-align: center; - } - - section.featured-products { - display: block; - margin-bottom: 5%; - - .featured-heading { - width: 100%; - text-align: center; - text-transform: uppercase; - font-size: 18px; - margin-bottom: 20px; - - .featured-separator { - color: lightgray; - } - } - } - - section.news-update { - display: block; - box-sizing: border-box; - width: 100%; - margin-bottom: 5%; - - .news-update-grid { - display: grid; - grid-template-columns: 58.5% 40%; - grid-gap: 20px; - - .block1 { - display: block; - box-sizing: border-box; - - img { - display: flex; - height: 100%; - width: 100%; - } - } - - .block2 { - display: block; - box-sizing: border-box; - display: grid; - grid-template-rows: repeat(2, minmax(50%, 1fr)); - grid-row-gap: 20px; - - .sub-block1 { - display: block; - box-sizing: border-box; - - img { - width: 100%; - } - } - - .sub-block2 { - display: block; - box-sizing: border-box; - - img { - width: 100%; - } - } - } - } - } -} - - -//=======>Need to be removed -// responsive category css start here -@media all and (max-width: 480px) { - - .main-container-wrapper { - - .content-container { - flex-direction: column-reverse; - } - - .layered-filter-wrapper { - display: none; - } - - .main { - width: 92%; - margin-left: 4%; - } - - .product-grid { - - &.max-2-col { - grid-template-columns: repeat( auto-fill, minmax(150px, 1fr) ); - } - - &.max-3-col { - grid-template-columns: repeat( auto-fill, minmax(150px, 1fr) ); - } - - &.max-4-col { - grid-template-columns: repeat( auto-fill, minmax(150px, 1fr) ); - } - } - - .product-card { - - .product-ratings { - .total-reviews { - display: none; - } - } - - .cart-fav-seg { - .addtocart { - font-size: 12px; - } - } - } - - .top-toolbar { - border-bottom: 1px solid $border-color; - margin-bottom: 10px; - - .page-info { - - span:first-child { - display: none; - } - - span:last-child { - display: inline; - font-size: 18px; - } - } - - .pager { - - .view-mode { - margin-right: 0px; - - a, span { - display: none; - - &.grid-view { - display: none; - } - } - - .sort-filter { - margin-top: 15px; - display: inline-block; - } - } - - .sorter { - display: none; - } - - .limiter { - display: none; - } - } - } - - .reponsive-sorter-limiter { - display: none; - - select { - background: #FFFFFF; - border: 1px solid #C7C7C7; - border-radius: 3px; - color: $font-color; - padding: 10px; - } - } - - .bottom-toolbar { - margin-bottom: 80px; - } - } -} - -@media all and (min-width: 481px) and (max-width: 920px) { - - .main-container-wrapper { - - .content-container { - flex-direction: column-reverse; - } - - .layered-filter-wrapper { - display: none; - } - - .main { - width: 92%; - margin-left: 4%; - } - - .product-grid { - - &.max-2-col { - grid-template-columns: repeat( auto-fill, minmax(150px, 1fr) ); - } - - &.max-3-col { - grid-template-columns: repeat( auto-fill, minmax(150px, 1fr) ); - } - - &.max-4-col { - grid-template-columns: repeat( auto-fill, minmax(150px, 1fr) ); - } - } - - .product-card { - - .product-ratings { - .total-reviews { - display: none; - } - } - - .cart-fav-seg { - .addtocart { - font-size: 12px; - } - } - } - - .top-toolbar { - border-bottom: 1px solid $border-color; - margin-bottom: 10px; - - .page-info { - - span:first-child { - display: none; - } - - span:last-child { - display: inline; - font-size: 18px; - } - } - - .pager { - - .view-mode { - margin-right: 0px; - - a, span { - display: none; - - &.grid-view { - display: none; - } - } - - .sort-filter { - margin-top: 15px; - display: inline-block; - } - } - - .sorter { - display: none; - } - - .limiter { - display: none; - } - } - } - - .reponsive-sorter-limiter { - display: none; - - select { - background: #FFFFFF; - border: 1px solid #C7C7C7; - border-radius: 3px; - color: $font-color; - padding: 10px; - } - } - - .bottom-toolbar { - margin-bottom: 80px; - } - } -} -//<=======Need to be removed - - +//product page price styles .product-price { margin-bottom: 14px; width: 100%; @@ -1262,6 +681,7 @@ section.slider-block { } } +//footer responsive with out media query. .footer { background-color: #f2f2f2; padding-left: 10%; @@ -1746,139 +1166,7 @@ section.product-detail { } // product pages css ends here - -//=======>Need to be removed -// products responsive css starts here -@media all and (max-width: 480px) { - - section.product-detail { - - div.category-breadcrumbs { - display: none; - } - - div.layouter { - - form { - display: block; - - div.product-image-group { - margin-right: 0px; - - div { - flex-direction: column-reverse; - - .thumb-list { - height: 140px; - margin-top: 5px; - width:100%; - flex-direction: row; - overflow-x: scroll; - - .thumb-frame { - - img { - height: 100%; - width: auto; - } - } - - .gallery-control { - display: none; - } - } - - .product-hero-image { - width: 100%; - - img { - width: 100%; - } - } - } - } - - .details { - width: 100%; - margin-top: 20px; - border-bottom: 1px solid $border-color; - - .attributes { - border-bottom: none; - } - } - } - } - } - -} - -@media all and (min-width: 481px) and (max-width: 920px) { - - section.product-detail { - - div.category-breadcrumbs { - display: none; - } - - div.layouter { - - form { - display: block; - - div.product-image-group { - margin-right: 0px; - - div { - flex-direction: column-reverse; - - .thumb-list { - height: 140px; - margin-top: 5px; - width:100%; - flex-direction: row; - overflow-x: scroll; - - .thumb-frame { - - img { - height: 100%; - width: auto; - } - } - - .gallery-control { - display: none; - } - } - - .product-hero-image { - width: 100%; - - img { - width: 100%; - } - } - } - } - - .details { - width: 100%; - margin-top: 20px; - border-bottom: 1px solid $border-color; - - .attributes { - border-bottom: none; - } - } - } - } - } - -} -// products responsive css ends here -//<=======Need to be removed - +//rating and reviews of product pages .rating-reviews { .rating-header { @@ -2323,883 +1611,6 @@ section.cart { } } - - - - -//=======>Need to be removed -@media all and (max-width: 480px){ - - .attached-products-wrapper { - - .title { - - .border-bottom { - border-bottom: 1px solid rgba(162, 162, 162, 0.2); - display: inline-block; - width: 100%; - position: initial; - top: 40px; - left: 0%; - margin-left: 0px; - } - } - } -} -//<=======Need to be removed - - - - -//=======>Need to be removed -@media all and (min-width: 481px) and (max-width: 920px) { - - .attached-products-wrapper { - - .title { - - .border-bottom { - border-bottom: 1px solid rgba(162, 162, 162, 0.2); - display: inline-block; - width: 100%; - position: initial; - top: 40px; - left: 0%; - margin-left: 0px; - } - } - } -} -//<=======Need to be removed - - - - -//=======>Need to be removed -// order page css start here -.order { - margin-left: 5.5%; - margin-top: 1%; - width: 100%; - - .order-section-head { - .order-number { - font-size: 28px; - text-transform: capitalize; - text-align: left; - } - - .order-cancel { - font-size: 17px; - margin-top: 1%; - color: $brand-color; - letter-spacing: -0.11px; - float: right; - } - - .order-status { - margin-left: 20px; - font-size: 14px; - color: #FFFFFF; - letter-spacing: -0.12px; - padding: 5px 5px 5px 10px; - background: #2ED04C; - border-radius: 100px; - } - - .horizontal-rule { - margin-top: 1.1%; - width: 100%; - height: 1px; - vertical-align: middle; - background: $border-color; - } - } - - .order-section-head-small { - display: none; - } - - .payment-place { - color: $profile-content-color; - margin-top: 1.4%; - - .placed-on { - display: flex; - flex-direction: row; - - .place-text { - width: 210px; - - span { - color: #5E5E5E; - letter-spacing: -0.12px; - } - - .processing { - display: none; - } - } - - .place-date { - - span { - color: #5E5E5E; - letter-spacing: -0.12px; - } - } - } - - .payment-status { - display: flex; - flex-direction: row; - margin-top: 22px; - - .payment-text { - width: 210px; - - span { - color: #5E5E5E; - letter-spacing: -0.12px; - } - } - - .status { - - span { - color: #5E5E5E; - letter-spacing: -0.12px; - } - } - } - - .horizontal-rule { - margin-top: 1.1%; - width: 100%; - height: 1px; - vertical-align: middle; - background: $border-color; - } - } - - .order-details{ - width:100%; - margin-top: 2.5%; - margin-bottom: 2%; - - .detail{ - font-size: 18px; - color: #8E8E8E; - } - } - - .table { - tbody { - tr { - height: 50px; - border-bottom: 1pt solid #e7e7e7; - } - td { - padding : 16px; - } - } - } - - .total { - margin-top: 2%; - height: 130px; - - .calculate { - width: 300px; - float: right; - - .sub-total { - - span { - font-size: 14px; font-size: 14px; - color: #3A3A3A; - color: #3A3A3A; - } - - .left { - margin-left: 109px; - } - - .middle { - margin-right: 5px; - margin-left: 5px; - } - } - - .ship-handle { - margin-top: 5px; - - span { - font-size: 14px; - color: #3A3A3A; - } - - .left { - margin-left: 24px; - } - - .middle { - margin-right: 5px; - margin-left: 5px; - } - } - - .discount { - margin-top: 5px; - - span { - font-size: 14px; font-size: 14px; - color: #3A3A3A; - } - - .left { - margin-left: 98px; - } - - .middle { - margin-right: 5px; - margin-left: 5px; - } - } - - .grand-total { - margin-top: 5px; - - span { - font-size: 14px; font-size: 14px; - color: #3A3A3A; - font-weight: bold; - } - - .left { - margin-left: 87px; - } - - .middle { - margin-right: 5px; - margin-left: 5px; - } - } - - .due { - margin-top: 5px; - - span { - font-size: 14px; font-size: 14px; - color: #3A3A3A; - font-weight: bold; - } - - .left { - margin-left: 101px; - } - - .middle { - margin-right: 5px; - margin-left: 5px; - } - } - } - } - - .product-config { - display: none; - } - - .horizontal-rule { - width: 100%; - height: 1px; - vertical-align: middle; - background: $border-color; - } - - .order-information { - display: flex; - flex-direction: row; - justify-content: space-between; - margin-top: 2.3%; - - .order-address-method { - width : 250px; - - .address-method{ - font-size: 18px; - color: #8E8E8E; - } - } - - p { - color: #3A3A3A; - - } - } -} -// oder page css end here - -// responsive order page css start here -@media all and (max-width: 480px) { - - .order { - margin-left: 0%; - - .order-section-head { - display: none; - } - - .order-section-head-small { - display: block; - margin-top: -15px; - - span { - display:inline-block; - width:33.3%; - } - - .icon { - float: left; - - img { - margin-top: 11px; - } - } - - .order-number { - text-align: center; - letter-spacing: -0.38px; - text-align: center; - margin-top: 13px; - margin-bottom: 13px; - } - - .cancel { - float: right; - text-align: right; - font-size: 17px; - color: $brand-color; - letter-spacing: -0.11px; - margin-top: 13px; - margin-bottom: 13px; - } - - .horizon-rule { - border: .5px solid $border-color; - width: 150%; - margin-left: -10%; - margin-right: -10%; - } - } - - .payment-place { - color: $profile-content-color; - margin-top: 4%; - - .placed-on { - display: flex; - flex-direction: column; - - .place-text { - width:100%; - - span { - font-size: 14px; - } - - .processing { - display: block; - float: right; - background: #2ED04C; - height: 25px; - border-radius: 100px; - font-size: 14px; - color: #FFFFFF; - letter-spacing: -0.12px; - width: 110px; - text-align: center; - padding-top: 3.5px; - padding-left: 5px; - margin-top: 3px; - } - } - - .place-date{ - margin-top: -5px; - } - } - - .payment-status { - display: flex; - flex-direction: column; - - .payment-text { - - span { - font-size: 14px; - } - } - - .status { - margin-top: 2px; - } - } - - .horizontal-rule { - margin-top: 1.1%; - width: 100%; - height: 1px; - vertical-align: middle; - background: $border-color; - } - } - - .order-details{ - display: none; - } - - .total { - margin-top: 5%; - height: 130px; - - .calculate { - width: 100%; - float: left; - - .sub-total { - - .left { - margin-left: 0px; - width:100px; - } - - .middle { - display: none; - } - - .right { - float:right; - width:25%; - } - } - - .ship-handle { - - .left { - margin-left: 0px; - } - - .middle { - display: none; - } - - .right { - float:right; - width:25%; - } - } - - .discount { - - .left { - margin-left: 0px; - } - - .middle { - display: none; - } - - .right { - float:right; - width:25%; - } - } - - .grand-total { - - .left { - margin-left: 0px; - } - - .middle { - display: none; - } - - .right { - float:right; - width:25%; - } - } - - .due { - - .left { - margin-left: 0px; - } - - .middle { - display: none; - } - - .right { - float:right; - width:25%; - } - } - } - } - - .horizontal-rule { - display: none; - } - - .table { - display:none; - } - - .product-config { - border: 1px solid $border-color; - height: 19%; - width:100%; - margin-top: 10px; - display: block; - - .product-attribute { - display: flex; - flex-direction: row; - - .product-property { - width: 30%; - margin-top: 10px; - margin-left: 5px; - - span { - font-size: 14px; - color: #5E5E5E; - letter-spacing: -0.11px; - } - } - - .property-name { - margin-top: 10px; - width:50%; - - span { - color: #5E5E5E; - letter-spacing: -0.11px; - } - } - } - - } - - .order-information { - flex-direction: column; - - .order-address-method { - width : 250px; - } - - .order-address-method:nth-child(3) { - margin-top: 10px; - } - - .order-address-method:nth-child(2) { - margin-top: 10px; - } - - .order-address-method:nth-child(4) { - margin-top: 10px; - } - - } - } -} - -@media all and (min-width: 481px) and (max-width: 920px) { - - .order { - margin-left: 0%; - - .order-section-head { - display: none; - } - - .order-section-head-small { - display: block; - margin-top: -15px; - - span { - display:inline-block; - width:33.3%; - } - - .icon { - float: left; - - img { - margin-top: 11px; - } - } - - .order-number { - text-align: center; - letter-spacing: -0.38px; - text-align: center; - margin-top: 13px; - margin-bottom: 13px; - } - - .cancel { - float: right; - text-align: right; - font-size: 17px; - color: $brand-color; - letter-spacing: -0.11px; - margin-top: 13px; - margin-bottom: 13px; - } - - .horizon-rule { - border: .5px solid $border-color; - width: 150%; - margin-left: -10%; - margin-right: -10%; - } - } - - .payment-place { - color: $profile-content-color; - margin-top: 4%; - - .placed-on { - display: flex; - flex-direction: column; - - .place-text { - width:100%; - - span { - font-size: 14px; - } - - .processing { - display: block; - float: right; - background: #2ED04C; - height: 25px; - border-radius: 100px; - font-size: 14px; - color: #FFFFFF; - letter-spacing: -0.12px; - width: 110px; - text-align: center; - padding-top: 3.5px; - padding-left: 5px; - margin-top: 3px; - } - } - - .place-date{ - margin-top: -5px; - } - } - - .payment-status { - display: flex; - flex-direction: column; - - .payment-text { - - span { - font-size: 14px; - } - } - - .status { - margin-top: 2px; - } - } - - .horizontal-rule { - margin-top: 1.1%; - width: 100%; - height: 1px; - vertical-align: middle; - background: $border-color; - } - } - - .order-details{ - display: none; - } - - .total { - margin-top: 5%; - height: 130px; - - .calculate { - width: 100%; - float: left; - - .sub-total { - - .left { - margin-left: 0px; - width:100px; - } - - .middle { - display: none; - } - - .right { - float:right; - width:25%; - } - } - - .ship-handle { - - .left { - margin-left: 0px; - } - - .middle { - display: none; - } - - .right { - float:right; - width:25%; - } - } - - .discount { - - .left { - margin-left: 0px; - } - - .middle { - display: none; - } - - .right { - float:right; - width:25%; - } - } - - .grand-total { - - .left { - margin-left: 0px; - } - - .middle { - display: none; - } - - .right { - float:right; - width:25%; - } - } - - .due { - - .left { - margin-left: 0px; - } - - .middle { - display: none; - } - - .right { - float:right; - width:25%; - } - } - } - } - - .horizontal-rule { - display: none; - } - - .table { - display:none; - } - - .product-config { - border: 1px solid $border-color; - height: 19%; - width:100%; - margin-top: 10px; - display: block; - - .product-attribute { - display: flex; - flex-direction: row; - - .product-property { - width: 30%; - margin-top: 10px; - margin-left: 5px; - - span { - font-size: 14px; - color: #5E5E5E; - letter-spacing: -0.11px; - } - } - - .property-name { - margin-top: 10px; - width:50%; - - span { - color: #5E5E5E; - letter-spacing: -0.11px; - } - } - } - - } - - .order-information { - flex-direction: column; - - .order-address-method { - width : 250px; - } - - .order-address-method:nth-child(3) { - margin-top: 10px; - } - - .order-address-method:nth-child(2) { - margin-top: 10px; - } - - .order-address-method:nth-child(4) { - margin-top: 10px; - } - - } - } - -} -// responsive order css end here -//<=======Need to be removed - - - - // review page start here section.review { color: $font-color; diff --git a/packages/Webkul/Shop/src/Resources/assets/sass/components.scss b/packages/Webkul/Shop/src/Resources/assets/sass/components.scss new file mode 100644 index 000000000..c530f9745 --- /dev/null +++ b/packages/Webkul/Shop/src/Resources/assets/sass/components.scss @@ -0,0 +1,57 @@ +// product card, requires no changes for responsiveness. +.product-card { + + .product-image { + max-height: 350px; + max-width: 280px; + margin-bottom: 10px; + background: #F2F2F2; + + img { + display: block; + width: 100%; + } + } + + .product-name { + margin-bottom: 14px; + width: 100%; + color: $font-color; + + a { + color: $font-color; + } + } + + .product-description { + margin-bottom: 14px; + display: none; + } + + .product-ratings { + width: 100%; + margin-bottom: 14px; + + .icon { + width: 16px; + height: 16px; + } + + .total-reviews { + display: none; + } + } + + .cart-fav-seg { + display: inline-flex; + width: 100%; + align-items: center; + + .addtocart { + border-radius: 0px; + margin-right: 10px; + text-transform: uppercase; + white-space: nowrap; + } + } +} \ No newline at end of file diff --git a/packages/Webkul/Shop/src/Resources/assets/sass/override.scss b/packages/Webkul/Shop/src/Resources/assets/sass/override.scss new file mode 100644 index 000000000..d3e70d2c1 --- /dev/null +++ b/packages/Webkul/Shop/src/Resources/assets/sass/override.scss @@ -0,0 +1,69 @@ +body { + margin: 0; + padding: 0; + font-weight: 500; + max-width: 100%; + width: auto; + color: $font-color; + font-size: $font-size-base; +} + +* { + font-family: "Montserrat", sans-serif; +} + +.btn.btn-primary{ + border-radius: 0px; +} + +.mb-10 { + margin-bottom: 10px; +} + +.mb-15 { + margin-bottom: 15px; +} + +.mb-20 { + margin-bottom: 20px; +} + +.mb-25 { + margin-bottom: 25px; +} + +.mb-30 { + margin-bottom: 30px; +} + +.mb-35 { + margin-bottom: 35px; +} + +.mb-40 { + margin-bottom: 40px; +} + +.mb-45 { + margin-bottom: 45px; +} + +.mb-50 { + margin-bottom: 50px; +} + +.mb-60 { + margin-bottom: 60px; +} + +.mb-70 { + margin-bottom: 70px; +} + +.mb-80 { + margin-bottom: 80px; +} + +.mb-90 { + margin-bottom: 90px; +} \ No newline at end of file diff --git a/packages/Webkul/Shop/src/Resources/views/home/featured-products.blade.php b/packages/Webkul/Shop/src/Resources/views/home/featured-products.blade.php index 31ea188d9..9e7815d0c 100644 --- a/packages/Webkul/Shop/src/Resources/views/home/featured-products.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/home/featured-products.blade.php @@ -4,7 +4,7 @@ _____ -