solidus_backend 2.3.1 → 2.4.0.beta1

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 (270) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/spree/backend/admin.js +0 -12
  3. data/app/assets/javascripts/spree/backend/number_field_updater.coffee +5 -5
  4. data/app/assets/javascripts/spree/backend/shipments.js +16 -14
  5. data/app/assets/javascripts/spree/backend/stock_transfers/count_update_forms.coffee +3 -3
  6. data/app/assets/javascripts/spree/backend/stock_transfers/transfer_item_deleting.coffee +1 -1
  7. data/app/assets/javascripts/spree/backend/taxonomy.js.coffee +1 -1
  8. data/app/assets/javascripts/spree/backend/templates/orders/details_adjustment_row.hbs +2 -2
  9. data/app/assets/javascripts/spree/backend/templates/orders/line_item.hbs +3 -3
  10. data/app/assets/javascripts/spree/backend/templates/stock_items/stock_location_stock_item.hbs +5 -5
  11. data/app/assets/javascripts/spree/backend/templates/stock_transfers/transfer_item.hbs +5 -5
  12. data/app/assets/javascripts/spree/backend/templates/taxons/_tree.hbs +7 -3
  13. data/app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs +1 -1
  14. data/app/assets/javascripts/spree/backend/templates/variants/split.hbs +2 -2
  15. data/app/assets/javascripts/spree/backend/views/order/customer_details.js +1 -2
  16. data/app/assets/javascripts/spree/backend.js +1 -1
  17. data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +27 -906
  18. data/app/assets/stylesheets/spree/backend/components/_actions.scss +13 -15
  19. data/app/assets/stylesheets/spree/backend/components/_date-picker.scss +1 -1
  20. data/app/assets/stylesheets/spree/backend/components/_editable_table.scss +0 -1
  21. data/app/assets/stylesheets/spree/backend/components/_messages.scss +8 -8
  22. data/app/assets/stylesheets/spree/backend/components/_navigation.scss +1 -1
  23. data/app/assets/stylesheets/spree/backend/components/_number_field_update.scss +1 -1
  24. data/app/assets/stylesheets/spree/backend/components/_number_with_currency.scss +1 -1
  25. data/app/assets/stylesheets/spree/backend/components/_pills.scss +92 -0
  26. data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +7 -32
  27. data/app/assets/stylesheets/spree/backend/components/_states.scss +5 -27
  28. data/app/assets/stylesheets/spree/backend/components/_stock_table.scss +0 -12
  29. data/app/assets/stylesheets/spree/backend/globals/_variables.scss +58 -139
  30. data/app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss +11 -15
  31. data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +7 -5
  32. data/app/assets/stylesheets/spree/backend/sections/_orders.scss +6 -6
  33. data/app/assets/stylesheets/spree/backend/sections/_products.scss +5 -1
  34. data/app/assets/stylesheets/spree/backend/sections/_promotions.scss +4 -2
  35. data/app/assets/stylesheets/spree/backend/sections/_stock_management.scss +4 -35
  36. data/app/assets/stylesheets/spree/backend/sections/_style_guide.scss +14 -15
  37. data/app/assets/stylesheets/spree/backend/sections/_taxonomies.scss +9 -16
  38. data/app/assets/stylesheets/spree/backend/shared/_forms.scss +23 -20
  39. data/app/assets/stylesheets/spree/backend/shared/_header.scss +1 -5
  40. data/app/assets/stylesheets/spree/backend/shared/_layout.scss +3 -23
  41. data/app/assets/stylesheets/spree/backend/shared/_tables.scss +40 -92
  42. data/app/assets/stylesheets/spree/backend/shared/_typography.scss +6 -6
  43. data/app/assets/stylesheets/spree/backend/spree_admin.scss +1 -1
  44. data/app/controllers/spree/admin/adjustments_controller.rb +1 -1
  45. data/app/controllers/spree/admin/customer_returns_controller.rb +0 -1
  46. data/app/controllers/spree/admin/promotion_actions_controller.rb +1 -1
  47. data/app/controllers/spree/admin/shipping_methods_controller.rb +1 -1
  48. data/app/controllers/spree/admin/style_guide_controller.rb +3 -2
  49. data/app/controllers/spree/admin/tax_rates_controller.rb +1 -1
  50. data/app/controllers/spree/admin/users_controller.rb +9 -4
  51. data/app/helpers/spree/admin/base_helper.rb +32 -35
  52. data/app/helpers/spree/admin/stock_transfers_helper.rb +0 -4
  53. data/app/models/spree/backend_configuration.rb +1 -1
  54. data/app/views/spree/admin/adjustment_reasons/index.html.erb +6 -4
  55. data/app/views/spree/admin/adjustments/_adjustment.html.erb +5 -5
  56. data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +7 -7
  57. data/app/views/spree/admin/cancellations/index.html.erb +9 -5
  58. data/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb +6 -3
  59. data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +12 -7
  60. data/app/views/spree/admin/customer_returns/_return_item_selection.html.erb +13 -8
  61. data/app/views/spree/admin/customer_returns/edit.html.erb +1 -1
  62. data/app/views/spree/admin/customer_returns/index.html.erb +5 -5
  63. data/app/views/spree/admin/images/_image_row.html.erb +14 -4
  64. data/app/views/spree/admin/images/index.html.erb +2 -1
  65. data/app/views/spree/admin/option_types/_option_value_fields.html.erb +6 -6
  66. data/app/views/spree/admin/option_types/edit.html.erb +2 -1
  67. data/app/views/spree/admin/option_types/index.html.erb +5 -5
  68. data/app/views/spree/admin/orders/_adjustments.html.erb +3 -3
  69. data/app/views/spree/admin/orders/_carton.html.erb +1 -1
  70. data/app/views/spree/admin/orders/_carton_manifest.html.erb +3 -3
  71. data/app/views/spree/admin/orders/_risk_analysis.html.erb +18 -16
  72. data/app/views/spree/admin/orders/_shipment.html.erb +26 -30
  73. data/app/views/spree/admin/orders/_shipment_manifest.html.erb +6 -6
  74. data/app/views/spree/admin/orders/confirm/_line_items.html.erb +3 -3
  75. data/app/views/spree/admin/orders/confirm/_payments.html.erb +6 -6
  76. data/app/views/spree/admin/orders/confirm/_shipment.html.erb +1 -1
  77. data/app/views/spree/admin/orders/confirm/_shipment_manifest.html.erb +3 -3
  78. data/app/views/spree/admin/orders/index.html.erb +25 -9
  79. data/app/views/spree/admin/payment_methods/_form.html.erb +4 -1
  80. data/app/views/spree/admin/payment_methods/index.html.erb +11 -7
  81. data/app/views/spree/admin/payments/_capture_events.html.erb +1 -1
  82. data/app/views/spree/admin/payments/_list.html.erb +9 -5
  83. data/app/views/spree/admin/payments/show.html.erb +2 -2
  84. data/app/views/spree/admin/prices/_master_variant_table.html.erb +2 -2
  85. data/app/views/spree/admin/prices/_table.html.erb +2 -2
  86. data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +1 -1
  87. data/app/views/spree/admin/product_properties/index.html.erb +4 -2
  88. data/app/views/spree/admin/products/index.html.erb +10 -9
  89. data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +1 -1
  90. data/app/views/spree/admin/promotions/actions/_promotion_calculators_with_custom_fields.html.erb +1 -1
  91. data/app/views/spree/admin/promotions/calculators/_default_fields.html.erb +3 -6
  92. data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +3 -8
  93. data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +3 -8
  94. data/app/views/spree/admin/promotions/index.html.erb +24 -17
  95. data/app/views/spree/admin/promotions/rules/_user_role.html.erb +2 -2
  96. data/app/views/spree/admin/properties/index.html.erb +3 -3
  97. data/app/views/spree/admin/refund_reasons/index.html.erb +7 -5
  98. data/app/views/spree/admin/refunds/new.html.erb +1 -1
  99. data/app/views/spree/admin/reimbursement_types/index.html.erb +2 -2
  100. data/app/views/spree/admin/reimbursements/edit.html.erb +6 -6
  101. data/app/views/spree/admin/reimbursements/index.html.erb +9 -2
  102. data/app/views/spree/admin/reimbursements/show.html.erb +6 -6
  103. data/app/views/spree/admin/reports/index.html.erb +2 -2
  104. data/app/views/spree/admin/reports/sales_total.html.erb +1 -1
  105. data/app/views/spree/admin/return_authorizations/_form.html.erb +9 -5
  106. data/app/views/spree/admin/return_authorizations/edit.html.erb +9 -2
  107. data/app/views/spree/admin/return_authorizations/index.html.erb +11 -4
  108. data/app/views/spree/admin/search/products.json.jbuilder +10 -0
  109. data/app/views/spree/admin/search/users.json.jbuilder +37 -0
  110. data/app/views/spree/admin/shared/_calculator_fields.html.erb +4 -1
  111. data/app/views/spree/admin/shared/_modal.html.erb +18 -0
  112. data/app/views/spree/admin/shared/_number_field_update_actions.html.erb +2 -2
  113. data/app/views/spree/admin/shared/_number_field_update_cell.html.erb +1 -1
  114. data/app/views/spree/admin/shared/_order_summary.html.erb +21 -5
  115. data/app/views/spree/admin/shared/_refunds.html.erb +6 -6
  116. data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +4 -4
  117. data/app/views/spree/admin/shared/named_types/_index.html.erb +7 -5
  118. data/app/views/spree/admin/shared/preference_fields/_boolean.html.erb +13 -0
  119. data/app/views/spree/admin/shared/preference_fields/_decimal.html.erb +12 -0
  120. data/app/views/spree/admin/shared/preference_fields/_integer.html.erb +12 -0
  121. data/app/views/spree/admin/shared/preference_fields/_password.html.erb +12 -0
  122. data/app/views/spree/admin/shared/preference_fields/_string.html.erb +12 -0
  123. data/app/views/spree/admin/shared/preference_fields/_text.html.erb +12 -0
  124. data/app/views/spree/admin/shipping_categories/index.html.erb +2 -2
  125. data/app/views/spree/admin/shipping_methods/index.html.erb +5 -5
  126. data/app/views/spree/admin/stock_items/_stock_management.html.erb +3 -3
  127. data/app/views/spree/admin/stock_locations/index.html.erb +9 -11
  128. data/app/views/spree/admin/stock_movements/index.html.erb +4 -4
  129. data/app/views/spree/admin/stock_transfers/_transfer_item_actions.html.erb +1 -1
  130. data/app/views/spree/admin/stock_transfers/_transfer_item_table.html.erb +2 -2
  131. data/app/views/spree/admin/stock_transfers/index.html.erb +10 -6
  132. data/app/views/spree/admin/stock_transfers/tracking_info.html.erb +1 -1
  133. data/app/views/spree/admin/store_credits/index.html.erb +53 -50
  134. data/app/views/spree/admin/store_credits/show.html.erb +5 -5
  135. data/app/views/spree/admin/stores/_form.html.erb +9 -0
  136. data/app/views/spree/admin/style_guide/topics/components/_modals.html.erb +50 -0
  137. data/app/views/spree/admin/style_guide/topics/components/_pills.html.erb +101 -0
  138. data/app/views/spree/admin/style_guide/topics/tables/_building_tables.html.erb +4 -4
  139. data/app/views/spree/admin/tax_categories/index.html.erb +5 -5
  140. data/app/views/spree/admin/tax_rates/index.html.erb +9 -9
  141. data/app/views/spree/admin/taxonomies/_list.html.erb +4 -4
  142. data/app/views/spree/admin/taxons/search.json.jbuilder +5 -0
  143. data/app/views/spree/admin/users/index.html.erb +64 -23
  144. data/app/views/spree/admin/users/items.html.erb +9 -13
  145. data/app/views/spree/admin/users/orders.html.erb +28 -12
  146. data/app/views/spree/admin/variants/_table.html.erb +6 -5
  147. data/app/views/spree/admin/variants/index.html.erb +12 -16
  148. data/app/views/spree/admin/variants/new.html.erb +1 -3
  149. data/app/views/spree/admin/zones/edit.html.erb +0 -3
  150. data/app/views/spree/admin/zones/index.html.erb +2 -6
  151. data/app/views/spree/admin/zones/new.html.erb +0 -3
  152. data/app/views/spree/layouts/admin.html.erb +9 -30
  153. data/config/routes.rb +0 -4
  154. data/lib/spree/backend.rb +2 -1
  155. data/solidus_backend.gemspec +3 -1
  156. data/spec/controllers/spree/admin/orders_controller_spec.rb +0 -5
  157. data/spec/controllers/spree/admin/payments_controller_spec.rb +1 -1
  158. data/spec/controllers/spree/admin/search_controller_spec.rb +2 -2
  159. data/spec/features/admin/configuration/payment_methods_spec.rb +1 -1
  160. data/spec/features/admin/configuration/zones_spec.rb +1 -1
  161. data/spec/features/admin/orders/adjustments_spec.rb +1 -1
  162. data/spec/features/admin/orders/cancelling_and_resuming_spec.rb +4 -4
  163. data/spec/features/admin/orders/cancelling_inventory_spec.rb +1 -1
  164. data/spec/features/admin/orders/customer_details_spec.rb +8 -1
  165. data/spec/features/admin/orders/listing_spec.rb +1 -1
  166. data/spec/features/admin/orders/new_order_spec.rb +3 -3
  167. data/spec/features/admin/orders/order_details_spec.rb +17 -16
  168. data/spec/features/admin/orders/payments_spec.rb +4 -4
  169. data/spec/features/admin/orders/risk_analysis_spec.rb +2 -2
  170. data/spec/features/admin/orders/shipments_spec.rb +1 -1
  171. data/spec/features/admin/products/edit/images_spec.rb +1 -1
  172. data/spec/features/admin/store_credits_spec.rb +3 -3
  173. data/spec/features/admin/stores_spec.rb +35 -0
  174. data/spec/features/admin/users_spec.rb +60 -13
  175. data/spec/spec_helper.rb +9 -4
  176. data/vendor/assets/javascripts/solidus_admin/bootstrap.js +657 -361
  177. data/vendor/assets/javascripts/solidus_admin/popover.js +4 -0
  178. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_alert.scss +4 -11
  179. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_badge.scss +4 -33
  180. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_breadcrumb.scss +1 -1
  181. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_button-group.scss +11 -15
  182. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_buttons.scss +13 -42
  183. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_card.scss +27 -80
  184. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_carousel.scss +24 -17
  185. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_close.scss +0 -2
  186. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_custom-forms.scss +27 -36
  187. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_dropdown.scss +15 -48
  188. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_forms.scss +70 -68
  189. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_functions.scss +90 -0
  190. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_grid.scss +3 -2
  191. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_images.scss +1 -1
  192. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_input-group.scss +6 -8
  193. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_jumbotron.scss +0 -4
  194. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_list-group.scss +9 -36
  195. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_media.scss +0 -4
  196. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_mixins.scss +2 -18
  197. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_modal.scss +3 -3
  198. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss +15 -16
  199. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_navbar.scss +70 -54
  200. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_pagination.scss +3 -4
  201. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_popover.scss +96 -72
  202. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_print.scss +1 -9
  203. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_progress.scss +4 -4
  204. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_reboot.scss +187 -95
  205. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_tables.scss +34 -19
  206. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_tooltip.scss +52 -35
  207. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_type.scss +8 -28
  208. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_utilities.scss +1 -0
  209. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_variables.scss +286 -410
  210. data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap-grid.scss +2 -8
  211. data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap-reboot.scss +1 -2
  212. data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap.scss +2 -15
  213. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_alert.scss +4 -5
  214. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_badge.scss +6 -5
  215. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_border-radius.scss +3 -3
  216. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_box-shadow.scss +5 -0
  217. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_breakpoints.scss +23 -13
  218. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_buttons.scss +11 -14
  219. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_clearfix.scss +1 -1
  220. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_forms.scss +57 -55
  221. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_gradients.scss +1 -1
  222. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_grid-framework.scss +9 -18
  223. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_grid.scss +12 -65
  224. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss +6 -6
  225. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_list-group.scss +2 -4
  226. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_nav-divider.scss +3 -3
  227. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_pagination.scss +1 -0
  228. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_reset-text.scss +4 -3
  229. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_resize.scss +1 -1
  230. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss +5 -2
  231. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_text-truncate.scss +1 -1
  232. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_transition.scss +9 -0
  233. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_visibility.scss +2 -2
  234. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_background.scss +4 -17
  235. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_borders.scss +20 -5
  236. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_display.scss +36 -1
  237. data/vendor/assets/stylesheets/solidus_admin/bootstrap/{_responsive-embed.scss → utilities/_embed.scss} +0 -0
  238. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_flex.scss +0 -4
  239. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_position.scss +5 -3
  240. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss +10 -12
  241. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_text.scss +5 -17
  242. data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_visibility.scss +4 -48
  243. metadata +73 -34
  244. data/app/assets/stylesheets/spree/backend/shared/_skeleton.scss +0 -242
  245. data/app/controllers/spree/admin/countries_controller.rb +0 -9
  246. data/app/controllers/spree/admin/states_controller.rb +0 -29
  247. data/app/helpers/spree/admin/reimbursements_helper.rb +0 -14
  248. data/app/views/spree/admin/countries/_form.html.erb +0 -22
  249. data/app/views/spree/admin/countries/edit.html.erb +0 -19
  250. data/app/views/spree/admin/countries/index.html.erb +0 -49
  251. data/app/views/spree/admin/countries/new.html.erb +0 -18
  252. data/app/views/spree/admin/search/products.rabl +0 -9
  253. data/app/views/spree/admin/search/users.rabl +0 -30
  254. data/app/views/spree/admin/shared/_areas_tabs.html.erb +0 -19
  255. data/app/views/spree/admin/states/_form.html.erb +0 -14
  256. data/app/views/spree/admin/states/_state_list.html.erb +0 -33
  257. data/app/views/spree/admin/states/edit.html.erb +0 -19
  258. data/app/views/spree/admin/states/index.html.erb +0 -39
  259. data/app/views/spree/admin/states/new.html.erb +0 -17
  260. data/app/views/spree/admin/style_guide/topics/typography/_tags.html.erb +0 -25
  261. data/app/views/spree/admin/taxons/search.rabl +0 -5
  262. data/app/views/spree/admin/variants/new.js.erb +0 -1
  263. data/spec/features/admin/configuration/countries_spec.rb +0 -22
  264. data/spec/features/admin/configuration/states_spec.rb +0 -64
  265. data/spec/helpers/admin/reimbursements_helper_spec.rb +0 -34
  266. data/vendor/assets/javascripts/solidus_admin/tether.js +0 -1726
  267. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_custom.scss +0 -4
  268. data/vendor/assets/stylesheets/solidus_admin/bootstrap/_normalize.scss +0 -461
  269. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_cards.scss +0 -47
  270. data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_transforms.scss +0 -14
@@ -6,14 +6,11 @@
6
6
  background-color: $background;
7
7
  }
8
8
 
9
+ //scss-lint:disable QualifyingElement
9
10
  a.list-group-item-#{$state},
10
11
  button.list-group-item-#{$state} {
11
12
  color: $color;
12
13
 
13
- .list-group-item-heading {
14
- color: inherit;
15
- }
16
-
17
14
  @include hover-focus {
18
15
  color: $color;
19
16
  background-color: darken($background, 5%);
@@ -25,4 +22,5 @@
25
22
  border-color: $color;
26
23
  }
27
24
  }
25
+ // scss-lint:enable QualifyingElement
28
26
  }
@@ -3,8 +3,8 @@
3
3
  // Dividers (basically an hr) within dropdowns and nav lists
4
4
 
5
5
  @mixin nav-divider($color: #e5e5e5) {
6
- height: 1px;
7
- margin: ($spacer-y / 2) 0;
6
+ height: 0;
7
+ margin: ($spacer / 2) 0;
8
8
  overflow: hidden;
9
- background-color: $color;
9
+ border-top: 1px solid $color;
10
10
  }
@@ -4,6 +4,7 @@
4
4
  .page-link {
5
5
  padding: $padding-y $padding-x;
6
6
  font-size: $font-size;
7
+ line-height: $line-height;
7
8
  }
8
9
 
9
10
  .page-item {
@@ -1,17 +1,18 @@
1
+ // scss-lint:disable DuplicateProperty
1
2
  @mixin reset-text {
2
3
  font-family: $font-family-base;
3
4
  // We deliberately do NOT reset font-size or word-wrap.
4
5
  font-style: normal;
5
6
  font-weight: $font-weight-normal;
6
- letter-spacing: normal;
7
- line-break: auto;
8
7
  line-height: $line-height-base;
9
8
  text-align: left; // Fallback for where `start` is not supported
10
9
  text-align: start;
11
10
  text-decoration: none;
12
11
  text-shadow: none;
13
12
  text-transform: none;
14
- white-space: normal;
13
+ letter-spacing: normal;
15
14
  word-break: normal;
16
15
  word-spacing: normal;
16
+ white-space: normal;
17
+ line-break: auto;
17
18
  }
@@ -1,6 +1,6 @@
1
1
  // Resize anything
2
2
 
3
3
  @mixin resizable($direction) {
4
- resize: $direction; // Options: horizontal, vertical, both
5
4
  overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible`
5
+ resize: $direction; // Options: horizontal, vertical, both
6
6
  }
@@ -1,15 +1,17 @@
1
1
  // Only display content to screen readers
2
2
  //
3
3
  // See: http://a11yproject.com/posts/how-to-hide-content
4
+ // See: http://hugogiraudel.com/2016/10/13/css-hide-and-seek/
4
5
 
5
6
  @mixin sr-only {
6
7
  position: absolute;
7
8
  width: 1px;
8
9
  height: 1px;
9
10
  padding: 0;
10
- margin: -1px;
11
11
  overflow: hidden;
12
12
  clip: rect(0,0,0,0);
13
+ white-space: nowrap;
14
+ clip-path: inset(50%);
13
15
  border: 0;
14
16
  }
15
17
 
@@ -25,8 +27,9 @@
25
27
  position: static;
26
28
  width: auto;
27
29
  height: auto;
28
- margin: 0;
29
30
  overflow: visible;
30
31
  clip: auto;
32
+ white-space: normal;
33
+ clip-path: none;
31
34
  }
32
35
  }
@@ -5,4 +5,4 @@
5
5
  overflow: hidden;
6
6
  text-overflow: ellipsis;
7
7
  white-space: nowrap;
8
- }
8
+ }
@@ -0,0 +1,9 @@
1
+ @mixin transition($transition...) {
2
+ @if $enable-transitions {
3
+ @if length($transition) == 0 {
4
+ transition: $transition-base;
5
+ } @else {
6
+ transition: $transition;
7
+ }
8
+ }
9
+ }
@@ -1,5 +1,5 @@
1
1
  // Visibility
2
2
 
3
- @mixin invisible {
4
- visibility: hidden !important;
3
+ @mixin invisible($visibility) {
4
+ visibility: $visibility !important;
5
5
  }
@@ -1,19 +1,6 @@
1
- //
2
- // Contextual backgrounds
3
- //
4
-
5
- .bg-faded {
6
- background-color: darken($body-bg, 3%);
1
+ @each $color, $value in $theme-colors {
2
+ @include bg-variant('.bg-#{$color}', $value);
7
3
  }
8
4
 
9
- @include bg-variant('.bg-primary', $brand-primary);
10
-
11
- @include bg-variant('.bg-success', $brand-success);
12
-
13
- @include bg-variant('.bg-info', $brand-info);
14
-
15
- @include bg-variant('.bg-warning', $brand-warning);
16
-
17
- @include bg-variant('.bg-danger', $brand-danger);
18
-
19
- @include bg-variant('.bg-inverse', $brand-inverse);
5
+ .bg-white { background-color: $white !important; }
6
+ .bg-transparent { background-color: transparent !important; }
@@ -2,30 +2,45 @@
2
2
  // Border
3
3
  //
4
4
 
5
+ .border { border: 1px solid $gray-200 !important; }
5
6
  .border-0 { border: 0 !important; }
6
7
  .border-top-0 { border-top: 0 !important; }
7
8
  .border-right-0 { border-right: 0 !important; }
8
9
  .border-bottom-0 { border-bottom: 0 !important; }
9
10
  .border-left-0 { border-left: 0 !important; }
10
11
 
12
+ @each $color, $value in $theme-colors {
13
+ .border-#{$color} {
14
+ border-color: $value !important;
15
+ }
16
+ }
17
+
18
+ .border-white {
19
+ border-color: $white !important;
20
+ }
21
+
11
22
  //
12
23
  // Border-radius
13
24
  //
14
25
 
15
26
  .rounded {
16
- @include border-radius($border-radius);
27
+ border-radius: $border-radius !important;
17
28
  }
18
29
  .rounded-top {
19
- @include border-top-radius($border-radius);
30
+ border-top-left-radius: $border-radius !important;
31
+ border-top-right-radius: $border-radius !important;
20
32
  }
21
33
  .rounded-right {
22
- @include border-right-radius($border-radius);
34
+ border-top-right-radius: $border-radius !important;
35
+ border-bottom-right-radius: $border-radius !important;
23
36
  }
24
37
  .rounded-bottom {
25
- @include border-bottom-radius($border-radius);
38
+ border-bottom-right-radius: $border-radius !important;
39
+ border-bottom-left-radius: $border-radius !important;
26
40
  }
27
41
  .rounded-left {
28
- @include border-left-radius($border-radius);
42
+ border-top-left-radius: $border-radius !important;
43
+ border-bottom-left-radius: $border-radius !important;
29
44
  }
30
45
 
31
46
  .rounded-circle {
@@ -1,5 +1,5 @@
1
1
  //
2
- // Display utilities
2
+ // Utilities for common `display` values
3
3
  //
4
4
 
5
5
  @each $breakpoint in map-keys($grid-breakpoints) {
@@ -16,3 +16,38 @@
16
16
  .d#{$infix}-inline-flex { display: inline-flex !important; }
17
17
  }
18
18
  }
19
+
20
+
21
+ //
22
+ // Utilities for toggling `display` in print
23
+ //
24
+
25
+ .d-print-block {
26
+ display: none !important;
27
+
28
+ @media print {
29
+ display: block !important;
30
+ }
31
+ }
32
+
33
+ .d-print-inline {
34
+ display: none !important;
35
+
36
+ @media print {
37
+ display: inline !important;
38
+ }
39
+ }
40
+
41
+ .d-print-inline-block {
42
+ display: none !important;
43
+
44
+ @media print {
45
+ display: inline-block !important;
46
+ }
47
+ }
48
+
49
+ .d-print-none {
50
+ @media print {
51
+ display: none !important;
52
+ }
53
+ }
@@ -6,10 +6,6 @@
6
6
  @include media-breakpoint-up($breakpoint) {
7
7
  $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
8
8
 
9
- .flex#{$infix}-first { order: -1; }
10
- .flex#{$infix}-last { order: 1; }
11
- .flex#{$infix}-unordered { order: 0; }
12
-
13
9
  .flex#{$infix}-row { flex-direction: row !important; }
14
10
  .flex#{$infix}-column { flex-direction: column !important; }
15
11
  .flex#{$infix}-row-reverse { flex-direction: row-reverse !important; }
@@ -17,7 +17,9 @@
17
17
  }
18
18
 
19
19
  .sticky-top {
20
- position: sticky;
21
- top: 0;
22
- z-index: $zindex-sticky;
20
+ @supports (position: sticky) {
21
+ position: sticky;
22
+ top: 0;
23
+ z-index: $zindex-sticky;
24
+ }
23
25
  }
@@ -5,22 +5,20 @@
5
5
  $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
6
6
 
7
7
  @each $prop, $abbrev in (margin: m, padding: p) {
8
- @each $size, $lengths in $spacers {
9
- $length-x: map-get($lengths, x);
10
- $length-y: map-get($lengths, y);
8
+ @each $size, $length in $spacers {
11
9
 
12
- .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length-y $length-x !important; }
13
- .#{$abbrev}t#{$infix}-#{$size} { #{$prop}-top: $length-y !important; }
14
- .#{$abbrev}r#{$infix}-#{$size} { #{$prop}-right: $length-x !important; }
15
- .#{$abbrev}b#{$infix}-#{$size} { #{$prop}-bottom: $length-y !important; }
16
- .#{$abbrev}l#{$infix}-#{$size} { #{$prop}-left: $length-x !important; }
10
+ .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }
11
+ .#{$abbrev}t#{$infix}-#{$size} { #{$prop}-top: $length !important; }
12
+ .#{$abbrev}r#{$infix}-#{$size} { #{$prop}-right: $length !important; }
13
+ .#{$abbrev}b#{$infix}-#{$size} { #{$prop}-bottom: $length !important; }
14
+ .#{$abbrev}l#{$infix}-#{$size} { #{$prop}-left: $length !important; }
17
15
  .#{$abbrev}x#{$infix}-#{$size} {
18
- #{$prop}-right: $length-x !important;
19
- #{$prop}-left: $length-x !important;
16
+ #{$prop}-right: $length !important;
17
+ #{$prop}-left: $length !important;
20
18
  }
21
19
  .#{$abbrev}y#{$infix}-#{$size} {
22
- #{$prop}-top: $length-y !important;
23
- #{$prop}-bottom: $length-y !important;
20
+ #{$prop}-top: $length !important;
21
+ #{$prop}-bottom: $length !important;
24
22
  }
25
23
  }
26
24
  }
@@ -34,25 +34,13 @@
34
34
 
35
35
  // Contextual colors
36
36
 
37
- .text-white {
38
- color: #fff !important;
39
- }
40
-
41
- @include text-emphasis-variant('.text-muted', $text-muted);
42
-
43
- @include text-emphasis-variant('.text-primary', $brand-primary);
44
-
45
- @include text-emphasis-variant('.text-success', $brand-success);
37
+ .text-white { color: #fff !important; }
46
38
 
47
- @include text-emphasis-variant('.text-info', $brand-info);
48
-
49
- @include text-emphasis-variant('.text-warning', $brand-warning);
50
-
51
- @include text-emphasis-variant('.text-danger', $brand-danger);
52
-
53
- // Font color
39
+ @each $color, $value in $theme-colors {
40
+ @include text-emphasis-variant('.text-#{$color}', $value);
41
+ }
54
42
 
55
- @include text-emphasis-variant('.text-gray-dark', $gray-dark);
43
+ .text-muted { color: $text-muted !important; }
56
44
 
57
45
  // Misc
58
46
 
@@ -2,54 +2,10 @@
2
2
  // Visibility utilities
3
3
  //
4
4
 
5
- .invisible {
6
- @include invisible();
7
- }
8
-
9
- // Responsive visibility utilities
10
-
11
- @each $bp in map-keys($grid-breakpoints) {
12
- .hidden-#{$bp}-up {
13
- @include media-breakpoint-up($bp) {
14
- display: none !important;
15
- }
16
- }
17
- .hidden-#{$bp}-down {
18
- @include media-breakpoint-down($bp) {
19
- display: none !important;
20
- }
21
- }
5
+ .visible {
6
+ @include invisible(visible);
22
7
  }
23
8
 
24
-
25
- // Print utilities
26
- //
27
- // Media queries are placed on the inside to be mixin-friendly.
28
-
29
- .visible-print-block {
30
- display: none !important;
31
-
32
- @media print {
33
- display: block !important;
34
- }
35
- }
36
- .visible-print-inline {
37
- display: none !important;
38
-
39
- @media print {
40
- display: inline !important;
41
- }
42
- }
43
- .visible-print-inline-block {
44
- display: none !important;
45
-
46
- @media print {
47
- display: inline-block !important;
48
- }
49
- }
50
-
51
- .hidden-print {
52
- @media print {
53
- display: none !important;
54
- }
9
+ .invisible {
10
+ @include invisible(hidden);
55
11
  }