workarea-nvy_theme 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.editorconfig +16 -0
- data/.eslintrc +25 -0
- data/.gitignore +24 -0
- data/.rubocop.yml +8 -0
- data/.scss-lint.yml +192 -0
- data/CHANGELOG.md +82 -0
- data/Gemfile +17 -0
- data/README.md +185 -0
- data/Rakefile +62 -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/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/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/overpass/overpass_bold.woff +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_bold.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_bolditalic.woff +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_bolditalic.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_italic.woff +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_italic.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_regular.woff +0 -0
- data/app/assets/fonts/workarea/storefront/overpass/overpass_regular.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/poppins/poppins_300.woff +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_300.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_500.woff +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_500.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_700.woff +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_700.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_regular.woff +0 -0
- data/app/assets/fonts/workarea/storefront/poppins/poppins_regular.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/pt_serif/pt_serif_700.woff +0 -0
- data/app/assets/fonts/workarea/storefront/pt_serif/pt_serif_700.woff2 +0 -0
- data/app/assets/fonts/workarea/storefront/pt_serif/pt_serif_regular.woff +0 -0
- data/app/assets/fonts/workarea/storefront/pt_serif/pt_serif_regular.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/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/images/workarea/storefront/icons/account.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/arrowfill.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/bag.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/close.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/eye.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/heart.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/minus.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/plus.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/search.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/social/facebook.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/social/instagram.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/social/pinterest.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/social/tumblr.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/social/twitter.svg +1 -0
- data/app/assets/images/workarea/storefront/icons/validation_icon.svg +1 -0
- data/app/assets/images/workarea/storefront/logo.png +0 -0
- data/app/assets/images/workarea/storefront/logo.svg +1 -0
- data/app/assets/images/workarea/storefront/logo@3x.png +0 -0
- data/app/assets/images/workarea/storefront/logo_small.png +0 -0
- data/app/assets/images/workarea/storefront/logo_small.svg +1 -0
- data/app/assets/images/workarea/storefront/logo_small@3x.png +0 -0
- data/app/assets/javascripts/nvy_theme/.keep +0 -0
- data/app/assets/javascripts/workarea/storefront/modules/alternate_image_buttons.js +78 -0
- data/app/assets/javascripts/workarea/storefront/modules/mobile_filter_buttons.js +94 -0
- data/app/assets/javascripts/workarea/storefront/modules/mobile_nav_button.js +104 -0
- data/app/assets/javascripts/workarea/storefront/modules/toggle_class_button.js +44 -0
- data/app/assets/javascripts/workarea/storefront/modules/user_welcome_placeholder.js +38 -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 +15 -0
- data/app/assets/javascripts/workarea/storefront/templates/back_to_top_button.jst.ejs +3 -0
- data/app/assets/javascripts/workarea/storefront/templates/log_out_link.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/storefront/templates/mobile_filters_nav_close_button.jst.ejs +3 -0
- data/app/assets/javascripts/workarea/storefront/templates/saved_addresses_property.jst.ejs +23 -0
- data/app/assets/javascripts/workarea/storefront/templates/user_welcome.jst.ejs +7 -0
- data/app/assets/stylesheets/jquery_ui/storefront/_ui_dialog.scss +169 -0
- data/app/assets/stylesheets/workarea/storefront/base/_forms.scss +113 -0
- data/app/assets/stylesheets/workarea/storefront/base/_input_checkbox.scss +55 -0
- data/app/assets/stylesheets/workarea/storefront/base/_input_radio.scss +59 -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 +103 -0
- data/app/assets/stylesheets/workarea/storefront/blog/components/_featured_entry_content_block.scss +22 -0
- data/app/assets/stylesheets/workarea/storefront/components/_account_menu.scss +62 -0
- data/app/assets/stylesheets/workarea/storefront/components/_back_to_top_button.scss +22 -0
- data/app/assets/stylesheets/workarea/storefront/components/_box.scss +44 -0
- data/app/assets/stylesheets/workarea/storefront/components/_breadcrumbs.scss +31 -0
- data/app/assets/stylesheets/workarea/storefront/components/_browsing_controls.scss +43 -0
- data/app/assets/stylesheets/workarea/storefront/components/_button.scss +97 -0
- data/app/assets/stylesheets/workarea/storefront/components/_button_property.scss +41 -0
- data/app/assets/stylesheets/workarea/storefront/components/_cart.scss +44 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_addresses.scss +25 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_payment.scss +50 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_progress.scss +102 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_shipping.scss +14 -0
- data/app/assets/stylesheets/workarea/storefront/components/_checkout_step_summary.scss +19 -0
- data/app/assets/stylesheets/workarea/storefront/components/_color_box.scss +30 -0
- data/app/assets/stylesheets/workarea/storefront/components/_content_block.scss +57 -0
- data/app/assets/stylesheets/workarea/storefront/components/_data_card.scss +65 -0
- data/app/assets/stylesheets/workarea/storefront/components/_login.scss +32 -0
- data/app/assets/stylesheets/workarea/storefront/components/_mobile_filters_nav.scss +42 -0
- data/app/assets/stylesheets/workarea/storefront/components/_mobile_nav.scss +111 -0
- data/app/assets/stylesheets/workarea/storefront/components/_option_button.scss +48 -0
- data/app/assets/stylesheets/workarea/storefront/components/_order_help_menu.scss +24 -0
- data/app/assets/stylesheets/workarea/storefront/components/_overlay.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_content.scss +30 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_footer.scss +104 -0
- data/app/assets/stylesheets/workarea/storefront/components/_page_header.scss +237 -0
- data/app/assets/stylesheets/workarea/storefront/components/_pagination.scss +10 -0
- data/app/assets/stylesheets/workarea/storefront/components/_primary_nav.scss +76 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_detail_container.scss +16 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_details.scss +82 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_list.scss +193 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_media.scss +76 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_prices.scss +46 -0
- data/app/assets/stylesheets/workarea/storefront/components/_product_summary.scss +119 -0
- data/app/assets/stylesheets/workarea/storefront/components/_property.scss +70 -0
- data/app/assets/stylesheets/workarea/storefront/components/_recent_views.scss +36 -0
- data/app/assets/stylesheets/workarea/storefront/components/_recommendations.scss +40 -0
- data/app/assets/stylesheets/workarea/storefront/components/_result_filters.scss +93 -0
- data/app/assets/stylesheets/workarea/storefront/components/_secondary_nav.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/components/_svg_icon.scss +56 -0
- data/app/assets/stylesheets/workarea/storefront/components/_table.scss +75 -0
- data/app/assets/stylesheets/workarea/storefront/components/_taxonomy_content_block.scss +204 -0
- data/app/assets/stylesheets/workarea/storefront/components/_text_box.scss +62 -0
- data/app/assets/stylesheets/workarea/storefront/components/_text_button.scss +39 -0
- data/app/assets/stylesheets/workarea/storefront/components/_validation_icon.scss +29 -0
- data/app/assets/stylesheets/workarea/storefront/components/_value.scss +95 -0
- data/app/assets/stylesheets/workarea/storefront/generic/_fonts.scss.erb +11 -0
- data/app/assets/stylesheets/workarea/storefront/product_quickview/components/_quickview_button.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_rating.scss +28 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_reviews.scss +81 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_reviews_aggregate.scss +43 -0
- data/app/assets/stylesheets/workarea/storefront/reviews/components/_write_review.scss +63 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_colors.scss.erb +17 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_font_families.scss.erb +6 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_global.scss +35 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_grid.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_typography.scss +17 -0
- data/app/assets/stylesheets/workarea/storefront/settings/_z_indexes.scss +32 -0
- data/app/assets/stylesheets/workarea/storefront/share/components/_share_buttons.scss +30 -0
- data/app/assets/stylesheets/workarea/storefront/slick_slider/components/_slick_slider.scss +137 -0
- data/app/assets/stylesheets/workarea/storefront/swatches/components/_option_button.scss +17 -0
- data/app/assets/stylesheets/workarea/storefront/swatches/components/_swatch_facet.scss +24 -0
- data/app/assets/stylesheets/workarea/storefront/swatches/components/_swatch_options.scss +63 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/color_schemes/_neutral_color_scheme.scss +195 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/color_schemes/_nvy_color_scheme.scss +196 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/color_schemes/_vermillion_color_scheme.scss +199 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_hind.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_lora.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_muli.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_overpass.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_playfair_display.scss +37 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_poppins.scss +40 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_pt_serif.scss +22 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_roboto.scss +29 -0
- data/app/assets/stylesheets/workarea/storefront/theme_config/fonts/_source_serif_pro.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_headings.scss +153 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_links.scss +21 -0
- data/app/assets/stylesheets/workarea/storefront/typography/_text.scss +26 -0
- data/app/assets/stylesheets/workarea/storefront/wish_lists/components/_wish_list_form.scss +8 -0
- data/app/assets/stylesheets/workarea/styled_selects/components/_styled_select.scss +71 -0
- data/app/helpers/workarea/storefront/image_helper.rb +10 -0
- data/app/helpers/workarea/storefront/product_media_slider_helper.rb +31 -0
- data/app/views/layouts/workarea/storefront/_wish_lists_link.html.haml +4 -0
- data/app/views/layouts/workarea/storefront/application.html.haml +191 -0
- data/app/views/layouts/workarea/storefront/checkout.html.haml +90 -0
- data/app/views/workarea/storefront/blog_comments/index.html.haml +31 -0
- data/app/views/workarea/storefront/blog_entries/show.html.haml +79 -0
- data/app/views/workarea/storefront/blogs/_blog_navigation.html.haml +6 -0
- data/app/views/workarea/storefront/cart_items/create.html.haml +59 -0
- data/app/views/workarea/storefront/carts/_move_to_wish_list.html.haml +6 -0
- data/app/views/workarea/storefront/carts/show.html.haml +175 -0
- data/app/views/workarea/storefront/categories/show.html.haml +111 -0
- data/app/views/workarea/storefront/checkouts/_checkout_progress.html.haml +25 -0
- data/app/views/workarea/storefront/checkouts/_gift_card_payment.html.haml +28 -0
- data/app/views/workarea/storefront/checkouts/_summary.html.haml +102 -0
- data/app/views/workarea/storefront/checkouts/addresses.html.haml +57 -0
- data/app/views/workarea/storefront/checkouts/confirmation.html.haml +41 -0
- data/app/views/workarea/storefront/checkouts/payment.html.haml +186 -0
- data/app/views/workarea/storefront/checkouts/shipping.html.haml +39 -0
- data/app/views/workarea/storefront/content_blocks/_category_summary.html.haml +15 -0
- data/app/views/workarea/storefront/content_blocks/_product_insights.html.haml +10 -0
- data/app/views/workarea/storefront/content_blocks/_product_list.html.haml +10 -0
- data/app/views/workarea/storefront/content_blocks/_taxonomy.html.haml +27 -0
- data/app/views/workarea/storefront/content_blocks/_three_column_taxonomy.html.haml +29 -0
- data/app/views/workarea/storefront/content_blocks/_two_column_taxonomy.html.haml +28 -0
- data/app/views/workarea/storefront/facets/_range.html.haml +11 -0
- data/app/views/workarea/storefront/facets/_swatches.html.haml +13 -0
- data/app/views/workarea/storefront/facets/_terms.html.haml +11 -0
- data/app/views/workarea/storefront/menus/index.html.haml +14 -0
- data/app/views/workarea/storefront/menus/show.html.haml +11 -0
- data/app/views/workarea/storefront/orders/_summary.html.haml +271 -0
- data/app/views/workarea/storefront/orders/index.html.haml +42 -0
- data/app/views/workarea/storefront/products/_media.html.haml +14 -0
- data/app/views/workarea/storefront/products/_rating.html.haml +10 -0
- data/app/views/workarea/storefront/products/_reviews.html.haml +22 -0
- data/app/views/workarea/storefront/products/_reviews_aggregate.html.haml +22 -0
- data/app/views/workarea/storefront/products/_reviews_summary.html.haml +2 -0
- data/app/views/workarea/storefront/products/show.html.haml +45 -0
- data/app/views/workarea/storefront/products/templates/_generic.html.haml +54 -0
- data/app/views/workarea/storefront/products/templates/_gift_card.html.haml +67 -0
- data/app/views/workarea/storefront/products/templates/_option_selects.html.haml +57 -0
- data/app/views/workarea/storefront/products/templates/_option_thumbnails.html.haml +62 -0
- data/app/views/workarea/storefront/products/templates/_swatches.html.haml +66 -0
- data/app/views/workarea/storefront/recent_views/show.html.haml +27 -0
- data/app/views/workarea/storefront/recommendations/show.html.haml +9 -0
- data/app/views/workarea/storefront/reviews/new.html.haml +69 -0
- data/app/views/workarea/storefront/searches/show.html.haml +104 -0
- data/app/views/workarea/storefront/shared/_address_fields.html.haml +113 -0
- data/app/views/workarea/storefront/shared/_left_navigation.html.haml +25 -0
- data/app/views/workarea/storefront/shares/_share_buttons.html.haml +19 -0
- data/app/views/workarea/storefront/shares/new.html.haml +50 -0
- data/app/views/workarea/storefront/style_guides/base/_forms.html.haml +88 -0
- data/app/views/workarea/storefront/style_guides/components/_button.html.haml +89 -0
- data/app/views/workarea/storefront/style_guides/components/_personalized_recommendations_content_block.html.haml +32 -0
- data/app/views/workarea/storefront/style_guides/components/_product_insights_content_block.html.haml +32 -0
- data/app/views/workarea/storefront/style_guides/components/_product_list_content_block.html.haml +32 -0
- data/app/views/workarea/storefront/style_guides/components/_styled_select.html.haml +27 -0
- data/app/views/workarea/storefront/style_guides/components/_validation_icon.haml +21 -0
- data/app/views/workarea/storefront/style_guides/components/_value.html.haml +77 -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/_neutral_color_scheme.html.haml +15 -0
- data/app/views/workarea/storefront/style_guides/settings/color_schemes/_nvy_color_scheme.html.haml +15 -0
- data/app/views/workarea/storefront/style_guides/settings/color_schemes/_vermillion_color_scheme.html.haml +7 -0
- data/app/views/workarea/storefront/style_guides/typography/_fonts.html.haml +15 -0
- data/app/views/workarea/storefront/style_guides/typography/_headings.html.haml +40 -0
- data/app/views/workarea/storefront/users/_nvy_current_user.json.jbuilder +1 -0
- data/app/views/workarea/storefront/users/accounts/_wish_list_summary.html.haml +15 -0
- data/app/views/workarea/storefront/users/accounts/edit.html.haml +51 -0
- data/app/views/workarea/storefront/users/accounts/show.html.haml +119 -0
- data/app/views/workarea/storefront/users/addresses/edit.html.haml +24 -0
- data/app/views/workarea/storefront/users/addresses/new.html.haml +24 -0
- data/app/views/workarea/storefront/users/credit_cards/edit.html.haml +75 -0
- data/app/views/workarea/storefront/users/credit_cards/new.html.haml +68 -0
- data/app/views/workarea/storefront/users/logins/new.html.haml +55 -0
- data/app/views/workarea/storefront/users/orders/_summary.html.haml +23 -0
- data/app/views/workarea/storefront/users/passwords/change.html.haml +29 -0
- data/app/views/workarea/storefront/users/passwords/edit.html.haml +17 -0
- data/app/views/workarea/storefront/wish_lists/_add_form.html.haml +10 -0
- data/bin/rails +20 -0
- data/config/initializers/appends.rb +40 -0
- data/config/initializers/dragonfly.rb +31 -0
- data/config/initializers/theme.rb +39 -0
- data/config/initializers/workarea.rb +3 -0
- data/config/locales/en.yml +34 -0
- data/config/routes.rb +2 -0
- data/lib/tasks/theme_cleanup.rake +20 -0
- data/lib/workarea/nvy_theme.rb +22 -0
- data/lib/workarea/nvy_theme/engine.rb +16 -0
- data/lib/workarea/nvy_theme/version.rb +5 -0
- data/lib/workarea/theme/override_commit +1 -0
- data/public/screenshots/cart.png +0 -0
- data/public/screenshots/category_browse.png +0 -0
- data/public/screenshots/checkout_addresses.png +0 -0
- data/public/screenshots/checkout_payment.png +0 -0
- data/public/screenshots/homepage.png +0 -0
- data/public/screenshots/order_confirmation.png +0 -0
- data/public/screenshots/product_detail_page.png +0 -0
- data/script/admin_ci +9 -0
- data/script/ci +11 -0
- data/script/core_ci +9 -0
- data/script/plugins_ci +9 -0
- data/script/storefront_ci +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 +28 -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/system/workarea/admin/guest_browsing_system_test.decorator +38 -0
- data/test/system/workarea/storefront/analytics_system_test.decorator +107 -0
- data/test/system/workarea/storefront/categories_system_test.decorator +131 -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/pagination_system_test.decorator +89 -0
- data/test/system/workarea/storefront/passwords_system_test.decorator +59 -0
- data/test/system/workarea/storefront/search_system_test.decorator +105 -0
- data/test/system/workarea/storefront/styled_selects_system_test.decorator +21 -0
- data/test/teaspoon_env.rb +6 -0
- data/test/test_helper.rb +10 -0
- data/test/view_models/workarea/storefront/content_blocks/product_insights_view_model_test.decorator +43 -0
- data/workarea-nvy_theme.gemspec +30 -0
- metadata +574 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 78f5db87d3194f8084f1438c1c5bee2b4917ee41d5475108b550fc0f04e98c41
|
|
4
|
+
data.tar.gz: 47cfdafed38dfa853c5d5e3e68ff1836eebc3906bb0452243422256884bf7443
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 74fe8c4950fedf57c52f5d2b5b48e7505cd1e36e6ea8d2243d5ac79aea463376fd161f15e8e88c32931f41c7d149897daed8702dbff13b133d020b0a76aaefe6
|
|
7
|
+
data.tar.gz: fb14fb0556440f9fd0a5d27b9882a1639b50ef90e40e86d28a6ac06ff70c624ae9da0a51adcc666962336a4d4cdc943dc6f3dcc5ff32c7a180dc1192e4c56809
|
data/.editorconfig
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
charset = utf-8
|
|
6
|
+
indent_style = space
|
|
7
|
+
end_of_line = lf
|
|
8
|
+
trim_trailing_whitespace = true
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
|
|
11
|
+
[{*.rb,*.haml,*.decorator}]
|
|
12
|
+
indent_size = 2
|
|
13
|
+
indent_style = space
|
|
14
|
+
|
|
15
|
+
[{*.js,*.jst,*.ejs,*.scss}]
|
|
16
|
+
indent_size = 4
|
data/.eslintrc
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "eslint:recommended",
|
|
3
|
+
"rules": {
|
|
4
|
+
"semi": ["error", "always"],
|
|
5
|
+
"eqeqeq": ["error", "always"]
|
|
6
|
+
},
|
|
7
|
+
"globals": {
|
|
8
|
+
"window": true,
|
|
9
|
+
"document": true,
|
|
10
|
+
"WORKAREA": true,
|
|
11
|
+
"$": true,
|
|
12
|
+
"jQuery": true,
|
|
13
|
+
"_": true,
|
|
14
|
+
"feature": true,
|
|
15
|
+
"JST": true,
|
|
16
|
+
"Turbolinks": true,
|
|
17
|
+
"I18n": true,
|
|
18
|
+
"Chart": true,
|
|
19
|
+
"Dropzone": true,
|
|
20
|
+
"strftime": true,
|
|
21
|
+
"Waypoint": true,
|
|
22
|
+
"wysihtml": true,
|
|
23
|
+
"LocalTime": true,
|
|
24
|
+
}
|
|
25
|
+
}
|
data/.gitignore
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.bundle/
|
|
2
|
+
log/*.log
|
|
3
|
+
pkg/
|
|
4
|
+
test/dummy/db/*.sqlite3
|
|
5
|
+
test/dummy/db/*.sqlite3-journal
|
|
6
|
+
test/dummy/log/*.log
|
|
7
|
+
test/dummy/node_modules/
|
|
8
|
+
test/dummy/yarn-error.log
|
|
9
|
+
test/dummy/tmp/
|
|
10
|
+
.DS_Store
|
|
11
|
+
.byebug_history
|
|
12
|
+
.bundle/
|
|
13
|
+
.sass-cache/
|
|
14
|
+
Gemfile.lock
|
|
15
|
+
pkg/
|
|
16
|
+
test/dummy/tmp/
|
|
17
|
+
test/dummy/public/
|
|
18
|
+
log/*.log
|
|
19
|
+
test/dummy/log/*.log
|
|
20
|
+
test/dummy/db/*.sqlite3
|
|
21
|
+
test/dummy/db/*.sqlite3-journal
|
|
22
|
+
node_modules
|
|
23
|
+
package.json
|
|
24
|
+
yarn.lock
|
data/.rubocop.yml
ADDED
data/.scss-lint.yml
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# Extension of the default configuration:
|
|
2
|
+
# https://github.com/causes/scss-lint/blob/master/config/default.yml
|
|
3
|
+
|
|
4
|
+
exclude: 'docs/**'
|
|
5
|
+
|
|
6
|
+
linters:
|
|
7
|
+
Comment:
|
|
8
|
+
enabled: false
|
|
9
|
+
|
|
10
|
+
DeclarationOrder:
|
|
11
|
+
enabled: true
|
|
12
|
+
|
|
13
|
+
ElsePlacement:
|
|
14
|
+
enabled: true
|
|
15
|
+
|
|
16
|
+
EmptyRule:
|
|
17
|
+
enabled: false
|
|
18
|
+
|
|
19
|
+
HexLength:
|
|
20
|
+
enabled: true
|
|
21
|
+
style: long
|
|
22
|
+
|
|
23
|
+
Indentation:
|
|
24
|
+
enabled: true
|
|
25
|
+
allow_non_nested_indentation: true
|
|
26
|
+
character: space
|
|
27
|
+
width: 4
|
|
28
|
+
|
|
29
|
+
LeadingZero:
|
|
30
|
+
enabled: true
|
|
31
|
+
style: include_zero
|
|
32
|
+
|
|
33
|
+
MergeableSelector:
|
|
34
|
+
enabled: true
|
|
35
|
+
force_nesting: false
|
|
36
|
+
|
|
37
|
+
PropertySortOrder:
|
|
38
|
+
enabled: true
|
|
39
|
+
ignore_unspecified: false
|
|
40
|
+
separate_groups: false
|
|
41
|
+
order:
|
|
42
|
+
- display
|
|
43
|
+
-
|
|
44
|
+
- position
|
|
45
|
+
- top
|
|
46
|
+
- right
|
|
47
|
+
- bottom
|
|
48
|
+
- left
|
|
49
|
+
- z-index
|
|
50
|
+
-
|
|
51
|
+
- margin
|
|
52
|
+
- margin-top
|
|
53
|
+
- margin-right
|
|
54
|
+
- margin-bottom
|
|
55
|
+
- margin-left
|
|
56
|
+
-
|
|
57
|
+
- margin-collapse
|
|
58
|
+
- margin-top-collapse
|
|
59
|
+
- margin-right-collapse
|
|
60
|
+
- margin-bottom-collapse
|
|
61
|
+
- margin-left-collapse
|
|
62
|
+
-
|
|
63
|
+
- padding
|
|
64
|
+
- padding-top
|
|
65
|
+
- padding-right
|
|
66
|
+
- padding-bottom
|
|
67
|
+
- padding-left
|
|
68
|
+
-
|
|
69
|
+
- width
|
|
70
|
+
- height
|
|
71
|
+
- max-width
|
|
72
|
+
- max-height
|
|
73
|
+
- min-width
|
|
74
|
+
- min-height
|
|
75
|
+
-
|
|
76
|
+
- float
|
|
77
|
+
- clear
|
|
78
|
+
-
|
|
79
|
+
- color
|
|
80
|
+
-
|
|
81
|
+
- font
|
|
82
|
+
- font-size
|
|
83
|
+
- font-style
|
|
84
|
+
- font-family
|
|
85
|
+
- font-weight
|
|
86
|
+
- font-variant
|
|
87
|
+
- font-smoothing
|
|
88
|
+
-
|
|
89
|
+
- line-height
|
|
90
|
+
- letter-spacing
|
|
91
|
+
- word-spacing
|
|
92
|
+
-
|
|
93
|
+
- text-align
|
|
94
|
+
- text-indent
|
|
95
|
+
- text-shadow
|
|
96
|
+
- text-overflow
|
|
97
|
+
- text-rendering
|
|
98
|
+
- text-transform
|
|
99
|
+
- text-decoration
|
|
100
|
+
- text-size-adjust
|
|
101
|
+
-
|
|
102
|
+
- word-break
|
|
103
|
+
- word-wrap
|
|
104
|
+
-
|
|
105
|
+
- white-space
|
|
106
|
+
-
|
|
107
|
+
- background
|
|
108
|
+
- background-size
|
|
109
|
+
- background-color
|
|
110
|
+
- background-image
|
|
111
|
+
- background-repeat
|
|
112
|
+
- background-position
|
|
113
|
+
- background-attachment
|
|
114
|
+
-
|
|
115
|
+
- border
|
|
116
|
+
- border-top
|
|
117
|
+
- border-right
|
|
118
|
+
- border-bottom
|
|
119
|
+
- border-left
|
|
120
|
+
-
|
|
121
|
+
- border-image
|
|
122
|
+
- border-spacing
|
|
123
|
+
- border-collapse
|
|
124
|
+
-
|
|
125
|
+
- border-color
|
|
126
|
+
- border-top-color
|
|
127
|
+
- border-right-color
|
|
128
|
+
- border-bottom-color
|
|
129
|
+
- border-left-color
|
|
130
|
+
-
|
|
131
|
+
- border-style
|
|
132
|
+
- border-top-style
|
|
133
|
+
- border-right-style
|
|
134
|
+
- border-bottom-style
|
|
135
|
+
- border-left-style
|
|
136
|
+
-
|
|
137
|
+
- border-width
|
|
138
|
+
- border-top-width
|
|
139
|
+
- border-right-width
|
|
140
|
+
- border-bottom-width
|
|
141
|
+
- border-left-width
|
|
142
|
+
-
|
|
143
|
+
- border-radius
|
|
144
|
+
- border-top-right-radius
|
|
145
|
+
- border-bottom-right-radius
|
|
146
|
+
- border-bottom-left-radius
|
|
147
|
+
- border-top-left-radius
|
|
148
|
+
- border-radius-topright
|
|
149
|
+
- border-radius-bottomright
|
|
150
|
+
- border-radius-bottomleft
|
|
151
|
+
- border-radius-topleft
|
|
152
|
+
-
|
|
153
|
+
- box-shadow
|
|
154
|
+
|
|
155
|
+
SelectorFormat:
|
|
156
|
+
enabled: true
|
|
157
|
+
convention: hyphenated_BEM
|
|
158
|
+
|
|
159
|
+
SingleLinePerSelector:
|
|
160
|
+
enabled: false
|
|
161
|
+
|
|
162
|
+
SpaceAfterPropertyColon:
|
|
163
|
+
enabled: true
|
|
164
|
+
style: at_least_one_space
|
|
165
|
+
|
|
166
|
+
SpaceBeforeBrace:
|
|
167
|
+
enabled: true
|
|
168
|
+
style: space
|
|
169
|
+
allow_single_line_padding: true
|
|
170
|
+
|
|
171
|
+
VariableForProperty:
|
|
172
|
+
enabled: true
|
|
173
|
+
properties:
|
|
174
|
+
- color
|
|
175
|
+
- font-family
|
|
176
|
+
- background-color
|
|
177
|
+
|
|
178
|
+
PseudoElement:
|
|
179
|
+
enabled: false
|
|
180
|
+
|
|
181
|
+
# These default settings may be problematic to implementors. They are not
|
|
182
|
+
# ommitted so that they may be adjusted as needed during an implementation.
|
|
183
|
+
#
|
|
184
|
+
# For documentation:
|
|
185
|
+
# https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md
|
|
186
|
+
|
|
187
|
+
DuplicateProperty:
|
|
188
|
+
enabled: true
|
|
189
|
+
|
|
190
|
+
PropertySpelling:
|
|
191
|
+
enabled: true
|
|
192
|
+
extra_properties: [] # Add experimental CSS to this array, if needed
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Workarea Nvy Theme 1.1.2 (2019-06-25)
|
|
2
|
+
--------------------------------------------------------------------------------
|
|
3
|
+
|
|
4
|
+
* Open Source!
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Workarea Nvy Theme 1.1.1 (2019-06-25)
|
|
9
|
+
--------------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
* Prevent test failures due to whitespace issues
|
|
12
|
+
|
|
13
|
+
See: https://discourse.workarea.com/t/capybara-3-whitespace-issue/1519
|
|
14
|
+
|
|
15
|
+
NVY-23
|
|
16
|
+
Jake Beresford
|
|
17
|
+
|
|
18
|
+
* Implement retina support for logo
|
|
19
|
+
|
|
20
|
+
* Add original SVGs for logos, generate high resolution versions and optimize all logo assets
|
|
21
|
+
* Add image_set_tag helper method for retina images using srcset
|
|
22
|
+
* Implement image_set_tag for logo using new assets
|
|
23
|
+
|
|
24
|
+
NVY-22
|
|
25
|
+
Jake Beresford
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
Workarea Nvy Theme 1.1.0 (2019-04-03)
|
|
30
|
+
--------------------------------------------------------------------------------
|
|
31
|
+
|
|
32
|
+
* Bump version for 1.1.0 release
|
|
33
|
+
|
|
34
|
+
Jake Beresford
|
|
35
|
+
|
|
36
|
+
* Update for v3.4 compatibility
|
|
37
|
+
|
|
38
|
+
* Updates favicon tags to render rather than using helper
|
|
39
|
+
* Storefront UI changes from v3.4 including via tracking, removal of autocorrect, and others.
|
|
40
|
+
* Fixes tests for v3.4
|
|
41
|
+
* Update CI scripts for mongo 4
|
|
42
|
+
* Update gemspec to loosen plugin dependencies
|
|
43
|
+
|
|
44
|
+
NVY-21
|
|
45
|
+
Jake Beresford
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
Workarea Nvy Theme 1.0.1 (2019-02-19)
|
|
50
|
+
--------------------------------------------------------------------------------
|
|
51
|
+
|
|
52
|
+
* Make email signup field text readable
|
|
53
|
+
|
|
54
|
+
* Adds scoped style for .text-box within .page-footer, using page-footer-color as color
|
|
55
|
+
|
|
56
|
+
NVY-19
|
|
57
|
+
Jake Beresford
|
|
58
|
+
|
|
59
|
+
* Display primary image on mobile if only 1 image is available for the product
|
|
60
|
+
|
|
61
|
+
* Adjust styles for media primary image element to account for products with a single image on mobile
|
|
62
|
+
* Update TODOs in README
|
|
63
|
+
|
|
64
|
+
NVY-20
|
|
65
|
+
Jake Beresford
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
Workarea Nvy Theme 1.0.0 (2018-11-28)
|
|
70
|
+
--------------------------------------------------------------------------------
|
|
71
|
+
|
|
72
|
+
* Workarea Nvy Theme
|
|
73
|
+
|
|
74
|
+
A simple apparel focused theme for Workarea.
|
|
75
|
+
|
|
76
|
+
* Support for popular Workarea features like swatches, blog, and reviews.
|
|
77
|
+
* 3 color schemes.
|
|
78
|
+
* Nothing crazy here.
|
|
79
|
+
Jake Beresford
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
data/Gemfile
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
3
|
+
|
|
4
|
+
# Declare your gem's dependencies in nvy_theme.gemspec.
|
|
5
|
+
# Bundler will treat runtime dependencies like base dependencies, and
|
|
6
|
+
# development dependencies will be added by default to the :development group.
|
|
7
|
+
gemspec
|
|
8
|
+
|
|
9
|
+
# Declare any dependencies that are still in development here instead of in
|
|
10
|
+
# your gemspec. These might include edge Rails or gems from your path or
|
|
11
|
+
# Git. Remember to move these dependencies to your gemspec before releasing
|
|
12
|
+
# your gem to rubygems.org.
|
|
13
|
+
|
|
14
|
+
# To use a debugger
|
|
15
|
+
# gem 'byebug', group: [:development, :test]
|
|
16
|
+
|
|
17
|
+
gem 'workarea', source: 'https://gems.weblinc.com'
|
data/README.md
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# Workarea Nvy Theme
|
|
2
|
+
|
|
3
|
+
Nvy Theme plugin for the Workarea platform.
|
|
4
|
+
|
|
5
|
+
[Nvy Theme Demo Site](https://nvy-theme.demo.workarea.com)
|
|
6
|
+
|
|
7
|
+
[Documentation for workarea themes on homebase](https://homebase.weblinc.com/plugins/theme)
|
|
8
|
+
|
|
9
|
+
For bug reports and improvement suggestions create a ticket in the [NVYTHEME jira
|
|
10
|
+
project.](https://jira.tools.weblinc.com/projects/NVYTHEME/issues)
|
|
11
|
+
|
|
12
|
+
## Browser Support
|
|
13
|
+
|
|
14
|
+
Due to the occasional use of flexbox; NvyTheme only supports IE 10+
|
|
15
|
+
If you need to support older versions of IE you will need to provide alternative styles
|
|
16
|
+
where flexbox is used.
|
|
17
|
+
|
|
18
|
+
## Optimal Image Sizes
|
|
19
|
+
|
|
20
|
+
| Image Type| Optimum size | Note |
|
|
21
|
+
|----------|--------|-------|
|
|
22
|
+
| Logo - mobile | 40px x 40px ||
|
|
23
|
+
| Logo - desktop | 160px x 64px ||
|
|
24
|
+
| Product Images | 944px x 1416px | This size does not account for use of image-zoom, it is recommended to *at least* double this size if your client is likely to want zoom functionality. |
|
|
25
|
+
| Blog thumbnails | 160px x 160px ||
|
|
26
|
+
|
|
27
|
+
## Out of the box plugin support
|
|
28
|
+
|
|
29
|
+
The following workarea plugins are supported by NvyTheme, and are dependencies of the plugin.
|
|
30
|
+
|
|
31
|
+
* Blog
|
|
32
|
+
* Gift Cards
|
|
33
|
+
* Product Quickview
|
|
34
|
+
* Reviews
|
|
35
|
+
* Share
|
|
36
|
+
* Swatches
|
|
37
|
+
* Styled Selects
|
|
38
|
+
* Slick Slider
|
|
39
|
+
* Wish Lists
|
|
40
|
+
|
|
41
|
+
## Theme Configuration
|
|
42
|
+
|
|
43
|
+
### Recommended initializer configuration
|
|
44
|
+
|
|
45
|
+
While you are able to configure Workarea themes from any initializer it is recommended
|
|
46
|
+
that you create a new initializer called theme.rb using the following code
|
|
47
|
+
|
|
48
|
+
```ruby
|
|
49
|
+
Workarea.configure do |config|
|
|
50
|
+
config.theme = config.theme.merge(
|
|
51
|
+
color_scheme: "nvy",
|
|
52
|
+
primary_font_family: "lora",
|
|
53
|
+
secondary_font_family: "overpass"
|
|
54
|
+
)
|
|
55
|
+
end
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
This will set your application up with the default configuration options, but allow you to
|
|
59
|
+
change them easily.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
### Color Schemes
|
|
64
|
+
|
|
65
|
+
Nvy comes with 3 color schemes pre-defined for demo and learning purposes.
|
|
66
|
+
|
|
67
|
+
To change the color scheme in your application, set the color_scheme configuration
|
|
68
|
+
in your theme initializer to one of the following configurations:
|
|
69
|
+
|
|
70
|
+
Default:
|
|
71
|
+
|
|
72
|
+
```ruby
|
|
73
|
+
Workarea.config.theme[:color_scheme] = "nvy"
|
|
74
|
+
Workarea.config.theme[:color_scheme] = "neutral"
|
|
75
|
+
Workarea.config.theme[:color_scheme] = "vermillion"
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
#### Creating a new color scheme
|
|
79
|
+
|
|
80
|
+
We will be updating theme infastructure in the near future that will make this process
|
|
81
|
+
more developer friendly. In the meantime you can create a new color scheme by:
|
|
82
|
+
|
|
83
|
+
1. Copying one of the existing color scheme files into your application re-nameing the file,
|
|
84
|
+
2. Update the color_scheme config to match the name of your new color scheme file.
|
|
85
|
+
|
|
86
|
+
__Example__
|
|
87
|
+
This will create a sass file called _custom_color_scheme.scss in your host application, please change <your-app-name>
|
|
88
|
+
From your ~/src directory, ensure you have workarea-nvy-theme pulled down
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
cp -i workarea-nvy-theme/app/assets/stylesheets/workarea/storefront/theme_config/_nvy_color_scheme.scss <your-app-name>/app/assets/stylesheets/workarea/storefront/theme_config/_custom_color_scheme.scss
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
### Font Stacks
|
|
97
|
+
|
|
98
|
+
nvy Theme includes configurable font-stack functionality!
|
|
99
|
+
|
|
100
|
+
You can configure the primary and secondary font stacks using the theme
|
|
101
|
+
configuration initializer. To change the font stacks in your application set the
|
|
102
|
+
primary_font_family and secondary_font_family initializer values to one of the font_stacks
|
|
103
|
+
defined in workarea-nvy-theme/config/initializers/theme.rb
|
|
104
|
+
|
|
105
|
+
Example:
|
|
106
|
+
|
|
107
|
+
```ruby
|
|
108
|
+
config.theme = config.theme.merge(
|
|
109
|
+
primary_font_family: "poppins",
|
|
110
|
+
secondary_font_family: "pt_serif"
|
|
111
|
+
)
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
The primary_font_family is used for body text throughout the site.
|
|
115
|
+
The secondary_font_family is used for most of the system content, buttons, headings, and other UI components.
|
|
116
|
+
|
|
117
|
+
#### Adding a new font
|
|
118
|
+
|
|
119
|
+
I recommend using google fonts where possible, the [googlefonts webfont helper](https://google-webfonts-helper.herokuapp.com) is a useful tool for downloading webfonts and easily generating @font-face CSS - give it a try!
|
|
120
|
+
|
|
121
|
+
1. Create a new directory in app/assets/fonts/workarea/storefront/<your_font_name_here>
|
|
122
|
+
2. Download woff and woff2 files for the font you want to use.
|
|
123
|
+
3. Place your font files in the directory we created in step 1.
|
|
124
|
+
4. Create a sass file for you @font-face declarations in /app/assets/stylesheets/workarea/storefront/theme_config/fonts/_<your_font_name_here>.scss
|
|
125
|
+
5. Update your theme initializer, adding a new font_stack and setting either the primary_font_family or secondary_font_family
|
|
126
|
+
|
|
127
|
+
Example configuration for Calibri font stack used as secondary font family:
|
|
128
|
+
|
|
129
|
+
```ruby
|
|
130
|
+
config.theme[:font_stacks] = config.theme.font_stacks.merge (
|
|
131
|
+
calibri: 'Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif',
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
config.theme = config.theme.merge(
|
|
135
|
+
secondary_font_family: "calibri"
|
|
136
|
+
)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Getting Started
|
|
142
|
+
|
|
143
|
+
This gem contains a rails engine that must be mounted onto a host Rails application.
|
|
144
|
+
|
|
145
|
+
To access Workarea gems and source code, you must be an employee of WebLinc or a licensed retailer or partner.
|
|
146
|
+
|
|
147
|
+
Workarea gems are hosted privately at <https://gems.weblinc.com/>.
|
|
148
|
+
You must have individual or team credentials to install gems from this server. Add your gems server credentials to Bundler:
|
|
149
|
+
|
|
150
|
+
bundle config gems.weblinc.com my_username:my_password
|
|
151
|
+
|
|
152
|
+
Or set the appropriate environment variable in a shell startup file:
|
|
153
|
+
|
|
154
|
+
export BUNDLE_GEMS__WEBLINC__COM='my_username:my_password'
|
|
155
|
+
|
|
156
|
+
Then add the gem to your application's Gemfile specifying the source:
|
|
157
|
+
|
|
158
|
+
# ...
|
|
159
|
+
gem 'workarea-nvy_theme', source: 'https://gems.weblinc.com'
|
|
160
|
+
# ...
|
|
161
|
+
|
|
162
|
+
Or use a source block:
|
|
163
|
+
|
|
164
|
+
# ...
|
|
165
|
+
source 'https://gems.weblinc.com' do
|
|
166
|
+
gem 'workarea-nvy_theme'
|
|
167
|
+
end
|
|
168
|
+
# ...
|
|
169
|
+
|
|
170
|
+
Update your application's bundle.
|
|
171
|
+
|
|
172
|
+
cd path/to/application
|
|
173
|
+
bundle
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Workarea Platform Documentation
|
|
178
|
+
|
|
179
|
+
See [http://developer.weblinc.com](http://developer.weblinc.com) for Workarea platform documentation.
|
|
180
|
+
|
|
181
|
+
## Copyright & Licensing
|
|
182
|
+
|
|
183
|
+
Copyright WebLinc 2018 All rights reserved.
|
|
184
|
+
|
|
185
|
+
For licensing, contact sales@workarea.com.
|