spree_frontend 4.0.8 → 4.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (304) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/app/assets/images/arrow-right.svg +1 -0
  4. data/app/assets/images/arrow.svg +1 -0
  5. data/app/assets/images/bag.svg +1 -0
  6. data/app/assets/images/burger.svg +1 -0
  7. data/app/assets/images/check-mark-circle.png +0 -0
  8. data/app/assets/images/check-mark-circle.svg +1 -0
  9. data/app/assets/images/check-mark.svg +1 -0
  10. data/app/assets/images/circle-radio.svg +1 -0
  11. data/app/assets/images/circle.svg +1 -0
  12. data/app/assets/images/close.svg +1 -0
  13. data/app/assets/images/credit_cards/icons/american_express.svg +1 -0
  14. data/app/assets/images/credit_cards/icons/diners_club.svg +1 -0
  15. data/app/assets/images/credit_cards/icons/discover.svg +1 -0
  16. data/app/assets/images/credit_cards/icons/generic.svg +1 -0
  17. data/app/assets/images/credit_cards/icons/jcb.svg +1 -0
  18. data/app/assets/images/credit_cards/icons/maestro.svg +1 -0
  19. data/app/assets/images/credit_cards/icons/master.svg +1 -0
  20. data/app/assets/images/credit_cards/icons/visa.svg +1 -0
  21. data/app/assets/images/edit.svg +1 -0
  22. data/app/assets/images/empty-cart.svg +1 -0
  23. data/app/assets/images/error.svg +1 -0
  24. data/app/assets/images/facebook.svg +1 -0
  25. data/app/assets/images/full_circle-radio.svg +1 -0
  26. data/app/assets/images/full_circle.svg +1 -0
  27. data/app/assets/images/garbage.svg +1 -0
  28. data/app/assets/images/garbage_2.svg +1 -0
  29. data/app/assets/images/homepage/big_category_banner.jpg +0 -0
  30. data/app/assets/images/homepage/big_category_banner_mobile.jpg +0 -0
  31. data/app/assets/images/homepage/big_category_banner_tablet_landscape.jpg +0 -0
  32. data/app/assets/images/homepage/big_category_banner_tablet_portrait.jpg +0 -0
  33. data/app/assets/images/homepage/category_banner_lower.jpg +0 -0
  34. data/app/assets/images/homepage/category_banner_lower_mobile.jpg +0 -0
  35. data/app/assets/images/homepage/category_banner_lower_tablet_landscape.jpg +0 -0
  36. data/app/assets/images/homepage/category_banner_lower_tablet_portrait.jpg +0 -0
  37. data/app/assets/images/homepage/category_banner_upper.jpg +0 -0
  38. data/app/assets/images/homepage/category_banner_upper_mobile.jpg +0 -0
  39. data/app/assets/images/homepage/category_banner_upper_tablet_landscape.jpg +0 -0
  40. data/app/assets/images/homepage/category_banner_upper_tablet_portrait.jpg +0 -0
  41. data/app/assets/images/homepage/main_banner.jpg +0 -0
  42. data/app/assets/images/homepage/main_banner_mobile.jpg +0 -0
  43. data/app/assets/images/homepage/main_banner_tablet_landscape.jpg +0 -0
  44. data/app/assets/images/homepage/main_banner_tablet_portrait.jpg +0 -0
  45. data/app/assets/images/homepage/products.jpg +0 -0
  46. data/app/assets/images/homepage/promo_banner_left.jpg +0 -0
  47. data/app/assets/images/homepage/promo_banner_left_mobile.jpg +0 -0
  48. data/app/assets/images/homepage/promo_banner_left_tablet_landscape.jpg +0 -0
  49. data/app/assets/images/homepage/promo_banner_left_tablet_portrait.jpg +0 -0
  50. data/app/assets/images/homepage/promo_banner_right.jpg +0 -0
  51. data/app/assets/images/homepage/promo_banner_right_mobile.jpg +0 -0
  52. data/app/assets/images/homepage/promo_banner_right_tablet_landscape.jpg +0 -0
  53. data/app/assets/images/homepage/promo_banner_right_tablet_portrait.jpg +0 -0
  54. data/app/assets/images/instagram.svg +1 -0
  55. data/app/assets/images/logo-spree.png +0 -0
  56. data/app/assets/images/logo.png +0 -0
  57. data/app/assets/images/logo.svg +1 -0
  58. data/app/assets/images/logo@2x.png +0 -0
  59. data/app/assets/images/logo@3x.png +0 -0
  60. data/app/assets/images/magnifying-glass.svg +1 -0
  61. data/app/assets/images/meganav/promo_banner_left-first-category.jpg +0 -0
  62. data/app/assets/images/meganav/promo_banner_left-second-category.jpg +0 -0
  63. data/app/assets/images/meganav/promo_banner_left-third-category.jpg +0 -0
  64. data/app/assets/images/meganav/promo_banner_right-first-category.jpg +0 -0
  65. data/app/assets/images/meganav/promo_banner_right-second-category.jpg +0 -0
  66. data/app/assets/images/meganav/promo_banner_right-third-category.jpg +0 -0
  67. data/app/assets/images/minus.svg +1 -0
  68. data/app/assets/images/noimage/big_category_banner.jpg +0 -0
  69. data/app/assets/images/noimage/big_category_banner_mobile.jpg +0 -0
  70. data/app/assets/images/noimage/big_category_banner_tablet_landscape.jpg +0 -0
  71. data/app/assets/images/noimage/big_category_banner_tablet_portrait.jpg +0 -0
  72. data/app/assets/images/noimage/category_banner.jpg +0 -0
  73. data/app/assets/images/noimage/category_banner_mobile.jpg +0 -0
  74. data/app/assets/images/noimage/category_banner_plp.jpg +0 -0
  75. data/app/assets/images/noimage/category_banner_tablet_landscape.jpg +0 -0
  76. data/app/assets/images/noimage/category_banner_tablet_portrait.jpg +0 -0
  77. data/app/assets/images/noimage/main_banner.jpg +0 -0
  78. data/app/assets/images/noimage/main_banner_mobile.jpg +0 -0
  79. data/app/assets/images/noimage/main_banner_tablet_landscape.jpg +0 -0
  80. data/app/assets/images/noimage/main_banner_tablet_portrait.jpg +0 -0
  81. data/app/assets/images/noimage/plp.png +0 -0
  82. data/app/assets/images/noimage/product_photo.jpg +0 -0
  83. data/app/assets/images/noimage/promo_banner.jpg +0 -0
  84. data/app/assets/images/noimage/promo_banner_megamenu.jpg +0 -0
  85. data/app/assets/images/noimage/promo_banner_mobile.jpg +0 -0
  86. data/app/assets/images/noimage/promo_banner_tablet_landscape.jpg +0 -0
  87. data/app/assets/images/noimage/promo_banner_tablet_portrait.jpg +0 -0
  88. data/app/assets/images/pagination-arrow-right.svg +12 -0
  89. data/app/assets/images/pagination-double-arrow-right.svg +15 -0
  90. data/app/assets/images/person.svg +1 -0
  91. data/app/assets/images/picture-zoom.svg +31 -0
  92. data/app/assets/images/plus.svg +1 -0
  93. data/app/assets/images/radio-button.svg +1 -0
  94. data/app/assets/images/search-no-results.svg +1 -0
  95. data/app/assets/images/search.svg +1 -0
  96. data/app/assets/images/spark-logo@3x.png +0 -0
  97. data/app/assets/images/twitter.svg +1 -0
  98. data/app/assets/images/vimeo.svg +1 -0
  99. data/app/assets/javascripts/spree/frontend/account.js +12 -0
  100. data/app/assets/javascripts/spree/frontend/api_tokens.js +4 -1
  101. data/app/assets/javascripts/spree/frontend/carousel-noconflict.js +3 -0
  102. data/app/assets/javascripts/spree/frontend/cart.js +61 -3
  103. data/app/assets/javascripts/spree/frontend/checkout/payment.js +24 -6
  104. data/app/assets/javascripts/spree/frontend/checkout/shipment.js +1 -1
  105. data/app/assets/javascripts/spree/frontend/checkout.js +42 -0
  106. data/app/assets/javascripts/spree/frontend/components-bootstrap/.gitkeep +0 -0
  107. data/app/assets/javascripts/spree/frontend/components-custom/.gitkeep +0 -0
  108. data/app/assets/javascripts/spree/frontend/coupon_manager.js +49 -1
  109. data/app/assets/javascripts/spree/frontend/viewport.js +7 -0
  110. data/app/assets/javascripts/spree/frontend/views/spree/home/product_carousels.js +31 -0
  111. data/app/assets/javascripts/spree/frontend/views/spree/layouts/spree_application.js +35 -0
  112. data/app/assets/javascripts/spree/frontend/views/spree/product/related.js +30 -0
  113. data/app/assets/javascripts/spree/frontend/views/spree/products/cart_form.js +280 -0
  114. data/app/assets/javascripts/spree/frontend/views/spree/products/description.js +8 -0
  115. data/app/assets/javascripts/spree/frontend/views/spree/products/index.js +37 -0
  116. data/app/assets/javascripts/spree/frontend/views/spree/products/modal_carousel.js +35 -0
  117. data/app/assets/javascripts/spree/frontend/views/spree/shared/carousel/single.js +139 -0
  118. data/app/assets/javascripts/spree/frontend/views/spree/shared/carousel/swipes.js +53 -0
  119. data/app/assets/javascripts/spree/frontend/views/spree/shared/carousel/thumbnails.js +137 -0
  120. data/app/assets/javascripts/spree/frontend/views/spree/shared/carousel.js +129 -0
  121. data/app/assets/javascripts/spree/frontend/views/spree/shared/delete_address_popup.js +27 -0
  122. data/app/assets/javascripts/spree/frontend/views/spree/shared/mobile_navigation.js +123 -0
  123. data/app/assets/javascripts/spree/frontend/views/spree/shared/nav_bar.js +16 -0
  124. data/app/assets/javascripts/spree/frontend/views/spree/shared/product_added_modal.js +28 -0
  125. data/app/assets/javascripts/spree/frontend/views/spree/shared/quantity_select.js +58 -0
  126. data/app/assets/javascripts/spree/frontend.js +9 -7
  127. data/app/assets/javascripts/spree/lazysizes.config.js +8 -0
  128. data/app/assets/stylesheets/spree/frontend/application.scss +54 -0
  129. data/app/assets/stylesheets/spree/frontend/bootstrap-patches.scss +11 -0
  130. data/app/assets/stylesheets/spree/frontend/components-bootstrap/.gitkeep +0 -0
  131. data/app/assets/stylesheets/spree/frontend/components-bootstrap/alert.scss +3 -0
  132. data/app/assets/stylesheets/spree/frontend/components-bootstrap/button.scss +8 -0
  133. data/app/assets/stylesheets/spree/frontend/components-bootstrap/carousel.scss +85 -0
  134. data/app/assets/stylesheets/spree/frontend/components-bootstrap/modal.scss +3 -0
  135. data/app/assets/stylesheets/spree/frontend/components-custom/.gitkeep +0 -0
  136. data/app/assets/stylesheets/spree/frontend/components-custom/headers.scss +28 -0
  137. data/app/assets/stylesheets/spree/frontend/components-custom/inputs.scss +265 -0
  138. data/app/assets/stylesheets/spree/frontend/fonts.scss +137 -0
  139. data/app/assets/stylesheets/spree/frontend/functions.scss +104 -0
  140. data/app/assets/stylesheets/spree/frontend/helpers/spree/frontend_helper.scss +23 -0
  141. data/app/assets/stylesheets/spree/frontend/margins.scss +53 -0
  142. data/app/assets/stylesheets/spree/frontend/mixins.scss +20 -0
  143. data/app/assets/stylesheets/spree/frontend/variables/.gitkeep +0 -0
  144. data/app/assets/stylesheets/spree/frontend/variables/bootstrap-overrides.scss +40 -0
  145. data/app/assets/stylesheets/spree/frontend/variables/helper-variables.scss +10 -0
  146. data/app/assets/stylesheets/spree/frontend/variables/variables.scss +20 -0
  147. data/app/assets/stylesheets/spree/frontend/views/spree/.gitkeep +0 -0
  148. data/app/assets/stylesheets/spree/frontend/views/spree/checkout/confirm.scss +255 -0
  149. data/app/assets/stylesheets/spree/frontend/views/spree/checkout/edit.scss +505 -0
  150. data/app/assets/stylesheets/spree/frontend/views/spree/checkout/payment.scss +98 -0
  151. data/app/assets/stylesheets/spree/frontend/views/spree/checkout/registration.scss +26 -0
  152. data/app/assets/stylesheets/spree/frontend/views/spree/errors/not_found.scss +3 -0
  153. data/app/assets/stylesheets/spree/frontend/views/spree/home/index.scss +293 -0
  154. data/app/assets/stylesheets/spree/frontend/views/spree/icon.scss +13 -0
  155. data/app/assets/stylesheets/spree/frontend/views/spree/layouts/spree_application.scss +44 -0
  156. data/app/assets/stylesheets/spree/frontend/views/spree/orders/edit.scss +467 -0
  157. data/app/assets/stylesheets/spree/frontend/views/spree/orders/show.scss +273 -0
  158. data/app/assets/stylesheets/spree/frontend/views/spree/products/cart_form.scss +250 -0
  159. data/app/assets/stylesheets/spree/frontend/views/spree/products/index.scss +317 -0
  160. data/app/assets/stylesheets/spree/frontend/views/spree/products/show.scss +165 -0
  161. data/app/assets/stylesheets/spree/frontend/views/spree/shared/_color_select.scss +27 -0
  162. data/app/assets/stylesheets/spree/frontend/views/spree/shared/_images.scss +9 -0
  163. data/app/assets/stylesheets/spree/frontend/views/spree/shared/carousel/single.scss +142 -0
  164. data/app/assets/stylesheets/spree/frontend/views/spree/shared/carousel/thumbnails.scss +97 -0
  165. data/app/assets/stylesheets/spree/frontend/views/spree/shared/cart.scss +57 -0
  166. data/app/assets/stylesheets/spree/frontend/views/spree/shared/category_nav_bar.scss +86 -0
  167. data/app/assets/stylesheets/spree/frontend/views/spree/shared/delete_address_popup.scss +141 -0
  168. data/app/assets/stylesheets/spree/frontend/views/spree/shared/footer.scss +56 -0
  169. data/app/assets/stylesheets/spree/frontend/views/spree/shared/header.scss +82 -0
  170. data/app/assets/stylesheets/spree/frontend/views/spree/shared/login.scss +30 -0
  171. data/app/assets/stylesheets/spree/frontend/views/spree/shared/main_nav_bar.scss +103 -0
  172. data/app/assets/stylesheets/spree/frontend/views/spree/shared/mobile_navigation.scss +87 -0
  173. data/app/assets/stylesheets/spree/frontend/views/spree/shared/nav_bar.scss +78 -0
  174. data/app/assets/stylesheets/spree/frontend/views/spree/shared/no_product_available.scss +135 -0
  175. data/app/assets/stylesheets/spree/frontend/views/spree/shared/order_details.scss +37 -0
  176. data/app/assets/stylesheets/spree/frontend/views/spree/shared/product.scss +45 -0
  177. data/app/assets/stylesheets/spree/frontend/views/spree/shared/product_added_modal.scss +61 -0
  178. data/app/assets/stylesheets/spree/frontend/views/spree/shared/quantity_select.scss +55 -0
  179. data/app/assets/stylesheets/spree/frontend/views/spree/shared/registration.scss +7 -0
  180. data/app/assets/stylesheets/spree/frontend/views/spree/taxons/show.scss +47 -0
  181. data/app/assets/stylesheets/spree/frontend/views/spree/user_passwords/user_passwords.scss +12 -0
  182. data/app/assets/stylesheets/spree/frontend/views/spree/user_sessions/new.scss +3 -0
  183. data/app/assets/stylesheets/spree/frontend/views/spree/users/show.scss +325 -0
  184. data/app/assets/stylesheets/spree/frontend.css +1 -1
  185. data/app/controllers/concerns/spree/checkout/address_book.rb +7 -9
  186. data/app/controllers/spree/addresses_controller.rb +5 -6
  187. data/app/controllers/spree/checkout_controller.rb +3 -1
  188. data/app/controllers/spree/home_controller.rb +1 -5
  189. data/app/controllers/spree/orders_controller.rb +3 -1
  190. data/app/controllers/spree/products_controller.rb +45 -15
  191. data/app/controllers/spree/store_controller.rb +14 -2
  192. data/app/controllers/spree/taxons_controller.rb +20 -5
  193. data/app/helpers/spree/addresses_helper.rb +11 -12
  194. data/app/helpers/spree/frontend_helper.rb +168 -14
  195. data/app/helpers/spree/navigation_helper.rb +34 -0
  196. data/app/helpers/spree/structured_data_helper.rb +3 -3
  197. data/app/helpers/spree/taxons_helper.rb +4 -0
  198. data/app/models/spree/frontend_configuration.rb +1 -0
  199. data/app/views/kaminari/twitter-bootstrap-4/_first_page.html.erb +1 -1
  200. data/app/views/kaminari/twitter-bootstrap-4/_gap.html.erb +1 -1
  201. data/app/views/kaminari/twitter-bootstrap-4/_last_page.html.erb +1 -1
  202. data/app/views/kaminari/twitter-bootstrap-4/_next_page.html.erb +1 -1
  203. data/app/views/kaminari/twitter-bootstrap-4/_prev_page.html.erb +1 -1
  204. data/app/views/spree/address/_form.html.erb +24 -27
  205. data/app/views/spree/addresses/_form.html.erb +13 -8
  206. data/app/views/spree/addresses/edit.html.erb +11 -21
  207. data/app/views/spree/addresses/new.html.erb +11 -21
  208. data/app/views/spree/checkout/_address.html.erb +61 -54
  209. data/app/views/spree/checkout/_confirm.html.erb +112 -16
  210. data/app/views/spree/checkout/_credit_card.html.erb +9 -0
  211. data/app/views/spree/checkout/_delivery.html.erb +10 -86
  212. data/app/views/spree/checkout/_payment.html.erb +39 -64
  213. data/app/views/spree/checkout/_summary.html.erb +46 -73
  214. data/app/views/spree/checkout/edit.html.erb +22 -25
  215. data/app/views/spree/checkout/payment/_gateway.html.erb +14 -34
  216. data/app/views/spree/checkout/payment/_storecredit.html.erb +8 -8
  217. data/app/views/spree/checkout/registration.html.erb +30 -0
  218. data/app/views/spree/errors/not_found.html.erb +7 -0
  219. data/app/views/spree/home/index.html.erb +124 -10
  220. data/app/views/spree/layouts/checkout.html.erb +26 -0
  221. data/app/views/spree/layouts/spree_application.html.erb +10 -15
  222. data/app/views/spree/orders/_coupon_code.html.erb +24 -0
  223. data/app/views/spree/orders/_form.html.erb +25 -39
  224. data/app/views/spree/orders/_line_item.html.erb +19 -25
  225. data/app/views/spree/orders/_line_item_data.html.erb +31 -0
  226. data/app/views/spree/orders/edit.html.erb +50 -40
  227. data/app/views/spree/orders/show.html.erb +83 -17
  228. data/app/views/spree/products/_cart_form.html.erb +69 -73
  229. data/app/views/spree/products/_cart_form_availability_templates.html.erb +10 -0
  230. data/app/views/spree/products/_color_option_type.html.erb +36 -0
  231. data/app/views/spree/products/_description.html.erb +17 -0
  232. data/app/views/spree/products/_filter_and_sort_mobile_buttons.html.erb +16 -0
  233. data/app/views/spree/products/_filters_desktop.html.erb +58 -0
  234. data/app/views/spree/products/_filters_mobile.html.erb +62 -0
  235. data/app/views/spree/products/_gallery.html.erb +31 -0
  236. data/app/views/spree/products/_gallery_modal.html.erb +33 -0
  237. data/app/views/spree/products/_no_results.html.erb +14 -0
  238. data/app/views/spree/products/_no_results_with_filters.html.erb +13 -0
  239. data/app/views/spree/products/_option_type.html.erb +32 -0
  240. data/app/views/spree/products/_product.html.erb +5 -5
  241. data/app/views/spree/products/_promotions.html.erb +19 -12
  242. data/app/views/spree/products/_properties.html.erb +9 -20
  243. data/app/views/spree/products/_sort_desktop.html.erb +30 -0
  244. data/app/views/spree/products/_sort_mobile.html.erb +43 -0
  245. data/app/views/spree/products/_taxons.html.erb +1 -0
  246. data/app/views/spree/products/index.html.erb +40 -24
  247. data/app/views/spree/products/related.html.erb +8 -0
  248. data/app/views/spree/products/show.html.erb +39 -37
  249. data/app/views/spree/shared/_address.html.erb +0 -12
  250. data/app/views/spree/shared/_breadcrumbs.html.erb +23 -0
  251. data/app/views/spree/shared/_carousel_4_products.html.erb +99 -0
  252. data/app/views/spree/shared/_cart.html.erb +11 -0
  253. data/app/views/spree/shared/_checkout_header.html.erb +19 -0
  254. data/app/views/spree/shared/_color_select.html.erb +9 -0
  255. data/app/views/spree/shared/_copyright.html.erb +18 -0
  256. data/app/views/spree/shared/_delete_address_popup.html.erb +26 -0
  257. data/app/views/spree/shared/_error_messages.html.erb +2 -4
  258. data/app/views/spree/shared/_flashes.html.erb +9 -0
  259. data/app/views/spree/shared/_footer.html.erb +73 -0
  260. data/app/views/spree/shared/_head.html.erb +4 -9
  261. data/app/views/spree/shared/_header.html.erb +26 -13
  262. data/app/views/spree/shared/_link_to_account.html.erb +7 -0
  263. data/app/views/spree/shared/_link_to_cart.html.erb +2 -1
  264. data/app/views/spree/shared/_login.html.erb +34 -17
  265. data/app/views/spree/shared/_main_nav_bar.html.erb +41 -15
  266. data/app/views/spree/shared/_mobile_navigation.html.erb +68 -0
  267. data/app/views/spree/shared/_nav_bar.html.erb +52 -6
  268. data/app/views/spree/shared/_no_product_available.html.erb +23 -0
  269. data/app/views/spree/shared/_option_values.html.erb +24 -0
  270. data/app/views/spree/shared/_order_details.html.erb +5 -4
  271. data/app/views/spree/shared/_payment.html.erb +0 -3
  272. data/app/views/spree/shared/_payment_sources.html.erb +8 -0
  273. data/app/views/spree/shared/_product.html.erb +12 -0
  274. data/app/views/spree/shared/_product_added_modal.html.erb +66 -0
  275. data/app/views/spree/shared/_products.html.erb +22 -18
  276. data/app/views/spree/shared/_quantity_select.html.erb +6 -0
  277. data/app/views/spree/shared/_registration.html.erb +4 -0
  278. data/app/views/spree/shared/_search.html.erb +17 -20
  279. data/app/views/spree/shared/_translations.html.erb +9 -5
  280. data/app/views/spree/shared/_user_form.html.erb +12 -0
  281. data/app/views/spree/shared/carousel/_single.html.erb +83 -0
  282. data/app/views/spree/shared/carousel/_thumbnails.html.erb +68 -0
  283. data/app/views/spree/taxons/_header.html.erb +19 -0
  284. data/app/views/spree/taxons/_subcategories.html.erb +26 -0
  285. data/app/views/spree/taxons/product_carousel.html.erb +5 -0
  286. data/app/views/spree/taxons/show.html.erb +8 -20
  287. data/app/views/spree/users/_address.html.erb +25 -0
  288. data/app/views/spree/users/edit.html.erb +11 -0
  289. data/app/views/spree/users/show.html.erb +79 -0
  290. data/config/initializers/assets.rb +13 -1
  291. data/config/routes.rb +3 -0
  292. data/lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb +24 -0
  293. data/lib/spree/frontend.rb +2 -0
  294. data/spree_frontend.gemspec +7 -11
  295. data/vendor/assets/javascripts/lazysizes.min.js +2 -0
  296. metadata +265 -25
  297. data/README.md +0 -50
  298. data/app/assets/javascripts/spree/frontend/product.js +0 -143
  299. data/app/assets/stylesheets/spree/frontend/_variables.scss +0 -4
  300. data/app/assets/stylesheets/spree/frontend/frontend_bootstrap.css.scss +0 -94
  301. data/app/views/spree/shared/_filters.html.erb +0 -48
  302. data/app/views/spree/shared/_login_bar.html.erb +0 -12
  303. data/app/views/spree/taxons/_taxon.html.erb +0 -4
  304. data/lib/generators/spree/frontend/copy_views/copy_views_generator.rb +0 -15
@@ -0,0 +1,87 @@
1
+ .mobile-navigation {
2
+ top: 0;
3
+ bottom: 0;
4
+ left: 0;
5
+ right: 0;
6
+ z-index: 16;
7
+ background-color: theme-color("light-background");
8
+ font-size: font-px-to-rem(18px);
9
+ font-weight: 600;
10
+ transform: translate(-100%);
11
+ transition: basic-transition(transform);
12
+ @include media-breakpoint-up(sm) {
13
+ font-size: font-px-to-rem(24px);
14
+ }
15
+ &.shown {
16
+ transform: translate(0);
17
+ }
18
+ &-list, &-sublist {
19
+ margin: 0;
20
+ padding: 0 19px;
21
+ &-item {
22
+ padding: 16px 0;
23
+ border-bottom: 1px solid $global-border-style;
24
+ @include media-breakpoint-up(sm) {
25
+ padding: 32px 0;
26
+ }
27
+ a {
28
+ color: $header-font-color;
29
+ text-decoration: none;
30
+ img {
31
+ width: 8px;
32
+ }
33
+ }
34
+ }
35
+ }
36
+
37
+ &-list {
38
+ padding-top: $spree-header-mobile-height;
39
+ @include media-breakpoint-up(sm) {
40
+ padding-top: $spree-header-tablet-height;
41
+ }
42
+ }
43
+
44
+ &-sublist {
45
+ top: 0;
46
+ bottom: 0;
47
+ left: 0;
48
+ right: 0;
49
+ background-color: theme-color("light-background");
50
+ font-weight: 500;
51
+ transform: translate(200%);
52
+ transition: basic-transition(transform);
53
+ &.shown {
54
+ transform: translate(0);
55
+ }
56
+ &-header {
57
+ padding: 16px 0;
58
+ border-bottom: 1px solid $global-border-style;
59
+ }
60
+ }
61
+ }
62
+
63
+ #mobile-navigation-close-button {
64
+ padding-left: 0;
65
+ padding-right: 0;
66
+ appearance: none;
67
+ border: none;
68
+ background-color: transparent;
69
+ color: $header-font-color;
70
+ .cls-3 {
71
+ fill: theme-color("light-background");
72
+ }
73
+ }
74
+
75
+ #mobile-navigation-back-button {
76
+ opacity: 0;
77
+ padding-left: 0;
78
+ padding-right: 0;
79
+ transition: basic-transition(opacity);
80
+ appearance: none;
81
+ border: none;
82
+ background-color: transparent;
83
+ color: $header-font-color;
84
+ &.shown {
85
+ opacity: 1;
86
+ }
87
+ }
@@ -0,0 +1,78 @@
1
+ .navbar-right {
2
+ li+li {
3
+ margin-left: calc-spacer(2);
4
+ }
5
+ @include media-breakpoint-up(xl) {
6
+ li+li {
7
+ margin-left: calc-spacer(4);
8
+ }
9
+ }
10
+ &-dropdown {
11
+ &-toggle {
12
+ background: none;
13
+ border: none;
14
+ padding: 0;
15
+ margin: 0;
16
+ color: $header-font-color;
17
+ &:focus {
18
+ outline: none;
19
+ }
20
+ }
21
+ .dropdown-menu {
22
+ border-color: $global-border-style;
23
+ }
24
+ }
25
+ &-search-menu {
26
+ position: static;
27
+ &-dropdown {
28
+ background-color: theme-color('light-background');
29
+ visibility: hidden;
30
+ opacity: 0;
31
+ z-index: 4;
32
+ left: 0;
33
+ right: 0;
34
+ position: absolute;
35
+ top: $spree-header-mobile-height;
36
+ margin: 0;
37
+
38
+ @include media-breakpoint-up(sm) {
39
+ top: $spree-header-tablet-height;
40
+ }
41
+
42
+ @include media-breakpoint-up(xl) {
43
+ top: $spree-header-desktop-height;
44
+ }
45
+
46
+ form {
47
+ input#keywords{
48
+ background: transparent;
49
+ color: $meganav-font-color;
50
+ font-size: font-px-to-rem(14px);
51
+ width: calc(100% - 40px);
52
+ &:focus {
53
+ outline: none;
54
+ }
55
+ &::placeholder {
56
+ text-transform: uppercase;
57
+ color: theme-color("borders");
58
+ }
59
+ &::-webkit-search-cancel-button {
60
+ display: none;
61
+ }
62
+ @include media-breakpoint-up(md) {
63
+ font-size: font-px-to-rem(22px);
64
+ }
65
+ }
66
+ input[type="submit"] {
67
+ display: none;
68
+ }
69
+ }
70
+
71
+ &.shown {
72
+ visibility: visible;
73
+ opacity: 1;
74
+ transition: opacity 0.5s;
75
+ }
76
+ }
77
+ }
78
+ }
@@ -0,0 +1,135 @@
1
+ .no-product-available {
2
+ width: 100%;
3
+ height: 277px;
4
+ border: solid 1px #707070;
5
+ background-color: #ffffff;
6
+ align-items: center;
7
+ position: static;
8
+ margin: auto;
9
+
10
+ @include media-breakpoint-up(md) {
11
+ width: 767px;
12
+ height: 443px;
13
+ }
14
+
15
+ &-dropdown {
16
+ visibility: hidden;
17
+ opacity: 0;
18
+ z-index: 6;
19
+ left: 0;
20
+ right: 0;
21
+ position: absolute;
22
+ top: $spree-header-mobile-height;
23
+ margin: auto;
24
+
25
+ @include media-breakpoint-up(md) {
26
+ top: 230px;
27
+ }
28
+
29
+ form {
30
+ input#keywords{
31
+ color: theme-color("dark-text");
32
+ font-size: font-px-to-rem(14px);
33
+ width: calc(100% - 40px);
34
+ &:focus {
35
+ outline: none;
36
+ }
37
+ &::placeholder {
38
+ color: theme-color("borders");
39
+ }
40
+ &::-webkit-search-cancel-button {
41
+ display: none;
42
+ }
43
+ @include media-breakpoint-up(md) {
44
+ font-size: font-px-to-rem(22px);
45
+ }
46
+ }
47
+ input[type="submit"] {
48
+ display: none;
49
+ }
50
+ }
51
+
52
+ &.shown {
53
+ visibility: visible;
54
+ opacity: 1;
55
+ transition: opacity 0.5s;
56
+ }
57
+ }
58
+ &-header {
59
+ font-size: font-px-to-rem(22px);
60
+ font-weight: 600;
61
+ line-height: 0.91;
62
+ letter-spacing: 0.55px;
63
+ text-align: center;
64
+ color: #232323;
65
+ margin-bottom: 23px;
66
+
67
+ @include media-breakpoint-up(md) {
68
+ font-size: font-px-to-rem(32px);
69
+ margin-bottom: 48px;
70
+ line-height: 1.06;
71
+ letter-spacing: 0.8px;
72
+ }
73
+ }
74
+ &-text {
75
+ width: 234px;
76
+ font-size: font-px-to-rem(16px);
77
+ font-weight: 500;
78
+ line-height: 1.38;
79
+ letter-spacing: 0.4px;
80
+ text-align: center;
81
+ color: #232323;
82
+ margin: auto;
83
+
84
+ @include media-breakpoint-up(md) {
85
+ width: 462px;
86
+ font-size: font-px-to-rem(24px);
87
+ line-height: 1.42;
88
+ letter-spacing: 0.6px;
89
+ }
90
+ }
91
+ &-button {
92
+ width: 306px;
93
+ height: 29px;
94
+ background-color: #0074c2;
95
+ margin: 44px auto auto auto;
96
+
97
+ @include media-breakpoint-up(md) {
98
+ width: 389px;
99
+ height: 53px;
100
+ margin: 80px auto auto auto;
101
+ }
102
+
103
+ @include media-breakpoint-down(xs) {
104
+ width: 80%;
105
+ }
106
+
107
+ &-text {
108
+ font-size: font-px-to-rem(12px);
109
+ line-height: 1.4;
110
+ letter-spacing: 0.3px;
111
+ text-align: center;
112
+ color: #ffffff;
113
+
114
+ @include media-breakpoint-up(md) {
115
+ font-size: font-px-to-rem(20px);
116
+ line-height: 0.84;
117
+ letter-spacing: 0.5px;
118
+ }
119
+ }
120
+ }
121
+ &-icon {
122
+ width: 16.8px;
123
+ height: 16.8px;
124
+ margin: 17px 18px 20px auto;
125
+
126
+ @include media-breakpoint-up(md) {
127
+ width: 29.7px;
128
+ height: 29.7px;
129
+ margin: 34px 32px 20px auto;
130
+ }
131
+ }
132
+ &-icon:hover {
133
+ cursor: pointer;
134
+ }
135
+ }
@@ -0,0 +1,37 @@
1
+ .order-details-delivery-informations {
2
+ .steps-data {
3
+ display: flex;
4
+ flex-direction: column;
5
+ }
6
+ dt {
7
+ color: theme-color('dark-text');
8
+ margin-top: 25px;
9
+ font-weight: normal;
10
+ text-transform: uppercase;
11
+
12
+ &:first-child {
13
+ margin-top: 0;
14
+ }
15
+ }
16
+
17
+ dd {
18
+ margin-top: 10px;
19
+
20
+ &:first-child {
21
+ margin-top: 0;
22
+ }
23
+
24
+ a {
25
+ position: relative;
26
+ float: right;
27
+ margin-top: -4px;
28
+ }
29
+ }
30
+ div {
31
+ a {
32
+ position: relative;
33
+ float: right;
34
+ margin-top: -4px;
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,45 @@
1
+ .product-component {
2
+ &-name {
3
+ $font-size: font-px-to-rem(12px);
4
+
5
+ font-weight: 500;
6
+ color: $font-color;
7
+ font-size: $font-size;
8
+ line-height: $font-size;
9
+ margin-top: calc-spacer(2);
10
+ overflow: hidden;
11
+ text-overflow: ellipsis;
12
+ white-space: nowrap;
13
+
14
+ @include media-breakpoint-up(md) {
15
+ $font-size: font-px-to-rem(18px);
16
+
17
+ font-size: $font-size;
18
+ line-height: $font-size;
19
+ margin-top: calc-spacer(3);
20
+ }
21
+ }
22
+
23
+ &-price {
24
+ $font-size: font-px-to-rem(14px);
25
+
26
+ color: $font-color;
27
+ font-weight: 600;
28
+ font-size: $font-size;
29
+ line-height: $font-size;
30
+ margin-top: calc-spacer(2);
31
+
32
+ @include media-breakpoint-up(md) {
33
+ $font-size: font-px-to-rem(20px);
34
+
35
+ font-size: $font-size;
36
+ line-height: $font-size;
37
+ margin-top: calc-spacer(3);
38
+ }
39
+ }
40
+ }
41
+
42
+ .product-component-image {
43
+ width: 100%;
44
+ display: block;
45
+ }
@@ -0,0 +1,61 @@
1
+ .product-added-modal {
2
+ $self: &;
3
+ &-check-mark {
4
+ color: $secondary-color;
5
+ }
6
+ &-message {
7
+ font-size: font-px-to-rem(20px);
8
+ @include media-breakpoint-up(md) {
9
+ padding-left: 0;
10
+ }
11
+ @include media-breakpoint-up(lg) {
12
+ font-size: font-px-to-rem(30px);
13
+ }
14
+ }
15
+ &-product {
16
+ &-image-container {
17
+ position: relative;
18
+ &:before {
19
+ content: '';
20
+ display: block;
21
+ padding-bottom: $thumbnails-carousel-single-height;
22
+ }
23
+ &-image {
24
+ position: absolute;
25
+ width: 100%;
26
+ height: 100%;
27
+ top: 0;
28
+ left: 0;
29
+ object-fit: contain;
30
+ }
31
+ }
32
+ &-details {
33
+ &-name {
34
+ font-size: font-px-to-rem(14px);
35
+ @include media-breakpoint-up(lg) {
36
+ font-size: font-px-to-rem(24px);
37
+ }
38
+ }
39
+ &-price {
40
+ font-size: font-px-to-rem(14px);
41
+ font-weight: 600;
42
+ @include media-breakpoint-up(lg) {
43
+ font-size: font-px-to-rem(24px);
44
+ }
45
+ }
46
+ }
47
+ }
48
+ &-button {
49
+ font-size: font-px-to-rem(12px);
50
+ @include media-breakpoint-up(lg) {
51
+ font-size: font-px-to-rem(20px);
52
+ }
53
+ }
54
+ &--no-image {
55
+ #{$self}-product {
56
+ &-image-container {
57
+ display: none;
58
+ }
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,55 @@
1
+ .quantity-select {
2
+ width: 136px;
3
+ height: 45px;
4
+ @include media-breakpoint-up(sm) {
5
+ width: 174px;
6
+ height: 58px;
7
+ }
8
+ @include media-breakpoint-up(md) {
9
+ width: 136px;
10
+ height: 45px;
11
+ }
12
+ &-decrease, &-increase {
13
+ border-radius: 0;
14
+ font-size: font-px-to-rem(20px);
15
+ font-weight: 500;
16
+ background-color: theme-color("light-background");
17
+ border: 1px solid theme-color("borders");
18
+ @include media-breakpoint-up(sm) {
19
+ font-size: font-px-to-rem(30px);
20
+ border: 2px solid theme-color("borders");
21
+ }
22
+ @include media-breakpoint-up(md) {
23
+ font-size: font-px-to-rem(20px);
24
+ border: 1px solid theme-color("borders");
25
+ }
26
+ }
27
+ &-value {
28
+ width: 100%;
29
+ font-size: font-px-to-rem(20px);
30
+ font-weight: 500;
31
+ border-radius: 0;
32
+ border: 1px solid theme-color('borders');
33
+ height: auto;
34
+ z-index: 1;
35
+ @include media-breakpoint-up(sm) {
36
+ font-size: font-px-to-rem(28px);
37
+ border: 2px solid theme-color("borders");
38
+ }
39
+ @include media-breakpoint-up(md) {
40
+ font-size: font-px-to-rem(20px);
41
+ border: 1px solid theme-color("borders");
42
+ }
43
+ &::-webkit-inner-spin-button {
44
+ -webkit-appearance: none;
45
+ }
46
+ }
47
+ input[type=number]::-webkit-outer-spin-button,
48
+ input[type=number]::-webkit-inner-spin-button {
49
+ -webkit-appearance: none;
50
+ margin: 0;
51
+ }
52
+ input[type=number] {
53
+ -moz-appearance:textfield;
54
+ }
55
+ }
@@ -0,0 +1,7 @@
1
+ .registration-button {
2
+ margin-top: font-px-to-rem(39px);
3
+
4
+ @include media-breakpoint-up(sm) {
5
+ margin-top: font-px-to-rem(26px);
6
+ }
7
+ }
@@ -0,0 +1,47 @@
1
+ #no-taxon-banner {
2
+ img {
3
+ object-fit: cover;
4
+ }
5
+ }
6
+ .taxon {
7
+ &-icon {
8
+ img {
9
+ object-fit: cover;
10
+ }
11
+ }
12
+ &-title {
13
+ font-size: font-px-to-rem(20px);
14
+ font-weight: 500;
15
+ margin-bottom: 10px;
16
+ @include media-breakpoint-up(md) {
17
+ font-size: font-px-to-rem(32px);
18
+ }
19
+ }
20
+ &-description {
21
+ font-size: font-px-to-rem(14px);
22
+ font-weight: 500;
23
+ }
24
+ &-subcategories {
25
+ overflow-x: auto;
26
+ white-space: nowrap;
27
+ font-weight: bold;
28
+ &-wrapper{
29
+ position: sticky;
30
+ top: $spree-header-mobile-height;
31
+ z-index: 2;
32
+ background: $primary-background;
33
+ @include media-breakpoint-up(sm) {
34
+ top: $spree-header-tablet-height;
35
+ }
36
+ @include media-breakpoint-up(lg) {
37
+ top: $spree-header-desktop-height;
38
+ }
39
+ }
40
+ > a, &-selected {
41
+ color: theme-color("dark-text");
42
+ }
43
+ &-selected {
44
+ border-bottom: 5px solid theme-color('dark-text');
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,12 @@
1
+ .user-passwords {
2
+ margin-bottom: 5rem;
3
+
4
+ @include media-breakpoint-up(sm) {
5
+ margin-bottom: 8rem;
6
+ }
7
+
8
+ &-no-border {
9
+ border: none;
10
+ background: $primary-background;
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ .user-sessions {
2
+ margin-bottom: 8rem;
3
+ }