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
@@ -22,22 +22,16 @@ html {
|
|
22
22
|
box-sizing: inherit;
|
23
23
|
}
|
24
24
|
|
25
|
-
|
26
|
-
//
|
27
|
-
// Variables
|
28
|
-
//
|
29
|
-
|
25
|
+
@import "functions";
|
30
26
|
@import "variables";
|
31
27
|
|
32
28
|
//
|
33
29
|
// Grid mixins
|
34
30
|
//
|
35
31
|
|
36
|
-
@import "mixins/clearfix";
|
37
32
|
@import "mixins/breakpoints";
|
38
33
|
@import "mixins/grid-framework";
|
39
34
|
@import "mixins/grid";
|
40
35
|
|
41
|
-
@import "custom";
|
42
|
-
|
43
36
|
@import "grid";
|
37
|
+
@import "utilities/flex";
|
@@ -1,20 +1,14 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap v4.0.0-
|
2
|
+
* Bootstrap v4.0.0-beta (https://getbootstrap.com)
|
3
3
|
* Copyright 2011-2017 The Bootstrap Authors
|
4
4
|
* Copyright 2011-2017 Twitter, Inc.
|
5
5
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
6
6
|
*/
|
7
7
|
|
8
|
-
|
8
|
+
@import "functions";
|
9
9
|
@import "variables";
|
10
10
|
@import "mixins";
|
11
|
-
@import "custom";
|
12
|
-
|
13
|
-
// Reset and dependencies
|
14
|
-
@import "normalize";
|
15
11
|
@import "print";
|
16
|
-
|
17
|
-
// Core CSS
|
18
12
|
@import "reboot";
|
19
13
|
@import "type";
|
20
14
|
@import "images";
|
@@ -23,8 +17,6 @@
|
|
23
17
|
@import "tables";
|
24
18
|
@import "forms";
|
25
19
|
@import "buttons";
|
26
|
-
|
27
|
-
// Components
|
28
20
|
@import "transitions";
|
29
21
|
@import "dropdown";
|
30
22
|
@import "button-group";
|
@@ -41,14 +33,9 @@
|
|
41
33
|
@import "progress";
|
42
34
|
@import "media";
|
43
35
|
@import "list-group";
|
44
|
-
@import "responsive-embed";
|
45
36
|
@import "close";
|
46
|
-
|
47
|
-
// Components w/ JavaScript
|
48
37
|
@import "modal";
|
49
38
|
@import "tooltip";
|
50
39
|
@import "popover";
|
51
40
|
@import "carousel";
|
52
|
-
|
53
|
-
// Utility classes
|
54
41
|
@import "utilities";
|
@@ -1,14 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
@mixin alert-variant($background, $border, $body-color) {
|
1
|
+
@mixin alert-variant($background, $border, $color) {
|
2
|
+
color: $color;
|
4
3
|
background-color: $background;
|
5
4
|
border-color: $border;
|
6
|
-
color: $body-color;
|
7
5
|
|
8
6
|
hr {
|
9
7
|
border-top-color: darken($border, 5%);
|
10
8
|
}
|
9
|
+
|
11
10
|
.alert-link {
|
12
|
-
color: darken($
|
11
|
+
color: darken($color, 10%);
|
13
12
|
}
|
14
13
|
}
|
@@ -1,11 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
background-color: $color;
|
1
|
+
@mixin badge-variant($bg) {
|
2
|
+
@include color-yiq($bg);
|
3
|
+
background-color: $bg;
|
5
4
|
|
6
5
|
&[href] {
|
7
6
|
@include hover-focus {
|
8
|
-
|
7
|
+
@include color-yiq($bg);
|
8
|
+
text-decoration: none;
|
9
|
+
background-color: darken($bg, 10%);
|
9
10
|
}
|
10
11
|
}
|
11
12
|
}
|
@@ -8,15 +8,15 @@
|
|
8
8
|
|
9
9
|
@mixin border-top-radius($radius) {
|
10
10
|
@if $enable-rounded {
|
11
|
-
border-top-right-radius: $radius;
|
12
11
|
border-top-left-radius: $radius;
|
12
|
+
border-top-right-radius: $radius;
|
13
13
|
}
|
14
14
|
}
|
15
15
|
|
16
16
|
@mixin border-right-radius($radius) {
|
17
17
|
@if $enable-rounded {
|
18
|
-
border-bottom-right-radius: $radius;
|
19
18
|
border-top-right-radius: $radius;
|
19
|
+
border-bottom-right-radius: $radius;
|
20
20
|
}
|
21
21
|
}
|
22
22
|
|
@@ -29,7 +29,7 @@
|
|
29
29
|
|
30
30
|
@mixin border-left-radius($radius) {
|
31
31
|
@if $enable-rounded {
|
32
|
-
border-bottom-left-radius: $radius;
|
33
32
|
border-top-left-radius: $radius;
|
33
|
+
border-bottom-left-radius: $radius;
|
34
34
|
}
|
35
35
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
//
|
3
3
|
// Breakpoints are defined as a map of (name: minimum width), order from small to large:
|
4
4
|
//
|
5
|
-
// (xs: 0, sm: 576px, md: 768px)
|
5
|
+
// (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)
|
6
6
|
//
|
7
7
|
// The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
|
8
8
|
|
@@ -10,9 +10,9 @@
|
|
10
10
|
//
|
11
11
|
// >> breakpoint-next(sm)
|
12
12
|
// md
|
13
|
-
// >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px))
|
13
|
+
// >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
14
14
|
// md
|
15
|
-
// >> breakpoint-next(sm, $breakpoint-names: (xs sm md))
|
15
|
+
// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
|
16
16
|
// md
|
17
17
|
@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
|
18
18
|
$n: index($breakpoint-names, $name);
|
@@ -21,7 +21,7 @@
|
|
21
21
|
|
22
22
|
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
23
23
|
//
|
24
|
-
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px))
|
24
|
+
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
25
25
|
// 576px
|
26
26
|
@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
|
27
27
|
$min: map-get($breakpoints, $name);
|
@@ -31,7 +31,7 @@
|
|
31
31
|
// Maximum breakpoint width. Null for the largest (last) breakpoint.
|
32
32
|
// The maximum value is calculated as the minimum of the next one less 0.1.
|
33
33
|
//
|
34
|
-
// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px))
|
34
|
+
// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
35
35
|
// 767px
|
36
36
|
@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
|
37
37
|
$next: breakpoint-next($name, $breakpoints);
|
@@ -41,9 +41,9 @@
|
|
41
41
|
// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.
|
42
42
|
// Useful for making responsive utilities.
|
43
43
|
//
|
44
|
-
// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px))
|
44
|
+
// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
45
45
|
// "" (Returns a blank string)
|
46
|
-
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px))
|
46
|
+
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
47
47
|
// "-sm"
|
48
48
|
@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
|
49
49
|
@return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
|
@@ -78,10 +78,11 @@
|
|
78
78
|
// Media that spans multiple breakpoint widths.
|
79
79
|
// Makes the @content apply between the min and max breakpoints
|
80
80
|
@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
81
|
+
$min: breakpoint-min($lower, $breakpoints);
|
82
|
+
$max: breakpoint-max($upper, $breakpoints);
|
83
|
+
|
84
|
+
@media (min-width: $min) and (max-width: $max) {
|
85
|
+
@content;
|
85
86
|
}
|
86
87
|
}
|
87
88
|
|
@@ -89,7 +90,16 @@
|
|
89
90
|
// No minimum for the smallest breakpoint, and no maximum for the largest one.
|
90
91
|
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
|
91
92
|
@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
|
92
|
-
|
93
|
-
|
93
|
+
$min: breakpoint-min($name, $breakpoints);
|
94
|
+
$max: breakpoint-max($name, $breakpoints);
|
95
|
+
|
96
|
+
@if $min != null and $max != null {
|
97
|
+
@media (min-width: $min) and (max-width: $max) {
|
98
|
+
@content;
|
99
|
+
}
|
100
|
+
} @else if $max == null {
|
101
|
+
@include media-breakpoint-up($name)
|
102
|
+
} @else if $min == null {
|
103
|
+
@include media-breakpoint-down($name)
|
94
104
|
}
|
95
105
|
}
|
@@ -3,28 +3,25 @@
|
|
3
3
|
// Easily pump out default styles, as well as :hover, :focus, :active,
|
4
4
|
// and disabled options for all buttons
|
5
5
|
|
6
|
-
@mixin button-variant($
|
7
|
-
|
8
|
-
$active-border: darken($border, 12%);
|
9
|
-
|
10
|
-
color: $color;
|
6
|
+
@mixin button-variant($background, $border, $active-background: darken($background, 7.5%), $active-border: darken($border, 10%)) {
|
7
|
+
@include color-yiq($background);
|
11
8
|
background-color: $background;
|
12
9
|
border-color: $border;
|
13
10
|
@include box-shadow($btn-box-shadow);
|
14
11
|
|
15
|
-
|
16
|
-
|
17
|
-
color: $color;
|
12
|
+
&:hover {
|
13
|
+
@include color-yiq($background);
|
18
14
|
background-color: $active-background;
|
19
15
|
border-color: $active-border;
|
20
16
|
}
|
17
|
+
|
21
18
|
&:focus,
|
22
19
|
&.focus {
|
23
20
|
// Avoid using mixin so we can pass custom focus shadow properly
|
24
21
|
@if $enable-shadows {
|
25
|
-
box-shadow: $btn-box-shadow, 0 0 0
|
22
|
+
box-shadow: $btn-box-shadow, 0 0 0 3px rgba($border, .5);
|
26
23
|
} @else {
|
27
|
-
box-shadow: 0 0 0
|
24
|
+
box-shadow: 0 0 0 3px rgba($border, .5);
|
28
25
|
}
|
29
26
|
}
|
30
27
|
|
@@ -38,7 +35,6 @@
|
|
38
35
|
&:active,
|
39
36
|
&.active,
|
40
37
|
.show > &.dropdown-toggle {
|
41
|
-
color: $color;
|
42
38
|
background-color: $active-background;
|
43
39
|
background-image: none; // Remove the gradient for the pressed/active state
|
44
40
|
border-color: $active-border;
|
@@ -48,8 +44,8 @@
|
|
48
44
|
|
49
45
|
@mixin button-outline-variant($color, $color-hover: #fff) {
|
50
46
|
color: $color;
|
51
|
-
background-image: none;
|
52
47
|
background-color: transparent;
|
48
|
+
background-image: none;
|
53
49
|
border-color: $color;
|
54
50
|
|
55
51
|
@include hover {
|
@@ -60,7 +56,7 @@
|
|
60
56
|
|
61
57
|
&:focus,
|
62
58
|
&.focus {
|
63
|
-
box-shadow: 0 0 0
|
59
|
+
box-shadow: 0 0 0 3px rgba($color, .5);
|
64
60
|
}
|
65
61
|
|
66
62
|
&.disabled,
|
@@ -79,8 +75,9 @@
|
|
79
75
|
}
|
80
76
|
|
81
77
|
// Button sizes
|
82
|
-
@mixin button-size($padding-y, $padding-x, $font-size, $border-radius) {
|
78
|
+
@mixin button-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
|
83
79
|
padding: $padding-y $padding-x;
|
84
80
|
font-size: $font-size;
|
81
|
+
line-height: $line-height;
|
85
82
|
@include border-radius($border-radius);
|
86
83
|
}
|
@@ -1,39 +1,7 @@
|
|
1
|
-
// Form validation states
|
2
|
-
//
|
3
|
-
// Used in _forms.scss to generate the form validation CSS for warnings, errors,
|
4
|
-
// and successes.
|
5
|
-
|
6
|
-
@mixin form-control-validation($color) {
|
7
|
-
// Color the label and help text
|
8
|
-
.form-control-feedback,
|
9
|
-
.form-control-label,
|
10
|
-
.col-form-label,
|
11
|
-
.form-check-label,
|
12
|
-
.custom-control {
|
13
|
-
color: $color;
|
14
|
-
}
|
15
|
-
|
16
|
-
// Set the border and box shadow on specific inputs to match
|
17
|
-
.form-control {
|
18
|
-
border-color: $color;
|
19
|
-
|
20
|
-
&:focus {
|
21
|
-
@include box-shadow($input-box-shadow, 0 0 6px lighten($color, 20%));
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
// Set validation states also for addons
|
26
|
-
.input-group-addon {
|
27
|
-
color: $color;
|
28
|
-
border-color: $color;
|
29
|
-
background-color: lighten($color, 40%);
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
1
|
// Form control focus state
|
34
2
|
//
|
35
3
|
// Generate a customized focus state and for any input with the specified color,
|
36
|
-
// which defaults to the `@input-border-focus` variable.
|
4
|
+
// which defaults to the `@input-border-color-focus` variable.
|
37
5
|
//
|
38
6
|
// We highly encourage you to not customize the default value, but instead use
|
39
7
|
// this to tweak colors on an as-needed basis. This aesthetic change is based on
|
@@ -44,36 +12,70 @@
|
|
44
12
|
// contrast against a dark gray background.
|
45
13
|
@mixin form-control-focus() {
|
46
14
|
&:focus {
|
47
|
-
color: $input-color
|
48
|
-
background-color: $input-bg
|
49
|
-
border-color: $input-border-
|
15
|
+
color: $input-focus-color;
|
16
|
+
background-color: $input-focus-bg;
|
17
|
+
border-color: $input-focus-border-color;
|
50
18
|
outline: none;
|
51
|
-
@include box-shadow($input-box-shadow
|
19
|
+
@include box-shadow($input-focus-box-shadow);
|
52
20
|
}
|
53
21
|
}
|
54
22
|
|
55
|
-
// Form control sizing
|
56
|
-
//
|
57
|
-
// Relative text size, padding, and border-radii changes for form controls. For
|
58
|
-
// horizontal sizing, wrap controls in the predefined grid classes. `<select>`
|
59
|
-
// element gets special love because it's special, and that's a fact!
|
60
23
|
|
61
|
-
@mixin
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
24
|
+
@mixin form-validation-state($state, $color) {
|
25
|
+
|
26
|
+
.form-control,
|
27
|
+
.custom-select {
|
28
|
+
.was-validated &:#{$state},
|
29
|
+
&.is-#{$state} {
|
30
|
+
border-color: $color;
|
31
|
+
|
32
|
+
&:focus {
|
33
|
+
box-shadow: 0 0 0 .2rem rgba($color,.25);
|
34
|
+
}
|
35
|
+
|
36
|
+
~ .invalid-feedback,
|
37
|
+
~ .invalid-tooltip {
|
38
|
+
display: block;
|
39
|
+
}
|
40
|
+
}
|
68
41
|
}
|
69
42
|
|
70
|
-
|
71
|
-
|
72
|
-
|
43
|
+
|
44
|
+
// TODO: redo check markup lol crap
|
45
|
+
.form-check-input {
|
46
|
+
.was-validated &:#{$state},
|
47
|
+
&.is-#{$state} {
|
48
|
+
+ .form-check-label {
|
49
|
+
color: $color;
|
50
|
+
}
|
51
|
+
}
|
73
52
|
}
|
74
53
|
|
75
|
-
|
76
|
-
|
77
|
-
|
54
|
+
// custom radios and checks
|
55
|
+
.custom-control-input {
|
56
|
+
.was-validated &:#{$state},
|
57
|
+
&.is-#{$state} {
|
58
|
+
~ .custom-control-indicator {
|
59
|
+
background-color: rgba($color, .25);
|
60
|
+
}
|
61
|
+
~ .custom-control-description {
|
62
|
+
color: $color;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
// custom file
|
68
|
+
.custom-file-input {
|
69
|
+
.was-validated &:#{$state},
|
70
|
+
&.is-#{$state} {
|
71
|
+
~ .custom-file-control {
|
72
|
+
border-color: $color;
|
73
|
+
|
74
|
+
&::before { border-color: inherit; }
|
75
|
+
}
|
76
|
+
&:focus {
|
77
|
+
box-shadow: 0 0 0 .2rem rgba($color,.25);
|
78
|
+
}
|
79
|
+
}
|
78
80
|
}
|
79
81
|
}
|
@@ -17,8 +17,8 @@
|
|
17
17
|
}
|
18
18
|
|
19
19
|
@mixin gradient-directional($start-color: #555, $end-color: #333, $deg: 45deg) {
|
20
|
-
background-repeat: repeat-x;
|
21
20
|
background-image: linear-gradient($deg, $start-color, $end-color);
|
21
|
+
background-repeat: repeat-x;
|
22
22
|
}
|
23
23
|
@mixin gradient-x-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
24
24
|
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
@@ -3,14 +3,14 @@
|
|
3
3
|
// Used only by Bootstrap to generate the correct number of grid classes given
|
4
4
|
// any value of `$grid-columns`.
|
5
5
|
|
6
|
-
@mixin make-grid-columns($columns: $grid-columns, $
|
6
|
+
@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {
|
7
7
|
// Common properties for all breakpoints
|
8
8
|
%grid-column {
|
9
9
|
position: relative;
|
10
10
|
width: 100%;
|
11
11
|
min-height: 1px; // Prevent columns from collapsing when empty
|
12
|
-
|
13
|
-
|
12
|
+
padding-right: ($gutter / 2);
|
13
|
+
padding-left: ($gutter / 2);
|
14
14
|
}
|
15
15
|
|
16
16
|
@each $breakpoint in map-keys($breakpoints) {
|
@@ -22,7 +22,8 @@
|
|
22
22
|
@extend %grid-column;
|
23
23
|
}
|
24
24
|
}
|
25
|
-
.col#{$infix}
|
25
|
+
.col#{$infix},
|
26
|
+
.col#{$infix}-auto {
|
26
27
|
@extend %grid-column;
|
27
28
|
}
|
28
29
|
|
@@ -36,6 +37,7 @@
|
|
36
37
|
.col#{$infix}-auto {
|
37
38
|
flex: 0 0 auto;
|
38
39
|
width: auto;
|
40
|
+
max-width: none; // Reset earlier grid tiers
|
39
41
|
}
|
40
42
|
|
41
43
|
@for $i from 1 through $columns {
|
@@ -44,20 +46,9 @@
|
|
44
46
|
}
|
45
47
|
}
|
46
48
|
|
47
|
-
@
|
48
|
-
|
49
|
-
|
50
|
-
@include make-col-modifier($modifier, $i, $columns)
|
51
|
-
}
|
52
|
-
}
|
53
|
-
}
|
54
|
-
|
55
|
-
// `$columns - 1` because offsetting by the width of an entire row isn't possible
|
56
|
-
@for $i from 0 through ($columns - 1) {
|
57
|
-
@if not ($infix == "" and $i == 0) { // Avoid emitting useless .offset-xs-0
|
58
|
-
.offset#{$infix}-#{$i} {
|
59
|
-
@include make-col-modifier(offset, $i, $columns)
|
60
|
-
}
|
49
|
+
@for $i from 1 through $columns {
|
50
|
+
.order#{$infix}-#{$i} {
|
51
|
+
order: $i;
|
61
52
|
}
|
62
53
|
}
|
63
54
|
}
|
@@ -2,18 +2,12 @@
|
|
2
2
|
//
|
3
3
|
// Generate semantic grid columns with these mixins.
|
4
4
|
|
5
|
-
@mixin make-container(
|
6
|
-
position: relative;
|
7
|
-
margin-left: auto;
|
5
|
+
@mixin make-container() {
|
8
6
|
margin-right: auto;
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
padding-right: ($gutter / 2);
|
14
|
-
padding-left: ($gutter / 2);
|
15
|
-
}
|
16
|
-
}
|
7
|
+
margin-left: auto;
|
8
|
+
padding-right: ($grid-gutter-width / 2);
|
9
|
+
padding-left: ($grid-gutter-width / 2);
|
10
|
+
width: 100%;
|
17
11
|
}
|
18
12
|
|
19
13
|
|
@@ -21,80 +15,33 @@
|
|
21
15
|
@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $grid-breakpoints) {
|
22
16
|
@each $breakpoint, $container-max-width in $max-widths {
|
23
17
|
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
24
|
-
width: $container-max-width;
|
25
|
-
max-width: 100%;
|
18
|
+
max-width: $container-max-width;
|
26
19
|
}
|
27
20
|
}
|
28
21
|
}
|
29
22
|
|
30
|
-
@mixin make-
|
31
|
-
@each $breakpoint in map-keys($gutters) {
|
32
|
-
@include media-breakpoint-up($breakpoint) {
|
33
|
-
$gutter: map-get($gutters, $breakpoint);
|
34
|
-
padding-right: ($gutter / 2);
|
35
|
-
padding-left: ($gutter / 2);
|
36
|
-
}
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
@mixin make-row($gutters: $grid-gutter-widths) {
|
23
|
+
@mixin make-row() {
|
41
24
|
display: flex;
|
42
25
|
flex-wrap: wrap;
|
43
|
-
|
44
|
-
|
45
|
-
@include media-breakpoint-up($breakpoint) {
|
46
|
-
$gutter: map-get($gutters, $breakpoint);
|
47
|
-
margin-right: ($gutter / -2);
|
48
|
-
margin-left: ($gutter / -2);
|
49
|
-
}
|
50
|
-
}
|
26
|
+
margin-right: ($grid-gutter-width / -2);
|
27
|
+
margin-left: ($grid-gutter-width / -2);
|
51
28
|
}
|
52
29
|
|
53
|
-
@mixin make-col-ready(
|
30
|
+
@mixin make-col-ready() {
|
54
31
|
position: relative;
|
55
32
|
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
56
33
|
// always setting `width: 100%;`. This works because we use `flex` values
|
57
34
|
// later on to override this initial width.
|
58
35
|
width: 100%;
|
59
36
|
min-height: 1px; // Prevent collapsing
|
60
|
-
|
61
|
-
|
62
|
-
@include media-breakpoint-up($breakpoint) {
|
63
|
-
$gutter: map-get($gutters, $breakpoint);
|
64
|
-
padding-right: ($gutter / 2);
|
65
|
-
padding-left: ($gutter / 2);
|
66
|
-
}
|
67
|
-
}
|
37
|
+
padding-right: ($grid-gutter-width / 2);
|
38
|
+
padding-left: ($grid-gutter-width / 2);
|
68
39
|
}
|
69
40
|
|
70
41
|
@mixin make-col($size, $columns: $grid-columns) {
|
71
42
|
flex: 0 0 percentage($size / $columns);
|
72
|
-
// width: percentage($size / $columns);
|
73
43
|
// Add a `max-width` to ensure content within each column does not blow out
|
74
44
|
// the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
|
75
45
|
// do not appear to require this.
|
76
46
|
max-width: percentage($size / $columns);
|
77
47
|
}
|
78
|
-
|
79
|
-
@mixin make-col-offset($size, $columns: $grid-columns) {
|
80
|
-
margin-left: percentage($size / $columns);
|
81
|
-
}
|
82
|
-
|
83
|
-
@mixin make-col-push($size, $columns: $grid-columns) {
|
84
|
-
left: if($size > 0, percentage($size / $columns), auto);
|
85
|
-
}
|
86
|
-
|
87
|
-
@mixin make-col-pull($size, $columns: $grid-columns) {
|
88
|
-
right: if($size > 0, percentage($size / $columns), auto);
|
89
|
-
}
|
90
|
-
|
91
|
-
@mixin make-col-modifier($type, $size, $columns) {
|
92
|
-
// Work around the lack of dynamic mixin @include support (https://github.com/sass/sass/issues/626)
|
93
|
-
@if $type == push {
|
94
|
-
@include make-col-push($size, $columns);
|
95
|
-
} @else if $type == pull {
|
96
|
-
@include make-col-pull($size, $columns);
|
97
|
-
} @else if $type == offset {
|
98
|
-
@include make-col-offset($size, $columns);
|
99
|
-
}
|
100
|
-
}
|
@@ -8,16 +8,18 @@
|
|
8
8
|
// }
|
9
9
|
// }
|
10
10
|
// @else {
|
11
|
+
// scss-lint:disable Indentation
|
11
12
|
&:hover { @content }
|
13
|
+
// scss-lint:enable Indentation
|
12
14
|
// }
|
13
15
|
}
|
14
16
|
|
17
|
+
|
15
18
|
@mixin hover-focus {
|
16
19
|
@if $enable-hover-media-query {
|
17
20
|
&:focus { @content }
|
18
21
|
@include hover { @content }
|
19
|
-
}
|
20
|
-
@else {
|
22
|
+
} @else {
|
21
23
|
&:focus,
|
22
24
|
&:hover {
|
23
25
|
@content
|
@@ -32,8 +34,7 @@
|
|
32
34
|
@content
|
33
35
|
}
|
34
36
|
@include hover { @content }
|
35
|
-
}
|
36
|
-
@else {
|
37
|
+
} @else {
|
37
38
|
&,
|
38
39
|
&:focus,
|
39
40
|
&:hover {
|
@@ -49,8 +50,7 @@
|
|
49
50
|
@content
|
50
51
|
}
|
51
52
|
@include hover { @content }
|
52
|
-
}
|
53
|
-
@else {
|
53
|
+
} @else {
|
54
54
|
&:focus,
|
55
55
|
&:active,
|
56
56
|
&:hover {
|