spree_backend 4.1.15 → 4.2.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (270) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/backend-add.svg +5 -0
  3. data/app/assets/images/backend-adjust.svg +5 -0
  4. data/app/assets/images/backend-approve.svg +3 -0
  5. data/app/assets/images/backend-arrow-down.svg +1 -0
  6. data/app/assets/images/backend-arrow-left.svg +1 -0
  7. data/app/assets/images/backend-arrow-right.svg +1 -0
  8. data/app/assets/images/backend-arrow-up.svg +1 -0
  9. data/app/assets/images/backend-calendar.svg +9 -0
  10. data/app/assets/images/backend-cancel.svg +7 -0
  11. data/app/assets/images/backend-capture.svg +3 -0
  12. data/app/assets/images/backend-cart.svg +1 -0
  13. data/app/assets/images/backend-chevron-down.svg +1 -0
  14. data/app/assets/images/backend-chevron-left.svg +1 -0
  15. data/app/assets/images/backend-chevron-right.svg +1 -0
  16. data/app/assets/images/backend-chevron-up.svg +1 -0
  17. data/app/assets/images/backend-clone.svg +7 -0
  18. data/app/assets/images/backend-close.svg +7 -0
  19. data/app/assets/images/backend-delete.svg +6 -0
  20. data/app/assets/images/backend-double-chevron-left.svg +15 -0
  21. data/app/assets/images/backend-double-chevron-right.svg +17 -0
  22. data/app/assets/images/backend-edit.svg +14 -0
  23. data/app/assets/images/backend-enter.svg +6 -0
  24. data/app/assets/images/backend-envelope.svg +3 -0
  25. data/app/assets/images/backend-exit.svg +13 -0
  26. data/app/assets/images/backend-extensions.svg +4 -0
  27. data/app/assets/images/backend-eye-open.svg +8 -0
  28. data/app/assets/images/backend-file.svg +6 -0
  29. data/app/assets/images/backend-filter.svg +3 -0
  30. data/app/assets/images/backend-folder.svg +4 -0
  31. data/app/assets/images/backend-images.svg +7 -0
  32. data/app/assets/images/backend-info.svg +7 -0
  33. data/app/assets/images/backend-items.svg +5 -0
  34. data/app/assets/images/backend-leaf.svg +7 -0
  35. data/app/assets/images/backend-list.svg +5 -0
  36. data/app/assets/images/backend-location.svg +4 -0
  37. data/app/assets/images/backend-menu.svg +5 -0
  38. data/app/assets/images/backend-money.svg +1 -0
  39. data/app/assets/images/backend-move.svg +5 -0
  40. data/app/assets/images/backend-ok.svg +3 -0
  41. data/app/assets/images/backend-pagination-double-arrow-right.svg +8 -0
  42. data/app/assets/images/backend-payments.svg +8 -0
  43. data/app/assets/images/backend-pencil.svg +1 -0
  44. data/app/assets/images/backend-products.svg +5 -0
  45. data/app/assets/images/backend-promotion.svg +8 -0
  46. data/app/assets/images/backend-recycle.svg +5 -0
  47. data/app/assets/images/backend-remove.svg +6 -0
  48. data/app/assets/images/backend-report.svg +6 -0
  49. data/app/assets/images/backend-resume.svg +5 -0
  50. data/app/assets/images/backend-returns.svg +3 -0
  51. data/app/assets/images/backend-save.svg +3 -0
  52. data/app/assets/images/backend-search.svg +1 -0
  53. data/app/assets/images/backend-settings.svg +6 -0
  54. data/app/assets/images/backend-shipping.svg +3 -0
  55. data/app/assets/images/backend-slack.svg +3 -0
  56. data/app/assets/images/backend-sort.svg +5 -0
  57. data/app/assets/images/backend-split.svg +3 -0
  58. data/app/assets/images/backend-store.svg +14 -0
  59. data/app/assets/images/backend-tick.svg +3 -0
  60. data/app/assets/images/backend-update.svg +3 -0
  61. data/app/assets/images/backend-user.svg +3 -0
  62. data/app/assets/images/backend-users.svg +6 -0
  63. data/app/assets/images/backend-view.svg +8 -0
  64. data/app/assets/images/backend-void.svg +7 -0
  65. data/app/assets/javascripts/spree/backend/admin.js +156 -147
  66. data/app/assets/javascripts/spree/backend/checkouts/edit.js +1 -0
  67. data/app/assets/javascripts/spree/backend/flatpickr_locals.js +37 -0
  68. data/app/assets/javascripts/spree/backend/multi_currency.js +38 -0
  69. data/app/assets/javascripts/spree/backend/payments/edit.js +4 -3
  70. data/app/assets/javascripts/spree/backend/payments/new.js +18 -18
  71. data/app/assets/javascripts/spree/backend/promotions.js +1 -1
  72. data/app/assets/javascripts/spree/backend/spree-select2.js +18 -4
  73. data/app/assets/javascripts/spree/backend/stock_management.js +2 -1
  74. data/app/assets/javascripts/spree/backend/taxon_tree_menu.js +4 -4
  75. data/app/assets/javascripts/spree/backend/taxonomy.js +8 -1
  76. data/app/assets/javascripts/spree/backend/taxons.js +25 -16
  77. data/app/assets/javascripts/spree/backend/user_picker.js +1 -1
  78. data/app/assets/javascripts/spree/backend/variant_autocomplete.js +1 -1
  79. data/app/assets/javascripts/spree/backend/variant_management.js +2 -1
  80. data/app/assets/javascripts/spree/backend.js +5 -2
  81. data/app/assets/stylesheets/spree/backend/components/_buttons.scss +27 -11
  82. data/app/assets/stylesheets/spree/backend/components/_filters.scss +35 -5
  83. data/app/assets/stylesheets/spree/backend/components/_icons.scss +39 -4
  84. data/app/assets/stylesheets/spree/backend/components/_main.scss +32 -6
  85. data/app/assets/stylesheets/spree/backend/components/_navbar.scss +16 -8
  86. data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +119 -55
  87. data/app/assets/stylesheets/spree/backend/components/_tables.scss +62 -19
  88. data/app/assets/stylesheets/spree/backend/components/_taxon_products_view.scss +26 -63
  89. data/app/assets/stylesheets/spree/backend/global/_variables.scss +5 -1
  90. data/app/assets/stylesheets/spree/backend/plugins/_flatpickr.scss +95 -0
  91. data/app/assets/stylesheets/spree/backend/plugins/_jquery_ui.scss +0 -117
  92. data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +73 -24
  93. data/app/assets/stylesheets/spree/backend/shared/_base.scss +40 -0
  94. data/app/assets/stylesheets/spree/backend/shared/_forms.scss +38 -0
  95. data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +5 -0
  96. data/app/assets/stylesheets/spree/backend/views/_order_payments.scss +12 -0
  97. data/app/assets/stylesheets/spree/backend/views/_product_properties.scss +11 -0
  98. data/app/assets/stylesheets/spree/backend/views/prototypes.scss +42 -0
  99. data/app/assets/stylesheets/spree/backend.css +1 -1
  100. data/app/controllers/spree/admin/general_settings_controller.rb +27 -0
  101. data/app/controllers/spree/admin/prices_controller.rb +39 -0
  102. data/app/controllers/spree/admin/stock_transfers_controller.rb +8 -1
  103. data/app/controllers/spree/admin/stores_controller.rb +61 -1
  104. data/app/controllers/spree/admin/taxons_controller.rb +5 -1
  105. data/app/helpers/spree/admin/base_helper.rb +25 -8
  106. data/app/helpers/spree/admin/navigation_helper.rb +50 -19
  107. data/app/helpers/spree/admin/orders_helper.rb +3 -3
  108. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_first_page.html.erb +1 -1
  109. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_gap.html.erb +1 -1
  110. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_last_page.html.erb +1 -1
  111. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_next_page.html.erb +1 -1
  112. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_page.html.erb +0 -0
  113. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_paginator.html.erb +1 -1
  114. data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_prev_page.html.erb +1 -1
  115. data/app/views/spree/admin/adjustments/_adjustment.html.erb +2 -2
  116. data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +16 -16
  117. data/app/views/spree/admin/adjustments/edit.html.erb +2 -2
  118. data/app/views/spree/admin/adjustments/index.html.erb +3 -3
  119. data/app/views/spree/admin/adjustments/new.html.erb +1 -1
  120. data/app/views/spree/admin/countries/_form.html.erb +9 -4
  121. data/app/views/spree/admin/countries/index.html.erb +27 -24
  122. data/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb +37 -35
  123. data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +2 -0
  124. data/app/views/spree/admin/customer_returns/_return_item_selection.html.erb +45 -43
  125. data/app/views/spree/admin/customer_returns/index.html.erb +3 -1
  126. data/app/views/spree/admin/customer_returns/new.html.erb +1 -1
  127. data/app/views/spree/admin/general_settings/_form.html.erb +27 -0
  128. data/app/views/spree/admin/general_settings/edit.html.erb +4 -3
  129. data/app/views/spree/admin/images/edit.html.erb +2 -2
  130. data/app/views/spree/admin/images/index.html.erb +7 -7
  131. data/app/views/spree/admin/images/new.html.erb +2 -2
  132. data/app/views/spree/admin/log_entries/index.html.erb +4 -3
  133. data/app/views/spree/admin/option_types/_option_value_fields.html.erb +1 -1
  134. data/app/views/spree/admin/option_types/edit.html.erb +22 -20
  135. data/app/views/spree/admin/option_types/index.html.erb +27 -25
  136. data/app/views/spree/admin/orders/_adjustments.html.erb +26 -26
  137. data/app/views/spree/admin/orders/_line_items.html.erb +7 -7
  138. data/app/views/spree/admin/orders/_order_actions.html.erb +1 -1
  139. data/app/views/spree/admin/orders/_risk_analysis.html.erb +44 -42
  140. data/app/views/spree/admin/orders/_shipment.html.erb +6 -6
  141. data/app/views/spree/admin/orders/_shipment_manifest.html.erb +5 -5
  142. data/app/views/spree/admin/orders/_store_form.html.erb +3 -3
  143. data/app/views/spree/admin/orders/customer_details/_form.html.erb +1 -1
  144. data/app/views/spree/admin/orders/index.html.erb +135 -127
  145. data/app/views/spree/admin/payment_methods/index.html.erb +6 -4
  146. data/app/views/spree/admin/payments/_capture_events.html.erb +18 -16
  147. data/app/views/spree/admin/payments/_form.html.erb +1 -1
  148. data/app/views/spree/admin/payments/_list.html.erb +39 -37
  149. data/app/views/spree/admin/payments/index.html.erb +2 -3
  150. data/app/views/spree/admin/payments/new.html.erb +1 -1
  151. data/app/views/spree/admin/payments/show.html.erb +1 -1
  152. data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +30 -30
  153. data/app/views/spree/admin/payments/source_views/_gateway.html.erb +20 -18
  154. data/app/views/spree/admin/payments/source_views/_storecredit.html.erb +28 -26
  155. data/app/views/spree/admin/prices/_variant_prices.html.erb +43 -0
  156. data/app/views/spree/admin/prices/index.html.erb +21 -0
  157. data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +16 -4
  158. data/app/views/spree/admin/product_properties/index.html.erb +24 -19
  159. data/app/views/spree/admin/products/_add_stock_form.html.erb +1 -1
  160. data/app/views/spree/admin/products/_autocomplete.js.erb +27 -21
  161. data/app/views/spree/admin/products/_form.html.erb +40 -9
  162. data/app/views/spree/admin/products/edit.html.erb +1 -1
  163. data/app/views/spree/admin/products/index.html.erb +24 -19
  164. data/app/views/spree/admin/products/new.html.erb +11 -2
  165. data/app/views/spree/admin/products/stock.html.erb +3 -3
  166. data/app/views/spree/admin/promotion_categories/index.html.erb +4 -1
  167. data/app/views/spree/admin/promotions/_actions.html.erb +2 -2
  168. data/app/views/spree/admin/promotions/_form.html.erb +44 -17
  169. data/app/views/spree/admin/promotions/_promotion_action.html.erb +1 -1
  170. data/app/views/spree/admin/promotions/_promotion_rule.html.erb +1 -1
  171. data/app/views/spree/admin/promotions/_rules.html.erb +4 -4
  172. data/app/views/spree/admin/promotions/edit.html.erb +2 -2
  173. data/app/views/spree/admin/promotions/index.html.erb +5 -3
  174. data/app/views/spree/admin/promotions/new.html.erb +7 -6
  175. data/app/views/spree/admin/promotions/rules/_country.html.erb +1 -1
  176. data/app/views/spree/admin/promotions/rules/_item_total.html.erb +5 -5
  177. data/app/views/spree/admin/promotions/rules/_option_value.html.erb +6 -13
  178. data/app/views/spree/admin/promotions/rules/_product.html.erb +1 -1
  179. data/app/views/spree/admin/promotions/rules/_taxon.html.erb +1 -1
  180. data/app/views/spree/admin/properties/index.html.erb +5 -3
  181. data/app/views/spree/admin/prototypes/_prototypes.html.erb +30 -28
  182. data/app/views/spree/admin/prototypes/index.html.erb +21 -19
  183. data/app/views/spree/admin/prototypes/show.html.erb +21 -8
  184. data/app/views/spree/admin/refunds/edit.html.erb +2 -2
  185. data/app/views/spree/admin/refunds/new.html.erb +2 -2
  186. data/app/views/spree/admin/reimbursement_types/_form.html.erb +4 -4
  187. data/app/views/spree/admin/reimbursement_types/index.html.erb +4 -2
  188. data/app/views/spree/admin/reimbursements/edit.html.erb +66 -63
  189. data/app/views/spree/admin/reimbursements/index.html.erb +21 -20
  190. data/app/views/spree/admin/reimbursements/show.html.erb +66 -60
  191. data/app/views/spree/admin/reports/index.html.erb +18 -17
  192. data/app/views/spree/admin/reports/sales_total.html.erb +20 -19
  193. data/app/views/spree/admin/return_authorizations/_form.html.erb +3 -2
  194. data/app/views/spree/admin/return_authorizations/edit.html.erb +3 -3
  195. data/app/views/spree/admin/return_authorizations/index.html.erb +3 -1
  196. data/app/views/spree/admin/return_authorizations/new.html.erb +2 -2
  197. data/app/views/spree/admin/return_index/customer_returns.html.erb +4 -4
  198. data/app/views/spree/admin/return_index/return_authorizations.html.erb +4 -4
  199. data/app/views/spree/admin/roles/index.html.erb +21 -19
  200. data/app/views/spree/admin/shared/_account_nav.html.erb +51 -65
  201. data/app/views/spree/admin/shared/_address_form.html.erb +31 -73
  202. data/app/views/spree/admin/shared/_cal_close.html.erb +10 -0
  203. data/app/views/spree/admin/shared/_content_header.html.erb +40 -21
  204. data/app/views/spree/admin/shared/_edit_resource_links.html.erb +2 -2
  205. data/app/views/spree/admin/shared/_header.html.erb +14 -11
  206. data/app/views/spree/admin/shared/_index_table_options.html.erb +5 -7
  207. data/app/views/spree/admin/shared/_main_menu.html.erb +25 -14
  208. data/app/views/spree/admin/shared/_new_resource_links.html.erb +2 -2
  209. data/app/views/spree/admin/shared/_order_summary.html.erb +2 -0
  210. data/app/views/spree/admin/shared/_order_tabs.html.erb +9 -9
  211. data/app/views/spree/admin/shared/_product_tabs.html.erb +13 -5
  212. data/app/views/spree/admin/shared/_refunds.html.erb +31 -29
  213. data/app/views/spree/admin/shared/_report_order_criteria.html.erb +27 -6
  214. data/app/views/spree/admin/shared/_sidebar.html.erb +19 -1
  215. data/app/views/spree/admin/shared/_table_filter.html.erb +3 -3
  216. data/app/views/spree/admin/shared/_translations.html.erb +33 -1
  217. data/app/views/spree/admin/shared/_version.html.erb +1 -1
  218. data/app/views/spree/admin/shared/named_types/_index.html.erb +3 -1
  219. data/app/views/spree/admin/shipping_categories/index.html.erb +3 -1
  220. data/app/views/spree/admin/shipping_methods/index.html.erb +3 -1
  221. data/app/views/spree/admin/state_changes/index.html.erb +5 -2
  222. data/app/views/spree/admin/states/_state_list.html.erb +25 -24
  223. data/app/views/spree/admin/states/index.html.erb +1 -1
  224. data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +2 -2
  225. data/app/views/spree/admin/stock_locations/index.html.erb +3 -1
  226. data/app/views/spree/admin/stock_movements/index.html.erb +28 -26
  227. data/app/views/spree/admin/stock_transfers/_stock_movements.html.erb +20 -18
  228. data/app/views/spree/admin/stock_transfers/index.html.erb +6 -4
  229. data/app/views/spree/admin/stock_transfers/new.html.erb +3 -3
  230. data/app/views/spree/admin/stock_transfers/show.html.erb +3 -3
  231. data/app/views/spree/admin/store_credit_categories/index.html.erb +3 -1
  232. data/app/views/spree/admin/store_credits/index.html.erb +3 -1
  233. data/app/views/spree/admin/stores/_form.html.erb +128 -68
  234. data/app/views/spree/admin/stores/edit.html.erb +1 -1
  235. data/app/views/spree/admin/stores/index.html.erb +4 -2
  236. data/app/views/spree/admin/tax_categories/index.html.erb +29 -27
  237. data/app/views/spree/admin/tax_rates/index.html.erb +3 -1
  238. data/app/views/spree/admin/taxonomies/_list.html.erb +24 -22
  239. data/app/views/spree/admin/taxonomies/edit.html.erb +2 -2
  240. data/app/views/spree/admin/taxonomies/index.html.erb +1 -1
  241. data/app/views/spree/admin/taxons/_form.html.erb +3 -3
  242. data/app/views/spree/admin/taxons/_taxon_table.html.erb +24 -22
  243. data/app/views/spree/admin/taxons/edit.html.erb +6 -2
  244. data/app/views/spree/admin/taxons/index.html.erb +1 -1
  245. data/app/views/spree/admin/users/_lifetime_stats.html.erb +24 -23
  246. data/app/views/spree/admin/users/_sidebar.html.erb +5 -5
  247. data/app/views/spree/admin/users/_user_page_actions.html.erb +1 -1
  248. data/app/views/spree/admin/users/edit.html.erb +2 -2
  249. data/app/views/spree/admin/users/index.html.erb +25 -23
  250. data/app/views/spree/admin/users/items.html.erb +3 -2
  251. data/app/views/spree/admin/users/orders.html.erb +30 -29
  252. data/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb +3 -3
  253. data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +2 -2
  254. data/app/views/spree/admin/variants/_form.html.erb +14 -2
  255. data/app/views/spree/admin/variants/_split.js.erb +2 -2
  256. data/app/views/spree/admin/variants/index.html.erb +7 -5
  257. data/app/views/spree/admin/zones/index.html.erb +4 -4
  258. data/app/views/spree/layouts/admin.html.erb +33 -27
  259. data/config/initializers/ransack.rb +31 -0
  260. data/config/routes.rb +1 -0
  261. data/lib/spree/backend.rb +2 -0
  262. data/lib/spree_backend.rb +0 -1
  263. data/spec/fixtures/thinking-cat.jpg +0 -0
  264. data/spree_backend.gemspec +6 -4
  265. data/vendor/assets/javascripts/js.cookie.js +154 -156
  266. data/vendor/assets/javascripts/purify.js +1217 -0
  267. data/vendor/assets/javascripts/sortable.js +3709 -0
  268. data/vendor/assets/stylesheets/animate.css +7 -3156
  269. data/vendor/assets/stylesheets/jquery.jstree/themes/spree/style.scss +23 -9
  270. metadata +138 -25
@@ -1,39 +1,57 @@
1
1
  table.table {
2
2
  font-size: $font-size-sm;
3
3
 
4
+ .move-handle {
5
+ cursor: grab;
6
+ }
7
+
8
+ th {
9
+ padding: 0.5rem;
10
+
11
+ &.handel-head {
12
+ width: 50px;
13
+ }
14
+ a.sort_link {
15
+ white-space: nowrap;
16
+ }
17
+ }
18
+
19
+ td {
20
+ padding: 0.5rem;
21
+ }
22
+
23
+ .badge {
24
+ font-size: 0.85em;
25
+ }
26
+
4
27
  thead {
5
28
  th {
6
29
  text-transform: uppercase;
7
30
  font-size: $small-font-size;
31
+ padding: 0.5rem;
8
32
  padding-top: 14px;
9
33
  padding-bottom: 14px;
10
34
  vertical-align: top;
11
35
  border-top: 0;
12
-
13
- a {
14
- .glyphicon {
15
- padding-left: 5px;
16
- }
17
- }
18
36
  }
19
37
  }
20
38
 
21
39
  tbody {
22
40
  tr {
41
+ background: white;
23
42
  td {
24
43
  vertical-align: middle;
25
-
26
44
  .filterable {
27
- font-size: .8em;
28
45
  margin-left: .2em;
29
- color: white; // hidden, but space is reserved for the icon
30
46
  cursor: pointer;
47
+ width: 0.9rem;
48
+ height:0.9rem;
49
+ opacity: 0.25;
50
+ &:hover {
51
+ opacity: 1;
52
+ }
31
53
  }
32
54
  }
33
-
34
- &:hover td .filterable {
35
- color: #666;
36
- }
37
55
  }
38
56
  }
39
57
  }
@@ -42,6 +60,18 @@ table.table {
42
60
  display: none;
43
61
  margin: -.5em 0 .9em;
44
62
 
63
+ .js-filter {
64
+ .icon {
65
+ cursor: pointer;
66
+ }
67
+ }
68
+
69
+ .badge-secondary {
70
+ .icon {
71
+ filter: invert(1);
72
+ }
73
+ }
74
+
45
75
  .badge {
46
76
  display: inline-block;
47
77
  margin-right: .5em;
@@ -50,12 +80,6 @@ table.table {
50
80
  &:hover {
51
81
  opacity: .8;
52
82
  }
53
-
54
- span.icon {
55
- margin: .3em 0 0 .6em;
56
- font-size: 80%;
57
- cursor: pointer;
58
- }
59
83
  }
60
84
  }
61
85
 
@@ -95,3 +119,22 @@ table.table {
95
119
  border-top: 0;
96
120
  }
97
121
  }
122
+
123
+ div.table-responsive table.table-bordered {
124
+ border-top: 1px solid $input-border-color !important;
125
+ }
126
+
127
+ .sortable-drag-v {
128
+ border: 1px solid $info;
129
+ border-radius: 5px;
130
+ width:100%;
131
+ text-align: right;
132
+ opacity: 0;
133
+ td {
134
+ border-top: none;
135
+ opacity:0;
136
+ &:first-child {
137
+ opacity: 1;
138
+ }
139
+ }
140
+ }
@@ -1,72 +1,35 @@
1
1
  .taxon-products-view {
2
2
  ul.taxon {
3
- list-style: none;
4
- margin-left: -2%;
5
- padding: 0;
6
- > * {
7
- margin-left: 2%;
8
- }
3
+
9
4
  li.product {
10
- position: relative;
11
- float: left;
12
- width: 18%;
13
- margin-bottom: 2%;
14
- padding: 8px 8px 5px 8px;
15
- border-radius: 4px;
16
- background: #f4f4f4;
17
- .well {
18
- padding-bottom: 12px;
19
- }
20
- .sort-handle {
21
- position: absolute;
22
- top: 14px;
23
- left: 16px;
24
- color: $gray-500;
25
- cursor: move;
26
- }
27
- .btn-group {
28
- display: none;
29
- position: absolute;
30
- top: 14px;
31
- right: 16px;
32
- .btn {
33
- padding: 2px 7px;
34
- }
35
- .dropdown-menu {
36
- left: auto;
37
- right: 0;
38
- }
39
- a.delete-product {
40
- color: red;
41
- }
42
- }
43
- .image {
44
- height: 191px;
45
- .thumbnail {
46
- max-height: 180px;
47
- margin-bottom: 8px;
48
- display: inline-block;
49
- width: 100%;
50
- }
5
+ list-style: none;
6
+ .thumbnail {
7
+ width: 100%;
51
8
  }
9
+
52
10
  .product-info {
53
- margin-bottom: 0.3em;
54
- font-size: 0.9em;
55
- div.name {
56
- white-space: nowrap;
57
- overflow: hidden;
58
- text-overflow: ellipsis;
59
- font-weight: bold;
60
- }
61
- div.price {
62
- color: $gray-500;
63
- }
64
- }
65
- &:hover {
66
- .btn-group {
67
- display: inline-block;
68
- }
11
+ font-size: 0.8em;
69
12
  }
70
13
  }
71
14
  }
72
15
  }
16
+
17
+ ul#taxon_products {
18
+ -webkit-user-select: none;
19
+ -moz-user-select: none;
20
+ -ms-user-select: none;
21
+ -o-user-select: none;
22
+ user-select: none;
23
+
24
+ .dropdown-menu {
25
+ min-width: 8rem;
26
+ }
27
+
28
+ .products-ddb::after {
29
+ display: none;
30
+ }
31
+
32
+ li.moving-this div.card {
33
+ border-color: $info;
34
+ }
35
+ }
@@ -6,7 +6,6 @@
6
6
  $info: #48B0F7;
7
7
  $warning: #F8D053;
8
8
  $danger: #F55753;
9
-
10
9
  $input-border-color: darken(#EDEDED, 5);
11
10
 
12
11
  /*------------------------------------------
@@ -32,3 +31,8 @@
32
31
  Forms
33
32
  -----------------------------------------*/
34
33
  $label-margin-bottom: 0;
34
+
35
+ /*------------------------------------------
36
+ Plugins
37
+ -----------------------------------------*/
38
+ $select2-icon-size: 0.7rem;
@@ -0,0 +1,95 @@
1
+ // Adaptive icon from calendar to close.
2
+ @mixin swith-appended-icon {
3
+ &:placeholder-shown:not(:focus) + * {
4
+ @content;
5
+ }
6
+ }
7
+
8
+ input.flatpickr-input {
9
+ -webkit-appearance: none;
10
+ -moz-appearance: none;
11
+ appearance: none;
12
+ background-color: white !important;
13
+ }
14
+
15
+ .flatpickr-current-month .numInputWrapper {
16
+ margin-left: 3px;
17
+ border-radius: $border-radius;
18
+ overflow: hidden;
19
+ }
20
+ .flatpickr-current-month span.cur-month:hover {
21
+ background: transparent;
22
+ }
23
+ .numInputWrapper span.arrowUp {
24
+ border-color: transparent;
25
+ border-radius: 0;
26
+ }
27
+ .numInputWrapper span.arrowDown {
28
+ border-color: transparent;
29
+ border-radius: 0;
30
+ }
31
+
32
+ .input-group {
33
+ input.flatpickr-input{
34
+ @include swith-appended-icon {
35
+ opacity: 0;
36
+ }
37
+ }
38
+ }
39
+
40
+ .append_under {
41
+ position: absolute;
42
+ right: 0;
43
+ top: 0;
44
+ z-index: 0;
45
+ height: 100%;
46
+ }
47
+
48
+ .flatpickr-day {
49
+ margin: 2px 0;
50
+ border-radius: $border-radius ;
51
+ }
52
+
53
+ // Fix Flatpickr bug where things jusy highlight for no reason.
54
+ input.flatpickr-input[readonly] {
55
+ -webkit-touch-callout: none; /* iOS Safari */
56
+ -webkit-user-select: none; /* Safari */
57
+ -khtml-user-select: none; /* Konqueror HTML */
58
+ -moz-user-select: none; /* Old versions of Firefox */
59
+ -ms-user-select: none; /* Internet Explorer/Edge */
60
+ user-select: none; /* Non-prefixed version, currently
61
+ supported by Chrome, Edge, Opera and Firefox */
62
+ }
63
+
64
+ .flatpickr-months .flatpickr-prev-month:hover svg,
65
+ .flatpickr-months .flatpickr-next-month:hover svg {
66
+ fill: $primary;
67
+ }
68
+
69
+ // Force rounded corner for the toggle cal and close icons.
70
+ .input-group >
71
+ .input-group-append:not(:last-child) >
72
+ .force-round {
73
+ z-index: 5;
74
+ border-top-right-radius: $border-radius !important;
75
+ border-bottom-right-radius: $border-radius !important;
76
+ }
77
+
78
+ div.flatpickr-calendar.open {
79
+ z-index: $zindex-dropdown;
80
+ }
81
+
82
+ .flatpickr-time {
83
+ border-radius: 0 0 5px 5px;
84
+ &:after {
85
+ display: none;
86
+ }
87
+ .numInputWrapper {
88
+ span {
89
+ border-color: transparent;
90
+ border-radius: 0;
91
+
92
+ }
93
+
94
+ }
95
+ }
@@ -3,120 +3,3 @@
3
3
  font-size: $font-size-base;
4
4
  font-weight: 400;
5
5
  }
6
-
7
- #ui-datepicker-div {
8
- background-color: white;
9
- background-image: none;
10
- color: $gray-500;
11
- border-color: $input-border-color;
12
- width: auto;
13
- padding: 20px;
14
-
15
- &.ui-corner-all {
16
- border-radius: $border-radius;
17
- }
18
-
19
- .ui-datepicker-header {
20
- border-radius: 0;
21
- border: none;
22
- background-image: none;
23
- background-color: transparent;
24
- }
25
-
26
- .ui-widget-header .ui-icon {
27
- background-color: transparent;
28
- background-image: none;
29
- text-indent: 0;
30
- vertical-align: bottom !important;
31
- width: 14px;
32
- color: $primary;
33
-
34
- &.ui-icon-circle-triangle-w {
35
- @extend .glyphicon;
36
- @extend .glyphicon-chevron-left;
37
- }
38
-
39
- &.ui-icon-circle-triangle-e {
40
- @extend .glyphicon;
41
- @extend .glyphicon-chevron-right;
42
- }
43
- }
44
-
45
- .ui-state-hover {
46
- border: none;
47
- background-image: none;
48
- background-color: transparent;
49
- transition: color 0.2s ease-in-out;
50
- cursor: pointer;
51
-
52
- span.ui-icon {
53
- color: $success;
54
- }
55
- }
56
-
57
- .ui-datepicker-next-hover {
58
- right: 2px;
59
- top: 2px;
60
- }
61
-
62
- .ui-datepicker-prev-hover {
63
- left: 2px;
64
- top: 2px;
65
- }
66
-
67
- .ui-datepicker-title {
68
- font-weight: 500;
69
- color: $gray-500;
70
- }
71
-
72
- table.ui-datepicker-calendar {
73
- th {
74
- span {
75
- text-transform: uppercase;
76
- letter-spacing: 1px;
77
- color: $primary;
78
- font-weight: 500;
79
- }
80
- }
81
-
82
- td {
83
- width: 31px;
84
- height: 29px;
85
- // transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
86
-
87
- .ui-state-default,
88
- .ui-widget-content .ui-state-default,
89
- .ui-widget-header .ui-state-default {
90
- background-color: transparent;
91
- background-image: none;
92
- border: none;
93
- text-align: center;
94
- font-weight: 300;
95
- }
96
-
97
- .ui-state-highlight {
98
- @include button-variant($secondary, $secondary);
99
- }
100
-
101
- .ui-state-active {
102
- @include button-variant($success, $success);
103
-
104
- &:hover {
105
- background-color: darken($success, 7);
106
- }
107
- }
108
-
109
- &:hover {
110
- background-color: $gray-100;
111
- }
112
-
113
- &:active {
114
- background-color: $success;
115
-
116
- a {
117
- color: white;
118
- }
119
- }
120
- }
121
- }
122
- }
@@ -1,3 +1,6 @@
1
+ div.select2-drop-mask {
2
+ z-index: 999;
3
+ }
1
4
  .select2-container {
2
5
  display: block;
3
6
 
@@ -7,6 +10,7 @@
7
10
  border-color: $input-border-color;
8
11
  background-image: none;
9
12
  background-color: $input-bg;
13
+ color: $gray-700;
10
14
 
11
15
  &,
12
16
  .select2-arrow {
@@ -16,17 +20,20 @@
16
20
  .select2-arrow {
17
21
  background-image: none;
18
22
  background-color: $input-bg;
19
- border-top-left-radius: 0;
20
- border-bottom-left-radius: 0;
21
- border-left-color: $input-border-color;
23
+ border:none;
24
+ width: 30px;
22
25
 
23
26
  b {
24
- background-position: 0 7px;
27
+ background-image: url(asset-path("backend-chevron-down.svg")) !important;
28
+ overflow: hidden !important;
29
+ vertical-align: middle !important;
30
+ background-repeat: no-repeat !important;
31
+ background-size: 1rem !important;
32
+ background-position: 48% !important;
25
33
  }
26
34
  }
27
35
 
28
36
  .select2-chosen {
29
- line-height: 36px;
30
37
  vertical-align: middle;
31
38
  display: inline;
32
39
  }
@@ -37,13 +44,23 @@
37
44
  }
38
45
  }
39
46
 
47
+ .select2-container-multi .select2-choices .select2-search-field input {
48
+ color: $gray-700;
49
+ }
50
+
40
51
  .select2-search input {
41
52
  border-color: $input-border-color;
42
53
  border-radius: $border-radius;
43
- background-image: none;
54
+ background-image: url(asset-path("backend-search.svg")) !important;
55
+ overflow: hidden !important;
56
+ vertical-align: middle !important;
57
+ background-repeat: no-repeat !important;
58
+ background-size: 1rem !important;
59
+ background-position: 97% !important;
44
60
  }
45
61
 
46
62
  .select2-drop {
63
+ z-index: $zindex-dropdown;
47
64
  &, &.select2-drop-above {
48
65
  border-radius: $border-radius;
49
66
  box-shadow: none;
@@ -51,6 +68,11 @@
51
68
  }
52
69
 
53
70
  .select2-container-active {
71
+ .select2-choice,
72
+ .select2-choices {
73
+ border-color: $input-focus-border-color;
74
+ border-bottom: 1px solid $input-focus-border-color;
75
+ }
54
76
  &, & a {
55
77
  box-shadow: none !important;
56
78
  }
@@ -61,24 +83,32 @@
61
83
  background-image: none;
62
84
  }
63
85
 
64
- .select2-dropdown-open.select2-drop-above .select2-choice {
65
- border-radius: 0 0 $border-radius $border-radius;
66
- }
67
86
 
68
- .select2-drop-above,
69
- .select2-dropdown-open.select2-drop-above .select2-choice,
70
- .select2-dropdown-open .select2-choice,
71
- .select2-drop.select2-drop-above.select2-drop-active,
72
87
  .select2-drop.select2-drop-active {
73
- border-color: lighten($success, 20);
88
+ border-color: $input-focus-border-color;
89
+ border-top: 0;
90
+ border-radius: 0 0 $border-radius $border-radius;
91
+ margin-top: -6px;
92
+ }
93
+
94
+ .select2-drop.select2-drop-above.select2-drop-active {
95
+ border-color: $input-focus-border-color;
96
+ border-top: 1px solid $input-focus-border-color;
97
+ border-radius: $border-radius $border-radius 0 0;
98
+ margin-top: 6px;
74
99
  }
75
100
 
101
+ .select2-container.select2-drop-above .select2-choice {
102
+ border-color: $input-focus-border-color !important;
103
+ border-radius: $border-radius;
104
+ }
76
105
  .select2-result-label {
77
106
  color: $gray-900;
78
107
  }
79
108
 
80
109
  .select2-results .select2-highlighted {
81
110
  background-color: $primary;
111
+ border-radius: $border-radius;
82
112
 
83
113
  .select2-result-label {
84
114
  color: white;
@@ -87,7 +117,9 @@
87
117
 
88
118
  .select2-container-multi {
89
119
  .select2-choices {
90
- line-height: 1.8;
120
+ min-height: $input-height;
121
+ border-radius: $border-radius;
122
+ line-height: 1;
91
123
  border-color: $input-border-color;
92
124
  background-image: none;
93
125
  background-color: $input-bg;
@@ -98,7 +130,6 @@
98
130
  .select2-search-choice {
99
131
  @extend .badge;
100
132
  @extend .badge-info;
101
-
102
133
  box-shadow: none;
103
134
  border: none;
104
135
  background-image: none;
@@ -106,19 +137,16 @@
106
137
  padding: 7px;
107
138
 
108
139
  .select2-search-choice-close {
109
- @extend .glyphicon;
110
- @extend .glyphicon-remove;
111
-
112
- background-image: none !important;
113
- font-size: 100%;
114
- color: white !important;
140
+ background-image: url(asset-path("backend-cancel.svg")) !important ;
115
141
  position: absolute;
116
142
  left: 7px;
117
143
  top: 7px;
144
+ background-position: 50% !important;
145
+
118
146
  }
119
147
 
120
148
  div {
121
- padding-left: 15px;
149
+ padding-left: 17px;
122
150
  }
123
151
  }
124
152
  }
@@ -126,11 +154,32 @@
126
154
  &.select2-container-active {
127
155
  .select2-choices {
128
156
  box-shadow: none;
129
- border-color: lighten($success, 20);
157
+ border-color: $input-focus-border-color;
130
158
  }
131
159
  }
132
160
  }
133
161
 
162
+ .select2-search input,
163
+ .select2-search-choice-close,
164
+ .select2-container .select2-choice abbr,
165
+ .select2-container .select2-choice .select2-arrow b {
166
+ background-size: $select2-icon-size !important;
167
+ }
168
+
169
+ .select2-container.select2-allowclear .select2-choice abbr{
170
+ background-image: url(asset-path("backend-cancel.svg")) !important ;
171
+ overflow: hidden !important;
172
+ vertical-align: middle !important;
173
+ background-repeat: no-repeat !important;
174
+ background-position: 50% !important;
175
+ right:30px;
176
+ background-size: $select2-icon-size !important;
177
+ }
178
+
179
+ .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
180
+ background-position: 50% !important;
181
+ }
182
+
134
183
  // Bugfix for required elements
135
184
  select.select2[required="required"] {
136
185
  display: inline-block !important;
@@ -2,10 +2,19 @@
2
2
  padding: 0 0 15px 0;
3
3
  }
4
4
 
5
+ .card {
6
+ overflow: hidden;
7
+ }
8
+
5
9
  .is-hidden {
6
10
  display: none;
7
11
  }
8
12
 
13
+ .tooltip{
14
+ pointer-events: none;
15
+ z-index: $zindex-dropdown;
16
+ }
17
+
9
18
  // No-margin and no-padding helper classes
10
19
  @each $side in top bottom left right {
11
20
  .no-margin-#{$side} { margin-#{side}: 0; }
@@ -15,3 +24,34 @@
15
24
  .alert-error {
16
25
  @extend .alert-danger;
17
26
  }
27
+
28
+ .js-remove-promo-rule-option-value {
29
+ color: $primary !important;
30
+ &:hover {
31
+ color: darken($primary, 10) !important;
32
+ }
33
+ }
34
+
35
+ .flash-alert {
36
+ z-index: 0;
37
+ opacity: 0;
38
+ bottom: -50px;
39
+ left:0;
40
+ right:0;
41
+
42
+ .alert {
43
+ z-index: 500;
44
+ opacity: 0.98;
45
+ border-width: 3px;
46
+ margin-bottom: 0;
47
+ }
48
+ }
49
+
50
+ .flash-alert.animate__animated {
51
+ opacity: 1;
52
+ bottom: 30px;
53
+ }
54
+
55
+ .resize-animation-stopper * {
56
+ transition: none !important;
57
+ }