solidus_backend 2.7.4 → 2.9.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of solidus_backend might be problematic. Click here for more details.

Files changed (214) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -8
  3. data/app/assets/images/favicon.ico +0 -0
  4. data/app/assets/javascripts/spree/backend.js +0 -2
  5. data/app/assets/javascripts/spree/backend/adjustments.js +1 -1
  6. data/app/assets/javascripts/spree/backend/components/sortable_table.js +1 -0
  7. data/app/assets/javascripts/spree/backend/components/tabs.js +1 -0
  8. data/app/assets/javascripts/spree/backend/components/tooltips.js +21 -17
  9. data/app/assets/javascripts/spree/backend/option_type_autocomplete.js +1 -1
  10. data/app/assets/javascripts/spree/backend/product_picker.js +1 -1
  11. data/app/assets/javascripts/spree/backend/shipments.js +7 -1
  12. data/app/assets/javascripts/spree/backend/stock_management.js +18 -0
  13. data/app/assets/javascripts/spree/backend/store_credits.js +18 -2
  14. data/app/assets/javascripts/spree/backend/taxons.js +1 -1
  15. data/app/assets/javascripts/spree/backend/templates/orders/line_item.hbs +1 -1
  16. data/app/assets/javascripts/spree/backend/templates/stock_items/stock_location_stock_item.hbs +24 -25
  17. data/app/assets/javascripts/spree/backend/user_picker.js +1 -1
  18. data/app/assets/javascripts/spree/backend/variant_autocomplete.js +1 -1
  19. data/app/assets/javascripts/spree/backend/views/order/customer_select.js +1 -1
  20. data/app/assets/javascripts/spree/backend/views/order/summary.js +2 -2
  21. data/app/assets/javascripts/spree/backend/views/stock/add_stock_item.js +15 -4
  22. data/app/assets/javascripts/spree/backend/views/stock/edit_stock_item_row.js +46 -10
  23. data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +24 -16
  24. data/app/assets/stylesheets/spree/backend/components/_breadcrumb.scss +12 -0
  25. data/app/assets/stylesheets/spree/backend/components/_buttons.scss +18 -0
  26. data/app/assets/stylesheets/spree/backend/components/_image_placeholder.scss +2 -2
  27. data/app/assets/stylesheets/spree/backend/components/_list_group.scss +2 -2
  28. data/app/assets/stylesheets/spree/backend/components/_messages.scss +20 -12
  29. data/app/assets/stylesheets/spree/backend/components/_navigation.scss +45 -11
  30. data/app/assets/stylesheets/spree/backend/components/_progress.scss +3 -3
  31. data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +1 -2
  32. data/app/assets/stylesheets/spree/backend/components/_tabs.scss +14 -13
  33. data/app/assets/stylesheets/spree/backend/globals/_deprecated_variables.scss +24 -0
  34. data/app/assets/stylesheets/spree/backend/globals/_deprecation.scss +10 -1
  35. data/app/assets/stylesheets/spree/backend/globals/_functions.scss +2 -0
  36. data/app/assets/stylesheets/spree/backend/globals/_variables.scss +88 -57
  37. data/app/assets/stylesheets/spree/backend/globals/_variables_override.scss +1 -0
  38. data/app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss +1 -1
  39. data/app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss +1 -1
  40. data/app/assets/stylesheets/spree/backend/sections/_log_entries.scss +8 -2
  41. data/app/assets/stylesheets/spree/backend/sections/_orders.scss +25 -6
  42. data/app/assets/stylesheets/spree/backend/sections/_products.scss +3 -1
  43. data/app/assets/stylesheets/spree/backend/sections/_promotions.scss +5 -5
  44. data/app/assets/stylesheets/spree/backend/sections/_stock_management.scss +77 -2
  45. data/app/assets/stylesheets/spree/backend/sections/_style_guide.scss +4 -4
  46. data/app/assets/stylesheets/spree/backend/sections/_taxonomies.scss +1 -1
  47. data/app/assets/stylesheets/spree/backend/shared/_fonts.scss +15 -0
  48. data/app/assets/stylesheets/spree/backend/shared/_forms.scss +27 -7
  49. data/app/assets/stylesheets/spree/backend/shared/_header.scss +2 -2
  50. data/app/assets/stylesheets/spree/backend/shared/_icons.scss +5 -1
  51. data/app/assets/stylesheets/spree/backend/shared/_layout.scss +5 -4
  52. data/app/assets/stylesheets/spree/backend/shared/_tables.scss +11 -6
  53. data/app/assets/stylesheets/spree/backend/shared/_typography.scss +10 -6
  54. data/app/assets/stylesheets/spree/backend/spree_admin.scss +3 -1
  55. data/app/controllers/spree/admin/cancellations_controller.rb +2 -2
  56. data/app/controllers/spree/admin/customer_returns_controller.rb +8 -1
  57. data/app/controllers/spree/admin/locale_controller.rb +1 -1
  58. data/app/controllers/spree/admin/log_entries_controller.rb +3 -0
  59. data/app/controllers/spree/admin/orders/customer_details_controller.rb +8 -1
  60. data/app/controllers/spree/admin/orders_controller.rb +1 -12
  61. data/app/controllers/spree/admin/products_controller.rb +10 -6
  62. data/app/controllers/spree/admin/promotion_codes_controller.rb +19 -1
  63. data/app/controllers/spree/admin/promotions_controller.rb +1 -1
  64. data/app/controllers/spree/admin/reimbursements_controller.rb +7 -2
  65. data/app/controllers/spree/admin/resource_controller.rb +1 -0
  66. data/app/controllers/spree/admin/store_credit_reasons_controller.rb +8 -0
  67. data/app/controllers/spree/admin/store_credits_controller.rb +11 -11
  68. data/app/controllers/spree/admin/users_controller.rb +4 -2
  69. data/app/helpers/spree/admin/base_helper.rb +9 -3
  70. data/app/helpers/spree/admin/navigation_helper.rb +1 -1
  71. data/app/helpers/spree/admin/promotions_helper.rb +15 -0
  72. data/app/models/spree/backend_configuration.rb +38 -21
  73. data/app/views/spree/admin/cancellations/index.html.erb +3 -1
  74. data/app/views/spree/admin/images/_image_row.html.erb +1 -1
  75. data/app/views/spree/admin/images/edit.html.erb +3 -3
  76. data/app/views/spree/admin/images/index.html.erb +3 -3
  77. data/app/views/spree/admin/log_entries/index.html.erb +1 -19
  78. data/app/views/spree/admin/option_types/edit.html.erb +1 -1
  79. data/app/views/spree/admin/orders/_carton_manifest.html.erb +3 -1
  80. data/app/views/spree/admin/orders/_line_items_edit_form.html.erb +1 -1
  81. data/app/views/spree/admin/orders/_shipment_manifest.html.erb +3 -1
  82. data/app/views/spree/admin/orders/confirm/_line_items.html.erb +3 -2
  83. data/app/views/spree/admin/orders/confirm/_shipment_manifest.html.erb +3 -1
  84. data/app/views/spree/admin/orders/index.html.erb +1 -1
  85. data/app/views/spree/admin/payments/_capture_events.html.erb +15 -18
  86. data/app/views/spree/admin/payments/_list.html.erb +1 -1
  87. data/app/views/spree/admin/payments/_log_entries.html.erb +29 -0
  88. data/app/views/spree/admin/payments/show.html.erb +13 -6
  89. data/app/views/spree/admin/payments/source_forms/{_storecredit.html.erb → _store_credit.html.erb} +0 -0
  90. data/app/views/spree/admin/payments/source_views/{_storecredit.html.erb → _store_credit.html.erb} +0 -0
  91. data/app/views/spree/admin/prices/_form.html.erb +1 -1
  92. data/app/views/spree/admin/product_properties/index.html.erb +1 -1
  93. data/app/views/spree/admin/products/_form.html.erb +23 -12
  94. data/app/views/spree/admin/products/edit.html.erb +5 -0
  95. data/app/views/spree/admin/products/index.html.erb +3 -1
  96. data/app/views/spree/admin/promotion_categories/index.html.erb +1 -1
  97. data/app/views/spree/admin/promotion_code_batches/index.html.erb +1 -1
  98. data/app/views/spree/admin/promotion_codes/index.html.erb +5 -1
  99. data/app/views/spree/admin/promotion_codes/new.html.erb +31 -0
  100. data/app/views/spree/admin/promotions/_actions.html.erb +1 -1
  101. data/app/views/spree/admin/promotions/_activations_edit.html.erb +1 -1
  102. data/app/views/spree/admin/promotions/_form.html.erb +6 -5
  103. data/app/views/spree/admin/promotions/_rules.html.erb +1 -1
  104. data/app/views/spree/admin/promotions/edit.html.erb +3 -1
  105. data/app/views/spree/admin/promotions/index.html.erb +4 -4
  106. data/app/views/spree/admin/refunds/new.html.erb +1 -1
  107. data/app/views/spree/admin/reimbursements/edit.html.erb +2 -2
  108. data/app/views/spree/admin/shared/_address_form.html.erb +10 -3
  109. data/app/views/spree/admin/shared/_edit_resource_links.html.erb +1 -1
  110. data/app/views/spree/admin/shared/_head.html.erb +1 -3
  111. data/app/views/spree/admin/shared/_image.html.erb +2 -2
  112. data/app/views/spree/admin/shared/_modal.html.erb +1 -1
  113. data/app/views/spree/admin/shared/_product_sub_menu.html.erb +1 -1
  114. data/app/views/spree/admin/shared/_settings_checkout_tabs.html.erb +4 -0
  115. data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +3 -3
  116. data/app/views/spree/admin/shared/_tabs.html.erb +3 -2
  117. data/app/views/spree/admin/shared/_variant_search.html.erb +1 -1
  118. data/app/views/spree/admin/shipping_methods/_form.html.erb +10 -10
  119. data/app/views/spree/admin/stock_items/_stock_management.html.erb +56 -38
  120. data/app/views/spree/admin/stock_locations/_form.html.erb +133 -121
  121. data/app/views/spree/admin/stock_locations/edit.html.erb +4 -2
  122. data/app/views/spree/admin/store_credit_reasons/edit.html.erb +15 -0
  123. data/app/views/spree/admin/store_credit_reasons/index.html.erb +56 -0
  124. data/app/views/spree/admin/store_credit_reasons/new.html.erb +18 -0
  125. data/app/views/spree/admin/store_credit_reasons/shared/_form.html.erb +15 -0
  126. data/app/views/spree/admin/store_credits/_store_credit_reason_field.html.erb +7 -0
  127. data/app/views/spree/admin/store_credits/edit_amount.html.erb +1 -1
  128. data/app/views/spree/admin/store_credits/edit_validity.html.erb +2 -2
  129. data/app/views/spree/admin/store_credits/index.html.erb +1 -1
  130. data/app/views/spree/admin/store_credits/show.html.erb +3 -3
  131. data/app/views/spree/admin/stores/_form.html.erb +1 -0
  132. data/app/views/spree/admin/style_guide/topics/typography/_colors.html.erb +30 -20
  133. data/app/views/spree/admin/style_guide/topics/typography/_fonts.html.erb +1 -1
  134. data/app/views/spree/admin/taxonomies/edit.html.erb +1 -1
  135. data/app/views/spree/admin/taxons/_form.html.erb +1 -1
  136. data/app/views/spree/admin/taxons/edit.html.erb +2 -2
  137. data/app/views/spree/admin/users/edit.html.erb +2 -2
  138. data/app/views/spree/admin/users/index.html.erb +2 -2
  139. data/app/views/spree/admin/users/items.html.erb +3 -1
  140. data/app/views/spree/admin/users/orders.html.erb +1 -1
  141. data/app/views/spree/admin/variants/_form.html.erb +1 -1
  142. data/app/views/spree/admin/variants/index.html.erb +1 -1
  143. data/app/views/spree/admin/zones/_state_members.html.erb +1 -1
  144. data/config/routes.rb +2 -8
  145. data/lib/spree/backend.rb +1 -1
  146. data/solidus_backend.gemspec +3 -4
  147. data/spec/controllers/spree/admin/base_controller_spec.rb +1 -1
  148. data/spec/controllers/spree/admin/cancellations_controller_spec.rb +7 -3
  149. data/spec/controllers/spree/admin/locale_controller_spec.rb +45 -0
  150. data/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb +50 -2
  151. data/spec/controllers/spree/admin/orders_controller_spec.rb +25 -13
  152. data/spec/controllers/spree/admin/payments_controller_spec.rb +1 -1
  153. data/spec/controllers/spree/admin/products_controller_spec.rb +72 -0
  154. data/spec/controllers/spree/admin/promotion_codes_controller_spec.rb +13 -1
  155. data/spec/controllers/spree/admin/reimbursements_controller_spec.rb +11 -0
  156. data/spec/controllers/spree/admin/resource_controller_spec.rb +22 -0
  157. data/spec/controllers/spree/admin/stock_items_controller_spec.rb +1 -1
  158. data/spec/controllers/spree/admin/stock_locations_controller_spec.rb +1 -1
  159. data/spec/controllers/spree/admin/store_credits_controller_spec.rb +7 -7
  160. data/spec/features/admin/configuration/payment_methods_spec.rb +2 -2
  161. data/spec/features/admin/configuration/shipping_methods_spec.rb +2 -2
  162. data/spec/features/admin/homepage_spec.rb +1 -6
  163. data/spec/features/admin/locale_spec.rb +1 -2
  164. data/spec/features/admin/orders/adjustments_spec.rb +1 -1
  165. data/spec/features/admin/orders/customer_details_spec.rb +5 -7
  166. data/spec/features/admin/orders/customer_returns_spec.rb +28 -0
  167. data/spec/features/admin/orders/listing_spec.rb +2 -7
  168. data/spec/features/admin/orders/log_entries_spec.rb +2 -2
  169. data/spec/features/admin/orders/new_order_spec.rb +117 -0
  170. data/spec/features/admin/orders/new_refund_spec.rb +35 -0
  171. data/spec/features/admin/orders/order_details_spec.rb +10 -5
  172. data/spec/features/admin/orders/payments_spec.rb +82 -41
  173. data/spec/features/admin/orders/return_payment_state_spec.rb +3 -0
  174. data/spec/features/admin/orders/shipments_spec.rb +28 -0
  175. data/spec/features/admin/products/edit/products_spec.rb +25 -0
  176. data/spec/features/admin/products/edit/taxons_spec.rb +4 -0
  177. data/spec/features/admin/products/pricing_spec.rb +24 -6
  178. data/spec/features/admin/products/products_spec.rb +5 -5
  179. data/spec/features/admin/products/stock_management_spec.rb +27 -13
  180. data/spec/features/admin/products/variant_spec.rb +1 -1
  181. data/spec/features/admin/promotion_adjustments_spec.rb +12 -12
  182. data/spec/features/admin/promotions/option_value_rule_spec.rb +2 -2
  183. data/spec/features/admin/promotions/product_rule_spec.rb +1 -1
  184. data/spec/features/admin/promotions/promotion_spec.rb +52 -0
  185. data/spec/features/admin/promotions/tiered_calculator_spec.rb +1 -1
  186. data/spec/features/admin/promotions/user_rule_spec.rb +2 -2
  187. data/spec/features/admin/reimbursements_spec.rb +1 -1
  188. data/spec/features/admin/store_credits_spec.rb +51 -2
  189. data/spec/features/admin/taxons_spec.rb +35 -0
  190. data/spec/features/admin/users_spec.rb +44 -11
  191. data/spec/helpers/admin/navigation_helper_spec.rb +4 -2
  192. data/spec/helpers/admin/store_credit_events_helper_spec.rb +2 -2
  193. data/spec/javascripts/spec_helper.js +2 -0
  194. data/spec/models/spree/backend_configuration/menu_item_spec.rb +17 -0
  195. data/spec/models/spree/backend_configuration_spec.rb +22 -0
  196. data/spec/spec_helper.rb +2 -2
  197. data/spec/support/appear_before_matcher.rb +1 -1
  198. data/spec/support/feature/order_feature_helper.rb +1 -1
  199. data/spec/views/spree/admin/shared/navigation_footer_spec.rb +1 -1
  200. data/vendor/assets/fonts/inter/Inter-Regular.woff +0 -0
  201. data/vendor/assets/fonts/inter/Inter-Regular.woff2 +0 -0
  202. data/vendor/assets/fonts/inter/Inter-SemiBold.woff +0 -0
  203. data/vendor/assets/fonts/inter/Inter-SemiBold.woff2 +0 -0
  204. data/vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_en-US.js +10 -0
  205. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_pagination.scss +4 -0
  206. metadata +38 -36
  207. data/.eslintrc +0 -21
  208. data/app/controllers/spree/admin/reports_controller.rb +0 -82
  209. data/app/views/spree/admin/reports/index.html.erb +0 -19
  210. data/app/views/spree/admin/reports/sales_total.html.erb +0 -35
  211. data/app/views/spree/admin/shared/_report_order_criteria.html.erb +0 -19
  212. data/app/views/spree/admin/store_credits/_update_reason_field.html.erb +0 -7
  213. data/spec/controllers/spree/admin/reports_controller_spec.rb +0 -133
  214. data/spec/features/admin/reports_spec.rb +0 -63
@@ -0,0 +1,24 @@
1
+ // Numbered colors variables are deprecated and will be removed in Solidus v3.0
2
+ @include solidus-deprecated-variable("color-1", "color-white");
3
+ $color-1: $color-white !default;
4
+
5
+ @include solidus-deprecated-variable("color-2", "color-primary");
6
+ $color-2: $color-primary !default;
7
+
8
+ @include solidus-deprecated-variable("color-3", "color-dark-light");
9
+ $color-3: $color-dark-light !default;
10
+
11
+ @include solidus-deprecated-variable("color-4", "color-dark");
12
+ $color-4: $color-dark !default;
13
+
14
+ @include solidus-deprecated-variable("color-5", "color-red");
15
+ $color-5: $color-red !default;
16
+
17
+ @include solidus-deprecated-variable("color-6", "color-yellow");
18
+ $color-6: $color-yellow !default;
19
+
20
+ @include solidus-deprecated-variable("color-7", "color-light");
21
+ $color-7: $color-light !default;
22
+
23
+ @include solidus-deprecated-variable("color-8", "color-dark-light");
24
+ $color-8: $color-dark-light !default;
@@ -7,7 +7,7 @@
7
7
 
8
8
  $output-solidus-deprecation-warnings: true !default;
9
9
 
10
- @mixin solidus-deprecated-variable($variable, $replacement) {
10
+ @mixin bs-deprecated-variable($variable, $replacement) {
11
11
  @if $output-solidus-deprecation-warnings == true {
12
12
  @if global-variable-exists($variable) {
13
13
  @warn "[Solidus] [Deprecation] `$#{$variable}` is deprecated and will be " +
@@ -15,3 +15,12 @@ $output-solidus-deprecation-warnings: true !default;
15
15
  }
16
16
  }
17
17
  }
18
+
19
+ @mixin solidus-deprecated-variable($variable, $replacement) {
20
+ @if $output-solidus-deprecation-warnings == true {
21
+ @if global-variable-exists($variable) {
22
+ @warn "[Solidus] [Deprecation] `$#{$variable}` is deprecated and will be " +
23
+ "removed in Solidus 3.0. Please use `$#{$replacement}` instead";
24
+ }
25
+ }
26
+ }
@@ -1,5 +1,7 @@
1
1
  // Make color very close to white
2
2
  @function very-light($color, $adjust: 3){
3
+ @warn "The `very-light` function is deprecated. Please use the default sass `lighten` function, instead.";
4
+
3
5
  @if type-of($adjust) == 'number' and $adjust > 0 {
4
6
  @for $i from 0 through 100 {
5
7
  @if lighten($color, $i) == white and ($i - $adjust) > $adjust {
@@ -4,65 +4,93 @@
4
4
 
5
5
  // Fonts
6
6
  //--------------------------------------------------------------
7
- $font-size-pill: 11px;
7
+ $font-size-pill: 11px;
8
+ $label-font-size: 12px;
8
9
 
9
10
  // Colors
10
11
  //--------------------------------------------------------------
11
12
 
12
13
  // Basic color palette for admin
13
- $color-1: #FFFFFF !default; // White
14
- $color-2: #9FC820 !default; // Green
15
- $color-3: #5498DA !default; // Light Blue
16
- $color-4: #6788A2 !default; // Dark Blue
17
- $color-5: #C60F13 !default; // Red
18
- $color-6: #FF9300 !default; // Yellow
19
- $color-7: #F4F4F4 !default; // Light Gray
14
+
15
+ $color-dark: #24282F !default;
16
+ $color-dark-dark: #5B6778 !default;
17
+ $color-dark-light: #808C9E !default;
18
+ $color-dark-accent: #C7CDD5 !default;
19
+
20
+ $color-primary: #3D76F1 !default;
21
+ $color-primary-light: #E3EBFD !default;
22
+
23
+ $color-light: #F9FAFB !default;
24
+ $color-light-dark: #E5E7EB !default;
25
+ $color-light-accent: #D7DAE0 !default;
26
+
27
+ $color-white: #FFFFFF !default;
28
+
29
+ $color-red: #CE452A !default;
30
+ $color-yellow: #FFDD59 !default;
31
+ $color-green: #52B73B !default;
20
32
 
21
33
  // Basic accents for admin
22
- $box-shadow: 0px 3px 3px -2px hsla(0, 0%, 0%, 0.2) !default;
34
+ $box-shadow: 0 0 4px 0 rgba(0, 0, 0, .12) !default;
23
35
 
24
36
  // Body base colors
25
- $color-border: very-light($color-3, 12) !default;
37
+ $color-border: $color-light-dark !default;
38
+ $color-disabled: $color-dark-light !default;
26
39
 
27
40
  // Basic navigation colors
28
- $color-sidebar-bg: $color-1 !default;
41
+ $color-header-bg: $color-light !default;
42
+ $color-sidebar-bg: $color-light !default;
29
43
  $color-sidebar-border: $color-border !default;
30
- $color-navbar: $color-1 !default;
31
- $color-navbar-bg: $color-3 !default;
32
- $color-navbar-active: $color-1 !default;
33
- $color-navbar-active-bg: $color-2 !default;
34
- $color-navbar-submenu: $color-3 !default;
35
- $color-navbar-submenu-bg: very-light($color-navbar-bg, 4) !default;
36
- $color-navbar-submenu-active: $color-2 !default;
37
- $color-navbar-footer: $color-3 !default;
38
- $color-navbar-footer-bg: $color-sidebar-bg !default;
39
- $color-navbar-footer-active: $color-2 !default;
44
+ $color-navbar: $color-dark !default;
45
+ $color-navbar-bg: $color-light !default;
46
+ $color-navbar-active: $color-white !default;
47
+ $color-navbar-active-bg: $color-primary !default;
48
+ $color-navbar-submenu: $color-dark-light !default;
49
+ $color-navbar-submenu-bg: $color-light !default;
50
+ $color-navbar-submenu-active: $color-primary !default;
51
+ $color-navbar-footer: $color-dark !default;
52
+ $color-navbar-footer-bg: $color-light !default;
53
+ $color-navbar-footer-active: $color-primary !default;
54
+ $color-icon-navbar: $color-dark-light !default;
55
+
56
+ // Basic Tabs colors
57
+ $color-tab: $color-dark-light !default;
58
+ $color-tab-bg: $color-light !default;
59
+ $color-tab-border: $color-border !default;
60
+ $color-tab-active: $color-primary !default;
61
+ $color-tab-active-bg: $color-white !default;
62
+ $color-tab-active-border: $color-white !default;
40
63
 
41
64
  // Basic flash colors
42
- @include solidus-deprecated-variable("color-success", "brand-success");
43
- $color-success: $color-2 !default;
44
- @include solidus-deprecated-variable("color-notice", "brand-warning");
45
- $color-notice: $color-6 !default;
46
- @include solidus-deprecated-variable("color-error", "brand-danger");
47
- $color-error: $color-5 !default;
65
+ @include bs-deprecated-variable("color-success", "brand-success");
66
+ $color-success: $color-green !default;
67
+ @include bs-deprecated-variable("color-notice", "brand-warning");
68
+ $color-notice: $color-yellow !default;
69
+ @include bs-deprecated-variable("color-error", "brand-danger");
70
+ $color-error: $color-red !default;
71
+
72
+ // Breadcrumb custom variable
73
+
74
+ $breadcrumb-color: $color-dark-light;
48
75
 
49
76
  // Color for spinner
50
- $color-spinner: #fff;
77
+ $color-spinner: $color-white;
51
78
 
52
79
  // Style Guide
53
- $color-style-guide-code: darken($color-7, 10%);
54
- $color-style-guide-link: darken($color-7, 65%);
55
- $color-style-guide-nav: $color-7;
56
- $color-style-guide-nav-border: darken($color-7, 5%);
57
- $color-style-guide-nav-link: darken($color-7, 65%);
58
- $color-style-guide-nav-link-hover: darken($color-7, 5%);
59
- $color-style-guide-section-border: darken($color-7, 10%);
60
- $color-style-guide-swatch-border: darken($color-7, 10%);
80
+ $color-style-guide-code: darken($color-light, 10%);
81
+ $color-style-guide-link: darken($color-light, 65%);
82
+ $color-style-guide-nav: $color-light;
83
+ $color-style-guide-nav-border: darken($color-light, 5%);
84
+ $color-style-guide-nav-link: darken($color-light, 65%);
85
+ $color-style-guide-nav-link-hover: darken($color-light, 5%);
86
+ $color-style-guide-section-border: darken($color-light, 10%);
87
+ $color-style-guide-swatch-border: darken($color-light, 10%);
88
+ $color-style-guide-table-border: #CEE1F4;
61
89
 
62
90
  // Table colors
63
- $color-tbl-odd: $color-1 !default;
64
- $color-tbl-even: very-light($color-3, 4) !default;
65
- $color-tbl-thead: very-light($color-3, 4) !default;
91
+ $color-tbl-odd: $color-white !default;
92
+ $color-tbl-even: $color-light !default;
93
+ $color-tbl-thead: $color-light !default;
66
94
 
67
95
  // Pill colors
68
96
  //
@@ -86,24 +114,24 @@ $color-pill-error: #ff967b;
86
114
  $color-pill-error-text: $color-pill-text;
87
115
 
88
116
  // Actions colors
89
- $color-action-edit-bg: very-light($color-success, 5 ) !default;
90
- $color-action-edit-brd: very-light($color-success, 20 ) !default;
91
- $color-action-clone-bg: very-light($color-notice, 5 ) !default;
92
- $color-action-clone-brd: very-light($color-notice, 15 ) !default;
93
- $color-action-remove-bg: very-light($color-error, 5 ) !default;
94
- $color-action-remove-brd: very-light($color-error, 10 ) !default;
95
- $color-action-void-bg: very-light($color-error, 10 ) !default;
96
- $color-action-void-brd: very-light($color-error, 20 ) !default;
97
- $color-action-cancel-bg: very-light($color-notice, 10 ) !default;
98
- $color-action-cancel-brd: very-light($color-notice, 20 ) !default;
99
- $color-action-capture-bg: very-light($color-success, 5 ) !default;
100
- $color-action-capture-brd: very-light($color-success, 20 ) !default;
101
- $color-action-save-bg: very-light($color-success, 5 ) !default;
102
- $color-action-save-brd: very-light($color-success, 20 ) !default;
103
- $color-action-mail-bg: very-light($color-success, 5 ) !default;
104
- $color-action-mail-brd: very-light($color-success, 20 ) !default;
105
- $color-action-failure-bg: very-light($color-error, 10 ) !default;
106
- $color-action-failure-brd: very-light($color-error, 20 ) !default;
117
+ $color-action-edit-bg: lighten($color-success, (5 * 5) ) !default;
118
+ $color-action-edit-brd: lighten($color-success, (20 * 5) ) !default;
119
+ $color-action-clone-bg: lighten($color-notice, (5 * 5) ) !default;
120
+ $color-action-clone-brd: lighten($color-notice, (15 * 5) ) !default;
121
+ $color-action-remove-bg: lighten($color-error, (5 * 5) ) !default;
122
+ $color-action-remove-brd: lighten($color-error, (10 * 5) ) !default;
123
+ $color-action-void-bg: lighten($color-error, (10 * 5) ) !default;
124
+ $color-action-void-brd: lighten($color-error, (20 * 5) ) !default;
125
+ $color-action-cancel-bg: lighten($color-notice, (10 * 5) ) !default;
126
+ $color-action-cancel-brd: lighten($color-notice, (20 * 5) ) !default;
127
+ $color-action-capture-bg: lighten($color-success, (5 * 5) ) !default;
128
+ $color-action-capture-brd: lighten($color-success, (20 * 5) ) !default;
129
+ $color-action-save-bg: lighten($color-success, (5 * 5) ) !default;
130
+ $color-action-save-brd: lighten($color-success, (20 * 5) ) !default;
131
+ $color-action-mail-bg: lighten($color-success, (5 * 5) ) !default;
132
+ $color-action-mail-brd: lighten($color-success, (20 * 5) ) !default;
133
+ $color-action-failure-bg: lighten($color-error, (10 * 5) ) !default;
134
+ $color-action-failure-brd: lighten($color-error, (20 * 5) ) !default;
107
135
 
108
136
  // Available states
109
137
  $states: (
@@ -146,3 +174,6 @@ $border-sidebar: 1px solid $color-sidebar-border !default;
146
174
  // Main
147
175
  //--------------------------------------------------------------
148
176
  $main-header-height: 75px !default;
177
+
178
+ $content-wrapper-bg: $color-white;
179
+ $admin-body-bg: $color-white;
@@ -5,3 +5,4 @@
5
5
  file in your application and set variables according to
6
6
  globals/_variables.scss file.
7
7
  --------------------------------------------------------- */
8
+
@@ -1,4 +1,4 @@
1
- @mixin caret($width: 1em, $height: 1em, $direction: up, $color-caret: $color-3) {
1
+ @mixin caret($width: 1em, $height: 1em, $direction: up, $color-caret: $color-dark-light) {
2
2
  &:before {
3
3
  content: '';
4
4
  display: block;
@@ -1,4 +1,4 @@
1
- @mixin line-through($color: $color-2, $background: $body-bg) {
1
+ @mixin line-through($color: $color-primary, $background: $body-bg) {
2
2
  position: relative;
3
3
  text-align: center;
4
4
 
@@ -1,17 +1,23 @@
1
1
  .log_entry {
2
2
  &.success {
3
- background: lighten($color-2, 15);
3
+ background: lighten($color-primary, 15);
4
4
 
5
5
  td h4 {
6
6
  color: darken($body-color, 25);
7
+ i {
8
+ color: $color-primary;
9
+ }
7
10
  }
8
11
  }
9
12
 
10
13
  &.fail {
11
- background: lighten($color-5, 25);
14
+ background: lighten($color-red, 25);
12
15
 
13
16
  td h4 {
14
17
  color: lighten($body-color, 50);
18
+ i {
19
+ color: $color-red;
20
+ }
15
21
  }
16
22
  }
17
23
  }
@@ -17,7 +17,9 @@
17
17
  .order-total {
18
18
  font-size: 35px;
19
19
  font-weight: $font-weight-bold;
20
- color: theme-color("success");
20
+ background: $color-primary-light;
21
+ padding: .1em .3em;
22
+ border-radius: 3px;
21
23
  }
22
24
  }
23
25
 
@@ -28,7 +30,9 @@
28
30
  .customer {
29
31
  font-size: 20px;
30
32
  font-weight: $font-weight-bold;
31
- color: theme-color("success");
33
+ background: $color-primary-light;
34
+ padding: .1em .3em;
35
+ border-radius: 3px;
32
36
  }
33
37
  }
34
38
 
@@ -37,10 +41,17 @@
37
41
  color: $body-color;
38
42
 
39
43
  .shipment-number {
40
- color: theme-color("success");
44
+ color: $color-dark-dark;
45
+ background: $color-primary-light;
46
+ padding: .1em .3em;
47
+ border-radius: 3px;
41
48
  }
42
49
  .stock-location-name {
43
- color: theme-color("success");
50
+ color: $color-dark-dark;
51
+ background: $color-primary-light;
52
+ padding: .1em .3em;
53
+ border-radius: 3px;
54
+ word-break: break-word;
44
55
  }
45
56
  }
46
57
  }
@@ -49,9 +60,17 @@
49
60
  margin-bottom: 18px;
50
61
  }
51
62
 
63
+ [data-hook="complete-order-button"] {
64
+ margin-bottom: 15px;
65
+ }
66
+
67
+ label[for="order_bill_address_attributes_firstname"] {
68
+ margin-top: 45px;
69
+ }
70
+
52
71
  #risk_analysis legend {
53
- background-color: #c00;
54
- color: #FFF;
72
+ background-color: $color-red;
73
+ color: $color-white;
55
74
  font-size: 2em;
56
75
  }
57
76
 
@@ -31,7 +31,9 @@ div[data-hook="admin_products_index_search_buttons"] {
31
31
  margin-bottom: 15px;
32
32
 
33
33
  strong {
34
- color: $color-2;
34
+ background: $color-primary-light;
35
+ padding: .1em .3em;
36
+ border-radius: 3px;
35
37
  }
36
38
  }
37
39
 
@@ -51,7 +51,7 @@
51
51
  top: 10px;
52
52
 
53
53
  &:hover {
54
- color: #c60f13;
54
+ color: $color-red;
55
55
  }
56
56
  }
57
57
  }
@@ -71,7 +71,7 @@
71
71
  top: 10px;
72
72
 
73
73
  &:hover {
74
- color: #c60f13;
74
+ color: $color-red;
75
75
  }
76
76
  }
77
77
  }
@@ -97,13 +97,13 @@
97
97
  }
98
98
 
99
99
  &.action-remove {
100
- background-color: lighten($color-5, 50);
101
- border-color: lighten($color-5, 45);
100
+ background-color: lighten($color-red, 50);
101
+ border-color: lighten($color-red, 45);
102
102
  text-decoration: line-through;
103
103
 
104
104
  .promotion-title, input[type="text"], input[type="number"],
105
105
  .token-input-list {
106
- border-color: lighten($color-5, 45);
106
+ border-color: lighten($color-red, 45);
107
107
  }
108
108
  }
109
109
 
@@ -1,11 +1,33 @@
1
- #listing_product_stock {
1
+ .stock-table {
2
2
 
3
3
  tbody + tbody {
4
4
  border-top-width: 1px;
5
5
  }
6
6
 
7
+ .stock-item-edit-row {
8
+ &.changed {
9
+ .submit, .cancel {
10
+ display: inline-block;
11
+ }
12
+ }
13
+
14
+ td {
15
+ vertical-align: middle;
16
+
17
+ &:not(.actions) {
18
+ padding: 0.5rem 0.75rem;
19
+ }
20
+ }
21
+ }
22
+
23
+ .actions {
24
+ .submit, .cancel {
25
+ display: none;
26
+ }
27
+ }
28
+
7
29
  td {
8
- input.error {
30
+ .error {
9
31
  border-color: theme-color("danger");
10
32
  }
11
33
 
@@ -14,4 +36,57 @@
14
36
  border: 1px solid theme-color("danger");
15
37
  }
16
38
  }
39
+
40
+ .variant-stock-items {
41
+ border: 0 none;
42
+ }
43
+
44
+ table {
45
+ td {
46
+ padding: 4px 0;
47
+ border: none;
48
+ }
49
+
50
+ &.stock-variant-field-table {
51
+ margin-bottom: 0;
52
+
53
+ td {
54
+ text-align: left;
55
+
56
+ &:first-child {
57
+ font-weight: bold;
58
+ text-align: left;
59
+ padding-right: 0.5rem;
60
+ width: 15%;
61
+ }
62
+ }
63
+ }
64
+ }
65
+
66
+ > tbody {
67
+ .variant-image {
68
+ width: 31%;
69
+ padding: 0 2%;
70
+ img { width: 100%; }
71
+ }
72
+ .variant-details {
73
+ width: 65%;
74
+ padding: 0px 5px;
75
+ }
76
+ .variant-image,
77
+ .variant-details {
78
+ float: left;
79
+ }
80
+ .variant-container {
81
+ overflow: hidden;
82
+ }
83
+ }
84
+ }
85
+
86
+ .stock-location-items-cell {
87
+ padding: 0;
88
+ }
89
+
90
+ .stock-location-items-table {
91
+ margin-bottom: 0;
17
92
  }