spree_backend 3.7.14.1 → 4.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/app/assets/javascripts/spree/backend.js +2 -1
  4. data/app/assets/javascripts/spree/backend/admin.js +75 -66
  5. data/app/assets/javascripts/spree/backend/calculator.js +3 -3
  6. data/app/assets/javascripts/spree/backend/gateway.js +1 -1
  7. data/app/assets/javascripts/spree/backend/line_items_on_order_edit.js +23 -24
  8. data/app/assets/javascripts/spree/backend/promotions.js +4 -4
  9. data/app/assets/javascripts/spree/backend/shipments.js +32 -33
  10. data/app/assets/javascripts/spree/backend/taxonomy.js +75 -72
  11. data/app/assets/stylesheets/spree/backend/components/_badges.scss +46 -0
  12. data/app/assets/stylesheets/spree/backend/components/_buttons.scss +7 -23
  13. data/app/assets/stylesheets/spree/backend/components/_filters.scss +16 -6
  14. data/app/assets/stylesheets/spree/backend/components/_main.scss +4 -6
  15. data/app/assets/stylesheets/spree/backend/components/_navbar.scss +21 -0
  16. data/app/assets/stylesheets/spree/backend/components/_navigation.scss +2 -10
  17. data/app/assets/stylesheets/spree/backend/components/_page_header.scss +0 -23
  18. data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +25 -69
  19. data/app/assets/stylesheets/spree/backend/components/_tables.scss +53 -12
  20. data/app/assets/stylesheets/spree/backend/components/_taxon_products_view.scss +2 -2
  21. data/app/assets/stylesheets/spree/backend/global/_variables.scss +10 -13
  22. data/app/assets/stylesheets/spree/backend/plugins/_jquery_ui.scss +33 -20
  23. data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +23 -18
  24. data/app/assets/stylesheets/spree/backend/shared/_base.scss +0 -8
  25. data/app/assets/stylesheets/spree/backend/shared/_forms.scss +5 -38
  26. data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +3 -6
  27. data/app/controllers/spree/admin/customer_returns_controller.rb +2 -2
  28. data/app/controllers/spree/admin/orders/customer_details_controller.rb +1 -1
  29. data/app/controllers/spree/admin/orders_controller.rb +2 -2
  30. data/app/controllers/spree/admin/payment_methods_controller.rb +1 -1
  31. data/app/controllers/spree/admin/products_controller.rb +2 -2
  32. data/app/controllers/spree/admin/reimbursement_types_controller.rb +1 -1
  33. data/app/controllers/spree/admin/resource_controller.rb +1 -1
  34. data/app/controllers/spree/admin/return_authorizations_controller.rb +1 -1
  35. data/app/controllers/spree/admin/stores_controller.rb +5 -0
  36. data/app/controllers/spree/admin/taxons_controller.rb +1 -1
  37. data/app/controllers/spree/admin/users_controller.rb +2 -2
  38. data/app/helpers/spree/admin/base_helper.rb +9 -4
  39. data/app/helpers/spree/admin/customer_returns_helper.rb +1 -1
  40. data/app/helpers/spree/admin/navigation_helper.rb +41 -25
  41. data/app/helpers/spree/admin/orders_helper.rb +2 -2
  42. data/app/views/kaminari/{_first_page.html.erb → twitter-bootstrap-4/_first_page.html.erb} +5 -3
  43. data/app/views/kaminari/{_gap.html.erb → twitter-bootstrap-4/_gap.html.erb} +5 -1
  44. data/app/views/kaminari/{_last_page.html.erb → twitter-bootstrap-4/_last_page.html.erb} +5 -3
  45. data/app/views/kaminari/{_next_page.html.erb → twitter-bootstrap-4/_next_page.html.erb} +5 -7
  46. data/app/views/kaminari/{_page.html.erb → twitter-bootstrap-4/_page.html.erb} +8 -2
  47. data/app/views/kaminari/{_paginator.html.erb → twitter-bootstrap-4/_paginator.html.erb} +3 -1
  48. data/app/views/kaminari/{_prev_page.html.erb → twitter-bootstrap-4/_prev_page.html.erb} +5 -7
  49. data/app/views/spree/admin/adjustments/_adjustment.html.erb +14 -4
  50. data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +6 -6
  51. data/app/views/spree/admin/adjustments/index.html.erb +7 -5
  52. data/app/views/spree/admin/countries/_form.html.erb +13 -1
  53. data/app/views/spree/admin/customer_returns/index.html.erb +2 -2
  54. data/app/views/spree/admin/general_settings/edit.html.erb +14 -14
  55. data/app/views/spree/admin/images/_form.html.erb +2 -2
  56. data/app/views/spree/admin/images/edit.html.erb +6 -6
  57. data/app/views/spree/admin/option_types/_form.html.erb +2 -2
  58. data/app/views/spree/admin/option_types/edit.html.erb +5 -5
  59. data/app/views/spree/admin/orders/_add_line_item.html.erb +5 -5
  60. data/app/views/spree/admin/orders/_add_product.html.erb +5 -5
  61. data/app/views/spree/admin/orders/_adjustments.html.erb +4 -3
  62. data/app/views/spree/admin/orders/_line_items.html.erb +4 -4
  63. data/app/views/spree/admin/orders/_risk_analysis.html.erb +3 -3
  64. data/app/views/spree/admin/orders/_shipment.html.erb +5 -5
  65. data/app/views/spree/admin/orders/_shipment_manifest.html.erb +1 -1
  66. data/app/views/spree/admin/orders/customer_details/_form.html.erb +17 -17
  67. data/app/views/spree/admin/orders/customer_details/edit.html.erb +4 -4
  68. data/app/views/spree/admin/orders/index.html.erb +56 -33
  69. data/app/views/spree/admin/payment_methods/_form.html.erb +4 -4
  70. data/app/views/spree/admin/payments/_list.html.erb +3 -3
  71. data/app/views/spree/admin/payments/index.html.erb +1 -1
  72. data/app/views/spree/admin/product_properties/index.html.erb +10 -2
  73. data/app/views/spree/admin/products/_add_stock_form.html.erb +6 -6
  74. data/app/views/spree/admin/products/_form.html.erb +26 -31
  75. data/app/views/spree/admin/products/edit.html.erb +1 -1
  76. data/app/views/spree/admin/products/index.html.erb +5 -5
  77. data/app/views/spree/admin/products/new.html.erb +5 -5
  78. data/app/views/spree/admin/products/stock.html.erb +3 -3
  79. data/app/views/spree/admin/promotions/_actions.html.erb +4 -4
  80. data/app/views/spree/admin/promotions/_form.html.erb +7 -7
  81. data/app/views/spree/admin/promotions/_promotion_action.html.erb +4 -4
  82. data/app/views/spree/admin/promotions/_promotion_rule.html.erb +12 -5
  83. data/app/views/spree/admin/promotions/_rules.html.erb +5 -5
  84. data/app/views/spree/admin/promotions/actions/_create_adjustment.html.erb +5 -5
  85. data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +5 -5
  86. data/app/views/spree/admin/promotions/actions/_create_line_items.html.erb +3 -3
  87. data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +10 -6
  88. data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +10 -6
  89. data/app/views/spree/admin/promotions/edit.html.erb +5 -5
  90. data/app/views/spree/admin/promotions/index.html.erb +3 -3
  91. data/app/views/spree/admin/promotions/rules/_country.html.erb +2 -2
  92. data/app/views/spree/admin/promotions/rules/_item_total.html.erb +4 -4
  93. data/app/views/spree/admin/promotions/rules/_option_value.html.erb +8 -8
  94. data/app/views/spree/admin/promotions/rules/_product.html.erb +2 -2
  95. data/app/views/spree/admin/promotions/rules/_taxon.html.erb +2 -2
  96. data/app/views/spree/admin/promotions/rules/_user.html.erb +2 -2
  97. data/app/views/spree/admin/properties/_form.html.erb +2 -2
  98. data/app/views/spree/admin/properties/index.html.erb +3 -3
  99. data/app/views/spree/admin/prototypes/_prototypes.html.erb +10 -2
  100. data/app/views/spree/admin/reimbursement_types/_form.html.erb +6 -6
  101. data/app/views/spree/admin/reports/sales_total.html.erb +4 -2
  102. data/app/views/spree/admin/return_authorizations/index.html.erb +1 -1
  103. data/app/views/spree/admin/return_index/customer_returns.html.erb +3 -3
  104. data/app/views/spree/admin/return_index/return_authorizations.html.erb +15 -9
  105. data/app/views/spree/admin/shared/_account_nav.html.erb +60 -48
  106. data/app/views/spree/admin/shared/_address_form.html.erb +11 -4
  107. data/app/views/spree/admin/shared/_calculator_fields.html.erb +4 -4
  108. data/app/views/spree/admin/shared/_content_header.html.erb +4 -4
  109. data/app/views/spree/admin/shared/_header.html.erb +18 -21
  110. data/app/views/spree/admin/shared/_index_table_options.html.erb +4 -5
  111. data/app/views/spree/admin/shared/_main_menu.html.erb +37 -35
  112. data/app/views/spree/admin/shared/_order_summary.html.erb +6 -7
  113. data/app/views/spree/admin/shared/_order_tabs.html.erb +47 -20
  114. data/app/views/spree/admin/shared/_product_tabs.html.erb +35 -11
  115. data/app/views/spree/admin/shared/_refunds.html.erb +1 -1
  116. data/app/views/spree/admin/shared/_table_filter.html.erb +7 -5
  117. data/app/views/spree/admin/shared/_version.html.erb +4 -2
  118. data/app/views/spree/admin/shared/named_types/_form.html.erb +1 -1
  119. data/app/views/spree/admin/shared/sub_menu/_configuration.html.erb +1 -1
  120. data/app/views/spree/admin/shared/sub_menu/_product.html.erb +1 -1
  121. data/app/views/spree/admin/shared/sub_menu/_promotion.html.erb +1 -1
  122. data/app/views/spree/admin/shared/sub_menu/_returns.html.erb +1 -1
  123. data/app/views/spree/admin/shipping_methods/_form.html.erb +21 -21
  124. data/app/views/spree/admin/states/_form.html.erb +2 -2
  125. data/app/views/spree/admin/stock_locations/_form.html.erb +6 -6
  126. data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +4 -4
  127. data/app/views/spree/admin/stock_movements/index.html.erb +1 -1
  128. data/app/views/spree/admin/stock_transfers/index.html.erb +34 -32
  129. data/app/views/spree/admin/stock_transfers/new.html.erb +13 -11
  130. data/app/views/spree/admin/stores/_form.html.erb +5 -6
  131. data/app/views/spree/admin/stores/index.html.erb +3 -1
  132. data/app/views/spree/admin/tax_categories/_form.html.erb +1 -1
  133. data/app/views/spree/admin/tax_rates/_form.html.erb +11 -9
  134. data/app/views/spree/admin/taxons/_form.html.erb +4 -4
  135. data/app/views/spree/admin/users/_addresses_form.html.erb +10 -10
  136. data/app/views/spree/admin/users/_form.html.erb +2 -2
  137. data/app/views/spree/admin/users/_lifetime_stats.html.erb +3 -3
  138. data/app/views/spree/admin/users/_sidebar.html.erb +26 -11
  139. data/app/views/spree/admin/users/addresses.html.erb +4 -2
  140. data/app/views/spree/admin/users/edit.html.erb +8 -8
  141. data/app/views/spree/admin/users/index.html.erb +3 -3
  142. data/app/views/spree/admin/users/items.html.erb +2 -2
  143. data/app/views/spree/admin/users/orders.html.erb +2 -2
  144. data/app/views/spree/admin/variants/_autocomplete.js.erb +5 -5
  145. data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +1 -1
  146. data/app/views/spree/admin/variants/_form.html.erb +2 -2
  147. data/app/views/spree/admin/variants/_split.js.erb +3 -3
  148. data/app/views/spree/admin/variants/index.html.erb +2 -2
  149. data/app/views/spree/admin/variants/new.html.erb +8 -6
  150. data/app/views/spree/admin/zones/_country_members.html.erb +4 -4
  151. data/app/views/spree/admin/zones/_form.html.erb +9 -9
  152. data/app/views/spree/admin/zones/_state_members.html.erb +4 -4
  153. data/app/views/spree/admin/zones/index.html.erb +2 -2
  154. data/app/views/spree/layouts/admin.html.erb +9 -6
  155. data/lib/spree/backend.rb +3 -2
  156. data/lib/spree_backend.rb +2 -1
  157. data/spree_backend.gemspec +3 -2
  158. metadata +39 -27
  159. data/app/assets/stylesheets/spree/backend/components/_labels.scss +0 -55
  160. data/app/assets/stylesheets/spree/backend/components/_panels.scss +0 -3
  161. data/app/assets/stylesheets/spree/backend/components/_wells.scss +0 -3
  162. data/app/assets/stylesheets/spree/backend/sections/_account.scss +0 -20
@@ -1,60 +1,62 @@
1
- function handle_ajax_error(last_rollback) {
2
- $.jstree.rollback(last_rollback);
3
- show_flash('error', '<strong>' + Spree.translations.server_error + '</strong><br />' + Spree.translations.taxonomy_tree_error);
1
+ /* globals show_flash, base_url, taxon_tree_menu */
2
+
3
+ function handleAjaxError (lastRollback) {
4
+ $.jstree.rollback(lastRollback)
5
+ show_flash('error', '<strong>' + Spree.translations.server_error + '</strong><br />' + Spree.translations.taxonomy_tree_error)
4
6
  }
5
7
 
6
- function handle_move(e, data) {
7
- var last_rollback = data.rlbk;
8
- var position = data.rslt.cp;
9
- var node = data.rslt.o;
10
- var new_parent = data.rslt.np;
11
- var url = Spree.url(base_url).clone();
12
- url.setPath(url.path() + '/' + node.prop('id'));
8
+ function handleMove (e, data) {
9
+ var lastRollback = data.rlbk
10
+ var position = data.rslt.cp
11
+ var node = data.rslt.o
12
+ var newParent = data.rslt.np
13
+ var url = Spree.url(base_url).clone()
14
+ url.setPath(url.path() + '/' + node.prop('id'))
13
15
  $.ajax({
14
16
  type: 'POST',
15
17
  dataType: 'json',
16
18
  url: url.toString(),
17
19
  data: {
18
20
  _method: 'put',
19
- 'taxon[parent_id]': new_parent.prop('id'),
21
+ 'taxon[parent_id]': newParent.prop('id'),
20
22
  'taxon[child_index]': position,
21
23
  token: Spree.api_key
22
- },
24
+ }
23
25
  }).fail(function () {
24
- handle_ajax_error(last_rollback);
25
- });
26
- return true;
26
+ handleAjaxError(lastRollback)
27
+ })
28
+ return true
27
29
  }
28
30
 
29
- function handle_create(e, data) {
30
- var last_rollback = data.rlbk;
31
- var node = data.rslt.obj;
32
- var name = data.rslt.name;
33
- var position = data.rslt.position;
34
- var new_parent = data.rslt.parent;
31
+ function handleCreate (e, data) {
32
+ var lastRollback = data.rlbk
33
+ var node = data.rslt.obj
34
+ var name = data.rslt.name
35
+ var position = data.rslt.position
36
+ var newParent = data.rslt.parent
35
37
  return $.ajax({
36
38
  type: 'POST',
37
39
  dataType: 'json',
38
40
  url: base_url.toString(),
39
41
  data: {
40
42
  'taxon[name]': name,
41
- 'taxon[parent_id]': new_parent.prop('id'),
43
+ 'taxon[parent_id]': newParent.prop('id'),
42
44
  'taxon[child_index]': position,
43
45
  token: Spree.api_key
44
46
  }
45
47
  }).done(function (data) {
46
- node.prop('id', data.id);
48
+ node.prop('id', data.id)
47
49
  }).fail(function () {
48
- return handle_ajax_error(last_rollback);
49
- });
50
+ return handleAjaxError(lastRollback)
51
+ })
50
52
  }
51
53
 
52
- function handle_rename(e, data) {
53
- var last_rollback = data.rlbk;
54
- var node = data.rslt.obj;
55
- var name = data.rslt.new_name;
56
- var url = Spree.url(base_url).clone();
57
- url.setPath(url.path() + '/' + node.prop('id'));
54
+ function handleRename (e, data) {
55
+ var lastRollback = data.rlbk
56
+ var node = data.rslt.obj
57
+ var name = data.rslt.new_name
58
+ var url = Spree.url(base_url).clone()
59
+ url.setPath(url.path() + '/' + node.prop('id'))
58
60
  return $.ajax({
59
61
  type: 'POST',
60
62
  dataType: 'json',
@@ -65,53 +67,54 @@ function handle_rename(e, data) {
65
67
  token: Spree.api_key
66
68
  }
67
69
  }).fail(function () {
68
- handle_ajax_error(last_rollback);
69
- });
70
+ handleAjaxError(lastRollback)
71
+ })
70
72
  }
71
73
 
72
- function handle_delete(e, data) {
73
- var last_rollback = data.rlbk;
74
- var node = data.rslt.obj;
75
- var delete_url = base_url.clone();
76
- delete_url.setPath(delete_url.path() + '/' + node.prop('id'));
74
+ function handleDelete (e, data) {
75
+ var lastRollback = data.rlbk
76
+ var node = data.rslt.obj
77
+ var deleteUrl = base_url.clone()
78
+ deleteUrl.setPath(deleteUrl.path() + '/' + node.prop('id'))
77
79
  if (confirm(Spree.translations.are_you_sure_delete)) {
78
80
  $.ajax({
79
81
  type: 'POST',
80
82
  dataType: 'json',
81
- url: delete_url.toString(),
83
+ url: deleteUrl.toString(),
82
84
  data: {
83
85
  _method: 'delete',
84
86
  token: Spree.api_key
85
87
  }
86
88
  }).fail(function () {
87
- handle_ajax_error(last_rollback);
88
- });
89
+ handleAjaxError(lastRollback)
90
+ })
89
91
  } else {
90
- $.jstree.rollback(last_rollback);
91
- last_rollback = null;
92
+ $.jstree.rollback(lastRollback)
93
+ lastRollback = null
92
94
  }
93
95
  }
94
96
 
95
- var root = typeof exports !== 'undefined' && exports !== null ? exports : this;
97
+ var root = typeof exports !== 'undefined' && exports !== null ? exports : this
96
98
 
97
- root.setup_taxonomy_tree = function (taxonomy_id) {
98
- var $taxonomy_tree = $('#taxonomy_tree');
99
- if (taxonomy_id !== void 0) {
99
+ root.setup_taxonomy_tree = function (taxonomyId) {
100
+ var $taxonomyTree = $('#taxonomy_tree')
101
+ if (taxonomyId !== void 0) {
100
102
  // this is defined within admin/taxonomies/edit
101
- root.base_url = Spree.url(Spree.routes.taxonomy_taxons_path);
103
+ root.base_url = Spree.url(Spree.routes.taxonomy_taxons_path)
102
104
  $.ajax({
103
105
  url: Spree.url(base_url.path().replace('/taxons', '/jstree')).toString(),
104
106
  data: {
105
107
  token: Spree.api_key
106
108
  }
107
109
  }).done(function (taxonomy) {
108
- var last_rollback = null;
110
+ // eslint-disable-next-line no-unused-vars
111
+ var lastRollback = null
109
112
  var conf = {
110
113
  json_data: {
111
114
  data: taxonomy,
112
115
  ajax: {
113
116
  url: function (e) {
114
- return Spree.url(base_url.path() + '/' + e.prop('id') + '/jstree' + '?token=' + Spree.api_key).toString();
117
+ return Spree.url(base_url.path() + '/' + e.prop('id') + '/jstree' + '?token=' + Spree.api_key).toString()
115
118
  }
116
119
  }
117
120
  },
@@ -126,40 +129,40 @@ root.setup_taxonomy_tree = function (taxonomy_id) {
126
129
  crrm: {
127
130
  move: {
128
131
  check_move: function (m) {
129
- var new_parent, node, position;
130
- position = m.cp;
131
- node = m.o;
132
- new_parent = m.np;
133
- if (!new_parent || node.prop('rel') === 'root') {
134
- return false;
132
+ var newParent, node, position
133
+ position = m.cp
134
+ node = m.o
135
+ newParent = m.np
136
+ if (!newParent || node.prop('rel') === 'root') {
137
+ return false
135
138
  }
136
139
  // can't drop before root
137
- if (new_parent.prop('id') === 'taxonomy_tree' && position === 0) {
138
- return false;
140
+ if (newParent.prop('id') === 'taxonomy_tree' && position === 0) {
141
+ return false
139
142
  }
140
- return true;
143
+ return true
141
144
  }
142
145
  }
143
146
  },
144
147
  contextmenu: {
145
148
  items: function (obj) {
146
- return taxon_tree_menu(obj, this);
149
+ return taxon_tree_menu(obj, this)
147
150
  }
148
151
  },
149
152
  plugins: ['themes', 'json_data', 'dnd', 'crrm', 'contextmenu']
150
- };
151
- return $taxonomy_tree.jstree(conf).bind('move_node.jstree', handle_move).bind('remove.jstree', handle_delete).bind('create.jstree', handle_create).bind('rename.jstree', handle_rename).bind('loaded.jstree', function () {
152
- return $(this).jstree('core').toggle_node($('.jstree-icon').first());
153
- });
154
- });
155
- $taxonomy_tree.on('dblclick', 'a', function () {
156
- $taxonomy_tree.jstree('rename', this);
157
- });
158
- // surpress form submit on enter/return
153
+ }
154
+ return $taxonomyTree.jstree(conf).bind('move_node.jstree', handleMove).bind('remove.jstree', handleDelete).bind('create.jstree', handleCreate).bind('rename.jstree', handleRename).bind('loaded.jstree', function () {
155
+ return $(this).jstree('core').toggle_node($('.jstree-icon').first())
156
+ })
157
+ })
158
+ $taxonomyTree.on('dblclick', 'a', function () {
159
+ $taxonomyTree.jstree('rename', this)
160
+ })
161
+ // suppress form submit on enter/return
159
162
  $(document).keypress(function (event) {
160
163
  if (event.keyCode === 13) {
161
- event.preventDefault();
164
+ event.preventDefault()
162
165
  }
163
- });
166
+ })
164
167
  }
165
- };
168
+ }
@@ -0,0 +1,46 @@
1
+ // Green
2
+ .badge-completed,
3
+ .badge-complete,
4
+ .badge-resumed,
5
+ .badge-considered_safe,
6
+ .badge-paid,
7
+ .badge-shipped,
8
+ .badge-ready,
9
+ .badge-active,
10
+ .badge-success,
11
+ .badge-sold,
12
+ .badge-open,
13
+ .badge-authorized {
14
+ @include badge-variant($success);
15
+ }
16
+
17
+ // Red
18
+ .badge-failed,
19
+ .badge-considered_risky,
20
+ .badge-error,
21
+ .badge-invalid,
22
+ .badge-closed {
23
+ @include badge-variant($danger);
24
+ }
25
+
26
+ // Orange
27
+ .badge-processing,
28
+ .badge-pending,
29
+ .badge-awaiting_return,
30
+ .badge-returned,
31
+ .badge-credit_owed,
32
+ .badge-balance_due,
33
+ .badge-backorder,
34
+ .badge-checkout,
35
+ .badge-cart,
36
+ .badge-address,
37
+ .badge-delivery,
38
+ .badge-payment,
39
+ .badge-confirm,
40
+ .badge-canceled,
41
+ .badge-void,
42
+ .badge-inactive,
43
+ .badge-notice,
44
+ .badge-partial {
45
+ @include badge-variant($warning);
46
+ }
@@ -1,41 +1,25 @@
1
1
  .btn,
2
2
  .nav-pills > li > a {
3
- letter-spacing: 1px;
4
3
  vertical-align: middle;
5
- transition: color 0.1s linear 0s,background-color 0.1s linear 0s,opacity 0.2s linear 0s !important;
6
-
7
- -webkit-font-smoothing: antialiased;
8
- -webkit-text-size-adjust: 100%;
9
- -ms-text-size-adjust: 100%;
10
- -webkit-font-feature-settings: "kern" 1;
11
- -moz-font-feature-settings: "kern" 1;
4
+ transition: color 0.1s linear 0s, background-color 0.1s linear 0s, opacity 0.2s linear 0s !important;
12
5
  }
13
6
 
14
7
  .btn {
15
8
  text-align: center;
16
9
 
17
- &:focus {
18
- outline: 0 !important;
19
- }
20
-
21
- &:hover,
22
- &:focus,
23
- &:active,
24
- &.active,
25
- &.disabled,
26
- &[disabled] {
27
- box-shadow: none;
28
- }
29
-
30
10
  .glyphicon {
31
11
  padding-right: 3px;
32
12
  }
33
13
 
34
- .ship { color: $btn-success-color; }
14
+ .ship { color: #fff; }
35
15
  }
36
16
 
37
17
  .btn-sm .glyphicon { padding: 0; }
38
18
 
39
19
  .btn.action-void { @extend .btn-danger; }
40
20
  .btn.action-capture { @extend .btn-success; }
41
- .btn.payment-action-edit { @extend .btn-primary; }
21
+ .btn.payment-action-edit {
22
+ @extend .btn-primary;
23
+
24
+ color: $white !important;
25
+ }
@@ -6,21 +6,31 @@
6
6
  }
7
7
 
8
8
  .index-filter-button {
9
+ font-size: $font-size-sm;
9
10
  .glyphicon {
10
- color: $gray-light;
11
+ color: $gray-800;
11
12
  }
12
13
 
13
14
  button {
15
+ height: 100%;
14
16
  text-transform: uppercase;
15
17
  letter-spacing: 2px;
16
18
  font-weight: bold;
17
- font-size: $font-size-base - 3;
18
- padding: ($padding-base-vertical + 3) $padding-base-horizontal ($padding-base-vertical + 2);
19
+ font-size: $small-font-size;
20
+ border-color: $input-border-color;
19
21
  border-right: none;
22
+ border-top-right-radius: 0;
23
+ border-bottom-right-radius: 0;
24
+ background-color: $white;
20
25
 
21
- &:focus {
22
- background-color: $gray-lighter;
23
- border-color: $input-border;
26
+ &:hover, &:focus {
27
+ background-color: $gray-100;
24
28
  }
25
29
  }
30
+
31
+ .js-quick-search {
32
+ font-size: $font-size-sm;
33
+ border-top-left-radius: 0;
34
+ border-bottom-left-radius: 0;
35
+ }
26
36
  }
@@ -1,12 +1,10 @@
1
1
  #main-part {
2
- padding: 15px 35px 0;
3
- &.sidebar-collapsed {
4
- padding-left: 85px;
5
- }
2
+ padding: $spacer ($spacer * 2) 0 ($spacer * 2);
3
+ margin-top: 50px;
6
4
  }
7
5
 
8
- .logo.navbar-brand {
9
- padding: 5px 15px;
6
+ .sidebar-minimized #main-part {
7
+ padding: $spacer ($spacer * 2) 0 ($spacer * 5);
10
8
  }
11
9
 
12
10
  #logo {
@@ -0,0 +1,21 @@
1
+ .header {
2
+ .navbar {
3
+ background-color: $navbar-inverse-bg;
4
+ padding: 0;
5
+
6
+ a:hover {
7
+ text-decoration: none;
8
+ }
9
+ }
10
+
11
+ .dropdown-toggle {
12
+ &[aria-expanded="true"] {
13
+ background-color: $gray-900;
14
+ }
15
+
16
+ &:hover,
17
+ &:focus {
18
+ text-decoration: none;
19
+ }
20
+ }
21
+ }
@@ -1,14 +1,6 @@
1
- #sidebar-toggle {
2
- display: block;
1
+ .navbar-toggler {
3
2
  border: none;
4
- padding: 0;
5
- margin: 0;
6
- position: absolute;
7
3
  right: 0;
8
- margin-top: 17px;
4
+ top: 0;
9
5
  cursor: pointer;
10
6
  }
11
-
12
- .navbar .row {
13
- padding-bottom: 0;
14
- }
@@ -1,27 +1,4 @@
1
1
  .content-header.page-header {
2
- margin-top: 15px;
3
-
4
- h1 {
5
- font-size: $font-size-h1 / 1.5;
6
- margin: 0;
7
- line-height: 38px;
8
- }
9
-
10
- &.with-page-tabs {
11
- border-bottom: 0;
12
- margin-bottom: 6px;
13
- padding-bottom: 0;
14
-
15
- h1 {
16
- margin-bottom: 8px;
17
- }
18
-
19
- .nav-tabs {
20
- padding-left: 15px;
21
- padding-top: 15px;
22
- }
23
- }
24
-
25
2
  .page-actions {
26
3
  text-align: right;
27
4