spree_backend 4.2.4 → 4.3.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/app/assets/config/spree_backend_manifest.js +129 -0
  4. data/app/assets/images/backend-arrows-fullscreen.svg +3 -0
  5. data/app/assets/images/backend-box.svg +3 -0
  6. data/app/assets/images/backend-circle-fill.svg +3 -0
  7. data/app/assets/images/backend-circle.svg +3 -0
  8. data/app/assets/images/backend-default-layout.svg +6 -0
  9. data/app/assets/images/backend-eye-slash-fill.svg +4 -0
  10. data/app/assets/images/backend-file-richtext.svg +4 -0
  11. data/app/assets/images/backend-fullscreen-exit.svg +3 -0
  12. data/app/assets/images/backend-fullscreen.svg +3 -0
  13. data/app/assets/images/backend-mobile.svg +5 -0
  14. data/app/assets/images/backend-pages.svg +10 -0
  15. data/app/assets/images/backend-phone.svg +4 -0
  16. data/app/assets/images/backend-reversed-layout.svg +6 -0
  17. data/app/assets/images/backend-spree-icon.svg +1 -0
  18. data/app/assets/images/backend-spree-logo.svg +6 -0
  19. data/app/assets/images/backend-store.svg +2 -13
  20. data/app/assets/images/backend-translate.svg +4 -0
  21. data/app/assets/images/backend-users.svg +2 -5
  22. data/app/assets/images/backend-window-sidebar.svg +4 -0
  23. data/app/assets/images/noimage/backend-missing-image.svg +4 -0
  24. data/app/assets/images/noimage/large.png +0 -0
  25. data/app/assets/images/noimage/mini.png +0 -0
  26. data/app/assets/images/noimage/product.png +0 -0
  27. data/app/assets/images/noimage/small.png +0 -0
  28. data/app/assets/javascripts/spree/backend/address_states.es6 +44 -0
  29. data/app/assets/javascripts/spree/backend/admin.js +45 -307
  30. data/app/assets/javascripts/spree/backend/checkouts/edit.js +22 -13
  31. data/app/assets/javascripts/spree/backend/cms/_index.es6 +4 -0
  32. data/app/assets/javascripts/spree/backend/cms/links.es6 +25 -0
  33. data/app/assets/javascripts/spree/backend/cms/live_preview.es6 +34 -0
  34. data/app/assets/javascripts/spree/backend/cms/page.es6 +133 -0
  35. data/app/assets/javascripts/spree/backend/cms/section.es6 +43 -0
  36. data/app/assets/javascripts/spree/backend/global/_index.js +11 -0
  37. data/app/assets/javascripts/spree/backend/global/alerts.es6 +66 -0
  38. data/app/assets/javascripts/spree/backend/global/api_functions.es6 +5 -0
  39. data/app/assets/javascripts/spree/backend/global/bootstrap.es6 +15 -0
  40. data/app/assets/javascripts/spree/backend/global/flatpickr.es6 +22 -0
  41. data/app/assets/javascripts/spree/backend/global/info_alert.es6 +38 -0
  42. data/app/assets/javascripts/spree/backend/global/radio_panel_toggle.es6 +18 -0
  43. data/app/assets/javascripts/spree/backend/global/ransack.es6 +108 -0
  44. data/app/assets/javascripts/spree/backend/global/responsive_menus.es6 +56 -0
  45. data/app/assets/javascripts/spree/backend/global/select2_autocomplete.es6 +156 -0
  46. data/app/assets/javascripts/spree/backend/global/select2_populate.es6 +61 -0
  47. data/app/assets/javascripts/spree/backend/global/side_scroll_indication.es6 +137 -0
  48. data/app/assets/javascripts/spree/backend/global/sortable.es6 +35 -0
  49. data/app/assets/javascripts/spree/backend/global/tinymce.es6 +11 -0
  50. data/app/assets/javascripts/spree/backend/menus/_index.es6 +2 -0
  51. data/app/assets/javascripts/spree/backend/menus/menu.es6 +57 -0
  52. data/app/assets/javascripts/spree/backend/menus/menu_item.es6 +26 -0
  53. data/app/assets/javascripts/spree/backend/option_type_autocomplete.js +13 -17
  54. data/app/assets/javascripts/spree/backend/option_value_picker.js +10 -22
  55. data/app/assets/javascripts/spree/backend/payments/edit.js +1 -1
  56. data/app/assets/javascripts/spree/backend/payments/new.js +18 -5
  57. data/app/assets/javascripts/spree/backend/spree-select2.js +19 -1
  58. data/app/assets/javascripts/spree/backend/stock_location.js +1 -2
  59. data/app/assets/javascripts/spree/backend/taxon_autocomplete.js +7 -1
  60. data/app/assets/javascripts/spree/backend/taxons.js +74 -73
  61. data/app/assets/javascripts/spree/backend/user_picker.js +7 -10
  62. data/app/assets/javascripts/spree/backend.js +28 -1
  63. data/app/assets/javascripts/spree.js +78 -0
  64. data/app/assets/stylesheets/spree/backend/components/_filters.scss +1 -3
  65. data/app/assets/stylesheets/spree/backend/components/_main.scss +0 -1
  66. data/app/assets/stylesheets/spree/backend/components/_navbar.scss +35 -0
  67. data/app/assets/stylesheets/spree/backend/components/_navigation.scss +13 -0
  68. data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +0 -1
  69. data/app/assets/stylesheets/spree/backend/components/_tables.scss +4 -5
  70. data/app/assets/stylesheets/spree/backend/global/_mixins.scss +59 -0
  71. data/app/assets/stylesheets/spree/backend/plugins/_nav_x.scss +95 -0
  72. data/app/assets/stylesheets/spree/backend/plugins/{select2_bootstrap4.scss → _select2_bootstrap4.scss} +0 -0
  73. data/app/assets/stylesheets/spree/backend/plugins/_sweetalert2_custom.scss +100 -0
  74. data/app/assets/stylesheets/spree/backend/plugins/_tinymce_custom.scss +4 -0
  75. data/app/assets/stylesheets/spree/backend/shared/_base.scss +75 -25
  76. data/app/assets/stylesheets/spree/backend/shared/_forms.scss +8 -0
  77. data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +5 -0
  78. data/app/assets/stylesheets/spree/backend/views/_cms_pages.scss +148 -0
  79. data/app/assets/stylesheets/spree/backend/views/_menus.scss +61 -0
  80. data/app/controllers/concerns/spree/admin/order_concern.rb +24 -0
  81. data/app/controllers/concerns/spree/admin/product_concern.rb +11 -0
  82. data/app/controllers/spree/admin/base_controller.rb +63 -3
  83. data/app/controllers/spree/admin/cms_pages_controller.rb +29 -0
  84. data/app/controllers/spree/admin/cms_sections_controller.rb +15 -0
  85. data/app/controllers/spree/admin/customer_returns_controller.rb +4 -5
  86. data/app/controllers/spree/admin/errors_controller.rb +11 -0
  87. data/app/controllers/spree/admin/general_settings_controller.rb +1 -1
  88. data/app/controllers/spree/admin/images_controller.rb +8 -22
  89. data/app/controllers/spree/admin/log_entries_controller.rb +4 -3
  90. data/app/controllers/spree/admin/menu_items_controller.rb +33 -0
  91. data/app/controllers/spree/admin/menus_controller.rb +32 -0
  92. data/app/controllers/spree/admin/option_types_controller.rb +1 -1
  93. data/app/controllers/spree/admin/orders/customer_details_controller.rb +6 -11
  94. data/app/controllers/spree/admin/orders_controller.rb +23 -31
  95. data/app/controllers/spree/admin/payment_methods_controller.rb +17 -4
  96. data/app/controllers/spree/admin/payments_controller.rb +5 -10
  97. data/app/controllers/spree/admin/prices_controller.rb +2 -2
  98. data/app/controllers/spree/admin/products_controller.rb +21 -10
  99. data/app/controllers/spree/admin/promotion_actions_controller.rb +1 -1
  100. data/app/controllers/spree/admin/promotion_rules_controller.rb +1 -1
  101. data/app/controllers/spree/admin/promotions_controller.rb +3 -3
  102. data/app/controllers/spree/admin/prototypes_controller.rb +1 -1
  103. data/app/controllers/spree/admin/reimbursements_controller.rb +1 -1
  104. data/app/controllers/spree/admin/reports_controller.rb +5 -1
  105. data/app/controllers/spree/admin/resource_controller.rb +32 -5
  106. data/app/controllers/spree/admin/return_index_controller.rb +1 -1
  107. data/app/controllers/spree/admin/state_changes_controller.rb +2 -7
  108. data/app/controllers/spree/admin/stock_items_controller.rb +2 -2
  109. data/app/controllers/spree/admin/stock_locations_controller.rb +2 -2
  110. data/app/controllers/spree/admin/stock_movements_controller.rb +1 -1
  111. data/app/controllers/spree/admin/stock_transfers_controller.rb +1 -1
  112. data/app/controllers/spree/admin/store_credits_controller.rb +13 -8
  113. data/app/controllers/spree/admin/stores_controller.rb +14 -17
  114. data/app/controllers/spree/admin/taxons_controller.rb +9 -5
  115. data/app/controllers/spree/admin/users_controller.rb +9 -7
  116. data/app/controllers/spree/admin/variants_controller.rb +16 -15
  117. data/app/helpers/spree/admin/base_helper.rb +52 -14
  118. data/app/helpers/spree/admin/cms_helper.rb +15 -0
  119. data/app/helpers/spree/admin/menu_helper.rb +30 -0
  120. data/app/helpers/spree/admin/stores_helper.rb +21 -0
  121. data/app/models/spree/backend_configuration.rb +2 -0
  122. data/app/views/spree/admin/adjustments/_adjustment.html.erb +7 -5
  123. data/app/views/spree/admin/cms_pages/_form.html.erb +135 -0
  124. data/app/views/spree/admin/cms_pages/_live_preview_area.html.erb +61 -0
  125. data/app/views/spree/admin/cms_pages/_section_template.html.erb +16 -0
  126. data/app/views/spree/admin/cms_pages/edit.html.erb +21 -0
  127. data/app/views/spree/admin/cms_pages/index.html.erb +84 -0
  128. data/app/views/spree/admin/cms_pages/new.html.erb +8 -0
  129. data/app/views/spree/admin/cms_sections/_form.html.erb +69 -0
  130. data/app/views/spree/admin/cms_sections/edit.html.erb +19 -0
  131. data/app/views/spree/admin/cms_sections/new.html.erb +11 -0
  132. data/app/views/spree/admin/cms_sections/types/_featured_article.html.erb +50 -0
  133. data/app/views/spree/admin/cms_sections/types/_hero_image.html.erb +62 -0
  134. data/app/views/spree/admin/cms_sections/types/_image_gallery.html.erb +177 -0
  135. data/app/views/spree/admin/cms_sections/types/_product_carousel.html.erb +5 -0
  136. data/app/views/spree/admin/cms_sections/types/_rich_text_content.html.erb +4 -0
  137. data/app/views/spree/admin/cms_sections/types/_side_by_side_images.html.erb +121 -0
  138. data/app/views/spree/admin/countries/index.html.erb +5 -3
  139. data/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb +6 -4
  140. data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +9 -7
  141. data/app/views/spree/admin/customer_returns/index.html.erb +4 -2
  142. data/app/views/spree/admin/errors/forbidden.html.erb +0 -0
  143. data/app/views/spree/admin/images/index.html.erb +8 -4
  144. data/app/views/spree/admin/menu_items/_form.html.erb +115 -0
  145. data/app/views/spree/admin/menu_items/edit.html.erb +11 -0
  146. data/app/views/spree/admin/menu_items/new.html.erb +11 -0
  147. data/app/views/spree/admin/menus/_form.html.erb +19 -0
  148. data/app/views/spree/admin/menus/edit.html.erb +57 -0
  149. data/app/views/spree/admin/menus/index.html.erb +90 -0
  150. data/app/views/spree/admin/menus/nested_menu_items/_item_bar.html.erb +30 -0
  151. data/app/views/spree/admin/menus/new.html.erb +22 -0
  152. data/app/views/spree/admin/option_types/_form.html.erb +3 -0
  153. data/app/views/spree/admin/option_types/_option_value_fields.html.erb +5 -1
  154. data/app/views/spree/admin/option_types/index.html.erb +5 -3
  155. data/app/views/spree/admin/orders/_channel_form.html.erb +2 -2
  156. data/app/views/spree/admin/orders/_line_items.html.erb +10 -8
  157. data/app/views/spree/admin/orders/_shipment.html.erb +26 -18
  158. data/app/views/spree/admin/orders/_shipment_manifest.html.erb +11 -9
  159. data/app/views/spree/admin/orders/customer_details/_autocomplete.js.erb +2 -2
  160. data/app/views/spree/admin/orders/index.html.erb +100 -101
  161. data/app/views/spree/admin/payment_methods/_form.html.erb +6 -4
  162. data/app/views/spree/admin/payment_methods/edit.html.erb +1 -1
  163. data/app/views/spree/admin/payment_methods/index.html.erb +22 -3
  164. data/app/views/spree/admin/payment_methods/new.html.erb +1 -1
  165. data/app/views/spree/admin/payments/_list.html.erb +9 -7
  166. data/app/views/spree/admin/prices/_variant_prices.html.erb +7 -14
  167. data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +9 -7
  168. data/app/views/spree/admin/products/_autocomplete.js.erb +10 -6
  169. data/app/views/spree/admin/products/_form.html.erb +35 -5
  170. data/app/views/spree/admin/products/index.html.erb +15 -14
  171. data/app/views/spree/admin/products/new.html.erb +6 -1
  172. data/app/views/spree/admin/products/stock.html.erb +71 -68
  173. data/app/views/spree/admin/promotion_categories/index.html.erb +5 -3
  174. data/app/views/spree/admin/promotions/_form.html.erb +7 -0
  175. data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +1 -0
  176. data/app/views/spree/admin/promotions/calculators/_default_fields.html.erb +2 -1
  177. data/app/views/spree/admin/promotions/index.html.erb +33 -34
  178. data/app/views/spree/admin/properties/_form.html.erb +6 -0
  179. data/app/views/spree/admin/properties/index.html.erb +19 -3
  180. data/app/views/spree/admin/prototypes/_form.html.erb +1 -1
  181. data/app/views/spree/admin/prototypes/_prototypes.html.erb +8 -6
  182. data/app/views/spree/admin/prototypes/index.html.erb +5 -3
  183. data/app/views/spree/admin/reimbursement_types/index.html.erb +5 -3
  184. data/app/views/spree/admin/reports/index.html.erb +1 -1
  185. data/app/views/spree/admin/reports/sales_total.html.erb +1 -1
  186. data/app/views/spree/admin/return_authorizations/_form.html.erb +2 -2
  187. data/app/views/spree/admin/return_authorizations/index.html.erb +7 -5
  188. data/app/views/spree/admin/return_index/customer_returns.html.erb +4 -2
  189. data/app/views/spree/admin/return_index/return_authorizations.html.erb +5 -3
  190. data/app/views/spree/admin/roles/index.html.erb +5 -3
  191. data/app/views/spree/admin/shared/_account_nav.html.erb +5 -5
  192. data/app/views/spree/admin/shared/_address_form.html.erb +5 -4
  193. data/app/views/spree/admin/shared/_content_header.html.erb +20 -6
  194. data/app/views/spree/admin/shared/_head.html.erb +2 -1
  195. data/app/views/spree/admin/shared/_header.html.erb +7 -10
  196. data/app/views/spree/admin/shared/_link_fields.html.erb +22 -0
  197. data/app/views/spree/admin/shared/_main_menu.html.erb +19 -4
  198. data/app/views/spree/admin/shared/_order_tabs.html.erb +1 -10
  199. data/app/views/spree/admin/shared/_paths.html.erb +8 -0
  200. data/app/views/spree/admin/shared/_refunds.html.erb +4 -2
  201. data/app/views/spree/admin/shared/_sidebar.html.erb +1 -1
  202. data/app/views/spree/admin/shared/_store_switcher.html.erb +23 -0
  203. data/app/views/spree/admin/shared/_table_filter.html.erb +6 -6
  204. data/app/views/spree/admin/shared/_translations.html.erb +2 -0
  205. data/app/views/spree/admin/shared/cms/_spree_product.html.erb +14 -0
  206. data/app/views/spree/admin/shared/cms/_spree_taxon.html.erb +14 -0
  207. data/app/views/spree/admin/shared/linkables/_home_page.html.erb +3 -0
  208. data/app/views/spree/admin/shared/linkables/_spree_cms_page.erb +28 -0
  209. data/app/views/spree/admin/shared/linkables/_spree_product.html.erb +20 -0
  210. data/app/views/spree/admin/shared/linkables/_spree_taxon.html.erb +22 -0
  211. data/app/views/spree/admin/shared/linkables/_url.html.erb +16 -0
  212. data/app/views/spree/admin/shared/named_types/_index.html.erb +7 -5
  213. data/app/views/spree/admin/shared/sub_menu/_configuration.html.erb +1 -3
  214. data/app/views/spree/admin/shared/sub_menu/_content.html.erb +4 -0
  215. data/app/views/spree/admin/shared/sub_menu/_stock.html.erb +4 -0
  216. data/app/views/spree/admin/shipping_categories/index.html.erb +5 -3
  217. data/app/views/spree/admin/shipping_methods/index.html.erb +5 -3
  218. data/app/views/spree/admin/states/_state_list.html.erb +5 -3
  219. data/app/views/spree/admin/stock_locations/index.html.erb +5 -3
  220. data/app/views/spree/admin/stock_transfers/index.html.erb +5 -4
  221. data/app/views/spree/admin/stock_transfers/new.html.erb +9 -7
  222. data/app/views/spree/admin/store_credit_categories/index.html.erb +5 -3
  223. data/app/views/spree/admin/store_credits/index.html.erb +7 -5
  224. data/app/views/spree/admin/stores/_form.html.erb +12 -2
  225. data/app/views/spree/admin/stores/index.html.erb +12 -10
  226. data/app/views/spree/admin/tax_categories/index.html.erb +5 -3
  227. data/app/views/spree/admin/tax_rates/index.html.erb +5 -3
  228. data/app/views/spree/admin/taxonomies/_list.html.erb +5 -3
  229. data/app/views/spree/admin/taxons/_form.html.erb +1 -1
  230. data/app/views/spree/admin/users/_addresses_form.html.erb +2 -4
  231. data/app/views/spree/admin/users/_lifetime_stats.html.erb +16 -4
  232. data/app/views/spree/admin/users/index.html.erb +5 -3
  233. data/app/views/spree/admin/users/items.html.erb +1 -1
  234. data/app/views/spree/admin/variants/_autocomplete.js.erb +6 -2
  235. data/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb +18 -12
  236. data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +12 -8
  237. data/app/views/spree/admin/variants/_split.js.erb +9 -7
  238. data/app/views/spree/admin/variants/index.html.erb +8 -5
  239. data/app/views/spree/admin/zones/index.html.erb +5 -3
  240. data/app/views/spree/layouts/admin.html.erb +16 -16
  241. data/config/initializers/assets.rb +5 -1
  242. data/config/routes.rb +14 -2
  243. data/lib/generators/spree/backend/install/install_generator.rb +22 -0
  244. data/lib/generators/spree/backend/install/templates/vendor/assets/javascripts/spree/backend/all.js +8 -0
  245. data/lib/generators/spree/backend/install/templates/vendor/assets/stylesheets/spree/backend/all.css +9 -0
  246. data/lib/spree/backend/engine.rb +4 -11
  247. data/lib/spree/backend.rb +7 -4
  248. data/lib/spree_backend.rb +0 -2
  249. data/spec/fixtures/files/favicon.ico +0 -0
  250. data/spec/fixtures/files/icon_512x512.png +0 -0
  251. data/spree_backend.gemspec +16 -11
  252. data/vendor/assets/javascripts/cleave.js +8 -0
  253. data/vendor/assets/javascripts/jsonapi-serializer.min.js +8 -0
  254. data/vendor/assets/javascripts/jsuri.js +458 -0
  255. data/vendor/assets/javascripts/sortable.js +2 -3709
  256. data/vendor/assets/javascripts/sweetalert2.js +2 -0
  257. metadata +208 -42
  258. data/app/assets/javascripts/spree/backend/address_states.js +0 -44
  259. data/app/assets/javascripts/spree/frontend/backend.js +0 -1
  260. data/app/assets/stylesheets/spree/frontend/backend.css +0 -1
  261. data/app/views/spree/admin/orders/_store_form.html.erb +0 -18
@@ -0,0 +1,100 @@
1
+ // Custom SCSS Standard SweetAlerts
2
+ body.swal2-shown {
3
+ .swal2-popup {
4
+ border-radius:$border-radius;
5
+ }
6
+ .swal2-html-container {
7
+ text-align: left;
8
+ font-size: 0.9em;
9
+
10
+ .alert-link {
11
+ font-weight: 400;
12
+ }
13
+ }
14
+ .swal2-content {
15
+ padding: 0 !important;
16
+ }
17
+ .swal2-header {
18
+ .swal2-icon {
19
+ width: 2.5em;
20
+ height: 2.5em;
21
+
22
+ .swal2-icon-content {
23
+ font-size: 2.15em;
24
+ }
25
+ }
26
+
27
+ .swal2-close {
28
+ top: 3px;
29
+ right: 3px;
30
+ padding-bottom: 3px;
31
+
32
+ &:hover {
33
+ color:grey;
34
+ }
35
+ }
36
+ }
37
+ }
38
+
39
+ // Custom SCSS Toast SweetAlerts
40
+ body.swal2-toast-shown .swal2-container.swal2-bottom {
41
+ right: -50% !important;
42
+ max-width: 500px;
43
+
44
+ .swal2-popup.swal2-toast {
45
+ border-width: 3px;
46
+ border-style: solid;
47
+ box-shadow: none !important;
48
+ margin-bottom: 50px;
49
+
50
+ .swal2-icon {
51
+ display: none !important;
52
+ }
53
+
54
+ button.swal2-close {
55
+ min-width: .8em;
56
+ padding-bottom: 0.1em;
57
+ &:hover {
58
+ opacity: 0.75;
59
+ }
60
+ }
61
+ }
62
+ }
63
+
64
+ @include media-breakpoint-down(sm) {
65
+ body.swal2-toast-shown .swal2-container.swal2-bottom {
66
+ .swal2-popup.swal2-toast {
67
+ button.swal2-close {
68
+ padding-bottom: 0;
69
+ }
70
+ }
71
+ }
72
+ }
73
+
74
+ .swal2-popup.swal2-toast.swal2-icon-success {
75
+ @extend .alert-success;
76
+ h2, button {
77
+ @extend .alert-success;
78
+ }
79
+ }
80
+
81
+ .swal2-popup.swal2-toast.swal2-icon-error {
82
+ @extend .alert-danger;
83
+ h2, button {
84
+ @extend .alert-danger;
85
+ }
86
+ }
87
+
88
+ .swal2-popup.swal2-toast.swal2-icon-info {
89
+ @extend .alert-info;
90
+ h2, button {
91
+ @extend .alert-info;
92
+ }
93
+ }
94
+
95
+ .swal2-popup.swal2-toast.swal2-icon-question {
96
+ @extend .alert-warning;
97
+ h2, button {
98
+ @extend .alert-warning;
99
+ }
100
+ }
@@ -0,0 +1,4 @@
1
+ // Removes Tiny MCE branding
2
+ .tox-statusbar__branding {
3
+ display: none;
4
+ }
@@ -15,14 +15,65 @@
15
15
  z-index: $zindex-dropdown;
16
16
  }
17
17
 
18
- // No-margin and no-padding helper classes
19
- @each $side in top bottom left right {
20
- .no-margin-#{$side} { margin-#{side}: 0; }
21
- .no-padding-#{$side} { padding-#{side}: 0; }
18
+ figure.admin-img-holder {
19
+ max-width: 275px;
20
+ border: 2px dashed grey;
21
+ border-radius: $border-radius;
22
+ overflow: hidden;
23
+ display: inline-block;
24
+
25
+ img {
26
+ max-width: 100%;
27
+ height: auto;
28
+ }
22
29
  }
23
30
 
24
- .alert-error {
25
- @extend .alert-danger;
31
+ div.admin-product-image-container {
32
+ border: 1px solid $gray-500;
33
+ background-color: #fefefe;
34
+ border-radius: $border-radius;
35
+ overflow: hidden;
36
+ display: flex;
37
+ justify-content: center;
38
+ margin: auto;
39
+
40
+ img {
41
+ max-width: 100%;
42
+ height: auto;
43
+ align-self: center;
44
+ transform: scale(1.6);
45
+ }
46
+
47
+ svg {
48
+ color: $gray-600;
49
+ align-self: center;
50
+ }
51
+
52
+ &.mini-img {
53
+ border-radius: $border-radius / 2;
54
+ width: 24px;
55
+ height: 24px;
56
+ }
57
+
58
+ &.small-img {
59
+ border-radius: $border-radius;
60
+ width: 50px;
61
+ height: 50px;
62
+ }
63
+
64
+ &.product-img {
65
+ border-width: 2px;
66
+ border-radius: $border-radius * 2;
67
+ width: 100px;
68
+ height: 100px;
69
+ }
70
+
71
+ &.large-img {
72
+ border-width: 3px;
73
+ border-radius: $border-radius * 3;
74
+ width: 300px;
75
+ height: 300px;
76
+ }
26
77
  }
27
78
 
28
79
  .js-remove-promo-rule-option-value {
@@ -32,30 +83,29 @@
32
83
  }
33
84
  }
34
85
 
35
- .flash-alert {
36
- z-index: 0;
37
- opacity: 0;
38
- bottom: -50px;
39
- left:0;
40
- right:0;
86
+ .button_to {
87
+ display: inline-block;
88
+ }
89
+
90
+ .move-handle {
91
+ cursor: grab;
92
+ }
41
93
 
42
- .alert {
43
- z-index: 500;
44
- opacity: 0.98;
45
- border-width: 3px;
46
- margin-bottom: 0;
47
- }
94
+ .badge-light-muted-text {
95
+ color: rgba(0, 0, 0, 0.50);
48
96
  }
49
97
 
50
- .flash-alert.animate__animated {
51
- opacity: 1;
52
- bottom: 30px;
98
+ .truncate {
99
+ white-space: nowrap;
100
+ overflow: hidden;
101
+ text-overflow: ellipsis;
53
102
  }
54
103
 
55
- .resize-animation-stopper * {
56
- transition: none !important;
104
+ [data-show-info] {
105
+ color: $primary;
106
+ cursor: pointer;
57
107
  }
58
108
 
59
- .button_to {
60
- display: inline-block;
109
+ #contentHeaderRow {
110
+ min-height: 51px;
61
111
  }
@@ -37,6 +37,14 @@ input[type=number].hide-number-toggle {
37
37
  -moz-appearance: textfield;
38
38
  }
39
39
 
40
+ input[type="file"] {
41
+ width: fit-content;
42
+ max-width: 100%;
43
+ white-space: nowrap;
44
+ overflow: hidden;
45
+ text-overflow: ellipsis;
46
+ }
47
+
40
48
 
41
49
  // Remove the default 5px outlines and box-shadows
42
50
  // from all inputs on focus.
@@ -19,14 +19,19 @@
19
19
  @import 'components/progress';
20
20
  @import 'components/spinner';
21
21
 
22
+ @import 'plugins/sweetalert2_custom';
22
23
  @import 'plugins/jquery_ui';
23
24
  @import 'plugins/flatpickr';
24
25
  @import 'plugins/select2_bootstrap4';
25
26
  @import 'plugins/select2_custom';
27
+ @import 'plugins/tinymce_custom';
28
+ @import 'plugins/nav_x';
26
29
 
27
30
  @import 'shared/base';
28
31
  @import 'shared/forms';
29
32
 
33
+ @import 'views/menus';
34
+ @import 'views/cms_pages';
30
35
  @import 'views/order_payments';
31
36
  @import 'views/product_properties';
32
37
  @import 'views/prototypes';
@@ -0,0 +1,148 @@
1
+ #ImageGalleryLayout {
2
+ #LayoutType {
3
+ color: rgb(134, 134, 134);
4
+ }
5
+
6
+ .select2-container--bootstrap4 {
7
+ max-width: 200px;
8
+ margin: auto;
9
+ }
10
+ }
11
+
12
+ #standardPage {
13
+ .sp-pb-0 {
14
+ padding-bottom: 0 !important;
15
+ }
16
+
17
+ .sp-card {
18
+ border-bottom: 0;
19
+ border-radius: 5px 5px 0 0;
20
+ }
21
+ }
22
+
23
+ [aria-expanded="false"] {
24
+ span.more {
25
+ display: inline;
26
+ }
27
+ span.less {
28
+ display: none;
29
+ }
30
+ }
31
+
32
+ [aria-expanded="true"] {
33
+ span.more {
34
+ display: none;
35
+ }
36
+ span.less {
37
+ display: inline;
38
+ }
39
+ }
40
+
41
+ button#cmsSectionEditorFullScreen {
42
+ span.exit {
43
+ display: none;
44
+ }
45
+
46
+ &.active {
47
+ span.exit {
48
+ display: inline;
49
+ }
50
+ }
51
+ }
52
+
53
+ #liveViewCont {
54
+ height: 100%;
55
+
56
+ .embed-responsive {
57
+ height: 100%;
58
+ }
59
+ }
60
+
61
+ #draggableSectionsHolder {
62
+ max-height: 750px;
63
+ }
64
+
65
+ #cmsPagesectionsArea {
66
+ overflow-x: hidden;
67
+ overflow-y: scroll;
68
+ max-height: 100%;
69
+
70
+ .border {
71
+ border-color: #9c9c9c !important;
72
+ }
73
+
74
+ // Hide scroll-bar in live preview
75
+ // sidebar.
76
+ -ms-overflow-style: none; /* IE and Edge */
77
+ scrollbar-width: none; /* Firefox */
78
+ &::-webkit-scrollbar {
79
+ display: none;
80
+ }
81
+ }
82
+
83
+ @include media-breakpoint-up(md) {
84
+ body[data-sections-editor-full-screen] {
85
+ .hide-on-full-screen-mode {
86
+ display: none;
87
+ }
88
+
89
+ #pageSectionsArea {
90
+ position: fixed;
91
+ top: 0;
92
+ left: 0;
93
+ z-index: 9999;
94
+ background: white;
95
+ padding: 15px 15px 0 15px;
96
+ height: 100vh;
97
+
98
+ #cmsPagesectionsArea {
99
+ max-height: 90vh;
100
+ }
101
+
102
+ .embed-responsive-4by3 {
103
+ height: 90vh;
104
+ }
105
+ }
106
+
107
+ #draggableSectionsHolder {
108
+ max-width: 350px;
109
+ }
110
+ }
111
+ }
112
+
113
+ #pageLivePreview {
114
+ transform-origin: top left;
115
+ background: rgb(62, 62, 62);
116
+ }
117
+
118
+ .desktopLiveView {
119
+ #pageLivePreview {
120
+ width: 200.5%;
121
+ height:200.5%;
122
+ inset: 50%;
123
+ transform: scale(0.5) translate(-50%, -50%);
124
+ max-width: 2600px;
125
+ }
126
+ }
127
+
128
+ .tabletLiveView {
129
+ #pageLivePreview {
130
+ width: 85%;
131
+ height: 133.5%;
132
+ inset: 50%;
133
+ transform: scale(0.75) translate(-50%, -50%);
134
+ max-width: 991px;
135
+ min-width: 768px;
136
+ }
137
+ }
138
+
139
+ .mobileLiveView {
140
+ #pageLivePreview {
141
+ width: 60%;
142
+ height: 133.5%;
143
+ inset: 50%;
144
+ transform: scale(0.75) translate(-50%, -50%);
145
+ max-width: 767px;
146
+ min-width: 375px;
147
+ }
148
+ }
@@ -0,0 +1,61 @@
1
+ #menuItemImgContainer {
2
+ width: 200px;
3
+ img {
4
+ max-width: 100%;
5
+ }
6
+ }
7
+
8
+ #menuArea {
9
+ .space-buttons {
10
+ box-shadow: -11px 0 16px 6px white;
11
+ z-index: 9;
12
+ a {
13
+ margin: 2px;
14
+ }
15
+ }
16
+ .container-item-row {
17
+ overflow: hidden;
18
+ border: 1px solid $border-color;
19
+ margin: 2px;
20
+ background-color: white;
21
+ }
22
+
23
+ .menu-container-item {
24
+ border: solid 1px transparent;
25
+ padding: 0;
26
+ background-color: var(--light);
27
+
28
+ .menu-container {
29
+ margin-left: 25px;
30
+ background-color: var(--light);
31
+ }
32
+
33
+ @include media-breakpoint-up(sm) {
34
+ .menu-container {
35
+ margin-left: 50px;
36
+ }
37
+ }
38
+ }
39
+
40
+ .sortable-chosen {
41
+ border: 1px dashed var(--gray);
42
+ border-radius: 5px;
43
+ }
44
+
45
+ .menu_items_image_holder {
46
+ position: relative;
47
+ border: 1px solid $border-color;
48
+ border-radius: 7px;
49
+ overflow: hidden;
50
+ width: 45px;
51
+ height: 45px;
52
+ img {
53
+ position: absolute;
54
+ left: 50%;
55
+ top: 50%;
56
+ height: 100%;
57
+ width: auto;
58
+ transform: translate(-50%,-50%);
59
+ }
60
+ }
61
+ }