solidus_starter_frontend 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +57 -0
- data/.erb-lint.yml +22 -0
- data/.eslintrc +5 -0
- data/.gem_release.yml +5 -0
- data/.github/pull_request_template.md +28 -0
- data/.github/stale.yml +17 -0
- data/.gitignore +17 -0
- data/.hound.yml +16 -0
- data/.rspec +2 -0
- data/.rubocop.yml +19 -0
- data/.rubocop_todo.yml +229 -0
- data/.scss-lint.yml +4 -0
- data/Gemfile +34 -0
- data/LICENSE +26 -0
- data/README.md +69 -0
- data/Rakefile +6 -0
- data/app/assets/config/solidus_starter_frontend_manifest.js +2 -0
- data/app/assets/javascripts/spree/frontend.js +6 -0
- data/app/assets/javascripts/spree/frontend/cart.js +26 -0
- data/app/assets/javascripts/spree/frontend/checkout.js +34 -0
- data/app/assets/javascripts/spree/frontend/checkout/address.js +124 -0
- data/app/assets/javascripts/spree/frontend/checkout/payment.js +44 -0
- data/app/assets/javascripts/spree/frontend/locale_selector.js +9 -0
- data/app/assets/javascripts/spree/frontend/product.js +21 -0
- data/app/assets/javascripts/spree/frontend/solidus_starter_frontend.js +9 -0
- data/app/assets/javascripts/spree/frontend/utils.js.erb +18 -0
- data/app/assets/stylesheets/spree/frontend.css +8 -0
- data/app/assets/stylesheets/spree/frontend/base/_base.scss +29 -0
- data/app/assets/stylesheets/spree/frontend/base/_reset.scss +179 -0
- data/app/assets/stylesheets/spree/frontend/base/_responsive.scss +21 -0
- data/app/assets/stylesheets/spree/frontend/components/account/_account_order.scss +23 -0
- data/app/assets/stylesheets/spree/frontend/components/account/_account_summary.scss +17 -0
- data/app/assets/stylesheets/spree/frontend/components/auth/_auth_container.scss +11 -0
- data/app/assets/stylesheets/spree/frontend/components/auth/_auth_form.scss +5 -0
- data/app/assets/stylesheets/spree/frontend/components/brand/_logo.scss +4 -0
- data/app/assets/stylesheets/spree/frontend/components/buttons/_button_inline.scss +8 -0
- data/app/assets/stylesheets/spree/frontend/components/buttons/_button_primary.scss +26 -0
- data/app/assets/stylesheets/spree/frontend/components/cart/_cart_adjustments.scss +6 -0
- data/app/assets/stylesheets/spree/frontend/components/cart/_cart_amount_row.scss +11 -0
- data/app/assets/stylesheets/spree/frontend/components/cart/_cart_empty.scss +10 -0
- data/app/assets/stylesheets/spree/frontend/components/cart/_cart_footer.scss +20 -0
- data/app/assets/stylesheets/spree/frontend/components/cart/_cart_header.scss +12 -0
- data/app/assets/stylesheets/spree/frontend/components/cart/_cart_item.scss +86 -0
- data/app/assets/stylesheets/spree/frontend/components/cart/_cart_link.scss +22 -0
- data/app/assets/stylesheets/spree/frontend/components/cart/_cart_page.scss +15 -0
- data/app/assets/stylesheets/spree/frontend/components/cart/_cart_secondary_actions.scss +19 -0
- data/app/assets/stylesheets/spree/frontend/components/cart/_coupon_code.scss +8 -0
- data/app/assets/stylesheets/spree/frontend/components/cart/_item_info.scss +19 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/_checkout.scss +27 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/_checkout_header.scss +19 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/_checkout_summary.scss +31 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/_existing_cards.scss +27 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/_payment_method_controls.scss +5 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/_payment_method_selector.scss +14 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/_progress_steps.scss +38 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/_proposed_shipment.scss +18 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/_shipment_items.scss +50 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/_shipping_methods.scss +9 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/payments/_gateway_payment_method.scss +11 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/steps/_address_step.scss +20 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/steps/_confirm_step.scss +13 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/steps/_delivery_step.scss +13 -0
- data/app/assets/stylesheets/spree/frontend/components/checkout/steps/_payment_step.scss +13 -0
- data/app/assets/stylesheets/spree/frontend/components/forms/_address_inputs.scss +13 -0
- data/app/assets/stylesheets/spree/frontend/components/forms/inputs/_checkbox_input.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/components/forms/inputs/_radio_input.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/components/forms/inputs/_select_input.scss +27 -0
- data/app/assets/stylesheets/spree/frontend/components/forms/inputs/_text.scss +32 -0
- data/app/assets/stylesheets/spree/frontend/components/forms/inputs/_textarea_input.scss +25 -0
- data/app/assets/stylesheets/spree/frontend/components/general/_flash.scss +20 -0
- data/app/assets/stylesheets/spree/frontend/components/layout/_aside.scss +4 -0
- data/app/assets/stylesheets/spree/frontend/components/layout/_breadcrumbs.scss +16 -0
- data/app/assets/stylesheets/spree/frontend/components/layout/_category_navigation.scss +3 -0
- data/app/assets/stylesheets/spree/frontend/components/layout/_footer.scss +8 -0
- data/app/assets/stylesheets/spree/frontend/components/layout/_header.scss +12 -0
- data/app/assets/stylesheets/spree/frontend/components/layout/_horizontal_input_group.scss +7 -0
- data/app/assets/stylesheets/spree/frontend/components/layout/_top_bar.scss +44 -0
- data/app/assets/stylesheets/spree/frontend/components/navigation/_auth_link.scss +11 -0
- data/app/assets/stylesheets/spree/frontend/components/navigation/_categories.scss +29 -0
- data/app/assets/stylesheets/spree/frontend/components/navigation/_locale_selector.scss +21 -0
- data/app/assets/stylesheets/spree/frontend/components/navigation/_taxonomies.scss +7 -0
- data/app/assets/stylesheets/spree/frontend/components/navigation/_taxonomy.scss +28 -0
- data/app/assets/stylesheets/spree/frontend/components/orders/_address_overview.scss +27 -0
- data/app/assets/stylesheets/spree/frontend/components/orders/_coupon_codes.scss +4 -0
- data/app/assets/stylesheets/spree/frontend/components/orders/_line_items.scss +20 -0
- data/app/assets/stylesheets/spree/frontend/components/orders/_order_details.scss +18 -0
- data/app/assets/stylesheets/spree/frontend/components/orders/_order_item.scss +85 -0
- data/app/assets/stylesheets/spree/frontend/components/orders/_order_page.scss +41 -0
- data/app/assets/stylesheets/spree/frontend/components/orders/_order_shipments.scss +27 -0
- data/app/assets/stylesheets/spree/frontend/components/orders/_payment_info.scss +29 -0
- data/app/assets/stylesheets/spree/frontend/components/presentation/_hero.scss +18 -0
- data/app/assets/stylesheets/spree/frontend/components/products/_product_card.scss +35 -0
- data/app/assets/stylesheets/spree/frontend/components/products/_product_image.scss +7 -0
- data/app/assets/stylesheets/spree/frontend/components/products/_product_info.scss +14 -0
- data/app/assets/stylesheets/spree/frontend/components/products/_product_page.scss +31 -0
- data/app/assets/stylesheets/spree/frontend/components/products/_product_properties.scss +23 -0
- data/app/assets/stylesheets/spree/frontend/components/products/_product_submit.scss +9 -0
- data/app/assets/stylesheets/spree/frontend/components/products/_product_taxons.scss +27 -0
- data/app/assets/stylesheets/spree/frontend/components/products/_product_thumbnails.scss +7 -0
- data/app/assets/stylesheets/spree/frontend/components/products/_product_variants.scss +20 -0
- data/app/assets/stylesheets/spree/frontend/components/products/_products.scss +13 -0
- data/app/assets/stylesheets/spree/frontend/components/products/_products_by_taxon.scss +6 -0
- data/app/assets/stylesheets/spree/frontend/components/products/_products_grid.scss +18 -0
- data/app/assets/stylesheets/spree/frontend/components/search/_filter.scss +32 -0
- data/app/assets/stylesheets/spree/frontend/components/search/_search_bar.scss +34 -0
- data/app/assets/stylesheets/spree/frontend/components/typography/_hero_title.scss +6 -0
- data/app/assets/stylesheets/spree/frontend/components/typography/_subtitle.scss +7 -0
- data/app/assets/stylesheets/spree/frontend/placeholders/main.scss +5 -0
- data/app/assets/stylesheets/spree/frontend/screen.scss +89 -0
- data/app/assets/stylesheets/spree/frontend/solidus_starter_frontend.css +7 -0
- data/app/assets/stylesheets/spree/frontend/variables/_colors.scss +20 -0
- data/app/controllers/concerns/solidus_starter_frontend/auth_views.rb +16 -0
- data/app/controllers/concerns/solidus_starter_frontend/taxonomies.rb +16 -0
- data/app/controllers/spree/checkout_controller.rb +249 -0
- data/app/controllers/spree/coupon_codes_controller.rb +35 -0
- data/app/controllers/spree/home_controller.rb +13 -0
- data/app/controllers/spree/locale_controller.rb +20 -0
- data/app/controllers/spree/orders_controller.rb +126 -0
- data/app/controllers/spree/products_controller.rb +51 -0
- data/app/controllers/spree/store_controller.rb +31 -0
- data/app/controllers/spree/taxons_controller.rb +30 -0
- data/app/helpers/spree/orders_helper.rb +18 -0
- data/app/helpers/spree/taxon_filters_helper.rb +13 -0
- data/app/views/spree/address/_form_hidden.html.erb +12 -0
- data/app/views/spree/checkout/_terms_and_conditions.en.html.erb +1 -0
- data/app/views/spree/checkout/edit.html.erb +16 -0
- data/app/views/spree/checkout/existing_payment/_gateway.html.erb +9 -0
- data/app/views/spree/checkout/payment/_check.html.erb +0 -0
- data/app/views/spree/checkout/payment/_gateway.html.erb +43 -0
- data/app/views/spree/components/auth/_change_form.html.erb +40 -0
- data/app/views/spree/components/auth/_forgot_form.html.erb +28 -0
- data/app/views/spree/components/auth/_guest_form.html.erb +31 -0
- data/app/views/spree/components/auth/_login_form.html.erb +42 -0
- data/app/views/spree/components/auth/_signup_form.html.erb +48 -0
- data/app/views/spree/components/brand/_logo.html.erb +3 -0
- data/app/views/spree/components/buttons/_button_inline.html.erb +23 -0
- data/app/views/spree/components/buttons/_button_primary.html.erb +29 -0
- data/app/views/spree/components/cart/_cart_adjustment.html.erb +15 -0
- data/app/views/spree/components/cart/_cart_adjustments.html.erb +47 -0
- data/app/views/spree/components/cart/_cart_amount_row.html.erb +12 -0
- data/app/views/spree/components/cart/_cart_empty.html.erb +9 -0
- data/app/views/spree/components/cart/_cart_footer.html.erb +15 -0
- data/app/views/spree/components/cart/_cart_header.html.erb +17 -0
- data/app/views/spree/components/cart/_cart_item.html.erb +52 -0
- data/app/views/spree/components/cart/_cart_items.html.erb +23 -0
- data/app/views/spree/components/cart/_cart_link.html.erb +9 -0
- data/app/views/spree/components/cart/_cart_secondary_actions.html.erb +17 -0
- data/app/views/spree/components/cart/_item_info.html.erb +26 -0
- data/app/views/spree/components/checkout/_checkout_header.html.erb +8 -0
- data/app/views/spree/components/checkout/_checkout_step.html.erb +21 -0
- data/app/views/spree/components/checkout/_checkout_summary.html.erb +70 -0
- data/app/views/spree/components/checkout/_existing_cards.html.erb +39 -0
- data/app/views/spree/components/checkout/_payment_method_controls.html.erb +10 -0
- data/app/views/spree/components/checkout/_payment_method_selector.html.erb +14 -0
- data/app/views/spree/components/checkout/_proposed_shipment.erb +18 -0
- data/app/views/spree/components/checkout/_shipment_items.html.erb +22 -0
- data/app/views/spree/components/checkout/_shipping_methods.html.erb +20 -0
- data/app/views/spree/components/checkout/_unshippable_items.html.erb +7 -0
- data/app/views/spree/components/checkout/steps/_address_step.html.erb +60 -0
- data/app/views/spree/components/checkout/steps/_confirm_step.html.erb +31 -0
- data/app/views/spree/components/checkout/steps/_delivery_step.html.erb +31 -0
- data/app/views/spree/components/checkout/steps/_payment_step.html.erb +25 -0
- data/app/views/spree/components/forms/_address_inputs.html.erb +152 -0
- data/app/views/spree/components/forms/inputs/_checkbox_input.html.erb +29 -0
- data/app/views/spree/components/forms/inputs/_collection_select.html.erb +42 -0
- data/app/views/spree/components/forms/inputs/_radio_input.html.erb +29 -0
- data/app/views/spree/components/forms/inputs/_select_input.html.erb +31 -0
- data/app/views/spree/components/forms/inputs/_text.html.erb +54 -0
- data/app/views/spree/components/forms/inputs/_textarea_input.html.erb +42 -0
- data/app/views/spree/components/layout/_category_navigation.html.erb +3 -0
- data/app/views/spree/components/layout/_footer.html.erb +7 -0
- data/app/views/spree/components/layout/_header.html.erb +8 -0
- data/app/views/spree/components/layout/_top_bar.html.erb +8 -0
- data/app/views/spree/components/navigation/_auth_link.html.erb +1 -0
- data/app/views/spree/components/navigation/_breadcrumbs.html.erb +47 -0
- data/app/views/spree/components/navigation/_categories.html.erb +12 -0
- data/app/views/spree/components/navigation/_locale_selector.html.erb +25 -0
- data/app/views/spree/components/navigation/_taxonomies.html.erb +17 -0
- data/app/views/spree/components/navigation/_taxons.html.erb +17 -0
- data/app/views/spree/components/navigation/_taxons_tree.html.erb +29 -0
- data/app/views/spree/components/orders/_address_overview.html.erb +40 -0
- data/app/views/spree/components/orders/_coupon_code.html.erb +22 -0
- data/app/views/spree/components/orders/_line_items.html.erb +55 -0
- data/app/views/spree/components/orders/_order_details.html.erb +35 -0
- data/app/views/spree/components/orders/_order_item.html.erb +33 -0
- data/app/views/spree/components/orders/_order_items.html.erb +5 -0
- data/app/views/spree/components/orders/_order_shipments.html.erb +25 -0
- data/app/views/spree/components/orders/_payment_info.html.erb +31 -0
- data/app/views/spree/components/presentation/_hero.html.erb +14 -0
- data/app/views/spree/components/products/_product-card.html.erb +36 -0
- data/app/views/spree/components/products/_product_availability.html.erb +19 -0
- data/app/views/spree/components/products/_product_form.html.erb +21 -0
- data/app/views/spree/components/products/_product_image.html.erb +6 -0
- data/app/views/spree/components/products/_product_info.html.erb +9 -0
- data/app/views/spree/components/products/_product_promotions.html.erb +25 -0
- data/app/views/spree/components/products/_product_properties.html.erb +19 -0
- data/app/views/spree/components/products/_product_submit.html.erb +39 -0
- data/app/views/spree/components/products/_product_taxons.html.erb +15 -0
- data/app/views/spree/components/products/_product_thumbnails.html.erb +19 -0
- data/app/views/spree/components/products/_product_variants.html.erb +36 -0
- data/app/views/spree/components/products/_products-grid.html.erb +13 -0
- data/app/views/spree/components/products/_products.html.erb +28 -0
- data/app/views/spree/components/products/_products_by_taxon.html.erb +7 -0
- data/app/views/spree/components/products/_variants_list.html.erb +12 -0
- data/app/views/spree/components/search/_filter.html.erb +42 -0
- data/app/views/spree/components/search/_filters.html.erb +20 -0
- data/app/views/spree/components/search/_form.html.erb +12 -0
- data/app/views/spree/components/search/_products_search.html.erb +36 -0
- data/app/views/spree/components/search/_search_bar.html.erb +36 -0
- data/app/views/spree/components/typography/_hero_title.html.erb +11 -0
- data/app/views/spree/components/typography/_subtitle.html.erb +11 -0
- data/app/views/spree/home/index.html.erb +7 -0
- data/app/views/spree/layouts/spree_application.html.erb +27 -0
- data/app/views/spree/orders/edit.html.erb +21 -0
- data/app/views/spree/orders/show.html.erb +29 -0
- data/app/views/spree/products/index.html.erb +22 -0
- data/app/views/spree/products/show.html.erb +18 -0
- data/app/views/spree/shared/_image.html.erb +12 -0
- data/app/views/spree/shared/_link_to_cart.html.erb +1 -0
- data/app/views/spree/shared/_login_bar_items.html.erb +1 -0
- data/app/views/spree/shared/_shipment_tracking.html.erb +11 -0
- data/app/views/spree/shared/unauthorized.html.erb +0 -0
- data/app/views/spree/taxons/show.html.erb +17 -0
- data/bin/console +17 -0
- data/bin/r +13 -0
- data/bin/rails +7 -0
- data/bin/rake +7 -0
- data/bin/rspec +29 -0
- data/bin/sandbox +84 -0
- data/bin/sandbox_rails +18 -0
- data/bin/setup +8 -0
- data/bin/solidus_compare +155 -0
- data/config/initializers/assets.rb +1 -0
- data/config/initializers/canonical_rails.rb +16 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +33 -0
- data/config/solidus_compare.yml +33 -0
- data/docs/development.md +28 -0
- data/exe/solidus_starter_frontend +9 -0
- data/lib/generators/solidus_starter_frontend/install/install_generator.rb +15 -0
- data/lib/generators/solidus_starter_frontend/solidus_starter_frontend_generator.rb +30 -0
- data/lib/generators/solidus_starter_frontend/views/override_generator.rb +50 -0
- data/lib/solidus_starter_frontend.rb +12 -0
- data/lib/solidus_starter_frontend/config.rb +7 -0
- data/lib/solidus_starter_frontend/engine.rb +34 -0
- data/lib/solidus_starter_frontend/factories.rb +4 -0
- data/lib/solidus_starter_frontend/solidus_support_extensions.rb +9 -0
- data/lib/solidus_starter_frontend/version.rb +5 -0
- data/lib/solidus_starter_frontend_configuration.rb +8 -0
- data/lib/views/auth/spree/checkout/registration.html.erb +7 -0
- data/lib/views/auth/spree/components/navigation/_auth_link.html.erb +5 -0
- data/lib/views/auth/spree/user_passwords/edit.html.erb +7 -0
- data/lib/views/auth/spree/user_passwords/new.html.erb +5 -0
- data/lib/views/auth/spree/user_registrations/new.html.erb +7 -0
- data/lib/views/auth/spree/user_sessions/guest.html.erb +5 -0
- data/lib/views/auth/spree/user_sessions/new.html.erb +7 -0
- data/lib/views/auth/spree/users/edit.html.erb +45 -0
- data/lib/views/auth/spree/users/show.html.erb +55 -0
- data/solidus_starter_frontend.gemspec +43 -0
- data/spec/controllers/controller_helpers_spec.rb +29 -0
- data/spec/controllers/locale_controller_spec.rb +57 -0
- data/spec/controllers/spree/checkout_controller_spec.rb +563 -0
- data/spec/controllers/spree/checkout_controller_with_views_spec.rb +37 -0
- data/spec/controllers/spree/current_order_tracking_spec.rb +33 -0
- data/spec/controllers/spree/home_controller_spec.rb +29 -0
- data/spec/controllers/spree/orders_controller_ability_spec.rb +90 -0
- data/spec/controllers/spree/orders_controller_spec.rb +241 -0
- data/spec/controllers/spree/orders_controller_transitions_spec.rb +33 -0
- data/spec/controllers/spree/products_controller_spec.rb +38 -0
- data/spec/controllers/spree/taxons_controller_spec.rb +14 -0
- data/spec/fixtures/thinking-cat.jpg +0 -0
- data/spec/generators/solidus/views/override_generator_spec.rb +50 -0
- data/spec/helpers/base_helper_spec.rb +13 -0
- data/spec/helpers/order_helper_spec.rb +14 -0
- data/spec/helpers/taxon_filters_helper_spec.rb +12 -0
- data/spec/spec_helper.rb +64 -0
- data/spec/support/shared_contexts/checkout_setup.rb +12 -0
- data/spec/support/shared_contexts/custom_products.rb +28 -0
- data/spec/support/shared_contexts/locales.rb +16 -0
- data/spec/system/address_spec.rb +87 -0
- data/spec/system/automatic_promotion_adjustments_spec.rb +49 -0
- data/spec/system/caching/products_spec.rb +48 -0
- data/spec/system/caching/taxons_spec.rb +35 -0
- data/spec/system/cart_spec.rb +81 -0
- data/spec/system/checkout_confirm_insufficient_stock_spec.rb +71 -0
- data/spec/system/checkout_spec.rb +699 -0
- data/spec/system/checkout_unshippable_spec.rb +37 -0
- data/spec/system/coupon_code_spec.rb +267 -0
- data/spec/system/currency_spec.rb +20 -0
- data/spec/system/first_order_promotion_spec.rb +59 -0
- data/spec/system/free_shipping_promotions_spec.rb +60 -0
- data/spec/system/locale_spec.rb +26 -0
- data/spec/system/order_spec.rb +57 -0
- data/spec/system/products_spec.rb +302 -0
- data/spec/system/promotion_code_invalidation_spec.rb +54 -0
- data/spec/system/quantity_promotions_spec.rb +130 -0
- data/spec/system/taxons_spec.rb +158 -0
- data/spec/system/template_rendering_spec.rb +20 -0
- data/spec/views/spree/checkout/_summary_spec.rb +11 -0
- metadata +542 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
.order-page {
|
2
|
+
margin: 0 auto;
|
3
|
+
max-width: 86rem;
|
4
|
+
padding: 8rem 2rem;
|
5
|
+
|
6
|
+
&__title {
|
7
|
+
color: $color-accent;
|
8
|
+
margin: 0 0 5rem;
|
9
|
+
text-align: center;
|
10
|
+
}
|
11
|
+
|
12
|
+
&__completed {
|
13
|
+
color: $color-background-success;
|
14
|
+
font-size: 1.3rem;
|
15
|
+
font-weight: 700;
|
16
|
+
margin: -2.5rem 0 3rem;
|
17
|
+
text-align: center;
|
18
|
+
}
|
19
|
+
|
20
|
+
&__info {
|
21
|
+
border: solid 1px $color-border;
|
22
|
+
margin-bottom: 2rem;
|
23
|
+
padding: 1.5rem;
|
24
|
+
|
25
|
+
> legend {
|
26
|
+
font-size: 1.2rem;
|
27
|
+
font-weight: 700;
|
28
|
+
text-transform: uppercase;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
&__actions {
|
33
|
+
font-size: 1.2rem;
|
34
|
+
margin-top: 4rem;
|
35
|
+
text-align: center;
|
36
|
+
|
37
|
+
> a {
|
38
|
+
margin: 0 1rem;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
.order-shipments {
|
2
|
+
&__title {
|
3
|
+
display: inline;
|
4
|
+
font-size: 1.3rem;
|
5
|
+
}
|
6
|
+
|
7
|
+
&__edit {
|
8
|
+
font-size: 1.1rem;
|
9
|
+
margin-left: .3rem;
|
10
|
+
text-decoration: none;
|
11
|
+
}
|
12
|
+
|
13
|
+
&__info {
|
14
|
+
font-size: 1.2rem;
|
15
|
+
margin: 1rem 0 0;
|
16
|
+
padding: 0;
|
17
|
+
padding-left: 1.8rem;
|
18
|
+
|
19
|
+
> li {
|
20
|
+
margin: .5rem 0;
|
21
|
+
|
22
|
+
&:last-child {
|
23
|
+
margin-bottom: 0;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
.payment-info {
|
2
|
+
font-size: 1.2rem;
|
3
|
+
|
4
|
+
&__title {
|
5
|
+
display: inline;
|
6
|
+
font-size: 1.3rem;
|
7
|
+
}
|
8
|
+
|
9
|
+
&__edit {
|
10
|
+
font-size: 1.1rem;
|
11
|
+
margin-left: .3rem;
|
12
|
+
text-decoration: none;
|
13
|
+
}
|
14
|
+
|
15
|
+
&__info {
|
16
|
+
font-size: 1.2rem;
|
17
|
+
margin: 1rem 0 0;
|
18
|
+
padding: 0;
|
19
|
+
padding-left: 1.8rem;
|
20
|
+
|
21
|
+
> li {
|
22
|
+
margin: .5rem 0;
|
23
|
+
|
24
|
+
&:last-child {
|
25
|
+
margin-bottom: 0;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
.hero {
|
2
|
+
background: $color-background-dark;
|
3
|
+
color: $color-copy-bright;
|
4
|
+
padding: 10rem 0;
|
5
|
+
|
6
|
+
&__container {
|
7
|
+
@extend %section-spacings;
|
8
|
+
display: flex;
|
9
|
+
}
|
10
|
+
|
11
|
+
&__message {
|
12
|
+
padding-right: 2rem;
|
13
|
+
|
14
|
+
@include desktop {
|
15
|
+
width: 50%;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
.product-card {
|
2
|
+
&_image {
|
3
|
+
transition: transform .2s;
|
4
|
+
|
5
|
+
img {
|
6
|
+
width: 100%;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
&_header {
|
11
|
+
text-align: center;
|
12
|
+
position: relative;
|
13
|
+
|
14
|
+
h2 {
|
15
|
+
font-weight: 600;
|
16
|
+
margin: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
a {
|
20
|
+
text-decoration: none;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
&_price {
|
25
|
+
color: $color_accent;
|
26
|
+
font-size: 1.3rem;
|
27
|
+
font-weight: 700;
|
28
|
+
margin-top: 1rem;
|
29
|
+
text-align: center;
|
30
|
+
}
|
31
|
+
|
32
|
+
&:hover &_image {
|
33
|
+
transform: scale(1.1);
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
.product-page {
|
2
|
+
margin: 0 auto;
|
3
|
+
max-width: 86rem;
|
4
|
+
padding: 8rem 3rem;
|
5
|
+
|
6
|
+
@include desktop {
|
7
|
+
display: flex;
|
8
|
+
|
9
|
+
&__images,
|
10
|
+
&__info {
|
11
|
+
flex-grow: 0;
|
12
|
+
flex-shrink: 0;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
&__images {
|
17
|
+
@include desktop {
|
18
|
+
padding-right: 4rem;
|
19
|
+
width: 60%;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
&__info {
|
24
|
+
margin-top: 3rem;
|
25
|
+
|
26
|
+
@include desktop {
|
27
|
+
margin-top: 0;
|
28
|
+
width: 40%;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
.product-properties {
|
2
|
+
margin: 2rem 0;
|
3
|
+
|
4
|
+
&__title {
|
5
|
+
font-size: 1.8rem;
|
6
|
+
font-weight: 500;
|
7
|
+
margin: 0 0 1rem;
|
8
|
+
}
|
9
|
+
|
10
|
+
&__table {
|
11
|
+
border-collapse: collapse;
|
12
|
+
font-size: 1.3rem;
|
13
|
+
|
14
|
+
tr {
|
15
|
+
height: 1.8rem;
|
16
|
+
}
|
17
|
+
|
18
|
+
td:first-child {
|
19
|
+
font-weight: 500;
|
20
|
+
padding-right: 1rem;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
.product-taxons {
|
2
|
+
&__title {
|
3
|
+
font-size: 1.6rem;
|
4
|
+
font-weight: 500;
|
5
|
+
margin: 0 0 0.5rem;
|
6
|
+
}
|
7
|
+
|
8
|
+
&__list {
|
9
|
+
display: flex;
|
10
|
+
font-size: 1.3rem;
|
11
|
+
list-style-type: none;
|
12
|
+
margin: 0;
|
13
|
+
padding: 0;
|
14
|
+
|
15
|
+
> li {
|
16
|
+
margin: 0.5rem;
|
17
|
+
|
18
|
+
&:first-child {
|
19
|
+
margin-left: 0;
|
20
|
+
}
|
21
|
+
|
22
|
+
&:last-child {
|
23
|
+
margin-right: 0;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
.product-variants {
|
2
|
+
margin: 2rem 0;
|
3
|
+
|
4
|
+
&__title {
|
5
|
+
font-size: 1.8rem;
|
6
|
+
font-weight: 500;
|
7
|
+
margin: 0 0 1rem;
|
8
|
+
}
|
9
|
+
|
10
|
+
&__list {
|
11
|
+
font-size: 1.3rem;
|
12
|
+
list-style-type: none;
|
13
|
+
margin: 0;
|
14
|
+
padding: 0;
|
15
|
+
|
16
|
+
> li {
|
17
|
+
margin: 0.5rem 0;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
.products-grid {
|
2
|
+
display: grid;
|
3
|
+
grid-column-gap: 2rem;
|
4
|
+
grid-row-gap: 5rem;
|
5
|
+
grid-template-columns: 1fr;
|
6
|
+
list-style-type: none;
|
7
|
+
margin: 0 auto;
|
8
|
+
max-width: 114rem;
|
9
|
+
padding: 3rem;
|
10
|
+
|
11
|
+
@include tablet {
|
12
|
+
grid-template-columns: repeat(2, 1fr);
|
13
|
+
}
|
14
|
+
|
15
|
+
@include desktop {
|
16
|
+
grid-template-columns: repeat(4, 1fr);
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
.filter {
|
2
|
+
margin-bottom: 2rem;
|
3
|
+
|
4
|
+
&__title {
|
5
|
+
font-size: 1.3rem;
|
6
|
+
margin: 2rem 0 0;
|
7
|
+
|
8
|
+
&:first-of-type {
|
9
|
+
margin-top: 0;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
&__list {
|
14
|
+
list-style: none;
|
15
|
+
margin: .5rem 0;
|
16
|
+
padding: 0;
|
17
|
+
|
18
|
+
li {
|
19
|
+
align-items: center;
|
20
|
+
display: flex;
|
21
|
+
margin: .5rem 0;
|
22
|
+
|
23
|
+
&.current {
|
24
|
+
font-weight: bold;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
&__list:last-of-type {
|
30
|
+
margin-bottom: 1.5rem;
|
31
|
+
}
|
32
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
.search-bar {
|
2
|
+
border: solid 1px $color-border-medium;
|
3
|
+
border-radius: 2px;
|
4
|
+
display: flex;
|
5
|
+
font-size: 1.3rem;
|
6
|
+
height: 4.6rem;
|
7
|
+
position: relative;
|
8
|
+
|
9
|
+
&__select {
|
10
|
+
appearance: none;
|
11
|
+
background: $color-background-light;
|
12
|
+
border: 0;
|
13
|
+
border-radius: 0;
|
14
|
+
border-right: solid 1px $color-accent;
|
15
|
+
display: none;
|
16
|
+
padding: 0 2rem;
|
17
|
+
}
|
18
|
+
|
19
|
+
&__input {
|
20
|
+
border: 0;
|
21
|
+
flex-grow: 1;
|
22
|
+
padding: 0 2rem;
|
23
|
+
outline: none;
|
24
|
+
}
|
25
|
+
|
26
|
+
&__button {
|
27
|
+
background: $color-background-light;
|
28
|
+
border: 0;
|
29
|
+
border-left: 1px solid $color-border-medium;
|
30
|
+
color: $color-copy-light;
|
31
|
+
font-weight: 500;
|
32
|
+
padding: 0 2rem;
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
// General
|
2
|
+
@import "spree/frontend/variables/colors";
|
3
|
+
|
4
|
+
// Base
|
5
|
+
@import "spree/frontend/base/reset";
|
6
|
+
@import "spree/frontend/base/base";
|
7
|
+
@import 'spree/frontend/base/responsive';
|
8
|
+
|
9
|
+
// Placeholders
|
10
|
+
@import "spree/frontend/placeholders/main";
|
11
|
+
|
12
|
+
// Components
|
13
|
+
@import "spree/frontend/components/account/account_summary";
|
14
|
+
@import "spree/frontend/components/account/account_order";
|
15
|
+
@import "spree/frontend/components/auth/auth_container";
|
16
|
+
@import "spree/frontend/components/auth/auth_form";
|
17
|
+
@import "spree/frontend/components/brand/logo";
|
18
|
+
@import "spree/frontend/components/buttons/button_inline";
|
19
|
+
@import "spree/frontend/components/buttons/button_primary";
|
20
|
+
@import "spree/frontend/components/cart/cart_adjustments";
|
21
|
+
@import "spree/frontend/components/cart/cart_amount_row";
|
22
|
+
@import "spree/frontend/components/cart/cart_empty";
|
23
|
+
@import "spree/frontend/components/cart/cart_footer";
|
24
|
+
@import "spree/frontend/components/cart/cart_header";
|
25
|
+
@import "spree/frontend/components/cart/cart_item";
|
26
|
+
@import "spree/frontend/components/cart/cart_link";
|
27
|
+
@import "spree/frontend/components/cart/cart_page";
|
28
|
+
@import "spree/frontend/components/cart/cart_secondary_actions";
|
29
|
+
@import "spree/frontend/components/cart/coupon_code";
|
30
|
+
@import "spree/frontend/components/cart/item_info";
|
31
|
+
@import "spree/frontend/components/checkout/checkout";
|
32
|
+
@import "spree/frontend/components/checkout/checkout_header";
|
33
|
+
@import "spree/frontend/components/checkout/checkout_summary";
|
34
|
+
@import "spree/frontend/components/checkout/proposed_shipment";
|
35
|
+
@import "spree/frontend/components/checkout/existing_cards";
|
36
|
+
@import "spree/frontend/components/checkout/payment_method_controls";
|
37
|
+
@import "spree/frontend/components/checkout/payment_method_selector";
|
38
|
+
@import "spree/frontend/components/checkout/progress_steps";
|
39
|
+
@import "spree/frontend/components/checkout/shipment_items";
|
40
|
+
@import "spree/frontend/components/checkout/shipping_methods";
|
41
|
+
@import "spree/frontend/components/checkout/payments/gateway_payment_method";
|
42
|
+
@import "spree/frontend/components/checkout/steps/address_step";
|
43
|
+
@import "spree/frontend/components/checkout/steps/confirm_step";
|
44
|
+
@import "spree/frontend/components/checkout/steps/delivery_step";
|
45
|
+
@import "spree/frontend/components/checkout/steps/payment_step";
|
46
|
+
@import "spree/frontend/components/forms/address_inputs";
|
47
|
+
@import "spree/frontend/components/forms/inputs/checkbox_input";
|
48
|
+
@import "spree/frontend/components/forms/inputs/radio_input";
|
49
|
+
@import "spree/frontend/components/forms/inputs/select_input";
|
50
|
+
@import "spree/frontend/components/forms/inputs/textarea_input";
|
51
|
+
@import "spree/frontend/components/forms/inputs/text";
|
52
|
+
@import "spree/frontend/components/general/flash";
|
53
|
+
@import "spree/frontend/components/layout/header";
|
54
|
+
@import "spree/frontend/components/layout/breadcrumbs";
|
55
|
+
@import "spree/frontend/components/layout/aside";
|
56
|
+
@import "spree/frontend/components/layout/footer";
|
57
|
+
@import "spree/frontend/components/layout/horizontal_input_group";
|
58
|
+
@import 'spree/frontend/components/layout/top_bar';
|
59
|
+
@import 'spree/frontend/components/layout/category_navigation';
|
60
|
+
@import "spree/frontend/components/navigation/auth_link";
|
61
|
+
@import "spree/frontend/components/navigation/categories";
|
62
|
+
@import "spree/frontend/components/navigation/taxonomies";
|
63
|
+
@import "spree/frontend/components/navigation/taxonomy";
|
64
|
+
@import "spree/frontend/components/navigation/locale_selector";
|
65
|
+
@import "spree/frontend/components/orders/address_overview";
|
66
|
+
@import "spree/frontend/components/orders/coupon_codes";
|
67
|
+
@import "spree/frontend/components/orders/line_items";
|
68
|
+
@import "spree/frontend/components/orders/order_details";
|
69
|
+
@import "spree/frontend/components/orders/order_item";
|
70
|
+
@import "spree/frontend/components/orders/order_page";
|
71
|
+
@import "spree/frontend/components/orders/order_shipments";
|
72
|
+
@import "spree/frontend/components/orders/payment_info";
|
73
|
+
@import "spree/frontend/components/presentation/hero";
|
74
|
+
@import "spree/frontend/components/products/products";
|
75
|
+
@import "spree/frontend/components/products/product_card";
|
76
|
+
@import "spree/frontend/components/products/product_image";
|
77
|
+
@import "spree/frontend/components/products/product_info";
|
78
|
+
@import "spree/frontend/components/products/product_page";
|
79
|
+
@import "spree/frontend/components/products/product_properties";
|
80
|
+
@import "spree/frontend/components/products/product_submit";
|
81
|
+
@import "spree/frontend/components/products/product_taxons";
|
82
|
+
@import "spree/frontend/components/products/product_thumbnails";
|
83
|
+
@import "spree/frontend/components/products/product_variants";
|
84
|
+
@import "spree/frontend/components/products/products_by_taxon";
|
85
|
+
@import "spree/frontend/components/products/products_grid";
|
86
|
+
@import "spree/frontend/components/search/search_bar";
|
87
|
+
@import "spree/frontend/components/search/filter";
|
88
|
+
@import "spree/frontend/components/typography/hero_title";
|
89
|
+
@import "spree/frontend/components/typography/subtitle";
|