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,83 +1,39 @@
1
- #main-sidebar {
2
- position: fixed;
3
- top: $navbar-height + 2px;
4
- bottom: 0;
5
- left: 0;
6
- padding: 0;
7
- z-index: 1000;
8
- display: block;
9
- overflow-x: hidden;
1
+ .sidebar {
10
2
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
11
- background-color: lighten($gray-lighter, 5);
12
- border-right: 1px solid darken($gray-lighter, 5);
13
-
14
- a {
15
- -webkit-font-smoothing: antialiased;
16
- -webkit-text-size-adjust: 100%;
17
- -ms-text-size-adjust: 100%;
18
- -webkit-font-feature-settings: "kern" 1;
19
- -moz-font-feature-settings: "kern" 1;
3
+ background-color: $gray-100;
4
+ border-right: 1px solid $gray-200;
5
+ margin-top: 50px;
6
+ height: calc(100% - 50px);
7
+ z-index: 999;
8
+
9
+ a.sidebar-submenu-item:hover {
10
+ text-decoration: none;
11
+ background-color: $gray-200;
12
+ cursor: pointer
20
13
  }
21
14
 
22
15
  ul.nav-sidebar {
23
16
  > li {
24
- border-bottom: 1px solid $gray-lighter;
25
-
26
17
  > a {
27
- text-transform: uppercase;
28
- letter-spacing: 1px;
29
- font-size: 12px;
30
- font-weight: 500;
31
- padding: 15px;
32
- color: $gray;
18
+ color: $gray-700;
33
19
 
34
- .glyphicon {
35
- font-size: 18px;
36
- vertical-align: bottom;
37
- padding-right: 5px;
20
+ &:hover,
21
+ &[aria-expanded="true"] {
22
+ text-decoration: none;
23
+ background-color: $gray-200;
38
24
  }
39
25
 
40
- .glyphicon.pull-right {
41
- font-size: 8px;
26
+ .icon-chevron-left,
27
+ .icon-chevron-down {
28
+ font-size: .5rem;
42
29
  line-height: 2;
43
- color: $gray-light;
44
- position: absolute;
45
- right: 5px;
30
+ right: 1rem;
46
31
  top: 50%;
47
- margin-top: -8px;
48
- }
49
- }
50
- }
51
- }
52
-
53
- ul.nav.nav-pills {
54
- background-color: white;
55
- border-top: 1px solid $gray-lighter;
56
-
57
- li {
58
- a {
59
- padding: 5px 15px;
60
- font-size: 12px;
61
-
62
- &:hover {
63
- border-radius: 0;
64
- }
65
- }
66
-
67
- &.selected {
68
- a {
69
- color: $brand-success
32
+ margin-top: -.5rem;
70
33
  }
71
34
  }
72
35
  }
73
36
  }
74
-
75
- .spree-version {
76
- position: absolute;
77
- z-index: -1;
78
- left: 15px;
79
- bottom: 15px;
80
- }
81
37
  }
82
38
 
83
39
  #wrapper.sidebar-minimized #main-sidebar {
@@ -86,7 +42,7 @@
86
42
 
87
43
  li {
88
44
  &:hover, &.menu-active {
89
- background-color: $gray-lighter;
45
+ background-color: $gray-100;
90
46
  }
91
47
  }
92
48
 
@@ -110,7 +66,7 @@
110
66
  display: block !important;
111
67
  height: auto !important;
112
68
  position: fixed;
113
- top: $navbar-height + 2px;
69
+ top: 50px;
114
70
  bottom: 0;
115
71
  left: 0;
116
72
  padding: 0;
@@ -121,9 +77,9 @@
121
77
  left: 50px;
122
78
  min-width: 180px;
123
79
  visibility: visible;
124
- background-color: lighten($gray-lighter, 5);
80
+ background-color: $gray-100;
125
81
  border-top: none;
126
- border-right: 1px solid darken($gray-lighter, 5);
82
+ border-right: 1px solid $gray-200;
127
83
  padding-top: 5px;
128
84
  }
129
85
  }
@@ -1,12 +1,14 @@
1
1
  table.table {
2
+ font-size: $font-size-sm;
3
+
2
4
  thead {
3
5
  th {
4
6
  text-transform: uppercase;
5
- font-size: $font-size-base - 3px;
7
+ font-size: $small-font-size;
6
8
  padding-top: 14px;
7
9
  padding-bottom: 14px;
8
- vertical-align: middle;
9
- letter-spacing: 1px;
10
+ vertical-align: top;
11
+ border-top: 0;
10
12
 
11
13
  a {
12
14
  .glyphicon {
@@ -15,17 +17,20 @@ table.table {
15
17
  }
16
18
  }
17
19
  }
20
+
18
21
  tbody {
19
22
  tr {
20
23
  td {
21
24
  vertical-align: middle;
25
+
22
26
  .filterable {
23
- font-size: 0.8em;
24
- margin-left: 0.2em;
27
+ font-size: .8em;
28
+ margin-left: .2em;
25
29
  color: white; // hidden, but space is reserved for the icon
26
30
  cursor: pointer;
27
31
  }
28
32
  }
33
+
29
34
  &:hover td .filterable {
30
35
  color: #666;
31
36
  }
@@ -35,22 +40,58 @@ table.table {
35
40
 
36
41
  .table-active-filters {
37
42
  display: none;
38
- margin: -0.5em 0 0.9em 0;
43
+ margin: -.5em 0 .9em;
39
44
 
40
- .label {
45
+ .badge {
41
46
  display: inline-block;
42
- margin-right: 0.5em;
43
- margin-bottom: 0.5em;
44
- font-size: 85%;
47
+ margin-right: .5em;
48
+ margin-bottom: .5em;
45
49
 
46
50
  &:hover {
47
- opacity: 0.8;
51
+ opacity: .8;
48
52
  }
49
53
 
50
54
  span.icon {
51
- margin: 0.3em 0 0 0.6em;
55
+ margin: .3em 0 0 .6em;
52
56
  font-size: 80%;
53
57
  cursor: pointer;
54
58
  }
55
59
  }
56
60
  }
61
+
62
+ .card {
63
+ > .table,
64
+ .table-responsive > .table {
65
+ border-right: 0;
66
+ border-left: 0;
67
+ margin-bottom: 0;
68
+
69
+ &:last-child, &:last-of-type {
70
+ border-bottom: 0;
71
+ }
72
+
73
+ td:first-child,
74
+ th:first-child {
75
+ border-left: 0;
76
+ }
77
+
78
+ td:last-child,
79
+ th:last-child {
80
+ border-right: 0;
81
+ }
82
+
83
+ tr:first-child td,
84
+ tr:first-child th {
85
+ border-top: 0;
86
+ }
87
+
88
+ tr:last-child td {
89
+ border-bottom: 0;
90
+ }
91
+ }
92
+
93
+ .card-header + .table,
94
+ .card-header + .table-responsive > .table {
95
+ border-top: 0;
96
+ }
97
+ }
@@ -21,7 +21,7 @@
21
21
  position: absolute;
22
22
  top: 14px;
23
23
  left: 16px;
24
- color: $gray;
24
+ color: $gray-500;
25
25
  cursor: move;
26
26
  }
27
27
  .btn-group {
@@ -59,7 +59,7 @@
59
59
  font-weight: bold;
60
60
  }
61
61
  div.price {
62
- color: $gray;
62
+ color: $gray-500;
63
63
  }
64
64
  }
65
65
  &:hover {
@@ -1,25 +1,22 @@
1
1
  /*------------------------------------------
2
2
  Colors
3
3
  -----------------------------------------*/
4
- $brand-primary: #478DC1;
5
- $brand-success: #7DB942;
6
- $brand-info: #48B0F7;
7
- $brand-warning: #F8D053;
8
- $brand-danger: #F55753;
4
+ $primary: darken(#478DC1, 10);
5
+ $success: darken(#7DB942, 2);
6
+ $info: #48B0F7;
7
+ $warning: #F8D053;
8
+ $danger: #F55753;
9
9
 
10
- $input-border: darken(#EDEDED, 5);
10
+ $input-border-color: darken(#EDEDED, 5);
11
11
 
12
12
  /*------------------------------------------
13
13
  Components
14
14
  -----------------------------------------*/
15
- $border-radius-base: 2px;
16
- $padding-base-vertical: 8px;
17
- $padding-base-horizontal: 16px;
15
+ $border-radius: 2px;
18
16
 
19
17
  /*------------------------------------------
20
18
  Fonts
21
19
  -----------------------------------------*/
22
- $headings-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
23
20
  $headings-font-weight: 300;
24
21
 
25
22
  /*------------------------------------------
@@ -29,9 +26,9 @@
29
26
  /*------------------------------------------
30
27
  Navbar
31
28
  -----------------------------------------*/
32
- $navbar-inverse-bg: darken($brand-primary, 35);
29
+ $navbar-inverse-bg: darken($primary, 15);
33
30
 
34
31
  /*------------------------------------------
35
- Wells
32
+ Forms
36
33
  -----------------------------------------*/
37
- $well-bg: #fbfbfb;
34
+ $label-margin-bottom: 0;
@@ -1,19 +1,19 @@
1
1
  .ui-widget {
2
2
  font-family: $headings-font-family;
3
- font-size: $font-size-base - 1;
3
+ font-size: $font-size-base;
4
4
  font-weight: 400;
5
5
  }
6
6
 
7
7
  #ui-datepicker-div {
8
8
  background-color: white;
9
9
  background-image: none;
10
- color: $gray;
11
- border-color: $input-border;
10
+ color: $gray-500;
11
+ border-color: $input-border-color;
12
12
  width: auto;
13
13
  padding: 20px;
14
14
 
15
15
  &.ui-corner-all {
16
- border-radius: $border-radius-base;
16
+ border-radius: $border-radius;
17
17
  }
18
18
 
19
19
  .ui-datepicker-header {
@@ -28,8 +28,8 @@
28
28
  background-image: none;
29
29
  text-indent: 0;
30
30
  vertical-align: bottom !important;
31
- width: 12px;
32
- color: $brand-primary;
31
+ width: 14px;
32
+ color: $primary;
33
33
 
34
34
  &.ui-icon-circle-triangle-w {
35
35
  @extend .glyphicon;
@@ -48,23 +48,25 @@
48
48
  background-color: transparent;
49
49
  transition: color 0.2s ease-in-out;
50
50
  cursor: pointer;
51
-
51
+
52
52
  span.ui-icon {
53
- color: $brand-success;
53
+ color: $success;
54
54
  }
55
55
  }
56
56
 
57
57
  .ui-datepicker-next-hover {
58
- right: 2;
58
+ right: 2px;
59
+ top: 2px;
59
60
  }
60
61
 
61
62
  .ui-datepicker-prev-hover {
62
- left: 2;
63
+ left: 2px;
64
+ top: 2px;
63
65
  }
64
66
 
65
67
  .ui-datepicker-title {
66
68
  font-weight: 500;
67
- color: $gray;
69
+ color: $gray-500;
68
70
  }
69
71
 
70
72
  table.ui-datepicker-calendar {
@@ -72,7 +74,7 @@
72
74
  span {
73
75
  text-transform: uppercase;
74
76
  letter-spacing: 1px;
75
- color: $brand-primary;
77
+ color: $primary;
76
78
  font-weight: 500;
77
79
  }
78
80
  }
@@ -80,10 +82,10 @@
80
82
  td {
81
83
  width: 31px;
82
84
  height: 29px;
83
- transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
85
+ // transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
84
86
 
85
- .ui-state-default,
86
- .ui-widget-content .ui-state-default,
87
+ .ui-state-default,
88
+ .ui-widget-content .ui-state-default,
87
89
  .ui-widget-header .ui-state-default {
88
90
  background-color: transparent;
89
91
  background-image: none;
@@ -92,18 +94,29 @@
92
94
  font-weight: 300;
93
95
  }
94
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
+
95
109
  &:hover {
96
- background-color: $gray-lighter;
110
+ background-color: $gray-100;
97
111
  }
98
112
 
99
113
  &:active {
100
- background-color: $brand-success;
114
+ background-color: $success;
101
115
 
102
116
  a {
103
- color: white;
104
- }
117
+ color: white;
118
+ }
105
119
  }
106
120
  }
107
121
  }
108
122
  }
109
-
@@ -2,14 +2,15 @@
2
2
  display: block;
3
3
 
4
4
  .select2-choice {
5
- height: $input-height-base;
5
+ height: $input-height;
6
6
  line-height: 2.2;
7
- border-color: $input-border;
7
+ border-color: $input-border-color;
8
8
  background-image: none;
9
9
  background-color: $input-bg;
10
10
 
11
- &, .select2-arrow {
12
- border-radius: $border-radius-base;
11
+ &,
12
+ .select2-arrow {
13
+ border-radius: $border-radius;
13
14
  }
14
15
 
15
16
  .select2-arrow {
@@ -17,7 +18,7 @@
17
18
  background-color: $input-bg;
18
19
  border-top-left-radius: 0;
19
20
  border-bottom-left-radius: 0;
20
- border-left-color: $input-border;
21
+ border-left-color: $input-border-color;
21
22
 
22
23
  b {
23
24
  background-position: 0 7px;
@@ -37,13 +38,14 @@
37
38
  }
38
39
 
39
40
  .select2-search input {
40
- border-color: $input-border;
41
- border-radius: $border-radius-base;
41
+ border-color: $input-border-color;
42
+ border-radius: $border-radius;
43
+ background-image: none;
42
44
  }
43
45
 
44
46
  .select2-drop {
45
47
  &, &.select2-drop-above {
46
- border-radius: $border-radius-base;
48
+ border-radius: $border-radius;
47
49
  box-shadow: none;
48
50
  }
49
51
  }
@@ -54,13 +56,13 @@
54
56
  }
55
57
  }
56
58
 
57
- .select2-dropdown-open.select2-drop-above .select2-choice,
59
+ .select2-dropdown-open.select2-drop-above .select2-choice,
58
60
  .select2-dropdown-open.select2-drop-above .select2-choices {
59
61
  background-image: none;
60
62
  }
61
63
 
62
64
  .select2-dropdown-open.select2-drop-above .select2-choice {
63
- border-radius: 0 0 $border-radius-base $border-radius-base;
65
+ border-radius: 0 0 $border-radius $border-radius;
64
66
  }
65
67
 
66
68
  .select2-drop-above,
@@ -68,15 +70,15 @@
68
70
  .select2-dropdown-open .select2-choice,
69
71
  .select2-drop.select2-drop-above.select2-drop-active,
70
72
  .select2-drop.select2-drop-active {
71
- border-color: lighten($brand-success, 20);
73
+ border-color: lighten($success, 20);
72
74
  }
73
75
 
74
76
  .select2-result-label {
75
- color: $gray;
77
+ color: $gray-900;
76
78
  }
77
79
 
78
80
  .select2-results .select2-highlighted {
79
- background-color: $brand-primary;
81
+ background-color: $primary;
80
82
 
81
83
  .select2-result-label {
82
84
  color: white;
@@ -86,13 +88,16 @@
86
88
  .select2-container-multi {
87
89
  .select2-choices {
88
90
  line-height: 1.8;
89
- border-color: $input-border;
91
+ border-color: $input-border-color;
90
92
  background-image: none;
91
93
  background-color: $input-bg;
94
+ display: flex;
95
+ flex-wrap: wrap;
96
+ align-items: center;
92
97
 
93
98
  .select2-search-choice {
94
- @extend .label;
95
- @extend .label-info;
99
+ @extend .badge;
100
+ @extend .badge-info;
96
101
 
97
102
  box-shadow: none;
98
103
  border: none;
@@ -121,7 +126,7 @@
121
126
  &.select2-container-active {
122
127
  .select2-choices {
123
128
  box-shadow: none;
124
- border-color: lighten($brand-success, 20);
129
+ border-color: lighten($success, 20);
125
130
  }
126
131
  }
127
- }
132
+ }