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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/spree/backend/admin.js +0 -12
- data/app/assets/javascripts/spree/backend/number_field_updater.coffee +5 -5
- data/app/assets/javascripts/spree/backend/shipments.js +16 -14
- data/app/assets/javascripts/spree/backend/stock_transfers/count_update_forms.coffee +3 -3
- data/app/assets/javascripts/spree/backend/stock_transfers/transfer_item_deleting.coffee +1 -1
- data/app/assets/javascripts/spree/backend/taxonomy.js.coffee +1 -1
- data/app/assets/javascripts/spree/backend/templates/orders/details_adjustment_row.hbs +2 -2
- data/app/assets/javascripts/spree/backend/templates/orders/line_item.hbs +3 -3
- data/app/assets/javascripts/spree/backend/templates/stock_items/stock_location_stock_item.hbs +5 -5
- data/app/assets/javascripts/spree/backend/templates/stock_transfers/transfer_item.hbs +5 -5
- data/app/assets/javascripts/spree/backend/templates/taxons/_tree.hbs +7 -3
- data/app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs +1 -1
- data/app/assets/javascripts/spree/backend/templates/variants/split.hbs +2 -2
- data/app/assets/javascripts/spree/backend/views/order/customer_details.js +1 -2
- data/app/assets/javascripts/spree/backend.js +1 -1
- data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +27 -906
- data/app/assets/stylesheets/spree/backend/components/_actions.scss +13 -15
- data/app/assets/stylesheets/spree/backend/components/_date-picker.scss +1 -1
- data/app/assets/stylesheets/spree/backend/components/_editable_table.scss +0 -1
- data/app/assets/stylesheets/spree/backend/components/_messages.scss +8 -8
- data/app/assets/stylesheets/spree/backend/components/_navigation.scss +1 -1
- data/app/assets/stylesheets/spree/backend/components/_number_field_update.scss +1 -1
- data/app/assets/stylesheets/spree/backend/components/_number_with_currency.scss +1 -1
- data/app/assets/stylesheets/spree/backend/components/_pills.scss +92 -0
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +7 -32
- data/app/assets/stylesheets/spree/backend/components/_states.scss +5 -27
- data/app/assets/stylesheets/spree/backend/components/_stock_table.scss +0 -12
- data/app/assets/stylesheets/spree/backend/globals/_variables.scss +58 -139
- data/app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss +11 -15
- data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +7 -5
- data/app/assets/stylesheets/spree/backend/sections/_orders.scss +6 -6
- data/app/assets/stylesheets/spree/backend/sections/_products.scss +5 -1
- data/app/assets/stylesheets/spree/backend/sections/_promotions.scss +4 -2
- data/app/assets/stylesheets/spree/backend/sections/_stock_management.scss +4 -35
- data/app/assets/stylesheets/spree/backend/sections/_style_guide.scss +14 -15
- data/app/assets/stylesheets/spree/backend/sections/_taxonomies.scss +9 -16
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +23 -20
- data/app/assets/stylesheets/spree/backend/shared/_header.scss +1 -5
- data/app/assets/stylesheets/spree/backend/shared/_layout.scss +3 -23
- data/app/assets/stylesheets/spree/backend/shared/_tables.scss +40 -92
- data/app/assets/stylesheets/spree/backend/shared/_typography.scss +6 -6
- data/app/assets/stylesheets/spree/backend/spree_admin.scss +1 -1
- data/app/controllers/spree/admin/adjustments_controller.rb +1 -1
- data/app/controllers/spree/admin/customer_returns_controller.rb +0 -1
- data/app/controllers/spree/admin/promotion_actions_controller.rb +1 -1
- data/app/controllers/spree/admin/shipping_methods_controller.rb +1 -1
- data/app/controllers/spree/admin/style_guide_controller.rb +3 -2
- data/app/controllers/spree/admin/tax_rates_controller.rb +1 -1
- data/app/controllers/spree/admin/users_controller.rb +9 -4
- data/app/helpers/spree/admin/base_helper.rb +32 -35
- data/app/helpers/spree/admin/stock_transfers_helper.rb +0 -4
- data/app/models/spree/backend_configuration.rb +1 -1
- data/app/views/spree/admin/adjustment_reasons/index.html.erb +6 -4
- data/app/views/spree/admin/adjustments/_adjustment.html.erb +5 -5
- data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +7 -7
- data/app/views/spree/admin/cancellations/index.html.erb +9 -5
- data/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb +6 -3
- data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +12 -7
- data/app/views/spree/admin/customer_returns/_return_item_selection.html.erb +13 -8
- data/app/views/spree/admin/customer_returns/edit.html.erb +1 -1
- data/app/views/spree/admin/customer_returns/index.html.erb +5 -5
- data/app/views/spree/admin/images/_image_row.html.erb +14 -4
- data/app/views/spree/admin/images/index.html.erb +2 -1
- data/app/views/spree/admin/option_types/_option_value_fields.html.erb +6 -6
- data/app/views/spree/admin/option_types/edit.html.erb +2 -1
- data/app/views/spree/admin/option_types/index.html.erb +5 -5
- data/app/views/spree/admin/orders/_adjustments.html.erb +3 -3
- data/app/views/spree/admin/orders/_carton.html.erb +1 -1
- data/app/views/spree/admin/orders/_carton_manifest.html.erb +3 -3
- data/app/views/spree/admin/orders/_risk_analysis.html.erb +18 -16
- data/app/views/spree/admin/orders/_shipment.html.erb +26 -30
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +6 -6
- data/app/views/spree/admin/orders/confirm/_line_items.html.erb +3 -3
- data/app/views/spree/admin/orders/confirm/_payments.html.erb +6 -6
- data/app/views/spree/admin/orders/confirm/_shipment.html.erb +1 -1
- data/app/views/spree/admin/orders/confirm/_shipment_manifest.html.erb +3 -3
- data/app/views/spree/admin/orders/index.html.erb +25 -9
- data/app/views/spree/admin/payment_methods/_form.html.erb +4 -1
- data/app/views/spree/admin/payment_methods/index.html.erb +11 -7
- data/app/views/spree/admin/payments/_capture_events.html.erb +1 -1
- data/app/views/spree/admin/payments/_list.html.erb +9 -5
- data/app/views/spree/admin/payments/show.html.erb +2 -2
- data/app/views/spree/admin/prices/_master_variant_table.html.erb +2 -2
- data/app/views/spree/admin/prices/_table.html.erb +2 -2
- data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +1 -1
- data/app/views/spree/admin/product_properties/index.html.erb +4 -2
- data/app/views/spree/admin/products/index.html.erb +10 -9
- data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +1 -1
- data/app/views/spree/admin/promotions/actions/_promotion_calculators_with_custom_fields.html.erb +1 -1
- data/app/views/spree/admin/promotions/calculators/_default_fields.html.erb +3 -6
- data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +3 -8
- data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +3 -8
- data/app/views/spree/admin/promotions/index.html.erb +24 -17
- data/app/views/spree/admin/promotions/rules/_user_role.html.erb +2 -2
- data/app/views/spree/admin/properties/index.html.erb +3 -3
- data/app/views/spree/admin/refund_reasons/index.html.erb +7 -5
- data/app/views/spree/admin/refunds/new.html.erb +1 -1
- data/app/views/spree/admin/reimbursement_types/index.html.erb +2 -2
- data/app/views/spree/admin/reimbursements/edit.html.erb +6 -6
- data/app/views/spree/admin/reimbursements/index.html.erb +9 -2
- data/app/views/spree/admin/reimbursements/show.html.erb +6 -6
- data/app/views/spree/admin/reports/index.html.erb +2 -2
- data/app/views/spree/admin/reports/sales_total.html.erb +1 -1
- data/app/views/spree/admin/return_authorizations/_form.html.erb +9 -5
- data/app/views/spree/admin/return_authorizations/edit.html.erb +9 -2
- data/app/views/spree/admin/return_authorizations/index.html.erb +11 -4
- data/app/views/spree/admin/search/products.json.jbuilder +10 -0
- data/app/views/spree/admin/search/users.json.jbuilder +37 -0
- data/app/views/spree/admin/shared/_calculator_fields.html.erb +4 -1
- data/app/views/spree/admin/shared/_modal.html.erb +18 -0
- data/app/views/spree/admin/shared/_number_field_update_actions.html.erb +2 -2
- data/app/views/spree/admin/shared/_number_field_update_cell.html.erb +1 -1
- data/app/views/spree/admin/shared/_order_summary.html.erb +21 -5
- data/app/views/spree/admin/shared/_refunds.html.erb +6 -6
- data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +4 -4
- data/app/views/spree/admin/shared/named_types/_index.html.erb +7 -5
- data/app/views/spree/admin/shared/preference_fields/_boolean.html.erb +13 -0
- data/app/views/spree/admin/shared/preference_fields/_decimal.html.erb +12 -0
- data/app/views/spree/admin/shared/preference_fields/_integer.html.erb +12 -0
- data/app/views/spree/admin/shared/preference_fields/_password.html.erb +12 -0
- data/app/views/spree/admin/shared/preference_fields/_string.html.erb +12 -0
- data/app/views/spree/admin/shared/preference_fields/_text.html.erb +12 -0
- data/app/views/spree/admin/shipping_categories/index.html.erb +2 -2
- data/app/views/spree/admin/shipping_methods/index.html.erb +5 -5
- data/app/views/spree/admin/stock_items/_stock_management.html.erb +3 -3
- data/app/views/spree/admin/stock_locations/index.html.erb +9 -11
- data/app/views/spree/admin/stock_movements/index.html.erb +4 -4
- data/app/views/spree/admin/stock_transfers/_transfer_item_actions.html.erb +1 -1
- data/app/views/spree/admin/stock_transfers/_transfer_item_table.html.erb +2 -2
- data/app/views/spree/admin/stock_transfers/index.html.erb +10 -6
- data/app/views/spree/admin/stock_transfers/tracking_info.html.erb +1 -1
- data/app/views/spree/admin/store_credits/index.html.erb +53 -50
- data/app/views/spree/admin/store_credits/show.html.erb +5 -5
- data/app/views/spree/admin/stores/_form.html.erb +9 -0
- data/app/views/spree/admin/style_guide/topics/components/_modals.html.erb +50 -0
- data/app/views/spree/admin/style_guide/topics/components/_pills.html.erb +101 -0
- data/app/views/spree/admin/style_guide/topics/tables/_building_tables.html.erb +4 -4
- data/app/views/spree/admin/tax_categories/index.html.erb +5 -5
- data/app/views/spree/admin/tax_rates/index.html.erb +9 -9
- data/app/views/spree/admin/taxonomies/_list.html.erb +4 -4
- data/app/views/spree/admin/taxons/search.json.jbuilder +5 -0
- data/app/views/spree/admin/users/index.html.erb +64 -23
- data/app/views/spree/admin/users/items.html.erb +9 -13
- data/app/views/spree/admin/users/orders.html.erb +28 -12
- data/app/views/spree/admin/variants/_table.html.erb +6 -5
- data/app/views/spree/admin/variants/index.html.erb +12 -16
- data/app/views/spree/admin/variants/new.html.erb +1 -3
- data/app/views/spree/admin/zones/edit.html.erb +0 -3
- data/app/views/spree/admin/zones/index.html.erb +2 -6
- data/app/views/spree/admin/zones/new.html.erb +0 -3
- data/app/views/spree/layouts/admin.html.erb +9 -30
- data/config/routes.rb +0 -4
- data/lib/spree/backend.rb +2 -1
- data/solidus_backend.gemspec +3 -1
- data/spec/controllers/spree/admin/orders_controller_spec.rb +0 -5
- data/spec/controllers/spree/admin/payments_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/search_controller_spec.rb +2 -2
- data/spec/features/admin/configuration/payment_methods_spec.rb +1 -1
- data/spec/features/admin/configuration/zones_spec.rb +1 -1
- data/spec/features/admin/orders/adjustments_spec.rb +1 -1
- data/spec/features/admin/orders/cancelling_and_resuming_spec.rb +4 -4
- data/spec/features/admin/orders/cancelling_inventory_spec.rb +1 -1
- data/spec/features/admin/orders/customer_details_spec.rb +8 -1
- data/spec/features/admin/orders/listing_spec.rb +1 -1
- data/spec/features/admin/orders/new_order_spec.rb +3 -3
- data/spec/features/admin/orders/order_details_spec.rb +17 -16
- data/spec/features/admin/orders/payments_spec.rb +4 -4
- data/spec/features/admin/orders/risk_analysis_spec.rb +2 -2
- data/spec/features/admin/orders/shipments_spec.rb +1 -1
- data/spec/features/admin/products/edit/images_spec.rb +1 -1
- data/spec/features/admin/store_credits_spec.rb +3 -3
- data/spec/features/admin/stores_spec.rb +35 -0
- data/spec/features/admin/users_spec.rb +60 -13
- data/spec/spec_helper.rb +9 -4
- data/vendor/assets/javascripts/solidus_admin/bootstrap.js +657 -361
- data/vendor/assets/javascripts/solidus_admin/popover.js +4 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_alert.scss +4 -11
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_badge.scss +4 -33
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_breadcrumb.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_button-group.scss +11 -15
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_buttons.scss +13 -42
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_card.scss +27 -80
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_carousel.scss +24 -17
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_close.scss +0 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_custom-forms.scss +27 -36
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_dropdown.scss +15 -48
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_forms.scss +70 -68
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_functions.scss +90 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_grid.scss +3 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_images.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_input-group.scss +6 -8
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_jumbotron.scss +0 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_list-group.scss +9 -36
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_media.scss +0 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_mixins.scss +2 -18
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_modal.scss +3 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss +15 -16
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_navbar.scss +70 -54
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_pagination.scss +3 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_popover.scss +96 -72
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_print.scss +1 -9
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_progress.scss +4 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_reboot.scss +187 -95
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_tables.scss +34 -19
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_tooltip.scss +52 -35
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_type.scss +8 -28
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_utilities.scss +1 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_variables.scss +286 -410
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap-grid.scss +2 -8
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap-reboot.scss +1 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap.scss +2 -15
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_alert.scss +4 -5
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_badge.scss +6 -5
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_border-radius.scss +3 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_box-shadow.scss +5 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_breakpoints.scss +23 -13
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_buttons.scss +11 -14
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_clearfix.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_forms.scss +57 -55
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_gradients.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_grid-framework.scss +9 -18
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_grid.scss +12 -65
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss +6 -6
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_list-group.scss +2 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_nav-divider.scss +3 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_pagination.scss +1 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_reset-text.scss +4 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_resize.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss +5 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_text-truncate.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_transition.scss +9 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_visibility.scss +2 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_background.scss +4 -17
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_borders.scss +20 -5
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_display.scss +36 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/{_responsive-embed.scss → utilities/_embed.scss} +0 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_flex.scss +0 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_position.scss +5 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss +10 -12
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_text.scss +5 -17
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_visibility.scss +4 -48
- metadata +73 -34
- data/app/assets/stylesheets/spree/backend/shared/_skeleton.scss +0 -242
- data/app/controllers/spree/admin/countries_controller.rb +0 -9
- data/app/controllers/spree/admin/states_controller.rb +0 -29
- data/app/helpers/spree/admin/reimbursements_helper.rb +0 -14
- data/app/views/spree/admin/countries/_form.html.erb +0 -22
- data/app/views/spree/admin/countries/edit.html.erb +0 -19
- data/app/views/spree/admin/countries/index.html.erb +0 -49
- data/app/views/spree/admin/countries/new.html.erb +0 -18
- data/app/views/spree/admin/search/products.rabl +0 -9
- data/app/views/spree/admin/search/users.rabl +0 -30
- data/app/views/spree/admin/shared/_areas_tabs.html.erb +0 -19
- data/app/views/spree/admin/states/_form.html.erb +0 -14
- data/app/views/spree/admin/states/_state_list.html.erb +0 -33
- data/app/views/spree/admin/states/edit.html.erb +0 -19
- data/app/views/spree/admin/states/index.html.erb +0 -39
- data/app/views/spree/admin/states/new.html.erb +0 -17
- data/app/views/spree/admin/style_guide/topics/typography/_tags.html.erb +0 -25
- data/app/views/spree/admin/taxons/search.rabl +0 -5
- data/app/views/spree/admin/variants/new.js.erb +0 -1
- data/spec/features/admin/configuration/countries_spec.rb +0 -22
- data/spec/features/admin/configuration/states_spec.rb +0 -64
- data/spec/helpers/admin/reimbursements_helper_spec.rb +0 -34
- data/vendor/assets/javascripts/solidus_admin/tether.js +0 -1726
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_custom.scss +0 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_normalize.scss +0 -461
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_cards.scss +0 -47
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_transforms.scss +0 -14
@@ -0,0 +1,4 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (C) Federico Zivolo 2017
|
3
|
+
Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
|
4
|
+
*/(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=window.getComputedStyle(e,null);return t?o[t]:o}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e||-1!==['HTML','BODY','#document'].indexOf(e.nodeName))return window.document.body;var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll)/.test(r+s+p)?e:n(o(e))}function r(e){var o=e&&e.offsetParent,i=o&&o.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TD','TABLE'].indexOf(o.nodeName)&&'static'===t(o,'position')?r(o):o:window.document.documentElement}function p(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||r(e.firstElementChild)===e)}function s(e){return null===e.parentNode?e:s(e.parentNode)}function d(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return window.document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:t,n=o?t:e,a=document.createRange();a.setStart(i,0),a.setEnd(n,0);var f=a.commonAncestorContainer;if(e!==f&&t!==f||i.contains(n))return p(f)?f:r(f);var l=s(e);return l.host?d(l.host,t):d(e,s(t).host)}function a(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',i=e.nodeName;if('BODY'===i||'HTML'===i){var n=window.document.documentElement,r=window.document.scrollingElement||n;return r[o]}return e[o]}function f(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=a(t,'top'),n=a(t,'left'),r=o?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=n*r,e.right+=n*r,e}function l(e,t){var o='x'===t?'Left':'Top',i='Left'==o?'Right':'Bottom';return+e['border'+o+'Width'].split('px')[0]+ +e['border'+i+'Width'].split('px')[0]}function m(e,t,o,i){return _(t['offset'+e],o['client'+e],o['offset'+e],ie()?o['offset'+e]+i['margin'+('Height'===e?'Top':'Left')]+i['margin'+('Height'===e?'Bottom':'Right')]:0)}function h(){var e=window.document.body,t=window.document.documentElement,o=ie()&&window.getComputedStyle(t);return{height:m('Height',e,t,o),width:m('Width',e,t,o)}}function c(e){return se({},e,{right:e.left+e.width,bottom:e.top+e.height})}function g(e){var o={};if(ie())try{o=e.getBoundingClientRect();var i=a(e,'top'),n=a(e,'left');o.top+=i,o.left+=n,o.bottom+=i,o.right+=n}catch(e){}else o=e.getBoundingClientRect();var r={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},p='HTML'===e.nodeName?h():{},s=p.width||e.clientWidth||r.right-r.left,d=p.height||e.clientHeight||r.bottom-r.top,f=e.offsetWidth-s,m=e.offsetHeight-d;if(f||m){var g=t(e);f-=l(g,'x'),m-=l(g,'y'),r.width-=f,r.height-=m}return c(r)}function u(e,o){var i=ie(),r='HTML'===o.nodeName,p=g(e),s=g(o),d=n(e),a=t(o),l=+a.borderTopWidth.split('px')[0],m=+a.borderLeftWidth.split('px')[0],h=c({top:p.top-s.top-l,left:p.left-s.left-m,width:p.width,height:p.height});if(h.marginTop=0,h.marginLeft=0,!i&&r){var u=+a.marginTop.split('px')[0],b=+a.marginLeft.split('px')[0];h.top-=l-u,h.bottom-=l-u,h.left-=m-b,h.right-=m-b,h.marginTop=u,h.marginLeft=b}return(i?o.contains(d):o===d&&'BODY'!==d.nodeName)&&(h=f(h,o)),h}function b(e){var t=window.document.documentElement,o=u(e,t),i=_(t.clientWidth,window.innerWidth||0),n=_(t.clientHeight,window.innerHeight||0),r=a(t),p=a(t,'left'),s={top:r-o.top+o.marginTop,left:p-o.left+o.marginLeft,width:i,height:n};return c(s)}function y(e){var i=e.nodeName;return'BODY'===i||'HTML'===i?!1:'fixed'===t(e,'position')||y(o(e))}function w(e,t,i,r){var p={top:0,left:0},s=d(e,t);if('viewport'===r)p=b(s);else{var a;'scrollParent'===r?(a=n(o(e)),'BODY'===a.nodeName&&(a=window.document.documentElement)):'window'===r?a=window.document.documentElement:a=r;var f=u(a,s);if('HTML'===a.nodeName&&!y(s)){var l=h(),m=l.height,c=l.width;p.top+=f.top-f.marginTop,p.bottom=m+f.top,p.left+=f.left-f.marginLeft,p.right=c+f.left}else p=f}return p.left+=i,p.top+=i,p.right-=i,p.bottom-=i,p}function v(e){var t=e.width,o=e.height;return t*o}function E(e,t,o,i,n){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=w(o,i,r,n),s={top:{width:p.width,height:t.top-p.top},right:{width:p.right-t.right,height:p.height},bottom:{width:p.width,height:p.bottom-t.bottom},left:{width:t.left-p.left,height:p.height}},d=Object.keys(s).map(function(e){return se({key:e},s[e],{area:v(s[e])})}).sort(function(e,t){return t.area-e.area}),a=d.filter(function(e){var t=e.width,i=e.height;return t>=o.clientWidth&&i>=o.clientHeight}),f=0<a.length?a[0].key:d[0].key,l=e.split('-')[1];return f+(l?'-'+l:'')}function x(e,t,o){var i=d(t,o);return u(o,i)}function O(e){var t=window.getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight),n={width:e.offsetWidth+i,height:e.offsetHeight+o};return n}function L(e){var t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function S(e,t,o){o=o.split('-')[0];var i=O(e),n={width:i.width,height:i.height},r=-1!==['right','left'].indexOf(o),p=r?'top':'left',s=r?'left':'top',d=r?'height':'width',a=r?'width':'height';return n[p]=t[p]+t[d]/2-i[d]/2,n[s]=o===s?t[s]-i[a]:t[L(s)],n}function T(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function C(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var i=T(e,function(e){return e[t]===o});return e.indexOf(i)}function N(t,o,i){var n=void 0===i?t:t.slice(0,C(t,'name',i));return n.forEach(function(t){t.function&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var i=t.function||t.fn;t.enabled&&e(i)&&(o.offsets.popper=c(o.offsets.popper),o.offsets.reference=c(o.offsets.reference),o=i(o,t))}),o}function k(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=x(this.state,this.popper,this.reference),e.placement=E(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=S(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=N(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some(function(e){var o=e.name,i=e.enabled;return i&&o===t})}function B(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length-1;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof window.document.body.style[r])return r}return null}function D(){return this.state.isDestroyed=!0,W(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[B('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function H(e,t,o,i){var r='BODY'===e.nodeName,p=r?window:e;p.addEventListener(t,o,{passive:!0}),r||H(n(p.parentNode),t,o,i),i.push(p)}function P(e,t,o,i){o.updateBound=i,window.addEventListener('resize',o.updateBound,{passive:!0});var r=n(e);return H(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function A(){this.state.eventsEnabled||(this.state=P(this.reference,this.options,this.state,this.scheduleUpdate))}function M(e,t){return window.removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function I(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=M(this.reference,this.state))}function R(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function U(e,t){Object.keys(t).forEach(function(o){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&R(t[o])&&(i='px'),e.style[o]=t[o]+i})}function Y(e,t){Object.keys(t).forEach(function(o){var i=t[o];!1===i?e.removeAttribute(o):e.setAttribute(o,t[o])})}function F(e,t,o){var i=T(e,function(e){var o=e.name;return o===t}),n=!!i&&e.some(function(e){return e.name===o&&e.enabled&&e.order<i.order});if(!n){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return n}function j(e){return'end'===e?'start':'start'===e?'end':e}function K(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=ae.indexOf(e),i=ae.slice(o+1).concat(ae.slice(0,o));return t?i.reverse():i}function q(e,t,o,i){var n=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+n[1],p=n[2];if(!r)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=i;}var d=c(s);return d[t]/100*r}if('vh'===p||'vw'===p){var a;return a='vh'===p?_(document.documentElement.clientHeight,window.innerHeight||0):_(document.documentElement.clientWidth,window.innerWidth||0),a/100*r}return r}function G(e,t,o,i){var n=[0,0],r=-1!==['right','left'].indexOf(i),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(T(p,function(e){return-1!==e.search(/,|\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var d=/\s*,\s*|\s+/,a=-1===s?[p]:[p.slice(0,s).concat([p[s].split(d)[0]]),[p[s].split(d)[1]].concat(p.slice(s+1))];return a=a.map(function(e,i){var n=(1===i?!r:r)?'height':'width',p=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,p=!0,e):p?(e[e.length-1]+=t,p=!1,e):e.concat(t)},[]).map(function(e){return q(e,n,t,o)})}),a.forEach(function(e,t){e.forEach(function(o,i){R(o)&&(n[t]+=o*('-'===e[i-1]?-1:1))})}),n}for(var z=Math.min,V=Math.floor,_=Math.max,X=['native code','[object MutationObserverConstructor]'],Q=function(e){return X.some(function(t){return-1<(e||'').toString().indexOf(t)})},J='undefined'!=typeof window,Z=['Edge','Trident','Firefox'],$=0,ee=0;ee<Z.length;ee+=1)if(J&&0<=navigator.userAgent.indexOf(Z[ee])){$=1;break}var i,te=J&&Q(window.MutationObserver),oe=te?function(e){var t=!1,o=0,i=document.createElement('span'),n=new MutationObserver(function(){e(),t=!1});return n.observe(i,{attributes:!0}),function(){t||(t=!0,i.setAttribute('x-index',o),++o)}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},$))}},ie=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},ne=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},re=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),pe=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},se=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},de=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],ae=de.slice(3),fe={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},le=function(){function t(o,i){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};ne(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=oe(this.update.bind(this)),this.options=se({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o.jquery?o[0]:o,this.popper=i.jquery?i[0]:i,this.options.modifiers={},Object.keys(se({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){n.options.modifiers[e]=se({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return se({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return re(t,[{key:'update',value:function(){return k.call(this)}},{key:'destroy',value:function(){return D.call(this)}},{key:'enableEventListeners',value:function(){return A.call(this)}},{key:'disableEventListeners',value:function(){return I.call(this)}}]),t}();return le.Utils=('undefined'==typeof window?global:window).PopperUtils,le.placements=de,le.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],i=t.split('-')[1];if(i){var n=e.offsets,r=n.reference,p=n.popper,s=-1!==['bottom','top'].indexOf(o),d=s?'left':'top',a=s?'width':'height',f={start:pe({},d,r[d]),end:pe({},d,r[d]+r[a]-p[a])};e.offsets.popper=se({},p,f[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var o,i=t.offset,n=e.placement,r=e.offsets,p=r.popper,s=r.reference,d=n.split('-')[0];return o=R(+i)?[+i,0]:G(i,p,s,d),'left'===d?(p.top+=o[0],p.left-=o[1]):'right'===d?(p.top+=o[0],p.left+=o[1]):'top'===d?(p.left+=o[0],p.top-=o[1]):'bottom'===d&&(p.left+=o[0],p.top+=o[1]),e.popper=p,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||r(e.instance.popper);e.instance.reference===o&&(o=r(o));var i=w(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=i;var n=t.priority,p=e.offsets.popper,s={primary:function(e){var o=p[e];return p[e]<i[e]&&!t.escapeWithReference&&(o=_(p[e],i[e])),pe({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=p[o];return p[e]>i[e]&&!t.escapeWithReference&&(n=z(p[o],i[e]-('right'===e?p.width:p.height))),pe({},o,n)}};return n.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';p=se({},p,s[t](e))}),e.offsets.popper=p,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,i=t.reference,n=e.placement.split('-')[0],r=V,p=-1!==['top','bottom'].indexOf(n),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]<r(i[d])&&(e.offsets.popper[d]=r(i[d])-o[a]),o[d]>r(i[s])&&(e.offsets.popper[d]=r(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(!F(e.instance.modifiers,'arrow','keepTogether'))return e;var o=t.element;if('string'==typeof o){if(o=e.instance.popper.querySelector(o),!o)return e;}else if(!e.instance.popper.contains(o))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var i=e.placement.split('-')[0],n=e.offsets,r=n.popper,p=n.reference,s=-1!==['left','right'].indexOf(i),d=s?'height':'width',a=s?'top':'left',f=s?'left':'top',l=s?'bottom':'right',m=O(o)[d];p[l]-m<r[a]&&(e.offsets.popper[a]-=r[a]-(p[l]-m)),p[a]+m>r[l]&&(e.offsets.popper[a]+=p[a]+m-r[l]);var h=p[a]+p[d]/2-m/2,g=h-c(e.offsets.popper)[a];return g=_(z(r[d]-m,g),0),e.arrowElement=o,e.offsets.arrow={},e.offsets.arrow[a]=Math.round(g),e.offsets.arrow[f]='',e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=w(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],n=L(i),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case fe.FLIP:p=[i,n];break;case fe.CLOCKWISE:p=K(i);break;case fe.COUNTERCLOCKWISE:p=K(i,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(i!==s||p.length===d+1)return e;i=e.placement.split('-')[0],n=L(i);var a=e.offsets.popper,f=e.offsets.reference,l=V,m='left'===i&&l(a.right)>l(f.left)||'right'===i&&l(a.left)<l(f.right)||'top'===i&&l(a.bottom)>l(f.top)||'bottom'===i&&l(a.top)<l(f.bottom),h=l(a.left)<l(o.left),c=l(a.right)>l(o.right),g=l(a.top)<l(o.top),u=l(a.bottom)>l(o.bottom),b='left'===i&&h||'right'===i&&c||'top'===i&&g||'bottom'===i&&u,y=-1!==['top','bottom'].indexOf(i),w=!!t.flipVariations&&(y&&'start'===r&&h||y&&'end'===r&&c||!y&&'start'===r&&g||!y&&'end'===r&&u);(m||b||w)&&(e.flipped=!0,(m||b)&&(i=p[d+1]),w&&(r=j(r)),e.placement=i+(r?'-'+r:''),e.offsets.popper=se({},e.offsets.popper,S(e.instance.popper,e.offsets.reference,e.placement)),e=N(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],i=e.offsets,n=i.popper,r=i.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return n[p?'left':'top']=r[t]-(s?n[p?'width':'height']:0),e.placement=L(t),e.offsets.popper=c(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(!F(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=T(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,i=t.y,n=e.offsets.popper,p=T(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==p&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,d,a=void 0===p?t.gpuAcceleration:p,f=r(e.instance.popper),l=g(f),m={position:n.position},h={left:V(n.left),top:V(n.top),bottom:V(n.bottom),right:V(n.right)},c='bottom'===o?'top':'bottom',u='right'===i?'left':'right',b=B('transform');if(d='bottom'==c?-l.height+h.bottom:h.top,s='right'==u?-l.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[u]=0,m.willChange='transform';else{var y='bottom'==c?-1:1,w='right'==u?-1:1;m[c]=d*y,m[u]=s*w,m.willChange=c+', '+u}var v={"x-placement":e.placement};return e.attributes=se({},v,e.attributes),e.styles=se({},m,e.styles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return U(e.instance.popper,e.styles),Y(e.instance.popper,e.attributes),e.offsets.arrow&&U(e.arrowElement,e.offsets.arrow),e},onLoad:function(e,t,o,i,n){var r=x(n,t,e),p=E(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),U(t,{position:'absolute'}),o},gpuAcceleration:void 0}}},le});
|
@@ -41,15 +41,8 @@
|
|
41
41
|
//
|
42
42
|
// Generate contextual modifier classes for colorizing the alert.
|
43
43
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
@include alert-variant($alert-info-bg, $alert-info-border, $alert-info-text);
|
49
|
-
}
|
50
|
-
.alert-warning {
|
51
|
-
@include alert-variant($alert-warning-bg, $alert-warning-border, $alert-warning-text);
|
52
|
-
}
|
53
|
-
.alert-danger {
|
54
|
-
@include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text);
|
44
|
+
@each $color, $value in $theme-colors {
|
45
|
+
.alert-#{$color} {
|
46
|
+
@include alert-variant(theme-color-level($color, -10), theme-color-level($color, -9), theme-color-level($color, 6));
|
47
|
+
}
|
55
48
|
}
|
@@ -27,17 +27,6 @@
|
|
27
27
|
top: -1px;
|
28
28
|
}
|
29
29
|
|
30
|
-
// scss-lint:disable QualifyingElement
|
31
|
-
// Add hover effects, but only for links
|
32
|
-
a.badge {
|
33
|
-
@include hover-focus {
|
34
|
-
color: $badge-link-hover-color;
|
35
|
-
text-decoration: none;
|
36
|
-
cursor: pointer;
|
37
|
-
}
|
38
|
-
}
|
39
|
-
// scss-lint:enable QualifyingElement
|
40
|
-
|
41
30
|
// Pill badges
|
42
31
|
//
|
43
32
|
// Make them extra rounded with a modifier to replace v3's badges.
|
@@ -52,26 +41,8 @@ a.badge {
|
|
52
41
|
//
|
53
42
|
// Contextual variations (linked badges get darker on :hover).
|
54
43
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
.badge-primary {
|
60
|
-
@include badge-variant($badge-primary-bg);
|
61
|
-
}
|
62
|
-
|
63
|
-
.badge-success {
|
64
|
-
@include badge-variant($badge-success-bg);
|
65
|
-
}
|
66
|
-
|
67
|
-
.badge-info {
|
68
|
-
@include badge-variant($badge-info-bg);
|
69
|
-
}
|
70
|
-
|
71
|
-
.badge-warning {
|
72
|
-
@include badge-variant($badge-warning-bg);
|
73
|
-
}
|
74
|
-
|
75
|
-
.badge-danger {
|
76
|
-
@include badge-variant($badge-danger-bg);
|
44
|
+
@each $color, $value in $theme-colors {
|
45
|
+
.badge-#{$color} {
|
46
|
+
@include badge-variant($value);
|
47
|
+
}
|
77
48
|
}
|
@@ -10,8 +10,9 @@
|
|
10
10
|
> .btn {
|
11
11
|
position: relative;
|
12
12
|
flex: 0 1 auto;
|
13
|
+
margin-bottom: 0;
|
13
14
|
|
14
|
-
// Bring the hover, focused, and "active" buttons to the
|
15
|
+
// Bring the hover, focused, and "active" buttons to the front to overlay
|
15
16
|
// the borders properly
|
16
17
|
@include hover {
|
17
18
|
z-index: 2;
|
@@ -35,6 +36,7 @@
|
|
35
36
|
// Optional: Group multiple button groups together for a toolbar
|
36
37
|
.btn-toolbar {
|
37
38
|
display: flex;
|
39
|
+
flex-wrap: wrap;
|
38
40
|
justify-content: flex-start;
|
39
41
|
|
40
42
|
.input-group {
|
@@ -77,12 +79,6 @@
|
|
77
79
|
@include border-left-radius(0);
|
78
80
|
}
|
79
81
|
|
80
|
-
// On active and open, don't show outline
|
81
|
-
.btn-group .dropdown-toggle:active,
|
82
|
-
.btn-group.open .dropdown-toggle {
|
83
|
-
outline: 0;
|
84
|
-
}
|
85
|
-
|
86
82
|
|
87
83
|
// Sizing
|
88
84
|
//
|
@@ -97,8 +93,8 @@
|
|
97
93
|
//
|
98
94
|
|
99
95
|
.btn + .dropdown-toggle-split {
|
100
|
-
padding-right: $btn-padding-x * .75;
|
101
|
-
padding-left: $btn-padding-x * .75;
|
96
|
+
padding-right: $input-btn-padding-x * .75;
|
97
|
+
padding-left: $input-btn-padding-x * .75;
|
102
98
|
|
103
99
|
&::after {
|
104
100
|
margin-left: 0;
|
@@ -106,19 +102,19 @@
|
|
106
102
|
}
|
107
103
|
|
108
104
|
.btn-sm + .dropdown-toggle-split {
|
109
|
-
padding-right: $btn-padding-x-sm * .75;
|
110
|
-
padding-left: $btn-padding-x-sm * .75;
|
105
|
+
padding-right: $input-btn-padding-x-sm * .75;
|
106
|
+
padding-left: $input-btn-padding-x-sm * .75;
|
111
107
|
}
|
112
108
|
|
113
109
|
.btn-lg + .dropdown-toggle-split {
|
114
|
-
padding-right: $btn-padding-x-lg * .75;
|
115
|
-
padding-left: $btn-padding-x-lg * .75;
|
110
|
+
padding-right: $input-btn-padding-x-lg * .75;
|
111
|
+
padding-left: $input-btn-padding-x-lg * .75;
|
116
112
|
}
|
117
113
|
|
118
114
|
|
119
115
|
// The clickable button for toggling the menu
|
120
|
-
//
|
121
|
-
.btn-group.
|
116
|
+
// Set the same inset shadow as the :active state
|
117
|
+
.btn-group.show .dropdown-toggle {
|
122
118
|
@include box-shadow($btn-active-box-shadow);
|
123
119
|
|
124
120
|
// Show no shadow for `.btn-link` since it has no other button styles.
|
@@ -7,13 +7,12 @@
|
|
7
7
|
.btn {
|
8
8
|
display: inline-block;
|
9
9
|
font-weight: $btn-font-weight;
|
10
|
-
line-height: $btn-line-height;
|
11
10
|
text-align: center;
|
12
11
|
white-space: nowrap;
|
13
12
|
vertical-align: middle;
|
14
13
|
user-select: none;
|
15
14
|
border: $input-btn-border-width solid transparent;
|
16
|
-
@include button-size($btn-padding-y, $btn-padding-x, $font-size-base, $btn-border-radius);
|
15
|
+
@include button-size($input-btn-padding-y, $input-btn-padding-x, $font-size-base, $input-btn-line-height, $btn-border-radius);
|
17
16
|
@include transition($btn-transition);
|
18
17
|
|
19
18
|
// Share hover and focus styles
|
@@ -29,7 +28,6 @@
|
|
29
28
|
// Disabled comes first so active can properly restyle
|
30
29
|
&.disabled,
|
31
30
|
&:disabled {
|
32
|
-
cursor: $cursor-disabled;
|
33
31
|
opacity: .65;
|
34
32
|
@include box-shadow(none);
|
35
33
|
}
|
@@ -52,43 +50,16 @@ fieldset[disabled] a.btn {
|
|
52
50
|
// Alternate buttons
|
53
51
|
//
|
54
52
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
@include button-variant($btn-secondary-color, $btn-secondary-bg, $btn-secondary-border);
|
60
|
-
}
|
61
|
-
.btn-info {
|
62
|
-
@include button-variant($btn-info-color, $btn-info-bg, $btn-info-border);
|
63
|
-
}
|
64
|
-
.btn-success {
|
65
|
-
@include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
|
66
|
-
}
|
67
|
-
.btn-warning {
|
68
|
-
@include button-variant($btn-warning-color, $btn-warning-bg, $btn-warning-border);
|
69
|
-
}
|
70
|
-
.btn-danger {
|
71
|
-
@include button-variant($btn-danger-color, $btn-danger-bg, $btn-danger-border);
|
53
|
+
@each $color, $value in $theme-colors {
|
54
|
+
.btn-#{$color} {
|
55
|
+
@include button-variant($value, $value);
|
56
|
+
}
|
72
57
|
}
|
73
58
|
|
74
|
-
|
75
|
-
.btn-outline
|
76
|
-
|
77
|
-
}
|
78
|
-
.btn-outline-secondary {
|
79
|
-
@include button-outline-variant($btn-secondary-border);
|
80
|
-
}
|
81
|
-
.btn-outline-info {
|
82
|
-
@include button-outline-variant($btn-info-bg);
|
83
|
-
}
|
84
|
-
.btn-outline-success {
|
85
|
-
@include button-outline-variant($btn-success-bg);
|
86
|
-
}
|
87
|
-
.btn-outline-warning {
|
88
|
-
@include button-outline-variant($btn-warning-bg);
|
89
|
-
}
|
90
|
-
.btn-outline-danger {
|
91
|
-
@include button-outline-variant($btn-danger-bg);
|
59
|
+
@each $color, $value in $theme-colors {
|
60
|
+
.btn-outline-#{$color} {
|
61
|
+
@include button-outline-variant($value, #fff);
|
62
|
+
}
|
92
63
|
}
|
93
64
|
|
94
65
|
|
@@ -113,6 +84,7 @@ fieldset[disabled] a.btn {
|
|
113
84
|
&:focus,
|
114
85
|
&:active {
|
115
86
|
border-color: transparent;
|
87
|
+
box-shadow: none;
|
116
88
|
}
|
117
89
|
@include hover {
|
118
90
|
border-color: transparent;
|
@@ -137,12 +109,11 @@ fieldset[disabled] a.btn {
|
|
137
109
|
//
|
138
110
|
|
139
111
|
.btn-lg {
|
140
|
-
|
141
|
-
@include button-size($btn-padding-y-lg, $btn-padding-x-lg, $font-size-lg, $btn-border-radius-lg);
|
112
|
+
@include button-size($input-btn-padding-y-lg, $input-btn-padding-x-lg, $font-size-lg, $line-height-lg, $btn-border-radius-lg);
|
142
113
|
}
|
114
|
+
|
143
115
|
.btn-sm {
|
144
|
-
|
145
|
-
@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $font-size-sm, $btn-border-radius-sm);
|
116
|
+
@include button-size($input-btn-padding-y-sm, $input-btn-padding-x-sm, $font-size-sm, $line-height-sm, $btn-border-radius-sm);
|
146
117
|
}
|
147
118
|
|
148
119
|
|
@@ -6,12 +6,15 @@
|
|
6
6
|
position: relative;
|
7
7
|
display: flex;
|
8
8
|
flex-direction: column;
|
9
|
+
min-width: 0;
|
10
|
+
word-wrap: break-word;
|
9
11
|
background-color: $card-bg;
|
12
|
+
background-clip: border-box;
|
10
13
|
border: $card-border-width solid $card-border-color;
|
11
14
|
@include border-radius($card-border-radius);
|
12
15
|
}
|
13
16
|
|
14
|
-
.card-
|
17
|
+
.card-body {
|
15
18
|
// Enable `flex-grow: 1` for decks and groups so that card blocks take up
|
16
19
|
// as much space as possible, ensuring footers are aligned to the bottom.
|
17
20
|
flex: 1 1 auto;
|
@@ -67,7 +70,7 @@
|
|
67
70
|
border-bottom: $card-border-width solid $card-border-color;
|
68
71
|
|
69
72
|
&:first-child {
|
70
|
-
@include border-radius($card-border-radius
|
73
|
+
@include border-radius($card-inner-border-radius $card-inner-border-radius 0 0);
|
71
74
|
}
|
72
75
|
}
|
73
76
|
|
@@ -77,7 +80,7 @@
|
|
77
80
|
border-top: $card-border-width solid $card-border-color;
|
78
81
|
|
79
82
|
&:last-child {
|
80
|
-
@include border-radius(0 0 $card-border-radius
|
83
|
+
@include border-radius(0 0 $card-inner-border-radius $card-inner-border-radius);
|
81
84
|
}
|
82
85
|
}
|
83
86
|
|
@@ -98,70 +101,7 @@
|
|
98
101
|
margin-left: -($card-spacer-x / 2);
|
99
102
|
}
|
100
103
|
|
101
|
-
|
102
|
-
//
|
103
|
-
// Background variations
|
104
|
-
//
|
105
|
-
|
106
|
-
.card-primary {
|
107
|
-
@include card-variant($brand-primary, $brand-primary);
|
108
|
-
}
|
109
|
-
.card-success {
|
110
|
-
@include card-variant($brand-success, $brand-success);
|
111
|
-
}
|
112
|
-
.card-info {
|
113
|
-
@include card-variant($brand-info, $brand-info);
|
114
|
-
}
|
115
|
-
.card-warning {
|
116
|
-
@include card-variant($brand-warning, $brand-warning);
|
117
|
-
}
|
118
|
-
.card-danger {
|
119
|
-
@include card-variant($brand-danger, $brand-danger);
|
120
|
-
}
|
121
|
-
|
122
|
-
// Remove all backgrounds
|
123
|
-
.card-outline-primary {
|
124
|
-
@include card-outline-variant($btn-primary-bg);
|
125
|
-
}
|
126
|
-
.card-outline-secondary {
|
127
|
-
@include card-outline-variant($btn-secondary-border);
|
128
|
-
}
|
129
|
-
.card-outline-info {
|
130
|
-
@include card-outline-variant($btn-info-bg);
|
131
|
-
}
|
132
|
-
.card-outline-success {
|
133
|
-
@include card-outline-variant($btn-success-bg);
|
134
|
-
}
|
135
|
-
.card-outline-warning {
|
136
|
-
@include card-outline-variant($btn-warning-bg);
|
137
|
-
}
|
138
|
-
.card-outline-danger {
|
139
|
-
@include card-outline-variant($btn-danger-bg);
|
140
|
-
}
|
141
|
-
|
142
|
-
//
|
143
|
-
// Inverse text within a card for use with dark backgrounds
|
144
|
-
//
|
145
|
-
|
146
|
-
.card-inverse {
|
147
|
-
@include card-inverse;
|
148
|
-
}
|
149
|
-
|
150
|
-
//
|
151
|
-
// Blockquote
|
152
|
-
//
|
153
|
-
|
154
|
-
.card-blockquote {
|
155
|
-
padding: 0;
|
156
|
-
margin-bottom: 0;
|
157
|
-
border-left: 0;
|
158
|
-
}
|
159
|
-
|
160
104
|
// Card image
|
161
|
-
.card-img {
|
162
|
-
// margin: -1.325rem;
|
163
|
-
@include border-radius($card-border-radius-inner);
|
164
|
-
}
|
165
105
|
.card-img-overlay {
|
166
106
|
position: absolute;
|
167
107
|
top: 0;
|
@@ -171,14 +111,20 @@
|
|
171
111
|
padding: $card-img-overlay-padding;
|
172
112
|
}
|
173
113
|
|
174
|
-
|
114
|
+
.card-img {
|
115
|
+
width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
|
116
|
+
@include border-radius($card-inner-border-radius);
|
117
|
+
}
|
175
118
|
|
176
119
|
// Card image caps
|
177
120
|
.card-img-top {
|
178
|
-
|
121
|
+
width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
|
122
|
+
@include border-top-radius($card-inner-border-radius);
|
179
123
|
}
|
124
|
+
|
180
125
|
.card-img-bottom {
|
181
|
-
|
126
|
+
width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
|
127
|
+
@include border-bottom-radius($card-inner-border-radius);
|
182
128
|
}
|
183
129
|
|
184
130
|
|
@@ -188,17 +134,15 @@
|
|
188
134
|
.card-deck {
|
189
135
|
display: flex;
|
190
136
|
flex-flow: row wrap;
|
137
|
+
margin-right: -$card-deck-margin;
|
138
|
+
margin-left: -$card-deck-margin;
|
191
139
|
|
192
140
|
.card {
|
193
141
|
display: flex;
|
194
|
-
flex: 1 0 0
|
142
|
+
flex: 1 0 0%;
|
195
143
|
flex-direction: column;
|
196
|
-
|
197
|
-
|
198
|
-
// negative margin dance like our grid. This differs from the grid
|
199
|
-
// due to the use of margins as gutters instead of padding.
|
200
|
-
&:not(:first-child) { margin-left: $card-deck-margin; }
|
201
|
-
&:not(:last-child) { margin-right: $card-deck-margin; }
|
144
|
+
margin-right: $card-deck-margin;
|
145
|
+
margin-left: $card-deck-margin;
|
202
146
|
}
|
203
147
|
}
|
204
148
|
}
|
@@ -214,7 +158,7 @@
|
|
214
158
|
flex-flow: row wrap;
|
215
159
|
|
216
160
|
.card {
|
217
|
-
flex: 1 0 0
|
161
|
+
flex: 1 0 0%;
|
218
162
|
|
219
163
|
+ .card {
|
220
164
|
margin-left: 0;
|
@@ -262,15 +206,18 @@
|
|
262
206
|
// Columns
|
263
207
|
//
|
264
208
|
|
265
|
-
|
266
|
-
.card
|
209
|
+
.card-columns {
|
210
|
+
.card {
|
211
|
+
margin-bottom: $card-columns-margin;
|
212
|
+
}
|
213
|
+
|
214
|
+
@include media-breakpoint-up(sm) {
|
267
215
|
column-count: $card-columns-count;
|
268
216
|
column-gap: $card-columns-gap;
|
269
217
|
|
270
218
|
.card {
|
271
219
|
display: inline-block; // Don't let them vertically span multiple columns
|
272
220
|
width: 100%; // Don't let their width change
|
273
|
-
margin-bottom: $card-columns-margin;
|
274
221
|
}
|
275
222
|
}
|
276
223
|
}
|
@@ -12,19 +12,17 @@
|
|
12
12
|
.carousel-item {
|
13
13
|
position: relative;
|
14
14
|
display: none;
|
15
|
+
align-items: center;
|
15
16
|
width: 100%;
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
backface-visibility: hidden;
|
20
|
-
perspective: 1000px;
|
21
|
-
}
|
17
|
+
@include transition($carousel-transition);
|
18
|
+
backface-visibility: hidden;
|
19
|
+
perspective: 1000px;
|
22
20
|
}
|
23
21
|
|
24
22
|
.carousel-item.active,
|
25
23
|
.carousel-item-next,
|
26
24
|
.carousel-item-prev {
|
27
|
-
display:
|
25
|
+
display: block;
|
28
26
|
}
|
29
27
|
|
30
28
|
.carousel-item-next,
|
@@ -34,19 +32,29 @@
|
|
34
32
|
}
|
35
33
|
|
36
34
|
// CSS3 transforms when supported by the browser
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
.carousel-item-next.carousel-item-left,
|
36
|
+
.carousel-item-prev.carousel-item-right {
|
37
|
+
transform: translateX(0);
|
38
|
+
|
39
|
+
@supports (transform-style: preserve-3d) {
|
40
40
|
transform: translate3d(0, 0, 0);
|
41
41
|
}
|
42
|
+
}
|
42
43
|
|
43
|
-
|
44
|
-
|
44
|
+
.carousel-item-next,
|
45
|
+
.active.carousel-item-right {
|
46
|
+
transform: translateX(100%);
|
47
|
+
|
48
|
+
@supports (transform-style: preserve-3d) {
|
45
49
|
transform: translate3d(100%, 0, 0);
|
46
50
|
}
|
51
|
+
}
|
52
|
+
|
53
|
+
.carousel-item-prev,
|
54
|
+
.active.carousel-item-left {
|
55
|
+
transform: translateX(-100%);
|
47
56
|
|
48
|
-
|
49
|
-
.active.carousel-item-left {
|
57
|
+
@supports (transform-style: preserve-3d) {
|
50
58
|
transform: translate3d(-100%, 0, 0);
|
51
59
|
}
|
52
60
|
}
|
@@ -125,13 +133,12 @@
|
|
125
133
|
|
126
134
|
li {
|
127
135
|
position: relative;
|
128
|
-
flex: 1
|
129
|
-
|
136
|
+
flex: 0 1 auto;
|
137
|
+
width: $carousel-indicator-width;
|
130
138
|
height: $carousel-indicator-height;
|
131
139
|
margin-right: $carousel-indicator-spacer;
|
132
140
|
margin-left: $carousel-indicator-spacer;
|
133
141
|
text-indent: -999px;
|
134
|
-
cursor: pointer;
|
135
142
|
background-color: rgba($carousel-indicator-active-bg, .5);
|
136
143
|
|
137
144
|
// Use pseudo classes to increase the hit area by 10px on top and bottom.
|
@@ -10,7 +10,6 @@
|
|
10
10
|
@include hover-focus {
|
11
11
|
color: $close-color;
|
12
12
|
text-decoration: none;
|
13
|
-
cursor: pointer;
|
14
13
|
opacity: .75;
|
15
14
|
}
|
16
15
|
}
|
@@ -23,7 +22,6 @@
|
|
23
22
|
// scss-lint:disable QualifyingElement
|
24
23
|
button.close {
|
25
24
|
padding: 0;
|
26
|
-
cursor: pointer;
|
27
25
|
background: transparent;
|
28
26
|
border: 0;
|
29
27
|
-webkit-appearance: none;
|