workarea-one_theme 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +20 -0
- data/.eslintignore +1 -0
- data/.eslintrc +25 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
- data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/workflows/ci.yml +60 -0
- data/.gitignore +21 -0
- data/.rubocop.yml +3 -0
- data/.stylelintrc.json +8 -0
- data/CHANGELOG.md +267 -0
- data/CODE_OF_CONDUCT.md +3 -0
- data/CONTRIBUTING.md +3 -0
- data/Gemfile +20 -0
- data/LICENSE.md +3 -0
- data/README.md +173 -0
- data/Rakefile +63 -0
- data/app/assets/fonts/workarea/storefront/Hind/hind_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Hind/hind_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Hind/hind_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Hind/hind_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_bolditalic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_bolditalic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_italic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_italic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Muli/muli_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bolditalic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_bolditalic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_italic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_italic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Playfair_Display/playfairdisplay_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/Source_Serif_Pro/source_serif_pro_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_bolditalic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_bolditalic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_italic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_italic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/lora/lora_regular_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_bold_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_bold_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_italic_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_italic_webfont.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_regular_webfont.woff +0 -0
- data/app/assets/fonts/workarea/storefront/roboto/roboto_regular_webfont.woff2 +0 -0
- data/app/assets/images/workarea/admin/content_block_types/hero_slider.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/taxonomy_with_category_summary.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/taxonomy_with_products.svg +1 -0
- data/app/assets/images/workarea/storefront/dialog_close.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/account.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/arrow_left.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/arrow_right.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/cart.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/chevron_down.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/chevron_right.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/search.svg +1 -0
- data/app/assets/images/workarea/storefront/logo.png +0 -0
- data/app/assets/javascripts/workarea/storefront/application.js.erb +147 -0
- data/app/assets/javascripts/workarea/storefront/clothing/modules/product_details_color_buttons.js +86 -0
- data/app/assets/javascripts/workarea/storefront/dependencies/jquery.payment.js +655 -0
- data/app/assets/javascripts/workarea/storefront/modules/address_region_fields.js +93 -0
- data/app/assets/javascripts/workarea/storefront/modules/cart_indicator.js +35 -0
- data/app/assets/javascripts/workarea/storefront/modules/checkout_primary_payments.js +136 -0
- data/app/assets/javascripts/workarea/storefront/modules/header_search_ui.js +64 -0
- data/app/assets/javascripts/workarea/storefront/modules/mobile_filters.js +79 -0
- data/app/assets/javascripts/workarea/storefront/modules/mobile_nav_button.js +137 -0
- data/app/assets/javascripts/workarea/storefront/modules/quantity_control.js +56 -0
- data/app/assets/javascripts/workarea/storefront/modules/utility_nav_dropdown.js +43 -0
- data/app/assets/javascripts/workarea/storefront/one_theme/config.js +20 -0
- data/app/assets/javascripts/workarea/storefront/product_quickview/templates/quickview_button.jst.ejs +3 -0
- data/app/assets/javascripts/workarea/storefront/reviews/modules/product_reviews_sort_menus.js +82 -0
- data/app/assets/javascripts/workarea/storefront/reviews/templates/sort_by_property.jst.ejs +19 -0
- data/app/assets/javascripts/workarea/storefront/templates/log_out_link.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/storefront/templates/saved_addresses_property.jst.ejs +23 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_autocomplete.scss +17 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_dialog.scss +150 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_menu.scss +42 -0
- data/app/assets/stylesheets/one_theme/.keep +0 -0
- data/app/assets/stylesheets/workarea/storefront/base/_forms.scss +197 -0
- data/app/assets/stylesheets/workarea/storefront/base/_tables.scss +32 -0
- data/app/assets/stylesheets/workarea/storefront/blog/components/_blog_entry.scss +139 -0
- data/app/assets/stylesheets/workarea/storefront/blog/components/_blog_entry_summary.scss +90 -0
- data/app/assets/stylesheets/workarea/storefront/clothing/components/_color_options.scss +57 -0
- data/app/assets/stylesheets/workarea/storefront/clothing/components/_size_options.scss +123 -0
- data/app/assets/stylesheets/workarea/storefront/components/_account_dashboard.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/components/_box.scss +45 -0
- data/app/assets/stylesheets/workarea/storefront/components/_breadcrumbs.scss +27 -0
- data/app/assets/stylesheets/workarea/storefront/components/_button.scss +72 -0
- data/app/assets/stylesheets/workarea/storefront/components/_button_property.scss +41 -0
- data/app/assets/stylesheets/workarea/storefront/components/_cart.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/components/_category_summary_content_block.scss +78 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_addresses.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_payment.scss +58 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_progress.scss +47 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_shipping.scss +15 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_step_summary.scss +47 -0
- data/app/assets/stylesheets/workarea/storefront/components/_color_box.scss +48 -0
- data/app/assets/stylesheets/workarea/storefront/components/_data_card.scss +70 -0
- data/app/assets/stylesheets/workarea/storefront/components/_hamburger.scss +107 -0
- data/app/assets/stylesheets/workarea/storefront/components/_header.scss +31 -0
- data/app/assets/stylesheets/workarea/storefront/components/_hero_slider_content_block.scss +75 -0
- data/app/assets/stylesheets/workarea/storefront/components/_loading.scss +92 -0
- data/app/assets/stylesheets/workarea/storefront/components/_mobile_filters.scss +42 -0
- data/app/assets/stylesheets/workarea/storefront/components/_mobile_nav.scss +146 -0
- data/app/assets/stylesheets/workarea/storefront/components/_option_button.scss +45 -0
- data/app/assets/stylesheets/workarea/storefront/components/_order_help_menu.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/components/_order_summary.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_container.scss +31 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_content.scss +30 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_footer.scss +96 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_header.scss +188 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_messages.scss +36 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_sub_footer.scss +39 -0
- data/app/assets/stylesheets/workarea/storefront/components/_pagination.scss +10 -0
- data/app/assets/stylesheets/workarea/storefront/components/_payment_icon.scss +29 -0
- data/app/assets/stylesheets/workarea/storefront/components/_primary_nav.scss +99 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_detail_container.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_details.scss +94 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_list.scss +182 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_list_content_block.scss +20 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_media.scss +109 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_prices.scss +45 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_summary.scss +92 -0
- data/app/assets/stylesheets/workarea/storefront/components/_promo_code_accordion.scss +13 -0
- data/app/assets/stylesheets/workarea/storefront/components/_property.scss +68 -0
- data/app/assets/stylesheets/workarea/storefront/components/_quantity_control.scss +77 -0
- data/app/assets/stylesheets/workarea/storefront/components/_result_filters.scss +57 -0
- data/app/assets/stylesheets/workarea/storefront/components/_select_menu.scss +68 -0
- data/app/assets/stylesheets/workarea/storefront/components/_svg_icon.scss +78 -0
- data/app/assets/stylesheets/workarea/storefront/components/_taxonomy_content_block.scss +173 -0
- data/app/assets/stylesheets/workarea/storefront/components/_text_box.scss +57 -0
- data/app/assets/stylesheets/workarea/storefront/components/_text_button.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/components/_utility_nav.scss +49 -0
- data/app/assets/stylesheets/workarea/storefront/components/_value.scss +51 -0
- data/app/assets/stylesheets/workarea/storefront/email/_settings.scss +23 -0
- data/app/assets/stylesheets/workarea/storefront/generic/_fonts.scss.erb +11 -0
- data/app/assets/stylesheets/workarea/storefront/objects/_content_wrapper.scss +23 -0
- data/app/assets/stylesheets/workarea/storefront/product_quickview/components/_quickview_button.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_reviews.scss +66 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_write_review.scss +71 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_colors.scss.erb +21 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_font_families.scss.erb +6 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_global.scss +39 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_typography.scss +8 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_z_indexes.scss +43 -0
- data/app/assets/stylesheets/workarea/storefront/share/components/_share_buttons.scss +22 -0
- data/app/assets/stylesheets/workarea/storefront/slick_slider/components/_slick_slider.scss +171 -0
- data/app/assets/stylesheets/workarea/storefront/swatches/components/_swatch_facet.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/swatches/components/_swatch_options.scss +55 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/_midnight_color_scheme.scss +110 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/_one_color_scheme.scss +104 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/_workarea_color_scheme.scss +105 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_hind.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_lora.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_muli.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_playfair_display.scss +33 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_roboto.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_source_serif_pro.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/tools/_checkout_section.scss +12 -0
- data/app/assets/stylesheets/workarea/storefront/tools/_full_bleed_container.scss +15 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_headings.scss +81 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_links.scss +27 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_text.scss +30 -0
- data/app/helpers/workarea/storefront/one_theme_helper.rb +71 -0
- data/app/seeds/workarea/browse_navigation_seeds.rb +35 -0
- data/app/seeds/workarea/content_block_page_seeds.rb +22 -0
- data/app/seeds/workarea/theme_home_page_seeds.rb +58 -0
- data/app/seeds/workarea/theme_layout_content_seeds.rb +41 -0
- data/app/view_models/workarea/storefront/content_blocks/category_summary_view_model.decorator +21 -0
- data/app/view_models/workarea/storefront/content_blocks/hero_slider_block_view_model.rb +44 -0
- data/app/view_models/workarea/storefront/content_blocks/product_list_view_model.decorator +50 -0
- data/app/view_models/workarea/storefront/content_blocks/taxonomy_with_category_view_model.rb +49 -0
- data/app/view_models/workarea/storefront/content_blocks/taxonomy_with_products_view_model.rb +21 -0
- data/app/view_models/workarea/storefront/product_view_model.decorator +11 -0
- data/app/views/layouts/workarea/storefront/_wish_lists_link.html.haml +4 -0
- data/app/views/layouts/workarea/storefront/application.html.haml +211 -0
- data/app/views/layouts/workarea/storefront/checkout.html.haml +97 -0
- data/app/views/workarea/storefront/blog_comments/index.html.haml +31 -0
- data/app/views/workarea/storefront/blog_entries/_summary.html.haml +26 -0
- data/app/views/workarea/storefront/blog_entries/show.html.haml +85 -0
- data/app/views/workarea/storefront/blogs/_blog_navigation.html.haml +7 -0
- data/app/views/workarea/storefront/blogs/index.html.haml +47 -0
- data/app/views/workarea/storefront/cart_items/create.html.haml +66 -0
- data/app/views/workarea/storefront/carts/show.html.haml +175 -0
- data/app/views/workarea/storefront/categories/show.html.haml +105 -0
- data/app/views/workarea/storefront/checkouts/_gift_card_payment.html.haml +38 -0
- data/app/views/workarea/storefront/checkouts/_summary.html.haml +102 -0
- data/app/views/workarea/storefront/checkouts/addresses.html.haml +56 -0
- data/app/views/workarea/storefront/checkouts/confirmation.html.haml +58 -0
- data/app/views/workarea/storefront/checkouts/payment.html.haml +186 -0
- data/app/views/workarea/storefront/checkouts/shipping.html.haml +38 -0
- data/app/views/workarea/storefront/content_blocks/_blog_entry.html.haml +19 -0
- data/app/views/workarea/storefront/content_blocks/_category_summary.html.haml +20 -0
- data/app/views/workarea/storefront/content_blocks/_hero_slider.html.haml +15 -0
- data/app/views/workarea/storefront/content_blocks/_product_list.html.haml +11 -0
- data/app/views/workarea/storefront/content_blocks/_social_networks.html.haml +17 -0
- data/app/views/workarea/storefront/content_blocks/_taxonomy_with_category_summary.html.haml +26 -0
- data/app/views/workarea/storefront/content_blocks/_taxonomy_with_products.html.haml +26 -0
- data/app/views/workarea/storefront/menus/index.html.haml +17 -0
- data/app/views/workarea/storefront/orders/_summary.html.haml +286 -0
- data/app/views/workarea/storefront/products/_media.html.haml +22 -0
- data/app/views/workarea/storefront/products/_media_carousel.html.haml +25 -0
- data/app/views/workarea/storefront/products/_pricing.html.haml +40 -0
- data/app/views/workarea/storefront/products/_reviews.html.haml +27 -0
- data/app/views/workarea/storefront/products/_subscription_fields.html.haml +15 -0
- data/app/views/workarea/storefront/products/_summary.html.haml +16 -0
- data/app/views/workarea/storefront/products/_swatch_summary.html.haml +17 -0
- data/app/views/workarea/storefront/products/package_show.html.haml +46 -0
- data/app/views/workarea/storefront/products/show.html.haml +53 -0
- data/app/views/workarea/storefront/products/templates/_generic.html.haml +61 -0
- data/app/views/workarea/storefront/products/templates/_gift_card.html.haml +68 -0
- data/app/views/workarea/storefront/products/templates/_option_selects.html.haml +61 -0
- data/app/views/workarea/storefront/products/templates/_option_thumbnails.html.haml +67 -0
- data/app/views/workarea/storefront/products/templates/_swatches.html.haml +78 -0
- data/app/views/workarea/storefront/reviews/new.html.haml +72 -0
- data/app/views/workarea/storefront/searches/content.html.haml +78 -0
- data/app/views/workarea/storefront/searches/show.html.haml +97 -0
- data/app/views/workarea/storefront/shared/_address_fields.html.haml +109 -0
- data/app/views/workarea/storefront/shares/_share_buttons.html.haml +17 -0
- data/app/views/workarea/storefront/style_guides/base/_forms.html.haml +91 -0
- data/app/views/workarea/storefront/style_guides/components/_breadcrumbs.html.haml +13 -0
- data/app/views/workarea/storefront/style_guides/components/_button.html.haml +69 -0
- data/app/views/workarea/storefront/style_guides/components/_category_summary_content_block.html.haml +54 -0
- data/app/views/workarea/storefront/style_guides/components/_header.html.haml +18 -0
- data/app/views/workarea/storefront/style_guides/components/_hero_slider_content_block.html.haml +46 -0
- data/app/views/workarea/storefront/style_guides/components/_mobile_filters.html.haml +17 -0
- data/app/views/workarea/storefront/style_guides/components/_product_list_content_block.html.haml +46 -0
- data/app/views/workarea/storefront/style_guides/components/_product_summary.html.haml +47 -0
- data/app/views/workarea/storefront/style_guides/components/_svg_icon.html.haml +63 -0
- data/app/views/workarea/storefront/style_guides/components/_taxonomy_with_category_summary_content_block.html.haml +33 -0
- data/app/views/workarea/storefront/style_guides/components/_taxonomy_with_products_content_block.html.haml +33 -0
- data/app/views/workarea/storefront/style_guides/components/_text_box.html.haml +63 -0
- data/app/views/workarea/storefront/style_guides/settings/_color_variables.html.haml +79 -0
- data/app/views/workarea/storefront/style_guides/settings/color_schemes/_midnight_color_scheme.html.haml +7 -0
- data/app/views/workarea/storefront/style_guides/settings/color_schemes/_one_color_scheme.html.haml +7 -0
- data/app/views/workarea/storefront/style_guides/settings/color_schemes/_workarea_color_scheme.html.haml +8 -0
- data/app/views/workarea/storefront/style_guides/typography/_headings.html.haml +47 -0
- data/app/views/workarea/storefront/style_guides/typography/_links.html.haml +27 -0
- data/app/views/workarea/storefront/users/accounts/_wish_list_summary.html.haml +16 -0
- data/app/views/workarea/storefront/users/accounts/edit.html.haml +41 -0
- data/app/views/workarea/storefront/users/accounts/show.html.haml +118 -0
- data/app/views/workarea/storefront/users/credit_cards/edit.html.haml +74 -0
- data/app/views/workarea/storefront/users/credit_cards/new.html.haml +66 -0
- data/app/views/workarea/storefront/users/orders/index.html.haml +22 -0
- data/app/views/workarea/storefront/users/orders/show.html.haml +31 -0
- data/app/views/workarea/storefront/users/wish_lists/show.html.haml +136 -0
- data/app/views/workarea/storefront/wish_lists/show.html.haml +99 -0
- data/bin/rails +20 -0
- data/config/initializers/appends.rb +62 -0
- data/config/initializers/configuration.rb +9 -0
- data/config/initializers/content_block_types.rb +91 -0
- data/config/initializers/dragonfly.rb +50 -0
- data/config/initializers/seeds.rb +5 -0
- data/config/initializers/theme.rb +16 -0
- data/config/initializers/workarea.rb +3 -0
- data/config/locales/en.yml +26 -0
- data/config/routes.rb +2 -0
- data/lib/tasks/one_theme_tasks.rake +4 -0
- data/lib/workarea/one_theme.rb +24 -0
- data/lib/workarea/one_theme/engine.rb +13 -0
- data/lib/workarea/one_theme/version.rb +5 -0
- data/package.json +9 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/config/manifest.js +4 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +38 -0
- data/test/dummy/bin/update +29 -0
- data/test/dummy/bin/yarn +11 -0
- data/test/dummy/config.ru +5 -0
- data/test/dummy/config/application.rb +29 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/cable.yml +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +54 -0
- data/test/dummy/config/environments/production.rb +91 -0
- data/test/dummy/config/environments/test.rb +44 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/test/dummy/config/initializers/assets.rb +14 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/workarea.rb +5 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +33 -0
- data/test/dummy/config/puma.rb +56 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config/secrets.yml +32 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/db/seeds.rb +2 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/package.json +5 -0
- data/test/helpers/workarea/storefront/reviews_helper_test.decorator +11 -0
- data/test/integration/workarea/blog/wordpress_import_integration_test.decorator +27 -0
- data/test/integration/workarea/storefront/sharing_integration_test.decorator +40 -0
- data/test/integration/workarea/storefront/swatches_integration_test.decorator +28 -0
- data/test/system/workarea/admin/guest_browsing_system_test.decorator +40 -0
- data/test/system/workarea/storefront/analytics_system_test.decorator +51 -0
- data/test/system/workarea/storefront/browse_swatches_system_test.decorator +48 -0
- data/test/system/workarea/storefront/cart_items_system_test.decorator +98 -0
- data/test/system/workarea/storefront/categories_system_test.decorator +100 -0
- data/test/system/workarea/storefront/content_search_autocomplete_system_test.decorator +33 -0
- data/test/system/workarea/storefront/content_search_system_test.decorator +21 -0
- data/test/system/workarea/storefront/content_system_test.decorator +21 -0
- data/test/system/workarea/storefront/guest_checkout_system_test.decorator +37 -0
- data/test/system/workarea/storefront/logged_in_checkout_system_test.decorator +34 -0
- data/test/system/workarea/storefront/login_system_test.decorator +94 -0
- data/test/system/workarea/storefront/navigation_system_test.decorator +28 -0
- data/test/system/workarea/storefront/passwords_system_test.decorator +59 -0
- data/test/system/workarea/storefront/review_system_test.decorator +23 -0
- data/test/system/workarea/storefront/search_autocomplete_system_test.decorator +46 -0
- data/test/system/workarea/storefront/search_system_test.decorator +71 -0
- data/test/teaspoon_env.rb +6 -0
- data/test/test_helper.rb +10 -0
- data/test/view_models/workarea/storefront/taxonomy_with_category_view_model_test.rb +35 -0
- data/test/view_models/workarea/storefront/taxonomy_with_products_view_model_test.rb +28 -0
- data/workarea-one_theme.gemspec +33 -0
- data/yarn.lock +3290 -0
- metadata +582 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
- if share_url.present?
|
2
|
+
%ul.share-buttons
|
3
|
+
%li.share-buttons__item
|
4
|
+
%p.share-buttons__title= t('workarea.storefront.shares.share_heading')
|
5
|
+
%li.share-buttons__item
|
6
|
+
= link_to "https://www.facebook.com/sharer/sharer.php?#{facebook_query_string(share_url)}", class: 'share-buttons__button', title: t('workarea.storefront.shares.share_on_facebook'), target: '_blank', data: { popup_button: '', analytics: share_analytics_data('facebook', share_url).to_json } do
|
7
|
+
= inline_svg('workarea/storefront/icons/facebook.svg', class: 'svg-icon svg-icon--gray svg-icon--hover-primary-color')
|
8
|
+
%li.share-buttons__item
|
9
|
+
= link_to "https://twitter.com/intent/tweet?#{twitter_query_string(share_url, message)}", class: 'share-buttons__button', title: t('workarea.storefront.shares.share_on_twitter'), target: '_blank', data: { popup_button: '', analytics: share_analytics_data('twitter', share_url).to_json } do
|
10
|
+
= inline_svg('workarea/storefront/icons/twitter.svg', class: 'svg-icon svg-icon--gray svg-icon--hover-primary-color')
|
11
|
+
%li.share-buttons__item
|
12
|
+
= link_to "https://pinterest.com/pin/create/button/?#{share_query_string(share_url, message, local_assigns[:image])}", class: 'share-buttons__button', title: t('workarea.storefront.shares.share_on_pinterest'), target: '_blank', data: { popup_button: '', analytics: share_analytics_data('pinterest', share_url).to_json } do
|
13
|
+
= inline_svg('workarea/storefront/icons/pinterest.svg', class: 'svg-icon svg-icon--gray svg-icon--hover-primary-color')
|
14
|
+
- if message.present?
|
15
|
+
%li.share-buttons__item
|
16
|
+
= link_to new_share_path(url: share_url, title: message), class: 'share-buttons__button', rel: 'nofollow', title: t('workarea.storefront.shares.share_by_email'), data: { dialog_button: '', analytics: share_analytics_data('email', share_url).to_json } do
|
17
|
+
= inline_svg('workarea/storefront/share/icons/email.svg', class: 'svg-icon svg-icon--gray svg-icon--hover-primary-color')
|
@@ -0,0 +1,91 @@
|
|
1
|
+
#forms-base.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('base', 'forms_base')
|
4
|
+
|
5
|
+
%p Global form & form control styling.
|
6
|
+
|
7
|
+
%p should apply a bottom margin to containment elements:
|
8
|
+
.style-guide__example-block
|
9
|
+
%fieldset Fieldset Element
|
10
|
+
.style-guide__example-block
|
11
|
+
%legend Legend Element
|
12
|
+
|
13
|
+
%p should display a larger font for elements:
|
14
|
+
.style-guide__example-block
|
15
|
+
%p Regular font-size
|
16
|
+
.select-menu
|
17
|
+
%select
|
18
|
+
%option Larger Font Size
|
19
|
+
%input{ value: 'Larger Font Size' }
|
20
|
+
%textarea Larger Font Size
|
21
|
+
|
22
|
+
%p should add <code>focus-ring</code> to rectangular form controls (click to focus):
|
23
|
+
.style-guide__example-block
|
24
|
+
%input{ type: 'text', value: 'Input' }
|
25
|
+
.style-guide__example-block
|
26
|
+
%textarea Textarea
|
27
|
+
.style-guide__example-block
|
28
|
+
.select-menu
|
29
|
+
%select
|
30
|
+
%option Select Option
|
31
|
+
|
32
|
+
%p should not allow selects to exceed the width of their container:
|
33
|
+
.style-guide__example-block{ style: 'width: 100px;' }
|
34
|
+
.select-menu
|
35
|
+
%select
|
36
|
+
%option Supercalifragilisticexpialidocious
|
37
|
+
|
38
|
+
%p should align a label to the top of a textarea:
|
39
|
+
.style-guide__example-block
|
40
|
+
%label Label
|
41
|
+
%textarea Textarea
|
42
|
+
|
43
|
+
%p should support a disabled state:
|
44
|
+
.style-guide__example-block
|
45
|
+
%button{ disabled: true } Disabled Button
|
46
|
+
.style-guide__example-block
|
47
|
+
%input{ disabled: true, value: 'Disabled Input' }
|
48
|
+
.style-guide__example-block
|
49
|
+
%textarea{ disabled: true } Disabled Textarea
|
50
|
+
.style-guide__example-block
|
51
|
+
.select-menu
|
52
|
+
%select{ disabled: true }
|
53
|
+
%option Disabled Select
|
54
|
+
%option Disabled Select
|
55
|
+
%option Disabled Select
|
56
|
+
.style-guide__example-block
|
57
|
+
.select-menu
|
58
|
+
%select
|
59
|
+
%optgroup
|
60
|
+
%option Select Optgroup Option
|
61
|
+
%optgroup{ disabled: true }
|
62
|
+
%option Disabled Select Optgroup Option
|
63
|
+
.style-guide__example-block
|
64
|
+
.select-menu
|
65
|
+
%select
|
66
|
+
%option Select Option
|
67
|
+
%option{ disabled: true } Disabled Select Option
|
68
|
+
%option Select Option
|
69
|
+
.style-guide__example-block
|
70
|
+
%fieldset{ disabled: true }
|
71
|
+
%button Disabled Button
|
72
|
+
%input{ value: 'Disabled Input' }
|
73
|
+
%textarea Disabled Textarea
|
74
|
+
.select-menu
|
75
|
+
%select
|
76
|
+
%option Disabled Option
|
77
|
+
|
78
|
+
%p should set the color of placeholder text:
|
79
|
+
.style-guide__example-block
|
80
|
+
%input{ placeholder: 'Placeholder Text' }
|
81
|
+
.style-guide__example-block
|
82
|
+
%textarea{ placeholder: 'Placeholder Text' }
|
83
|
+
.style-guide__example-block
|
84
|
+
%textarea{ placeholder: 'Placeholder Text' }
|
85
|
+
|
86
|
+
%p should style checkboxes
|
87
|
+
.style-guide__example-block
|
88
|
+
.button-property
|
89
|
+
.value= check_box_tag :email_signup, true, params[:email_signup]
|
90
|
+
= label_tag :email_signup, nil, class: 'button-property__name' do
|
91
|
+
%span.button-property__text Example checkbox label
|
@@ -0,0 +1,13 @@
|
|
1
|
+
#breadcrumbs.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('components', 'breadcrumbs')
|
4
|
+
|
5
|
+
%p Styles a set of breadcrumbs.
|
6
|
+
%p Note: breadcrumbs are hidden by default in Workarea OneTheme
|
7
|
+
|
8
|
+
.style-guide__example-block
|
9
|
+
.breadcrumbs
|
10
|
+
%p.breadcrumbs__node-group
|
11
|
+
%span.breadcrumbs__node= link_to 'Foo', '#'
|
12
|
+
%span.breadcrumbs__node= link_to 'Bar', '#'
|
13
|
+
%span.breadcrumbs__node= link_to 'Baz', '#'
|
@@ -0,0 +1,69 @@
|
|
1
|
+
#button.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('components', 'button')
|
4
|
+
|
5
|
+
%p Displays an element as interactive button.
|
6
|
+
|
7
|
+
%p should work with <code>button[type=button]</code> elements:
|
8
|
+
.style-guide__example-block
|
9
|
+
= button_tag 'Button', class: 'button', type: 'button'
|
10
|
+
|
11
|
+
%p should work with <code>button[type=submit]</code> elements:
|
12
|
+
.style-guide__example-block
|
13
|
+
= button_tag 'Button', class: 'button', type: 'submit'
|
14
|
+
|
15
|
+
%p should work with <code>input[type=submit]</code> elements:
|
16
|
+
.style-guide__example-block
|
17
|
+
= submit_tag 'Button', class: 'button'
|
18
|
+
|
19
|
+
%p should work with <code>a</code> elements:
|
20
|
+
.style-guide__example-block
|
21
|
+
= link_to 'Button', '#', class: 'button'
|
22
|
+
|
23
|
+
%p should style non-interactive buttons wrapped in an <code>a</code> element:
|
24
|
+
.style-guide__example-block
|
25
|
+
= link_to '#' do
|
26
|
+
%span.button Span Button
|
27
|
+
|
28
|
+
#button--small.style-guide__subsection
|
29
|
+
|
30
|
+
%h3= link_to_style_guide('components', 'button__small')
|
31
|
+
|
32
|
+
%p should reduce the size of the button:
|
33
|
+
.style-guide__example-block
|
34
|
+
= button_tag 'Button Element', class: 'button button--small'
|
35
|
+
|
36
|
+
#button--large.style-guide__subsection
|
37
|
+
|
38
|
+
%h3= link_to_style_guide('components', 'button__large')
|
39
|
+
|
40
|
+
%p should increase the size of the button:
|
41
|
+
.style-guide__example-block
|
42
|
+
= button_tag 'Button Element', class: 'button button--large'
|
43
|
+
|
44
|
+
#button--full-width.style-guide__subsection
|
45
|
+
|
46
|
+
%h3= link_to_style_guide('components', 'button__full_width')
|
47
|
+
|
48
|
+
%p should make the button full width
|
49
|
+
.style-guide__example-block
|
50
|
+
= button_tag 'Button Element', class: 'button button--full-width'
|
51
|
+
|
52
|
+
|
53
|
+
#button--full-height.style-guide__subsection
|
54
|
+
|
55
|
+
%h3= link_to_style_guide('components', 'button__full_height')
|
56
|
+
|
57
|
+
%p should make the button full height of it's container
|
58
|
+
.style-guide__example-block
|
59
|
+
%div{ style: "height: 100px;"}
|
60
|
+
= button_tag 'Button Element', class: 'button button--full-height'
|
61
|
+
|
62
|
+
|
63
|
+
#button--transparent.style-guide__subsection
|
64
|
+
|
65
|
+
%h3= link_to_style_guide('components', 'button__transparent')
|
66
|
+
|
67
|
+
%p should make the button background transparent
|
68
|
+
.style-guide__example-block
|
69
|
+
= button_tag 'Button Element', class: 'button button--transparent'
|
data/app/views/workarea/storefront/style_guides/components/_category_summary_content_block.html.haml
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
#category-summary-content-block.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('components', 'category_summary_content_block')
|
4
|
+
|
5
|
+
%p Displays a heading followed by a #{link_to_style_guide('components', 'product_grid', true)}, unless the products are empty. Produced by the content editor in the admin.
|
6
|
+
|
7
|
+
%p Category with products and no custom content
|
8
|
+
.style-guide__example-block
|
9
|
+
.category-summary-content-block
|
10
|
+
= link_to '#', class: 'category-summary-content-block__content' do
|
11
|
+
%span.category-summary-content-block__content-container
|
12
|
+
%span.category-summary-content-block__heading Category Name
|
13
|
+
%span.category-summary-content-block__call-to-action View all
|
14
|
+
.category-summary-content-block__products
|
15
|
+
.grid.grid--flush
|
16
|
+
- 4.times do
|
17
|
+
.grid__cell.grid__cell--50.grid__cell--33-at-medium.grid__cell--16-at-wide
|
18
|
+
.product-summary
|
19
|
+
%p.product-summary__media
|
20
|
+
= link_to('#', class: 'product-summary__media-link') do
|
21
|
+
= image_tag('workarea/storefront/style_guide_product.jpg', alt: 'Product Name', class: 'product-summary__media-image')
|
22
|
+
.product-summary__info
|
23
|
+
%p.product-summary__name= link_to('Product Name', '#')
|
24
|
+
.product-prices.product-prices--summary
|
25
|
+
%p.product-prices__price
|
26
|
+
%span= number_to_currency(109.99)
|
27
|
+
|
28
|
+
%p Category with customized heading, CTA, and background image.
|
29
|
+
.style-guide__example-block
|
30
|
+
.category-summary-content-block
|
31
|
+
= link_to '#', class: 'category-summary-content-block__content', style: "background-image: url('/assets//workarea/storefront/style_guide_light_banner.png'); background-size: cover; background-position: center;" do
|
32
|
+
%span.category-summary-content-block__content-container
|
33
|
+
%span.category-summary-content-block__heading Custom heading
|
34
|
+
%span.category-summary-content-block__call-to-action Custom call to action!
|
35
|
+
.category-summary-content-block__products
|
36
|
+
.grid.grid--flush
|
37
|
+
- 4.times do
|
38
|
+
.grid__cell.grid__cell--50.grid__cell--33-at-medium.grid__cell--16-at-wide
|
39
|
+
.product-summary
|
40
|
+
%p.product-summary__media
|
41
|
+
= link_to('#', class: 'product-summary__media-link') do
|
42
|
+
= image_tag('workarea/storefront/style_guide_product.jpg', alt: 'Product Name', class: 'product-summary__media-image')
|
43
|
+
.product-summary__info
|
44
|
+
%p.product-summary__name= link_to('Product Name', '#')
|
45
|
+
.product-prices.product-prices--summary
|
46
|
+
%p.product-prices__price
|
47
|
+
%span= number_to_currency(109.99)
|
48
|
+
|
49
|
+
%p Empty category:
|
50
|
+
.style-guide__example-block
|
51
|
+
.category-summary-content-block
|
52
|
+
%h2 Category Name
|
53
|
+
%p Category Name is empty.
|
54
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
#header.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('components', 'header')
|
4
|
+
|
5
|
+
%p A stylistic wrapper for page headers, providing modifiers to implement responsive layout.
|
6
|
+
|
7
|
+
.style-guide__example-block
|
8
|
+
.header
|
9
|
+
%h1.header__title Header Title
|
10
|
+
%h4.header__sub-title Header Sub-title
|
11
|
+
|
12
|
+
%p Header can be centered for small devices
|
13
|
+
|
14
|
+
.style-guide__example-block
|
15
|
+
.header.header--center-at-small
|
16
|
+
%h1.header__title Header Title
|
17
|
+
%h4.header__sub-title Header Sub-title
|
18
|
+
|
data/app/views/workarea/storefront/style_guides/components/_hero_slider_content_block.html.haml
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
#hero-slider-content-block.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('components', 'hero_slider_content_block')
|
4
|
+
|
5
|
+
%p Displays a series of up to 5 slides in a carousel with image, heading, and subheading.
|
6
|
+
|
7
|
+
%p Hero slider
|
8
|
+
.style-guide__example-block
|
9
|
+
.hero-slider-content-block{ data: { slick_slider: '{"options":{"slidesToShow":1,"slidesToScroll":1,"autoplay":false,"dots":true,"arrows":true,"centerMode":false,"pauseOnHover":true,"pauseOnDotsHover":true,"pauseOnFocus":true,"mobileFirst":true,"responsive":[{"breakpoint":959,"settings":{"autoplay":false,"autoplaySpeed":0.0}}]},"stopOnInteraction":true}' } }
|
10
|
+
.hero-slider-content-block__slide
|
11
|
+
= image_tag 'workarea/storefront/style_guide_light_banner.png', class: 'hero-slider-content-block__slide-image', alt: 'Descriptive alt text'
|
12
|
+
.hero-slider-content-block__slide-content
|
13
|
+
.hero-slider-content-block__slide-heading Heading slide 1
|
14
|
+
.hero-slider-content-block__slide-sub-heading Sub-heading slide 1
|
15
|
+
.hero-slider-content-block__slide
|
16
|
+
= image_tag 'workarea/storefront/style_guide_light_banner.png', class: 'hero-slider-content-block__slide-image', alt: 'Descriptive alt text'
|
17
|
+
.hero-slider-content-block__slide-content
|
18
|
+
.hero-slider-content-block__slide-heading Heading slide 2
|
19
|
+
.hero-slider-content-block__slide-sub-heading Sub-heading slide 2
|
20
|
+
.hero-slider-content-block__slide
|
21
|
+
= image_tag 'workarea/storefront/style_guide_light_banner.png', class: 'hero-slider-content-block__slide-image', alt: 'Descriptive alt text'
|
22
|
+
.hero-slider-content-block__slide-content
|
23
|
+
.hero-slider-content-block__slide-heading Heading slide 3
|
24
|
+
.hero-slider-content-block__slide-sub-heading Sub-heading slide 3
|
25
|
+
|
26
|
+
%p Hero slider - full bleed mode
|
27
|
+
.style-guide__example-block
|
28
|
+
.hero-slider-content-block.hero-slider-content-block--full-bleed{ data: { slick_slider: '{"options":{"slidesToShow":1,"slidesToScroll":1,"autoplay":false,"dots":true,"arrows":true,"centerMode":false,"pauseOnHover":true,"pauseOnDotsHover":true,"pauseOnFocus":true,"mobileFirst":true,"responsive":[{"breakpoint":959,"settings":{"autoplay":false,"autoplaySpeed":0.0}}]},"stopOnInteraction":true}' } }
|
29
|
+
.hero-slider-content-block__slide
|
30
|
+
= image_tag 'workarea/storefront/style_guide_light_banner.png', class: 'hero-slider-content-block__slide-image', alt: 'Descriptive alt text'
|
31
|
+
.content-wrapper
|
32
|
+
.hero-slider-content-block__slide-content
|
33
|
+
.hero-slider-content-block__slide-heading Heading slide 1
|
34
|
+
.hero-slider-content-block__slide-sub-heading Sub-heading slide 1
|
35
|
+
.hero-slider-content-block__slide
|
36
|
+
= image_tag 'workarea/storefront/style_guide_light_banner.png', class: 'hero-slider-content-block__slide-image', alt: 'Descriptive alt text'
|
37
|
+
.content-wrapper
|
38
|
+
.hero-slider-content-block__slide-content
|
39
|
+
.hero-slider-content-block__slide-heading Heading slide 2
|
40
|
+
.hero-slider-content-block__slide-sub-heading Sub-heading slide 2
|
41
|
+
.hero-slider-content-block__slide
|
42
|
+
= image_tag 'workarea/storefront/style_guide_light_banner.png', class: 'hero-slider-content-block__slide-image', alt: 'Descriptive alt text'
|
43
|
+
.content-wrapper
|
44
|
+
.hero-slider-content-block__slide-content
|
45
|
+
.hero-slider-content-block__slide-heading Heading slide 3
|
46
|
+
.hero-slider-content-block__slide-sub-heading Sub-heading slide 3
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#mobile-filters.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('components', 'mobile_filters')
|
4
|
+
|
5
|
+
%p Provides a toggling UI for filtering search results for mobile devices.
|
6
|
+
|
7
|
+
%p should toggle content between a visible and invisible state:
|
8
|
+
.style-guide__example-block
|
9
|
+
.mobile-filters
|
10
|
+
= check_box_tag 'toggle_mobile_filters', nil, true, class: 'mobile-filters__control'
|
11
|
+
.mobile-filters__trigger
|
12
|
+
%button.button{ data: { mobile_filters: ''} } Filter Results
|
13
|
+
.mobile-filters__content
|
14
|
+
%ol
|
15
|
+
%li Filter 1
|
16
|
+
%li Filter 2
|
17
|
+
%li Filter 3
|
data/app/views/workarea/storefront/style_guides/components/_product_list_content_block.html.haml
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
#product-list-content-block.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('components', 'product_list_content_block')
|
4
|
+
|
5
|
+
%p A content block containing <code>.product-summary</code> components.
|
6
|
+
|
7
|
+
%p should provide a responsive layout for multiple <code>.product-summary</code> components:
|
8
|
+
.style-guide__example-block
|
9
|
+
.product-list-content-block
|
10
|
+
.grid.grid--flush
|
11
|
+
- (1..4).each do |i|
|
12
|
+
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
13
|
+
.product-summary.product-summary--small
|
14
|
+
.product-summary__media
|
15
|
+
.product-summary__image-wrapper
|
16
|
+
= image_tag 'workarea/core/placeholder.png', size: '180x180', class: 'product-summary__image'
|
17
|
+
.product-summary__info
|
18
|
+
%span.product-summary__name Product Title #{i}
|
19
|
+
|
20
|
+
%p should support a heading:
|
21
|
+
.style-guide__example-block
|
22
|
+
.product-list-content-block
|
23
|
+
%h2.product-list-content-block__heading Product List Content Block
|
24
|
+
.grid.grid--flush
|
25
|
+
- (1..4).each do |i|
|
26
|
+
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
27
|
+
.product-summary.product-summary--small
|
28
|
+
.product-summary__media
|
29
|
+
.product-summary__image-wrapper
|
30
|
+
= image_tag 'workarea/core/placeholder.png', size: '180x180', class: 'product-summary__image'
|
31
|
+
.product-summary__info
|
32
|
+
%span.product-summary__name Product Title #{i}
|
33
|
+
|
34
|
+
%p should initialize as a carousel if more than 4 products are present:
|
35
|
+
.style-guide__example-block
|
36
|
+
.product-list-content-block
|
37
|
+
%h2.product-list-content-block__heading Product List Content Block with 6 products
|
38
|
+
.grid.grid--flush{ data: { slick_slider: '{"options":{"slidesToShow":1,"slidesToScroll":1,"autoplay":false,"dots":false,"arrows":true,"centerMode":false,"pauseOnHover":true,"pauseOnDotsHover":true,"pauseOnFocus":true,"mobileFirst":true,"responsive":[{"breakpoint":759,"settings":{"slidesToShow":2}},{"breakpoint":959,"settings":{"slidesToShow":4,"autoplay":false,"autoplaySpeed":0.0}}]},"stopOnInteraction":true}' } }
|
39
|
+
- (1..6).each do |i|
|
40
|
+
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
41
|
+
.product-summary.product-summary--small
|
42
|
+
.product-summary__media
|
43
|
+
.product-summary__image-wrapper
|
44
|
+
= image_tag 'workarea/core/placeholder.png', size: '180x180', class: 'product-summary__image'
|
45
|
+
.product-summary__info
|
46
|
+
%span.product-summary__name Product Title #{i}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
#product-summary.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('components', 'product_summary')
|
4
|
+
|
5
|
+
%p Displays a compact product summary for use within #{link_to_style_guide('components', 'product_grid', true)} on product browse and search results pages.
|
6
|
+
|
7
|
+
.style-guide__example-block
|
8
|
+
.grid.grid--flush
|
9
|
+
.grid__cell.grid__cell--25-at-medium
|
10
|
+
.product-summary
|
11
|
+
.product-summary__media
|
12
|
+
.product-summary__media-container
|
13
|
+
= link_to('#', class: 'product-summary__media-link') do
|
14
|
+
= image_tag('workarea/storefront/style_guide_product.jpg', alt: 'Product Name', class: 'product-summary__media-image')
|
15
|
+
.product-summary__info
|
16
|
+
%p.product-summary__name= link_to('Product Name', '#')
|
17
|
+
.product-prices.product-prices--summary
|
18
|
+
%p.product-prices__price
|
19
|
+
%span= number_to_currency(109.99)
|
20
|
+
|
21
|
+
.product-summary__overlay
|
22
|
+
.quickview-button
|
23
|
+
%button.button View
|
24
|
+
|
25
|
+
= append_partials('storefront.style_guide_product_summary')
|
26
|
+
|
27
|
+
#product-summary--small.style-guide__subsection
|
28
|
+
|
29
|
+
%h3= link_to_style_guide('components', 'product_summary__small')
|
30
|
+
|
31
|
+
%p Displays a compact #{link_to_style_guide('components', 'product_summary', true)} for independent use. Reduces the overall size of the component, by shrinking and/or reducing its contents. Frequently used within #{link_to_style_guide('components', 'product_grid__small_summaries', true)} components.
|
32
|
+
|
33
|
+
.style-guide__example-block
|
34
|
+
.product-summary.product-summary--small
|
35
|
+
.product-summary__media
|
36
|
+
.product-summary__media-container
|
37
|
+
= link_to('#', class: 'product-summary__media-link') do
|
38
|
+
= image_tag('workarea/storefront/style_guide_product.jpg', alt: 'Product Name', class: 'product-summary__media-image')
|
39
|
+
.product-summary__info
|
40
|
+
%p.product-summary__name= link_to('Product Name', '#')
|
41
|
+
.product-prices.product-prices--summary
|
42
|
+
%p.product-prices__price
|
43
|
+
%span= number_to_currency(109.99)
|
44
|
+
|
45
|
+
.product-summary__overlay
|
46
|
+
.quickview-button
|
47
|
+
%button.button View
|
@@ -0,0 +1,63 @@
|
|
1
|
+
#svg-icon.style-guide__subsection
|
2
|
+
|
3
|
+
%h3= link_to_style_guide('components', 'svg_icon')
|
4
|
+
|
5
|
+
%p should resize the icon to a default, medium size:
|
6
|
+
.grid.grid--auto.grid--huge
|
7
|
+
- style_guide_icons.each do |path|
|
8
|
+
.grid__cell
|
9
|
+
.align-center
|
10
|
+
= inline_svg path, title: File.basename(path), class: 'svg-icon'
|
11
|
+
%p= File.basename(path, '.svg')
|
12
|
+
|
13
|
+
|
14
|
+
#svg-icon--small.style-guide__subsection
|
15
|
+
|
16
|
+
%h3= link_to_style_guide('components', 'svg_icon__small')
|
17
|
+
|
18
|
+
%p should resize the icon to a smaller size:
|
19
|
+
.grid.grid--auto.grid--huge
|
20
|
+
- style_guide_icons.each do |path|
|
21
|
+
.grid__cell
|
22
|
+
.align-center
|
23
|
+
= inline_svg path, title: File.basename(path), class: 'svg-icon svg-icon--small'
|
24
|
+
%p= File.basename(path, '.svg')
|
25
|
+
|
26
|
+
|
27
|
+
#svg-icon--large.style-guide__subsection
|
28
|
+
|
29
|
+
%h3= link_to_style_guide('components', 'svg_icon__large')
|
30
|
+
|
31
|
+
%p should resize the icon to a larger size:
|
32
|
+
.grid.grid--auto.grid--huge
|
33
|
+
- style_guide_icons.each do |path|
|
34
|
+
.grid__cell
|
35
|
+
.align-center
|
36
|
+
= inline_svg path, title: File.basename(path), class: 'svg-icon svg-icon--large'
|
37
|
+
%p= File.basename(path, '.svg')
|
38
|
+
|
39
|
+
#svg-icon--extra-large.style-guide__subsection
|
40
|
+
|
41
|
+
%h3= link_to_style_guide('components', 'svg_icon__extra-large')
|
42
|
+
|
43
|
+
%p should resize the icon to a extra-large size:
|
44
|
+
.grid.grid--auto.grid--huge
|
45
|
+
- style_guide_icons.each do |path|
|
46
|
+
.grid__cell
|
47
|
+
.align-center
|
48
|
+
= inline_svg path, title: File.basename(path), class: 'svg-icon svg-icon--extra-large'
|
49
|
+
%p= File.basename(path, '.svg')
|
50
|
+
|
51
|
+
|
52
|
+
- %w(hover-primary-color theme-header link-color blue yellow red green white gray black black-alpha-50 black-alpha-15).each do |color|
|
53
|
+
.style-guide__subsection{ id: "svg-icon--#{color}" }
|
54
|
+
|
55
|
+
%h3= link_to_style_guide('components', "svg_icon__#{color}")
|
56
|
+
|
57
|
+
%p should change the fill color of the icon to <strong>#{color}</strong>:
|
58
|
+
.grid.grid--auto.grid--huge{ style: ('background: #303541; color: white; padding-top: 16px;' if color == 'white') }
|
59
|
+
- style_guide_icons.each do |path|
|
60
|
+
.grid__cell
|
61
|
+
.align-center
|
62
|
+
= inline_svg path, title: File.basename(path), class: "svg-icon svg-icon--#{color}"
|
63
|
+
%p= File.basename(path, '.svg')
|