spree_frontend 4.0.9 → 4.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/app/assets/images/arrow-right.svg +1 -0
- data/app/assets/images/arrow.svg +1 -0
- data/app/assets/images/bag.svg +1 -0
- data/app/assets/images/burger.svg +1 -0
- data/app/assets/images/check-mark-circle.png +0 -0
- data/app/assets/images/check-mark-circle.svg +1 -0
- data/app/assets/images/check-mark.svg +1 -0
- data/app/assets/images/circle-radio.svg +1 -0
- data/app/assets/images/circle.svg +1 -0
- data/app/assets/images/close.svg +1 -0
- data/app/assets/images/credit_cards/icons/american_express.svg +1 -0
- data/app/assets/images/credit_cards/icons/diners_club.svg +1 -0
- data/app/assets/images/credit_cards/icons/discover.svg +1 -0
- data/app/assets/images/credit_cards/icons/generic.svg +1 -0
- data/app/assets/images/credit_cards/icons/jcb.svg +1 -0
- data/app/assets/images/credit_cards/icons/maestro.svg +1 -0
- data/app/assets/images/credit_cards/icons/master.svg +1 -0
- data/app/assets/images/credit_cards/icons/visa.svg +1 -0
- data/app/assets/images/edit.svg +1 -0
- data/app/assets/images/empty-cart.svg +1 -0
- data/app/assets/images/error.svg +1 -0
- data/app/assets/images/facebook.svg +1 -0
- data/app/assets/images/full_circle-radio.svg +1 -0
- data/app/assets/images/full_circle.svg +1 -0
- data/app/assets/images/garbage.svg +1 -0
- data/app/assets/images/garbage_2.svg +1 -0
- data/app/assets/images/homepage/big_category_banner.jpg +0 -0
- data/app/assets/images/homepage/big_category_banner_mobile.jpg +0 -0
- data/app/assets/images/homepage/big_category_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/big_category_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/category_banner_lower.jpg +0 -0
- data/app/assets/images/homepage/category_banner_lower_mobile.jpg +0 -0
- data/app/assets/images/homepage/category_banner_lower_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/category_banner_lower_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/category_banner_upper.jpg +0 -0
- data/app/assets/images/homepage/category_banner_upper_mobile.jpg +0 -0
- data/app/assets/images/homepage/category_banner_upper_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/category_banner_upper_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/main_banner.jpg +0 -0
- data/app/assets/images/homepage/main_banner_mobile.jpg +0 -0
- data/app/assets/images/homepage/main_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/main_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/products.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_left.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_left_mobile.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_left_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_left_tablet_portrait.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_right.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_right_mobile.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_right_tablet_landscape.jpg +0 -0
- data/app/assets/images/homepage/promo_banner_right_tablet_portrait.jpg +0 -0
- data/app/assets/images/instagram.svg +1 -0
- data/app/assets/images/logo-spree.png +0 -0
- data/app/assets/images/logo.png +0 -0
- data/app/assets/images/logo.svg +1 -0
- data/app/assets/images/logo@2x.png +0 -0
- data/app/assets/images/logo@3x.png +0 -0
- data/app/assets/images/magnifying-glass.svg +1 -0
- data/app/assets/images/meganav/promo_banner_left-first-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_left-second-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_left-third-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_right-first-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_right-second-category.jpg +0 -0
- data/app/assets/images/meganav/promo_banner_right-third-category.jpg +0 -0
- data/app/assets/images/minus.svg +1 -0
- data/app/assets/images/noimage/big_category_banner.jpg +0 -0
- data/app/assets/images/noimage/big_category_banner_mobile.jpg +0 -0
- data/app/assets/images/noimage/big_category_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/noimage/big_category_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/noimage/category_banner.jpg +0 -0
- data/app/assets/images/noimage/category_banner_mobile.jpg +0 -0
- data/app/assets/images/noimage/category_banner_plp.jpg +0 -0
- data/app/assets/images/noimage/category_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/noimage/category_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/noimage/main_banner.jpg +0 -0
- data/app/assets/images/noimage/main_banner_mobile.jpg +0 -0
- data/app/assets/images/noimage/main_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/noimage/main_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/noimage/plp.png +0 -0
- data/app/assets/images/noimage/product_photo.jpg +0 -0
- data/app/assets/images/noimage/promo_banner.jpg +0 -0
- data/app/assets/images/noimage/promo_banner_megamenu.jpg +0 -0
- data/app/assets/images/noimage/promo_banner_mobile.jpg +0 -0
- data/app/assets/images/noimage/promo_banner_tablet_landscape.jpg +0 -0
- data/app/assets/images/noimage/promo_banner_tablet_portrait.jpg +0 -0
- data/app/assets/images/pagination-arrow-right.svg +12 -0
- data/app/assets/images/pagination-double-arrow-right.svg +15 -0
- data/app/assets/images/person.svg +1 -0
- data/app/assets/images/picture-zoom.svg +31 -0
- data/app/assets/images/plus.svg +1 -0
- data/app/assets/images/radio-button.svg +1 -0
- data/app/assets/images/search-no-results.svg +1 -0
- data/app/assets/images/search.svg +1 -0
- data/app/assets/images/spark-logo@3x.png +0 -0
- data/app/assets/images/twitter.svg +1 -0
- data/app/assets/images/vimeo.svg +1 -0
- data/app/assets/javascripts/spree/frontend/account.js +12 -0
- data/app/assets/javascripts/spree/frontend/api_tokens.js +4 -1
- data/app/assets/javascripts/spree/frontend/carousel-noconflict.js +3 -0
- data/app/assets/javascripts/spree/frontend/cart.js +61 -3
- data/app/assets/javascripts/spree/frontend/checkout/payment.js +24 -6
- data/app/assets/javascripts/spree/frontend/checkout/shipment.js +1 -1
- data/app/assets/javascripts/spree/frontend/checkout.js +42 -0
- data/app/assets/javascripts/spree/frontend/components-bootstrap/.gitkeep +0 -0
- data/app/assets/javascripts/spree/frontend/components-custom/.gitkeep +0 -0
- data/app/assets/javascripts/spree/frontend/coupon_manager.js +49 -1
- data/app/assets/javascripts/spree/frontend/viewport.js +7 -0
- data/app/assets/javascripts/spree/frontend/views/spree/home/product_carousels.js +31 -0
- data/app/assets/javascripts/spree/frontend/views/spree/layouts/spree_application.js +35 -0
- data/app/assets/javascripts/spree/frontend/views/spree/product/related.js +30 -0
- data/app/assets/javascripts/spree/frontend/views/spree/products/cart_form.js +280 -0
- data/app/assets/javascripts/spree/frontend/views/spree/products/description.js +8 -0
- data/app/assets/javascripts/spree/frontend/views/spree/products/index.js +37 -0
- data/app/assets/javascripts/spree/frontend/views/spree/products/modal_carousel.js +35 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/carousel/single.js +139 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/carousel/swipes.js +53 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/carousel/thumbnails.js +137 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/carousel.js +129 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/delete_address_popup.js +27 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/mobile_navigation.js +123 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/nav_bar.js +16 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/product_added_modal.js +28 -0
- data/app/assets/javascripts/spree/frontend/views/spree/shared/quantity_select.js +58 -0
- data/app/assets/javascripts/spree/frontend.js +9 -7
- data/app/assets/javascripts/spree/lazysizes.config.js +8 -0
- data/app/assets/stylesheets/spree/frontend/application.scss +54 -0
- data/app/assets/stylesheets/spree/frontend/bootstrap-patches.scss +11 -0
- data/app/assets/stylesheets/spree/frontend/components-bootstrap/.gitkeep +0 -0
- data/app/assets/stylesheets/spree/frontend/components-bootstrap/alert.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/components-bootstrap/button.scss +8 -0
- data/app/assets/stylesheets/spree/frontend/components-bootstrap/carousel.scss +85 -0
- data/app/assets/stylesheets/spree/frontend/components-bootstrap/modal.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/components-custom/.gitkeep +0 -0
- data/app/assets/stylesheets/spree/frontend/components-custom/headers.scss +28 -0
- data/app/assets/stylesheets/spree/frontend/components-custom/inputs.scss +265 -0
- data/app/assets/stylesheets/spree/frontend/fonts.scss +137 -0
- data/app/assets/stylesheets/spree/frontend/functions.scss +104 -0
- data/app/assets/stylesheets/spree/frontend/helpers/spree/frontend_helper.scss +23 -0
- data/app/assets/stylesheets/spree/frontend/margins.scss +53 -0
- data/app/assets/stylesheets/spree/frontend/mixins.scss +20 -0
- data/app/assets/stylesheets/spree/frontend/variables/.gitkeep +0 -0
- data/app/assets/stylesheets/spree/frontend/variables/bootstrap-overrides.scss +40 -0
- data/app/assets/stylesheets/spree/frontend/variables/helper-variables.scss +10 -0
- data/app/assets/stylesheets/spree/frontend/variables/variables.scss +20 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/.gitkeep +0 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/confirm.scss +255 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/edit.scss +505 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/payment.scss +98 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/checkout/registration.scss +26 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/errors/not_found.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/home/index.scss +293 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/icon.scss +13 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/layouts/spree_application.scss +44 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/orders/edit.scss +467 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/orders/show.scss +273 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/products/cart_form.scss +250 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/products/index.scss +317 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/products/show.scss +165 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/_color_select.scss +27 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/_images.scss +9 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/carousel/single.scss +142 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/carousel/thumbnails.scss +97 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/cart.scss +57 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/category_nav_bar.scss +86 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/delete_address_popup.scss +141 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/footer.scss +56 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/header.scss +82 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/login.scss +30 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/main_nav_bar.scss +103 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/mobile_navigation.scss +87 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/nav_bar.scss +78 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/no_product_available.scss +135 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/order_details.scss +37 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/product.scss +45 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/product_added_modal.scss +61 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/quantity_select.scss +55 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/shared/registration.scss +7 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/taxons/show.scss +47 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/user_passwords/user_passwords.scss +12 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/user_sessions/new.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/views/spree/users/show.scss +325 -0
- data/app/assets/stylesheets/spree/frontend.css +1 -1
- data/app/controllers/concerns/spree/checkout/address_book.rb +7 -9
- data/app/controllers/spree/addresses_controller.rb +5 -6
- data/app/controllers/spree/checkout_controller.rb +3 -1
- data/app/controllers/spree/home_controller.rb +1 -5
- data/app/controllers/spree/orders_controller.rb +3 -1
- data/app/controllers/spree/products_controller.rb +45 -15
- data/app/controllers/spree/store_controller.rb +14 -2
- data/app/controllers/spree/taxons_controller.rb +20 -5
- data/app/helpers/spree/addresses_helper.rb +11 -12
- data/app/helpers/spree/frontend_helper.rb +168 -14
- data/app/helpers/spree/navigation_helper.rb +34 -0
- data/app/helpers/spree/structured_data_helper.rb +3 -3
- data/app/helpers/spree/taxons_helper.rb +4 -0
- data/app/models/spree/frontend_configuration.rb +1 -0
- data/app/views/kaminari/twitter-bootstrap-4/_first_page.html.erb +1 -1
- data/app/views/kaminari/twitter-bootstrap-4/_gap.html.erb +1 -1
- data/app/views/kaminari/twitter-bootstrap-4/_last_page.html.erb +1 -1
- data/app/views/kaminari/twitter-bootstrap-4/_next_page.html.erb +1 -1
- data/app/views/kaminari/twitter-bootstrap-4/_prev_page.html.erb +1 -1
- data/app/views/spree/address/_form.html.erb +24 -27
- data/app/views/spree/addresses/_form.html.erb +13 -8
- data/app/views/spree/addresses/edit.html.erb +11 -21
- data/app/views/spree/addresses/new.html.erb +11 -21
- data/app/views/spree/checkout/_address.html.erb +61 -54
- data/app/views/spree/checkout/_confirm.html.erb +112 -16
- data/app/views/spree/checkout/_credit_card.html.erb +9 -0
- data/app/views/spree/checkout/_delivery.html.erb +10 -86
- data/app/views/spree/checkout/_payment.html.erb +39 -64
- data/app/views/spree/checkout/_summary.html.erb +46 -73
- data/app/views/spree/checkout/edit.html.erb +22 -25
- data/app/views/spree/checkout/payment/_gateway.html.erb +14 -34
- data/app/views/spree/checkout/payment/_storecredit.html.erb +8 -8
- data/app/views/spree/checkout/registration.html.erb +30 -0
- data/app/views/spree/errors/not_found.html.erb +7 -0
- data/app/views/spree/home/index.html.erb +124 -10
- data/app/views/spree/layouts/checkout.html.erb +26 -0
- data/app/views/spree/layouts/spree_application.html.erb +10 -15
- data/app/views/spree/orders/_coupon_code.html.erb +24 -0
- data/app/views/spree/orders/_form.html.erb +25 -39
- data/app/views/spree/orders/_line_item.html.erb +19 -25
- data/app/views/spree/orders/_line_item_data.html.erb +31 -0
- data/app/views/spree/orders/edit.html.erb +50 -40
- data/app/views/spree/orders/show.html.erb +83 -17
- data/app/views/spree/products/_cart_form.html.erb +69 -73
- data/app/views/spree/products/_cart_form_availability_templates.html.erb +10 -0
- data/app/views/spree/products/_color_option_type.html.erb +36 -0
- data/app/views/spree/products/_description.html.erb +17 -0
- data/app/views/spree/products/_filter_and_sort_mobile_buttons.html.erb +16 -0
- data/app/views/spree/products/_filters_desktop.html.erb +58 -0
- data/app/views/spree/products/_filters_mobile.html.erb +62 -0
- data/app/views/spree/products/_gallery.html.erb +31 -0
- data/app/views/spree/products/_gallery_modal.html.erb +33 -0
- data/app/views/spree/products/_no_results.html.erb +14 -0
- data/app/views/spree/products/_no_results_with_filters.html.erb +13 -0
- data/app/views/spree/products/_option_type.html.erb +32 -0
- data/app/views/spree/products/_product.html.erb +5 -5
- data/app/views/spree/products/_promotions.html.erb +19 -12
- data/app/views/spree/products/_properties.html.erb +9 -20
- data/app/views/spree/products/_sort_desktop.html.erb +30 -0
- data/app/views/spree/products/_sort_mobile.html.erb +43 -0
- data/app/views/spree/products/_taxons.html.erb +1 -0
- data/app/views/spree/products/index.html.erb +40 -24
- data/app/views/spree/products/related.html.erb +8 -0
- data/app/views/spree/products/show.html.erb +39 -37
- data/app/views/spree/shared/_address.html.erb +0 -12
- data/app/views/spree/shared/_breadcrumbs.html.erb +23 -0
- data/app/views/spree/shared/_carousel_4_products.html.erb +99 -0
- data/app/views/spree/shared/_cart.html.erb +11 -0
- data/app/views/spree/shared/_checkout_header.html.erb +19 -0
- data/app/views/spree/shared/_color_select.html.erb +9 -0
- data/app/views/spree/shared/_copyright.html.erb +18 -0
- data/app/views/spree/shared/_delete_address_popup.html.erb +26 -0
- data/app/views/spree/shared/_error_messages.html.erb +2 -4
- data/app/views/spree/shared/_flashes.html.erb +9 -0
- data/app/views/spree/shared/_footer.html.erb +73 -0
- data/app/views/spree/shared/_head.html.erb +4 -9
- data/app/views/spree/shared/_header.html.erb +26 -13
- data/app/views/spree/shared/_link_to_account.html.erb +7 -0
- data/app/views/spree/shared/_link_to_cart.html.erb +2 -1
- data/app/views/spree/shared/_login.html.erb +34 -17
- data/app/views/spree/shared/_main_nav_bar.html.erb +41 -15
- data/app/views/spree/shared/_mobile_navigation.html.erb +68 -0
- data/app/views/spree/shared/_nav_bar.html.erb +52 -6
- data/app/views/spree/shared/_no_product_available.html.erb +23 -0
- data/app/views/spree/shared/_option_values.html.erb +24 -0
- data/app/views/spree/shared/_order_details.html.erb +5 -4
- data/app/views/spree/shared/_payment.html.erb +0 -3
- data/app/views/spree/shared/_payment_sources.html.erb +8 -0
- data/app/views/spree/shared/_product.html.erb +12 -0
- data/app/views/spree/shared/_product_added_modal.html.erb +66 -0
- data/app/views/spree/shared/_products.html.erb +22 -18
- data/app/views/spree/shared/_quantity_select.html.erb +6 -0
- data/app/views/spree/shared/_registration.html.erb +4 -0
- data/app/views/spree/shared/_search.html.erb +17 -20
- data/app/views/spree/shared/_translations.html.erb +9 -5
- data/app/views/spree/shared/_user_form.html.erb +12 -0
- data/app/views/spree/shared/carousel/_single.html.erb +83 -0
- data/app/views/spree/shared/carousel/_thumbnails.html.erb +68 -0
- data/app/views/spree/taxons/_header.html.erb +19 -0
- data/app/views/spree/taxons/_subcategories.html.erb +26 -0
- data/app/views/spree/taxons/product_carousel.html.erb +5 -0
- data/app/views/spree/taxons/show.html.erb +8 -20
- data/app/views/spree/users/_address.html.erb +25 -0
- data/app/views/spree/users/edit.html.erb +11 -0
- data/app/views/spree/users/show.html.erb +79 -0
- data/config/initializers/assets.rb +13 -1
- data/config/routes.rb +3 -0
- data/lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb +24 -0
- data/lib/spree/frontend.rb +2 -0
- data/spree_frontend.gemspec +7 -11
- data/vendor/assets/javascripts/lazysizes.min.js +2 -0
- metadata +265 -25
- data/README.md +0 -50
- data/app/assets/javascripts/spree/frontend/product.js +0 -143
- data/app/assets/stylesheets/spree/frontend/_variables.scss +0 -4
- data/app/assets/stylesheets/spree/frontend/frontend_bootstrap.css.scss +0 -94
- data/app/views/spree/shared/_filters.html.erb +0 -48
- data/app/views/spree/shared/_login_bar.html.erb +0 -12
- data/app/views/spree/taxons/_taxon.html.erb +0 -4
- data/lib/generators/spree/frontend/copy_views/copy_views_generator.rb +0 -15
@@ -0,0 +1,273 @@
|
|
1
|
+
.order-show {
|
2
|
+
padding-bottom: 40px;
|
3
|
+
font-weight: 500;
|
4
|
+
|
5
|
+
& > .order-show-check-mark {
|
6
|
+
color: $secondary-color;
|
7
|
+
margin-bottom: 25px;
|
8
|
+
@include media-breakpoint-up(sm) {
|
9
|
+
margin-bottom: 42px;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
h5 {
|
14
|
+
@include media-breakpoint-up(sm) {
|
15
|
+
font-size: font-px-to-rem(29px);
|
16
|
+
line-height: 18px;
|
17
|
+
letter-spacing: 0.73px;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
dd {
|
22
|
+
font-size: font-px-to-rem(14px);
|
23
|
+
margin-bottom: 30px;
|
24
|
+
@include media-breakpoint-up(sm) {
|
25
|
+
padding-bottom: 0px;
|
26
|
+
margin-bottom: 60px;
|
27
|
+
font-size: font-px-to-rem(27px);
|
28
|
+
}
|
29
|
+
@include media-breakpoint-up(lg) {
|
30
|
+
font-size: font-px-to-rem(18px);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
dt {
|
35
|
+
font-weight: 500;
|
36
|
+
margin-bottom: 18px;
|
37
|
+
@include media-breakpoint-up(sm) {
|
38
|
+
padding: 0;
|
39
|
+
margin-bottom: 32px;
|
40
|
+
font-size: font-px-to-rem(30px);
|
41
|
+
}
|
42
|
+
@include media-breakpoint-up(lg) {
|
43
|
+
font-size: font-px-to-rem(22px);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
&-number {
|
48
|
+
margin-top: 100px;
|
49
|
+
margin-bottom: 38px;
|
50
|
+
@include media-breakpoint-up(sm) {
|
51
|
+
margin-top: 80px;
|
52
|
+
margin-bottom: 60px;
|
53
|
+
font-size: font-px-to-rem(25px);
|
54
|
+
}
|
55
|
+
@include media-breakpoint-up(lg) {
|
56
|
+
margin-top: 60px;
|
57
|
+
font-size: font-px-to-rem(26px);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
&-explain {
|
62
|
+
margin: 31px 0 0;
|
63
|
+
font-size: 23px;
|
64
|
+
}
|
65
|
+
|
66
|
+
&-line-items {
|
67
|
+
@include media-breakpoint-up(lg) {
|
68
|
+
border: none;
|
69
|
+
flex: 1 1 0;
|
70
|
+
}
|
71
|
+
|
72
|
+
&-header {
|
73
|
+
font-size: font-px-to-rem(27px);
|
74
|
+
}
|
75
|
+
|
76
|
+
&-line-item {
|
77
|
+
&:not(:last-child) {
|
78
|
+
margin-bottom: 26px;
|
79
|
+
}
|
80
|
+
|
81
|
+
@include media-breakpoint-up(sm) {
|
82
|
+
border-bottom: 1px solid $global-border-style;
|
83
|
+
padding-top: 40px;
|
84
|
+
padding-bottom: 40px;
|
85
|
+
|
86
|
+
&:first-child {
|
87
|
+
border-top: 1px solid $global-border-style;
|
88
|
+
}
|
89
|
+
|
90
|
+
&:not(:last-child) {
|
91
|
+
margin-bottom: 0;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
@include media-breakpoint-up(lg) {
|
96
|
+
border-bottom: none;
|
97
|
+
padding-top: 0;
|
98
|
+
padding-bottom: 60px;
|
99
|
+
|
100
|
+
&:first-child {
|
101
|
+
border-top: none;
|
102
|
+
}
|
103
|
+
|
104
|
+
&:last-child {
|
105
|
+
padding-bottom: 0;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
a {
|
110
|
+
max-width: 50%;
|
111
|
+
margin-right: 20px;
|
112
|
+
|
113
|
+
@include media-breakpoint-up(lg) {
|
114
|
+
margin-right: 40px;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
img {
|
119
|
+
width: 73px;
|
120
|
+
height: auto;
|
121
|
+
|
122
|
+
@include media-breakpoint-up(sm) {
|
123
|
+
width: 205px;
|
124
|
+
}
|
125
|
+
|
126
|
+
@include media-breakpoint-up(lg) {
|
127
|
+
width: 162px;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
&-desc {
|
132
|
+
display: grid;
|
133
|
+
justify-content: space-between;
|
134
|
+
grid-template:
|
135
|
+
'n' fit-content(20px)
|
136
|
+
's' fit-content(20px)
|
137
|
+
'p' fit-content(20px)
|
138
|
+
'q' fit-content(20px)
|
139
|
+
't' fit-content(20px);
|
140
|
+
|
141
|
+
@include media-breakpoint-up(sm) {
|
142
|
+
font-size: font-px-to-rem(26px);
|
143
|
+
}
|
144
|
+
@include media-breakpoint-up(lg) {
|
145
|
+
grid-template: fit-content(40px) fit-content(22px) 1fr fit-content(60px) / repeat(3, 1fr);
|
146
|
+
grid-template-areas: 'n n n'
|
147
|
+
's s s'
|
148
|
+
'. . .'
|
149
|
+
'p q t';
|
150
|
+
}
|
151
|
+
|
152
|
+
&-name {
|
153
|
+
grid-area: n;
|
154
|
+
font-size: font-px-to-rem(14px);
|
155
|
+
@include media-breakpoint-up(sm) {
|
156
|
+
font-size: font-px-to-rem(27px);
|
157
|
+
}
|
158
|
+
@include media-breakpoint-up(lg) {
|
159
|
+
font-size: font-px-to-rem(32px);
|
160
|
+
}
|
161
|
+
}
|
162
|
+
|
163
|
+
&-subtitle {
|
164
|
+
grid-area: s;
|
165
|
+
font-size: font-px-to-rem(12px);
|
166
|
+
ul {
|
167
|
+
li {
|
168
|
+
display: inline;
|
169
|
+
&:not(:last-child):after {
|
170
|
+
content: ', ';
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
@include media-breakpoint-up(sm) {
|
175
|
+
font-size: font-px-to-rem(22px);
|
176
|
+
}
|
177
|
+
@include media-breakpoint-up(lg) {
|
178
|
+
font-size: font-px-to-rem(16px);
|
179
|
+
}
|
180
|
+
}
|
181
|
+
&-price {
|
182
|
+
grid-area: p;
|
183
|
+
font-size: font-px-to-rem(12px);
|
184
|
+
@include media-breakpoint-up(sm) {
|
185
|
+
font-size: font-px-to-rem(26px);
|
186
|
+
}
|
187
|
+
@include media-breakpoint-up(lg) {
|
188
|
+
font-size: font-px-to-rem(20px);
|
189
|
+
}
|
190
|
+
div:last-child {
|
191
|
+
@include media-breakpoint-up(lg) {
|
192
|
+
font-size: font-px-to-rem(22px);
|
193
|
+
}
|
194
|
+
}
|
195
|
+
&-attr-name {
|
196
|
+
@include media-breakpoint-down(lg) {
|
197
|
+
span:after {
|
198
|
+
content: ':';
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
&-quantity {
|
204
|
+
grid-area: q;
|
205
|
+
font-size: font-px-to-rem(12px);
|
206
|
+
@include media-breakpoint-up(sm) {
|
207
|
+
font-size: font-px-to-rem(27px);
|
208
|
+
}
|
209
|
+
@include media-breakpoint-up(lg) {
|
210
|
+
font-size: font-px-to-rem(20px);
|
211
|
+
}
|
212
|
+
span {
|
213
|
+
@include media-breakpoint-up(lg) {
|
214
|
+
font-size: font-px-to-rem(22px);
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
&-total {
|
219
|
+
grid-area: t;
|
220
|
+
font-size: font-px-to-rem(12px);
|
221
|
+
@include media-breakpoint-up(sm) {
|
222
|
+
font-size: font-px-to-rem(27px);
|
223
|
+
}
|
224
|
+
@include media-breakpoint-up(lg) {
|
225
|
+
font-size: font-px-to-rem(20px);
|
226
|
+
}
|
227
|
+
div:last-child {
|
228
|
+
@include media-breakpoint-up(lg) {
|
229
|
+
font-size: font-px-to-rem(22px);
|
230
|
+
}
|
231
|
+
}
|
232
|
+
&-attr-name {
|
233
|
+
@include media-breakpoint-down(lg) {
|
234
|
+
span:after {
|
235
|
+
content: ':';
|
236
|
+
}
|
237
|
+
}
|
238
|
+
}
|
239
|
+
}
|
240
|
+
&-quantity {
|
241
|
+
&-val {
|
242
|
+
@include media-breakpoint-up(lg) {
|
243
|
+
font-weight: bold;
|
244
|
+
}
|
245
|
+
}
|
246
|
+
&-attr-name {
|
247
|
+
@include media-breakpoint-down(lg) {
|
248
|
+
span:after {
|
249
|
+
content: ':';
|
250
|
+
}
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}
|
254
|
+
&-check-mark {
|
255
|
+
padding-bottom: 25px;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
}
|
259
|
+
}
|
260
|
+
#checkout-summary {
|
261
|
+
margin-top: 30px;
|
262
|
+
@include media-breakpoint-up(sm) {
|
263
|
+
margin-top: 75px;
|
264
|
+
}
|
265
|
+
@include media-breakpoint-up(lg) {
|
266
|
+
flex: 0 0 40%;
|
267
|
+
align-self: flex-start;
|
268
|
+
max-width: 380px;
|
269
|
+
margin-top: 0px;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
}
|
273
|
+
|
@@ -0,0 +1,250 @@
|
|
1
|
+
.add-to-cart-form {
|
2
|
+
&-price {
|
3
|
+
font-size: font-px-to-rem(24px);
|
4
|
+
color: $font-color;
|
5
|
+
font-weight: 500;
|
6
|
+
@include media-breakpoint-up(sm) {
|
7
|
+
font-size: font-px-to-rem(36px);
|
8
|
+
}
|
9
|
+
}
|
10
|
+
&-general-availability {
|
11
|
+
font-size: font-px-to-rem(12px);
|
12
|
+
color: $font-color;
|
13
|
+
font-weight: 500;
|
14
|
+
@include media-breakpoint-up(sm) {
|
15
|
+
font-size: font-px-to-rem(20px);
|
16
|
+
}
|
17
|
+
&-value {
|
18
|
+
color: theme-color("primary");
|
19
|
+
&--danger {
|
20
|
+
color: theme-color("danger");
|
21
|
+
}
|
22
|
+
&--warning {
|
23
|
+
color: theme-color("warning");
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
.quantity-select button {
|
28
|
+
background: $input-background;
|
29
|
+
color: color-yiq($input-background);
|
30
|
+
}
|
31
|
+
@include media-breakpoint-up(md) {
|
32
|
+
&-price {
|
33
|
+
font-size: font-px-to-rem(28px);
|
34
|
+
}
|
35
|
+
&-general-availability {
|
36
|
+
font-size: font-px-to-rem(14px);
|
37
|
+
}
|
38
|
+
}
|
39
|
+
hr {
|
40
|
+
border-color: $global-border-style;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
.product-variants {
|
45
|
+
$self: &;
|
46
|
+
list-style: none;
|
47
|
+
padding: 0;
|
48
|
+
margin: 0;
|
49
|
+
&-variant {
|
50
|
+
transition: opacity 200ms;
|
51
|
+
&-title {
|
52
|
+
font-size: font-px-to-rem(12px);
|
53
|
+
@include media-breakpoint-up(sm) {
|
54
|
+
font-size: font-px-to-rem(20px);
|
55
|
+
}
|
56
|
+
&-value {
|
57
|
+
font-weight: 500;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
&-values {
|
61
|
+
$self2: &;
|
62
|
+
list-style: none;
|
63
|
+
padding: 0;
|
64
|
+
margin: 0;
|
65
|
+
margin-left: - calc-spacer(1);
|
66
|
+
margin-right: - calc-spacer(1);
|
67
|
+
&-label {
|
68
|
+
font-size: font-px-to-rem(11px);
|
69
|
+
border: 2px solid theme-color-level("light", 1);
|
70
|
+
font-weight: 500;
|
71
|
+
min-width: 26px;
|
72
|
+
padding: calc-spacer(1);
|
73
|
+
transition: border-color 200ms;
|
74
|
+
cursor: pointer;
|
75
|
+
&:hover {
|
76
|
+
border-color: theme-color("dark-text");
|
77
|
+
}
|
78
|
+
}
|
79
|
+
&-radio {
|
80
|
+
opacity: 0;
|
81
|
+
position: fixed;
|
82
|
+
&:checked {
|
83
|
+
&+#{$self}-variant-values-label {
|
84
|
+
border-color: theme-color("dark-text");
|
85
|
+
}
|
86
|
+
}
|
87
|
+
&--bad-combination {
|
88
|
+
&+#{$self2}-label {
|
89
|
+
position: relative;
|
90
|
+
color: theme-color-level("light", 1);
|
91
|
+
&:hover {
|
92
|
+
border-color: theme-color-level("light", 1);
|
93
|
+
cursor: not-allowed;
|
94
|
+
}
|
95
|
+
&:after {
|
96
|
+
display: block;
|
97
|
+
width: 2px;
|
98
|
+
height: 100% * sqrt(2);
|
99
|
+
content: '';
|
100
|
+
background: theme-color-level("light", 1);
|
101
|
+
transition: background 200ms;
|
102
|
+
transform: rotate(-45deg);
|
103
|
+
top: 50% - 50% * sqrt(2);
|
104
|
+
left: calc(50% - 1px);
|
105
|
+
position: absolute;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
&:disabled + label {
|
111
|
+
color: theme-color-level("light", 1);
|
112
|
+
cursor: not-allowed;
|
113
|
+
opacity: 0.5;
|
114
|
+
|
115
|
+
&:active, &:focus {
|
116
|
+
outline: theme-color("dark-text") dotted thin;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
&--color {
|
122
|
+
$self3: &;
|
123
|
+
#{$self}-variant {
|
124
|
+
&-values {
|
125
|
+
&-label {
|
126
|
+
$size: 28px;
|
127
|
+
$size-border: 3px;
|
128
|
+
border-radius: 50%;
|
129
|
+
border-width: $size-border;
|
130
|
+
width: $size;
|
131
|
+
height: $size;
|
132
|
+
padding: calc-spacer(0);
|
133
|
+
line-height: $size - $size-border * 2;
|
134
|
+
&:before {
|
135
|
+
$inner-circle-size: $size - ($size-border - 1px) * 2; // Cover outer border by 1px to avoid color bleed.
|
136
|
+
content: '';
|
137
|
+
margin: -1px;
|
138
|
+
display: block;
|
139
|
+
border: 2px solid theme-color("light");
|
140
|
+
width: $inner-circle-size;
|
141
|
+
height: $inner-circle-size;
|
142
|
+
border-radius: 50%;
|
143
|
+
position: absolute;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
&-radio {
|
147
|
+
&--bad-combination {
|
148
|
+
&+#{$self}-variant-values-label {
|
149
|
+
&:after {
|
150
|
+
height: 100%;
|
151
|
+
top: 0;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
&:checked {
|
156
|
+
&--bad-combination {
|
157
|
+
&+#{$self}-variant-values-label {
|
158
|
+
&:after {
|
159
|
+
background: theme-color("dark-text");
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
&--disabled {
|
169
|
+
opacity: 0.3;
|
170
|
+
#{$self}-variant {
|
171
|
+
&-values {
|
172
|
+
&-label {
|
173
|
+
&:hover {
|
174
|
+
border-color: theme-color-level("light", 1);
|
175
|
+
cursor: not-allowed;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
&-radio {
|
179
|
+
&--bad-combination {
|
180
|
+
&+#{$self}-variant-values-label {
|
181
|
+
&:hover {
|
182
|
+
&:after {
|
183
|
+
background: theme-color-level("light", 1);
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
&>li+li{
|
194
|
+
margin-top: calc-spacer(4);
|
195
|
+
}
|
196
|
+
@include media-breakpoint-up(md) {
|
197
|
+
&-variant {
|
198
|
+
&-title {
|
199
|
+
font-size: font-px-to-rem(14px);
|
200
|
+
}
|
201
|
+
&-values {
|
202
|
+
&-value {
|
203
|
+
font-size: font-px-to-rem(14px);
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
.select-label {
|
211
|
+
cursor: pointer;
|
212
|
+
padding: 4px 7px;
|
213
|
+
border: 2px solid theme-color('borders');
|
214
|
+
min-width: 32px;
|
215
|
+
max-height: 32px;
|
216
|
+
text-align: center;
|
217
|
+
font-size: font-px-to-rem(14px);
|
218
|
+
font-weight: 500;
|
219
|
+
@include media-breakpoint-up(sm) {
|
220
|
+
border: 3px solid theme-color('borders');
|
221
|
+
padding: 7px 7px;
|
222
|
+
min-width: 49px;
|
223
|
+
max-height: 49px;
|
224
|
+
font-size: font-px-to-rem(20px);
|
225
|
+
}
|
226
|
+
@include media-breakpoint-up(md) {
|
227
|
+
border: 2px solid theme-color('borders');
|
228
|
+
padding: 4px 7px;
|
229
|
+
min-width: 32px;
|
230
|
+
max-height: 32px;
|
231
|
+
font-size: font-px-to-rem(14px);
|
232
|
+
}
|
233
|
+
|
234
|
+
input:checked + & {
|
235
|
+
border-color: theme-color('secondary');
|
236
|
+
}
|
237
|
+
}
|
238
|
+
|
239
|
+
.add-to-cart-button {
|
240
|
+
padding: 6px 12px;
|
241
|
+
font-size: font-px-to-rem(17px);
|
242
|
+
@include media-breakpoint-up(sm) {
|
243
|
+
padding: 12px;
|
244
|
+
font-size: font-px-to-rem(30px);
|
245
|
+
}
|
246
|
+
@include media-breakpoint-up(md) {
|
247
|
+
padding: 6px 12px;
|
248
|
+
font-size: font-px-to-rem(18px);
|
249
|
+
}
|
250
|
+
}
|