nautobot 2.4.21__py3-none-any.whl → 3.0.0a3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nautobot might be problematic. Click here for more details.
- nautobot/apps/choices.py +2 -2
- nautobot/apps/filters.py +9 -9
- nautobot/apps/forms.py +2 -0
- nautobot/apps/models.py +7 -2
- nautobot/apps/ui.py +20 -1
- nautobot/apps/utils.py +2 -3
- nautobot/apps/views.py +7 -1
- nautobot/circuits/filters.py +8 -23
- nautobot/circuits/navigation.py +3 -1
- nautobot/circuits/templates/circuits/circuit_create.html +9 -9
- nautobot/circuits/templates/circuits/circuit_terminations_swap.html +2 -2
- nautobot/circuits/templates/circuits/circuittermination_create.html +24 -33
- nautobot/circuits/templates/circuits/inc/circuit_termination.html +10 -10
- nautobot/circuits/templates/circuits/inc/circuit_termination_cable_fragment.html +13 -13
- nautobot/circuits/templates/circuits/inc/circuit_termination_header_extra_content.html +6 -6
- nautobot/circuits/templates/circuits/inc/circuit_termination_speed_fragment.html +3 -3
- nautobot/circuits/templates/circuits/inc/speed_widget.html +13 -13
- nautobot/circuits/templates/circuits/provider_create.html +9 -9
- nautobot/circuits/tests/integration/test_circuit.py +19 -19
- nautobot/circuits/tests/integration/test_circuits_bulk_operations.py +3 -0
- nautobot/circuits/tests/integration/test_relationships.py +4 -12
- nautobot/circuits/views.py +0 -2
- nautobot/cloud/filters.py +1 -13
- nautobot/cloud/navigation.py +3 -1
- nautobot/cloud/templates/cloud/cloudnetwork_update.html +9 -9
- nautobot/cloud/templates/cloud/cloudservice_update.html +6 -6
- nautobot/core/api/fields.py +30 -2
- nautobot/core/api/schema.py +1 -1
- nautobot/core/api/serializers.py +9 -2
- nautobot/core/api/urls.py +2 -0
- nautobot/core/api/views.py +58 -37
- nautobot/core/apps/__init__.py +6 -12
- nautobot/core/branching.py +83 -0
- nautobot/core/celery/__init__.py +11 -6
- nautobot/core/celery/backends.py +2 -0
- nautobot/core/celery/encoders.py +7 -0
- nautobot/core/celery/task.py +44 -0
- nautobot/core/checks.py +60 -0
- nautobot/core/cli/bootstrap_v3_to_v5.py +776 -0
- nautobot/core/constants.py +9 -0
- nautobot/core/context_processors.py +84 -0
- nautobot/core/filters.py +131 -2
- nautobot/core/forms/__init__.py +4 -2
- nautobot/core/forms/fields.py +10 -8
- nautobot/core/forms/forms.py +21 -9
- nautobot/core/forms/search.py +0 -15
- nautobot/core/forms/widgets.py +3 -2
- nautobot/core/graphql/__init__.py +8 -26
- nautobot/core/graphql/generators.py +16 -6
- nautobot/core/graphql/schema.py +1 -1
- nautobot/core/graphql/schema_init.py +1 -2
- nautobot/core/graphql/utils.py +7 -9
- nautobot/core/jobs/__init__.py +158 -0
- nautobot/core/management/commands/generate_test_data.py +28 -9
- nautobot/core/models/__init__.py +17 -2
- nautobot/core/models/fields.py +3 -2
- nautobot/core/models/generics.py +9 -1
- nautobot/core/models/name_color_content_types.py +1 -1
- nautobot/core/models/ordering.py +7 -5
- nautobot/core/models/querysets.py +77 -2
- nautobot/core/models/tree_queries.py +6 -4
- nautobot/core/settings.py +30 -16
- nautobot/core/settings.yaml +13 -7
- nautobot/core/tables.py +114 -44
- nautobot/core/templates/403.html +1 -1
- nautobot/core/templates/403_csrf_failure.html +1 -1
- nautobot/core/templates/404.html +1 -1
- nautobot/core/templates/40x.html +8 -8
- nautobot/core/templates/500.html +10 -10
- nautobot/core/templates/about.html +13 -12
- nautobot/core/templates/admin/actions.html +1 -1
- nautobot/core/templates/admin/app_index.html +3 -3
- nautobot/core/templates/admin/base.html +45 -52
- nautobot/core/templates/admin/base_site.html +0 -9
- nautobot/core/templates/admin/change_form.html +5 -5
- nautobot/core/templates/admin/change_list.html +8 -12
- nautobot/core/templates/admin/change_list_results.html +3 -3
- nautobot/core/templates/admin/config/config.html +24 -24
- nautobot/core/templates/admin/delete_confirmation.html +5 -5
- nautobot/core/templates/admin/edit_inline/stacked.html +5 -5
- nautobot/core/templates/admin/edit_inline/tabular.html +3 -3
- nautobot/core/templates/admin/includes/fieldset.html +15 -15
- nautobot/core/templates/admin/index.html +8 -8
- nautobot/core/templates/admin/submit_line.html +5 -5
- nautobot/core/templates/base_django.html +36 -32
- nautobot/core/templates/buttons/add.html +1 -1
- nautobot/core/templates/buttons/consolidated_detail_view_action_buttons.html +2 -2
- nautobot/core/templates/buttons/export.html +17 -18
- nautobot/core/templates/buttons/job_import.html +2 -2
- nautobot/core/templates/components/breadcrumbs.html +19 -17
- nautobot/core/templates/components/button/dropdown.html +7 -5
- nautobot/core/templates/components/echarts.html +2 -0
- nautobot/core/templates/components/layout/one_over_two.html +3 -3
- nautobot/core/templates/components/layout/two_over_one.html +3 -3
- nautobot/core/templates/components/panel/body_content_data_table.html +2 -2
- nautobot/core/templates/components/panel/body_content_tags.html +1 -1
- nautobot/core/templates/components/panel/body_wrapper_generic.html +4 -2
- nautobot/core/templates/components/panel/body_wrapper_generic_table.html +1 -1
- nautobot/core/templates/components/panel/body_wrapper_key_value_table.html +5 -3
- nautobot/core/templates/components/panel/body_wrapper_table.html +4 -2
- nautobot/core/templates/components/panel/footer_contacts_table.html +4 -4
- nautobot/core/templates/components/panel/footer_content_table.html +3 -3
- nautobot/core/templates/components/panel/grouping_toggle.html +12 -11
- nautobot/core/templates/components/panel/header_extra_content_table.html +2 -11
- nautobot/core/templates/components/panel/panel.html +6 -3
- nautobot/core/templates/components/panel/stats_panel_body.html +9 -7
- nautobot/core/templates/components/tab/content_wrapper.html +29 -1
- nautobot/core/templates/components/tab/label_wrapper.html +10 -2
- nautobot/core/templates/components/tab/label_wrapper_distinct_view.html +11 -4
- nautobot/core/templates/echarts/echarts.html +20 -0
- nautobot/core/templates/exceptions/import_error.html +2 -2
- nautobot/core/templates/exceptions/permission_error.html +1 -1
- nautobot/core/templates/exceptions/programming_error.html +2 -2
- nautobot/core/templates/generic/object_bulk_add_component.html +29 -20
- nautobot/core/templates/generic/object_bulk_create.html +87 -75
- nautobot/core/templates/generic/object_bulk_destroy.html +35 -37
- nautobot/core/templates/generic/object_bulk_remove.html +30 -26
- nautobot/core/templates/generic/object_bulk_rename.html +53 -40
- nautobot/core/templates/generic/object_bulk_update.html +36 -29
- nautobot/core/templates/generic/object_create.html +40 -27
- nautobot/core/templates/generic/object_import.html +36 -24
- nautobot/core/templates/generic/object_list.html +279 -215
- nautobot/core/templates/generic/object_notes.html +21 -11
- nautobot/core/templates/generic/object_retrieve.html +161 -213
- nautobot/core/templates/graphene/graphiql.html +113 -60
- nautobot/core/templates/home.html +164 -87
- nautobot/core/templates/import_success.html +3 -2
- nautobot/core/templates/inc/ajax_loader.html +1 -1
- nautobot/core/templates/inc/computed_fields/panel_data.html +25 -13
- nautobot/core/templates/inc/created_updated.html +12 -7
- nautobot/core/templates/inc/custom_fields/panel_data.html +28 -16
- nautobot/core/templates/inc/custom_fields_panel.html +3 -3
- nautobot/core/templates/inc/dynamic_groups_panel.html +3 -3
- nautobot/core/templates/inc/extras_features_edit_form_fields.html +15 -15
- nautobot/core/templates/inc/footer.html +90 -40
- nautobot/core/templates/inc/form_static_field.html +6 -0
- nautobot/core/templates/inc/header.html +75 -0
- nautobot/core/templates/inc/header_banners.html +17 -0
- nautobot/core/templates/inc/header_messages.html +6 -0
- nautobot/core/templates/inc/image_attachments.html +9 -9
- nautobot/core/templates/inc/javascript.html +7 -24
- nautobot/core/templates/inc/media.html +4 -29
- nautobot/core/templates/inc/modal.html +2 -2
- nautobot/core/templates/inc/nav_favorites.html +27 -0
- nautobot/core/templates/inc/nav_menu.html +150 -108
- nautobot/core/templates/inc/object_details_advanced_panel.html +84 -71
- nautobot/core/templates/inc/page_title.html +23 -0
- nautobot/core/templates/inc/paginator.html +39 -28
- nautobot/core/templates/inc/relationships/panel_override.html +3 -3
- nautobot/core/templates/inc/relationships_panel.html +3 -3
- nautobot/core/templates/inc/relationships_table_rows.html +1 -1
- nautobot/core/templates/inc/search_panel.html +22 -16
- nautobot/core/templates/inc/table.html +61 -36
- nautobot/core/templates/inc/tenancy_form_panel.html +3 -3
- nautobot/core/templates/login.html +17 -59
- nautobot/core/templates/modals/modal_theme.html +12 -23
- nautobot/core/templates/nautobot_config.py.j2 +6 -5
- nautobot/core/templates/panel_table.html +8 -12
- nautobot/core/templates/redoc_ui.html +80 -0
- nautobot/core/templates/rest_framework/api.html +43 -21
- nautobot/core/templates/search.html +12 -13
- nautobot/core/templates/swagger_ui.html +19 -4
- nautobot/core/templates/system_jobs/import_objects.html +70 -58
- nautobot/core/templates/template.css +0 -6
- nautobot/core/templates/utilities/comment_form.html +34 -0
- nautobot/core/templates/utilities/confirmation_form.html +17 -9
- nautobot/core/templates/utilities/obj_table.html +19 -11
- nautobot/core/templates/utilities/render_field.html +27 -21
- nautobot/core/templates/utilities/render_jinja2.html +22 -25
- nautobot/core/templates/utilities/templatetags/advanced_filter_indicator.html +8 -0
- nautobot/core/templates/utilities/templatetags/badge.html +1 -1
- nautobot/core/templates/utilities/templatetags/dynamic_group_assignment_modal.html +2 -3
- nautobot/core/templates/utilities/templatetags/filter_form_drawer.html +482 -0
- nautobot/core/templates/utilities/templatetags/modal_form_as_dialog.html +14 -18
- nautobot/core/templates/utilities/templatetags/saved_view_modal.html +11 -11
- nautobot/core/templates/utilities/templatetags/table_config_form.html +51 -24
- nautobot/core/templates/utilities/templatetags/tag.html +1 -1
- nautobot/core/templates/utilities/templatetags/utilization_graph.html +3 -3
- nautobot/core/templates/utilities/theme_preview.html +829 -566
- nautobot/core/templates/utilities/worker_status.html +42 -41
- nautobot/core/templates/widgets/selectwithdisabled_option.html +3 -1
- nautobot/core/templates/widgets/sluginput.html +2 -2
- nautobot/core/templatetags/buttons.py +38 -40
- nautobot/core/templatetags/helpers.py +105 -28
- nautobot/core/templatetags/ui_framework.py +17 -0
- nautobot/core/testing/api.py +76 -12
- nautobot/core/testing/filters.py +11 -27
- nautobot/core/testing/integration.py +128 -10
- nautobot/core/testing/mixins.py +7 -4
- nautobot/core/testing/utils.py +28 -5
- nautobot/core/testing/views.py +125 -27
- nautobot/core/tests/integration/test_app_home.py +39 -35
- nautobot/core/tests/integration/test_app_navbar.py +60 -67
- nautobot/core/tests/integration/test_filters.py +123 -55
- nautobot/core/tests/integration/test_general_functionality.py +1 -1
- nautobot/core/tests/integration/test_home.py +10 -18
- nautobot/core/tests/integration/test_import_objects_ui.py +2 -9
- nautobot/core/tests/integration/test_navbar.py +41 -16
- nautobot/core/tests/integration/test_swagger.py +1 -7
- nautobot/core/tests/integration/test_theme.py +3 -0
- nautobot/core/tests/nautobot_config_without_example_apps.py +4 -0
- nautobot/core/tests/runner.py +6 -1
- nautobot/core/tests/test_api.py +5 -3
- nautobot/core/tests/test_branching.py +154 -0
- nautobot/core/tests/test_breadcrumbs.py +7 -8
- nautobot/core/tests/test_checks.py +28 -0
- nautobot/core/tests/test_commands.py +0 -41
- nautobot/core/tests/test_config.py +2 -1
- nautobot/core/tests/test_csv.py +4 -7
- nautobot/core/tests/test_filters.py +326 -318
- nautobot/core/tests/test_forms.py +19 -30
- nautobot/core/tests/test_graphql.py +67 -57
- nautobot/core/tests/test_models.py +1 -1
- nautobot/core/tests/test_nautobot_server.py +2 -0
- nautobot/core/tests/test_navigations.py +78 -10
- nautobot/core/tests/test_tables.py +3 -1
- nautobot/core/tests/test_templatetags_helpers.py +61 -21
- nautobot/core/tests/test_templatetags_ui_framework.py +36 -18
- nautobot/core/tests/test_ui.py +207 -2
- nautobot/core/tests/test_utils.py +147 -2
- nautobot/core/tests/test_views.py +201 -64
- nautobot/core/tests/test_views_utils.py +1 -1
- nautobot/core/ui/breadcrumbs.py +2 -12
- nautobot/core/ui/choices.py +190 -0
- nautobot/core/ui/constants.py +86 -0
- nautobot/core/ui/echarts.py +474 -0
- nautobot/core/ui/nav.py +5 -1
- nautobot/core/ui/object_detail.py +180 -16
- nautobot/core/urls.py +13 -1
- nautobot/core/utils/cache.py +71 -0
- nautobot/core/utils/data.py +8 -5
- nautobot/core/utils/filtering.py +8 -2
- nautobot/core/utils/git.py +3 -3
- nautobot/core/utils/lookup.py +87 -13
- nautobot/core/utils/migrations.py +22 -0
- nautobot/core/utils/module_loading.py +26 -0
- nautobot/core/utils/permissions.py +9 -5
- nautobot/core/views/__init__.py +114 -63
- nautobot/core/views/generic.py +34 -27
- nautobot/core/views/mixins.py +49 -27
- nautobot/core/views/renderers.py +3 -5
- nautobot/core/views/utils.py +10 -5
- nautobot/core/views/viewsets.py +2 -1
- nautobot/data_validation/__init__.py +0 -0
- nautobot/data_validation/api/__init__.py +1 -0
- nautobot/data_validation/api/serializers.py +80 -0
- nautobot/data_validation/api/urls.py +20 -0
- nautobot/data_validation/api/views.py +44 -0
- nautobot/data_validation/apps.py +18 -0
- nautobot/data_validation/custom_validators.py +330 -0
- nautobot/data_validation/filters.py +133 -0
- nautobot/data_validation/form_mixin.py +25 -0
- nautobot/data_validation/forms.py +342 -0
- nautobot/data_validation/migrations/0001_initial.py +224 -0
- nautobot/data_validation/migrations/0002_data_migration_from_app.py +324 -0
- nautobot/data_validation/migrations/__init__.py +0 -0
- nautobot/data_validation/models.py +361 -0
- nautobot/data_validation/navigation.py +74 -0
- nautobot/data_validation/signals.py +30 -0
- nautobot/data_validation/tables.py +259 -0
- nautobot/data_validation/templates/data_validation/datacompliance_retrieve.html +1 -0
- nautobot/data_validation/templates/data_validation/datacompliance_tab.html +11 -0
- nautobot/data_validation/templates/data_validation/device_constraints.html +61 -0
- nautobot/data_validation/tests/__init__.py +20 -0
- nautobot/data_validation/tests/migrations/__init__.py +0 -0
- nautobot/data_validation/tests/migrations/test_migrations.py +489 -0
- nautobot/data_validation/tests/test_api.py +238 -0
- nautobot/data_validation/tests/test_custom_validators.py +423 -0
- nautobot/data_validation/tests/test_data_compliance_rules.py +85 -0
- nautobot/data_validation/tests/test_filters.py +240 -0
- nautobot/data_validation/tests/test_form_mixin.py +115 -0
- nautobot/data_validation/tests/test_models.py +393 -0
- nautobot/data_validation/tests/test_views.py +435 -0
- nautobot/data_validation/urls.py +21 -0
- nautobot/data_validation/views.py +227 -0
- nautobot/dcim/api/serializers.py +10 -13
- nautobot/dcim/api/urls.py +2 -0
- nautobot/dcim/api/views.py +7 -0
- nautobot/dcim/apps.py +4 -0
- nautobot/dcim/choices.py +16 -0
- nautobot/dcim/custom_validators.py +84 -0
- nautobot/dcim/filter_mixins.py +353 -4
- nautobot/dcim/{filters/__init__.py → filters.py} +70 -157
- nautobot/dcim/forms.py +12 -6
- nautobot/dcim/graphql/types.py +1 -0
- nautobot/dcim/migrations/0075_add_deviceclusterassignment.py +52 -0
- nautobot/dcim/migrations/0076_device_cluster_to_clusters_data_migration.py +40 -0
- nautobot/dcim/migrations/0077_remove_device_cluster.py +14 -0
- nautobot/dcim/migrations/0078_remove_device_location_tenant_name_uniqueness.py +16 -0
- nautobot/dcim/migrations/0079_device_name_data_migration.py +59 -0
- nautobot/dcim/models/__init__.py +2 -0
- nautobot/dcim/models/device_components.py +3 -1
- nautobot/dcim/models/devices.py +115 -51
- nautobot/dcim/navigation.py +7 -3
- nautobot/dcim/querysets.py +6 -0
- nautobot/dcim/signals.py +19 -0
- nautobot/dcim/tables/devices.py +9 -5
- nautobot/dcim/tables/template_code.py +191 -102
- nautobot/dcim/templates/dcim/cable.html +1 -1
- nautobot/dcim/templates/dcim/cable_connect.html +62 -146
- nautobot/dcim/templates/dcim/cable_retrieve.html +10 -10
- nautobot/dcim/templates/dcim/cable_trace.html +15 -17
- nautobot/dcim/templates/dcim/console_port_connection_list.html +2 -2
- nautobot/dcim/templates/dcim/consoleport.html +18 -17
- nautobot/dcim/templates/dcim/consoleserverport.html +18 -17
- nautobot/dcim/templates/dcim/controller_create.html +12 -8
- nautobot/dcim/templates/dcim/controller_wirelessnetworks.html +1 -1
- nautobot/dcim/templates/dcim/controllermanageddevicegroup_create.html +6 -6
- nautobot/dcim/templates/dcim/controllermanageddevicegroup_retrieve.html +1 -1
- nautobot/dcim/templates/dcim/device/config.html +17 -19
- nautobot/dcim/templates/dcim/device/lldp_neighbors.html +4 -4
- nautobot/dcim/templates/dcim/device/status.html +20 -20
- nautobot/dcim/templates/dcim/device_component_add.html +24 -15
- nautobot/dcim/templates/dcim/device_create.html +120 -120
- nautobot/dcim/templates/dcim/device_list.html +75 -12
- nautobot/dcim/templates/dcim/devicebay.html +7 -7
- nautobot/dcim/templates/dcim/devicebay_populate.html +29 -23
- nautobot/dcim/templates/dcim/deviceredundancygroup_create.html +6 -6
- nautobot/dcim/templates/dcim/devicetype.html +1 -1
- nautobot/dcim/templates/dcim/devicetype_component_add.html +25 -19
- nautobot/dcim/templates/dcim/devicetype_list.html +4 -4
- nautobot/dcim/templates/dcim/devicetype_update.html +9 -9
- nautobot/dcim/templates/dcim/footer_convert_to_contact_or_team_record.html +3 -3
- nautobot/dcim/templates/dcim/frontport.html +21 -20
- nautobot/dcim/templates/dcim/inc/cable_form.html +7 -7
- nautobot/dcim/templates/dcim/inc/cable_termination.html +1 -1
- nautobot/dcim/templates/dcim/inc/cable_toggle_buttons.html +18 -9
- nautobot/dcim/templates/dcim/inc/detail_softwareversion_softwareimagefile_rows.html +1 -1
- nautobot/dcim/templates/dcim/inc/device_interface_filter.html +1 -1
- nautobot/dcim/templates/dcim/inc/devicetype_component_table.html +10 -10
- nautobot/dcim/templates/dcim/inc/edit_form_softwareversion_js.html +2 -2
- nautobot/dcim/templates/dcim/inc/homepage_connections.html +2 -2
- nautobot/dcim/templates/dcim/inc/moduletype_component_table.html +10 -10
- nautobot/dcim/templates/dcim/inc/rack_elevation.html +2 -2
- nautobot/dcim/templates/dcim/interface.html +42 -22
- nautobot/dcim/templates/dcim/interface_connection_list.html +2 -2
- nautobot/dcim/templates/dcim/interface_edit.html +26 -11
- nautobot/dcim/templates/dcim/interfaceredundancygroupassociation_create.html +3 -3
- nautobot/dcim/templates/dcim/inventoryitem.html +3 -3
- nautobot/dcim/templates/dcim/inventoryitem_add.html +21 -10
- nautobot/dcim/templates/dcim/inventoryitem_bulk_delete.html +1 -1
- nautobot/dcim/templates/dcim/inventoryitem_edit.html +6 -4
- nautobot/dcim/templates/dcim/location.html +1 -1
- nautobot/dcim/templates/dcim/location_migrate_data_to_contact.html +24 -18
- nautobot/dcim/templates/dcim/location_retrieve.html +1 -1
- nautobot/dcim/templates/dcim/location_update.html +9 -9
- nautobot/dcim/templates/dcim/locationtype.html +0 -1
- nautobot/dcim/templates/dcim/module/base.html +67 -27
- nautobot/dcim/templates/dcim/module_consoleports.html +13 -15
- nautobot/dcim/templates/dcim/module_consoleserverports.html +13 -15
- nautobot/dcim/templates/dcim/module_frontports.html +13 -15
- nautobot/dcim/templates/dcim/module_interfaces.html +14 -16
- nautobot/dcim/templates/dcim/module_list.html +59 -10
- nautobot/dcim/templates/dcim/module_modulebays.html +12 -14
- nautobot/dcim/templates/dcim/module_poweroutlets.html +13 -15
- nautobot/dcim/templates/dcim/module_powerports.html +13 -15
- nautobot/dcim/templates/dcim/module_rearports.html +13 -15
- nautobot/dcim/templates/dcim/module_retrieve.html +3 -3
- nautobot/dcim/templates/dcim/module_update.html +15 -9
- nautobot/dcim/templates/dcim/modulebay_retrieve.html +0 -93
- nautobot/dcim/templates/dcim/modulefamily_retrieve.html +7 -7
- nautobot/dcim/templates/dcim/moduletype_list.html +2 -2
- nautobot/dcim/templates/dcim/moduletype_retrieve.html +74 -35
- nautobot/dcim/templates/dcim/platform_create.html +9 -9
- nautobot/dcim/templates/dcim/power_port_connection_list.html +3 -3
- nautobot/dcim/templates/dcim/powerfeed.html +1 -1
- nautobot/dcim/templates/dcim/powerfeed_edit.html +15 -15
- nautobot/dcim/templates/dcim/poweroutlet.html +13 -13
- nautobot/dcim/templates/dcim/powerpanel.html +1 -1
- nautobot/dcim/templates/dcim/powerport.html +17 -16
- nautobot/dcim/templates/dcim/rack.html +1 -1
- nautobot/dcim/templates/dcim/rack_elevation.html +2 -2
- nautobot/dcim/templates/dcim/rack_elevation_list.html +21 -9
- nautobot/dcim/templates/dcim/rack_retrieve.html +75 -57
- nautobot/dcim/templates/dcim/rack_update.html +14 -14
- nautobot/dcim/templates/dcim/rackreservation.html +1 -1
- nautobot/dcim/templates/dcim/rackreservation_edit.html +6 -6
- nautobot/dcim/templates/dcim/rearport.html +19 -18
- nautobot/dcim/templates/dcim/trace/cable.html +1 -1
- nautobot/dcim/templates/dcim/trace/circuit.html +1 -1
- nautobot/dcim/templates/dcim/trace/device.html +1 -1
- nautobot/dcim/templates/dcim/trace/powerpanel.html +1 -1
- nautobot/dcim/templates/dcim/trace/termination.html +1 -1
- nautobot/dcim/templates/dcim/virtualchassis.html +1 -1
- nautobot/dcim/templates/dcim/virtualchassis_add_member.html +25 -16
- nautobot/dcim/templates/dcim/virtualchassis_create.html +6 -6
- nautobot/dcim/templates/dcim/virtualchassis_edit.html +1 -1
- nautobot/dcim/templates/dcim/virtualchassis_retrieve.html +1 -1
- nautobot/dcim/templates/dcim/virtualchassis_update.html +36 -22
- nautobot/dcim/templates/dcim/virtualdevicecontext_update.html +9 -9
- nautobot/dcim/tests/integration/test_controller.py +6 -6
- nautobot/dcim/tests/integration/test_controller_managed_device_group.py +7 -7
- nautobot/dcim/tests/integration/test_create_device.py +9 -9
- nautobot/dcim/tests/integration/test_device_bulk_operations.py +7 -2
- nautobot/dcim/tests/integration/test_fileinputpicker.py +5 -7
- nautobot/dcim/tests/integration/test_location_bulk_operations.py +2 -0
- nautobot/dcim/tests/integration/test_module_bay_position.py +4 -1
- nautobot/dcim/tests/test_api.py +86 -6
- nautobot/dcim/tests/test_custom_validators.py +229 -0
- nautobot/dcim/tests/test_filters.py +159 -110
- nautobot/dcim/tests/test_graphql.py +32 -36
- nautobot/dcim/tests/test_jobs.py +1 -1
- nautobot/dcim/tests/test_models.py +229 -1
- nautobot/dcim/tests/test_views.py +31 -20
- nautobot/dcim/utils.py +3 -3
- nautobot/dcim/views.py +77 -41
- nautobot/extras/api/serializers.py +83 -19
- nautobot/extras/api/urls.py +7 -0
- nautobot/extras/api/views.py +243 -140
- nautobot/extras/choices.py +34 -13
- nautobot/extras/constants.py +1 -1
- nautobot/extras/context_managers.py +26 -26
- nautobot/extras/datasources/git.py +22 -0
- nautobot/extras/datasources/registry.py +3 -0
- nautobot/extras/exceptions.py +5 -0
- nautobot/extras/factory.py +11 -1
- nautobot/extras/{filters/mixins.py → filter_mixins.py} +4 -3
- nautobot/extras/{filters/__init__.py → filters.py} +203 -58
- nautobot/extras/forms/base.py +2 -1
- nautobot/extras/forms/forms.py +225 -20
- nautobot/extras/forms/mixins.py +0 -41
- nautobot/extras/homepage.py +21 -2
- nautobot/extras/jobs.py +2 -8
- nautobot/extras/jobs_ui.py +2 -2
- nautobot/extras/management/__init__.py +9 -0
- nautobot/extras/managers.py +31 -22
- nautobot/extras/migrations/0126_approval_workflow_pre_check.py +58 -0
- nautobot/extras/migrations/0127_approval_workflow_models.py +266 -0
- nautobot/extras/migrations/0128_remove_job_approval_required_and_more.py +29 -0
- nautobot/extras/migrations/0129_jobresult_debug_log_count_jobresult_error_log_count_and_more.py +37 -0
- nautobot/extras/migrations/0130_jobresult_generate_log_entry_counts.py +42 -0
- nautobot/extras/models/__init__.py +14 -3
- nautobot/extras/models/approvals.py +556 -0
- nautobot/extras/models/change_logging.py +1 -0
- nautobot/extras/models/contacts.py +2 -0
- nautobot/extras/models/customfields.py +57 -22
- nautobot/extras/models/datasources.py +21 -0
- nautobot/extras/models/groups.py +2 -0
- nautobot/extras/models/jobs.py +122 -39
- nautobot/extras/models/metadata.py +2 -3
- nautobot/extras/models/mixins.py +129 -1
- nautobot/extras/models/models.py +22 -14
- nautobot/extras/models/relationships.py +47 -10
- nautobot/extras/models/secrets.py +1 -0
- nautobot/extras/models/statuses.py +0 -15
- nautobot/extras/models/tags.py +1 -1
- nautobot/extras/navigation.py +42 -15
- nautobot/extras/plugins/__init__.py +33 -55
- nautobot/extras/plugins/marketplace_manifest.yml +1 -23
- nautobot/extras/plugins/tables.py +8 -6
- nautobot/extras/plugins/urls.py +2 -21
- nautobot/extras/plugins/utils.py +1 -33
- nautobot/extras/plugins/validators.py +10 -10
- nautobot/extras/plugins/views.py +1 -5
- nautobot/extras/querysets.py +17 -21
- nautobot/extras/signals.py +23 -8
- nautobot/extras/tables.py +420 -99
- nautobot/extras/templates/extras/approval_dashboard.html +15 -0
- nautobot/extras/templates/extras/approval_workflow/approve.html +11 -0
- nautobot/extras/templates/extras/approval_workflow/comment.html +9 -0
- nautobot/extras/templates/extras/approval_workflow/deny.html +10 -0
- nautobot/extras/templates/extras/approvalworkflowdefinition_update.html +77 -0
- nautobot/extras/templates/extras/approvalworkflowstage_retrieve.html +29 -0
- nautobot/extras/templates/extras/configcontext_update.html +12 -12
- nautobot/extras/templates/extras/configcontextschema.html +1 -1
- nautobot/extras/templates/extras/configcontextschema_retrieve.html +9 -9
- nautobot/extras/templates/extras/configcontextschema_update.html +6 -6
- nautobot/extras/templates/extras/configcontextschema_validation.html +2 -2
- nautobot/extras/templates/extras/customfield_update.html +12 -12
- nautobot/extras/templates/extras/dynamicgroup.html +1 -1
- nautobot/extras/templates/extras/dynamicgroup_edit.html +1 -1
- nautobot/extras/templates/extras/dynamicgroup_retrieve.html +17 -17
- nautobot/extras/templates/extras/dynamicgroup_update.html +24 -24
- nautobot/extras/templates/extras/externalintegration_update.html +6 -6
- nautobot/extras/templates/extras/gitrepository.html +1 -1
- nautobot/extras/templates/extras/gitrepository_object_edit.html +1 -1
- nautobot/extras/templates/extras/gitrepository_result.html +1 -1
- nautobot/extras/templates/extras/gitrepository_retrieve.html +12 -12
- nautobot/extras/templates/extras/gitrepository_update.html +25 -7
- nautobot/extras/templates/extras/graphqlquery_retrieve.html +1 -1
- nautobot/extras/templates/extras/inc/approval_buttons_column.html +38 -0
- nautobot/extras/templates/extras/inc/bulk_edit_overridable_field.html +14 -13
- nautobot/extras/templates/extras/inc/configcontext_format.html +11 -4
- nautobot/extras/templates/extras/inc/graphqlquery_execute.html +7 -7
- nautobot/extras/templates/extras/inc/job_label.html +5 -5
- nautobot/extras/templates/extras/inc/job_table.html +23 -10
- nautobot/extras/templates/extras/inc/job_tiles.html +33 -21
- nautobot/extras/templates/extras/inc/jobresult.html +6 -6
- nautobot/extras/templates/extras/inc/json_format.html +11 -4
- nautobot/extras/templates/extras/inc/object_contact_header.html +6 -6
- nautobot/extras/templates/extras/inc/overridable_field.html +16 -15
- nautobot/extras/templates/extras/inc/panel_approvalworkflowstage.html +34 -0
- nautobot/extras/templates/extras/inc/panel_changelog.html +9 -9
- nautobot/extras/templates/extras/inc/panel_jobhistory.html +8 -6
- nautobot/extras/templates/extras/inc/tags_panel.html +3 -3
- nautobot/extras/templates/extras/job.html +154 -155
- nautobot/extras/templates/extras/job_approval_confirmation.html +4 -27
- nautobot/extras/templates/extras/job_bulk_edit.html +18 -1
- nautobot/extras/templates/extras/job_detail.html +1 -1
- nautobot/extras/templates/extras/job_edit.html +69 -64
- nautobot/extras/templates/extras/job_list.html +37 -60
- nautobot/extras/templates/extras/jobresult.html +1 -1
- nautobot/extras/templates/extras/jobresult_retrieve.html +17 -17
- nautobot/extras/templates/extras/marketplace.html +62 -71
- nautobot/extras/templates/extras/metadatatype_create.html +9 -9
- nautobot/extras/templates/extras/note.html +1 -1
- nautobot/extras/templates/extras/object_approvalworkflow.html +36 -0
- nautobot/extras/templates/extras/object_assign_contact_or_team.html +16 -7
- nautobot/extras/templates/extras/object_configcontext.html +20 -20
- nautobot/extras/templates/extras/object_new_contact.html +6 -6
- nautobot/extras/templates/extras/object_new_team.html +6 -6
- nautobot/extras/templates/extras/objectchange.html +1 -1
- nautobot/extras/templates/extras/objectchange_retrieve.html +37 -56
- nautobot/extras/templates/extras/plugin_detail.html +40 -41
- nautobot/extras/templates/extras/plugins_list.html +23 -38
- nautobot/extras/templates/extras/plugins_tiles.html +28 -28
- nautobot/extras/templates/extras/role_retrieve.html +112 -48
- nautobot/extras/templates/extras/scheduledjob.html +25 -28
- nautobot/extras/templates/extras/secret_create.html +11 -11
- nautobot/extras/templates/extras/secretsgroup_update.html +6 -6
- nautobot/extras/templates/extras/staticgroupassociation_retrieve.html +3 -3
- nautobot/extras/templates/extras/status.html +1 -1
- nautobot/extras/templates/extras/tag.html +1 -1
- nautobot/extras/templates/extras/tag_update.html +3 -3
- nautobot/extras/templates/extras/templatetags/log_level.html +1 -1
- nautobot/extras/templates/extras/templatetags/plugin_object_detail_tabs.html +2 -2
- nautobot/extras/templates/extras/webhook.html +12 -12
- nautobot/extras/templatetags/approvals.py +19 -0
- nautobot/extras/templatetags/custom_links.py +12 -12
- nautobot/extras/templatetags/job_buttons.py +14 -12
- nautobot/extras/test_jobs/invalid_import.py +9 -0
- nautobot/extras/test_jobs/log_counts_by_level.py +23 -0
- nautobot/extras/test_jobs/missing_import.py +11 -0
- nautobot/extras/tests/integration/test_computedfields.py +5 -8
- nautobot/extras/tests/integration/test_configcontextschema.py +43 -48
- nautobot/extras/tests/integration/test_customfields.py +33 -33
- nautobot/extras/tests/integration/test_dynamicgroups.py +5 -10
- nautobot/extras/tests/integration/test_jobs.py +2 -4
- nautobot/extras/tests/integration/test_notes.py +3 -9
- nautobot/extras/tests/integration/test_plugin_banner.py +3 -0
- nautobot/extras/tests/integration/test_plugins.py +35 -27
- nautobot/extras/tests/integration/test_relationships.py +7 -11
- nautobot/extras/tests/integration/test_tagfilter.py +3 -11
- nautobot/extras/tests/test_api.py +786 -242
- nautobot/extras/tests/test_approvals.py +715 -0
- nautobot/extras/tests/test_changelog.py +18 -14
- nautobot/extras/tests/test_customfields.py +14 -13
- nautobot/extras/tests/test_datasources.py +1 -1
- nautobot/extras/tests/test_dynamicgroups.py +9 -4
- nautobot/extras/tests/test_filters.py +443 -13
- nautobot/extras/tests/test_forms.py +18 -57
- nautobot/extras/tests/test_jobs.py +25 -4
- nautobot/extras/tests/test_migrations.py +81 -1
- nautobot/extras/tests/test_models.py +378 -47
- nautobot/extras/tests/test_plugins.py +47 -13
- nautobot/extras/tests/test_relationships.py +7 -2
- nautobot/extras/tests/test_utils.py +2 -0
- nautobot/extras/tests/test_views.py +780 -493
- nautobot/extras/urls.py +36 -12
- nautobot/extras/utils.py +58 -12
- nautobot/extras/views.py +668 -209
- nautobot/ipam/factory.py +7 -0
- nautobot/ipam/filter_mixins.py +38 -0
- nautobot/ipam/filters.py +35 -71
- nautobot/ipam/formfields.py +1 -1
- nautobot/ipam/forms.py +6 -3
- nautobot/ipam/migrations/0030_ipam__namespaces.py +13 -0
- nautobot/ipam/migrations/0031_ipam___data_migrations.py +4 -1
- nautobot/ipam/migrations/0054_namespace_tenant.py +25 -0
- nautobot/ipam/models.py +29 -2
- nautobot/ipam/navigation.py +3 -1
- nautobot/ipam/querysets.py +1 -2
- nautobot/ipam/tables.py +26 -17
- nautobot/ipam/templates/ipam/inc/ipadress_edit_header.html +6 -6
- nautobot/ipam/templates/ipam/inc/service.html +8 -8
- nautobot/ipam/templates/ipam/inc/toggle_available.html +10 -10
- nautobot/ipam/templates/ipam/inc/vlangroup_header.html +3 -2
- nautobot/ipam/templates/ipam/ipaddress.html +27 -13
- nautobot/ipam/templates/ipam/ipaddress_assign.html +31 -24
- nautobot/ipam/templates/ipam/ipaddress_bulk_add.html +3 -3
- nautobot/ipam/templates/ipam/ipaddress_edit.html +9 -9
- nautobot/ipam/templates/ipam/ipaddress_interfaces.html +7 -9
- nautobot/ipam/templates/ipam/ipaddress_merge.html +195 -186
- nautobot/ipam/templates/ipam/ipaddress_vm_interfaces.html +7 -9
- nautobot/ipam/templates/ipam/ipaddresstointerface_retrieve.html +7 -5
- nautobot/ipam/templates/ipam/namespace_ip_addresses.html +1 -1
- nautobot/ipam/templates/ipam/namespace_prefixes.html +1 -1
- nautobot/ipam/templates/ipam/namespace_update.html +15 -0
- nautobot/ipam/templates/ipam/namespace_vrfs.html +1 -1
- nautobot/ipam/templates/ipam/prefix_create.html +9 -9
- nautobot/ipam/templates/ipam/prefix_list.html +15 -14
- nautobot/ipam/templates/ipam/prefix_retrieve.html +0 -1
- nautobot/ipam/templates/ipam/vlan.html +1 -1
- nautobot/ipam/templates/ipam/vlan_interfaces.html +1 -1
- nautobot/ipam/templates/ipam/vlan_update.html +6 -6
- nautobot/ipam/templates/ipam/vlan_vminterfaces.html +1 -1
- nautobot/ipam/templates/ipam/vrf_edit.html +15 -15
- nautobot/ipam/tests/integration/test_prefixes.py +5 -13
- nautobot/ipam/tests/migration/test_migrations.py +89 -0
- nautobot/ipam/tests/test_api.py +20 -7
- nautobot/ipam/tests/test_filters.py +10 -0
- nautobot/ipam/tests/test_forms.py +1 -1
- nautobot/ipam/tests/test_models.py +1 -1
- nautobot/ipam/tests/test_tables.py +1 -2
- nautobot/ipam/tests/test_utils.py +1 -1
- nautobot/ipam/tests/test_views.py +24 -21
- nautobot/ipam/ui.py +0 -17
- nautobot/ipam/utils/migrations.py +16 -2
- nautobot/ipam/utils/testing.py +9 -3
- nautobot/ipam/views.py +49 -7
- nautobot/project-static/dist/css/graphql-libraries.css +655 -0
- nautobot/project-static/dist/css/graphql-libraries.css.map +1 -0
- nautobot/project-static/dist/css/materialdesignicons.css +3 -0
- nautobot/project-static/dist/css/materialdesignicons.css.map +1 -0
- nautobot/project-static/dist/css/nautobot.css +13 -0
- nautobot/project-static/dist/css/nautobot.css.map +1 -0
- nautobot/project-static/dist/js/graphql-libraries.js +3 -0
- nautobot/project-static/dist/js/graphql-libraries.js.LICENSE.txt +62 -0
- nautobot/project-static/dist/js/graphql-libraries.js.map +1 -0
- nautobot/project-static/dist/js/libraries.js +3 -0
- nautobot/project-static/dist/js/libraries.js.LICENSE.txt +65 -0
- nautobot/project-static/dist/js/libraries.js.map +1 -0
- nautobot/project-static/dist/js/materialdesignicons.js +0 -0
- nautobot/project-static/dist/js/nautobot-graphiql.js +2 -0
- nautobot/project-static/dist/js/nautobot-graphiql.js.map +1 -0
- nautobot/project-static/dist/js/nautobot.js +2 -0
- nautobot/project-static/dist/js/nautobot.js.map +1 -0
- nautobot/project-static/fonts/Montserrat-v30-Bold.woff2 +0 -0
- nautobot/project-static/fonts/Montserrat-v30-Light.woff2 +0 -0
- nautobot/project-static/fonts/Montserrat-v30-Regular.woff2 +0 -0
- nautobot/project-static/fonts/Roboto-v48-Bold.woff2 +0 -0
- nautobot/project-static/fonts/Roboto-v48-Light.woff2 +0 -0
- nautobot/project-static/fonts/Roboto-v48-Regular.woff2 +0 -0
- nautobot/project-static/img/jinja_logo.svg +21 -92
- nautobot/project-static/js/cabletrace.js +1 -1
- nautobot/project-static/js/editor.js +4 -4
- nautobot/project-static/js/forms.js +67 -717
- nautobot/project-static/js/job_result.js +2 -2
- nautobot/project-static/nautobot-icons/360-degrees.svg +3 -0
- nautobot/project-static/nautobot-icons/arrow-decision.svg +3 -0
- nautobot/project-static/nautobot-icons/arrows-expand-rec.svg +3 -0
- nautobot/project-static/nautobot-icons/arrows-move-2-rec.svg +3 -0
- nautobot/project-static/nautobot-icons/arrows-move-rec.svg +3 -0
- nautobot/project-static/nautobot-icons/atom.svg +3 -0
- nautobot/project-static/nautobot-icons/battery-3.svg +3 -0
- nautobot/project-static/nautobot-icons/branch.svg +3 -0
- nautobot/project-static/nautobot-icons/briefcase-2.svg +3 -0
- nautobot/project-static/nautobot-icons/cable-data-2.svg +3 -0
- nautobot/project-static/nautobot-icons/cable-data.svg +3 -0
- nautobot/project-static/nautobot-icons/cast.svg +3 -0
- nautobot/project-static/nautobot-icons/check-circle.svg +3 -0
- nautobot/project-static/nautobot-icons/checkbox-circle.svg +3 -0
- nautobot/project-static/nautobot-icons/checkbox-rec.svg +3 -0
- nautobot/project-static/nautobot-icons/cloud-check.svg +3 -0
- nautobot/project-static/nautobot-icons/cloud-lightning.svg +3 -0
- nautobot/project-static/nautobot-icons/cloud-upload.svg +3 -0
- nautobot/project-static/nautobot-icons/cloud.svg +3 -0
- nautobot/project-static/nautobot-icons/compass.svg +3 -0
- nautobot/project-static/nautobot-icons/control-panel.svg +3 -0
- nautobot/project-static/nautobot-icons/credit-card.svg +3 -0
- nautobot/project-static/nautobot-icons/device-lifecycle.svg +3 -0
- nautobot/project-static/nautobot-icons/direction.svg +3 -0
- nautobot/project-static/nautobot-icons/elements.svg +3 -0
- nautobot/project-static/nautobot-icons/extensibility.svg +3 -0
- nautobot/project-static/nautobot-icons/globe-2.svg +3 -0
- nautobot/project-static/nautobot-icons/globe.svg +3 -0
- nautobot/project-static/nautobot-icons/hammer.svg +3 -0
- nautobot/project-static/nautobot-icons/history.svg +3 -0
- nautobot/project-static/nautobot-icons/ip.svg +3 -0
- nautobot/project-static/nautobot-icons/laptop.svg +3 -0
- nautobot/project-static/nautobot-icons/lightning.svg +3 -0
- nautobot/project-static/nautobot-icons/list-unordered.svg +3 -0
- nautobot/project-static/nautobot-icons/map-view.svg +3 -0
- nautobot/project-static/nautobot-icons/organization.svg +3 -0
- nautobot/project-static/nautobot-icons/pin-2.svg +3 -0
- nautobot/project-static/nautobot-icons/pin-3.svg +3 -0
- nautobot/project-static/nautobot-icons/plug.svg +3 -0
- nautobot/project-static/nautobot-icons/refresh-cw.svg +3 -0
- nautobot/project-static/nautobot-icons/rocket-2.svg +3 -0
- nautobot/project-static/nautobot-icons/rotate-cw.svg +3 -0
- nautobot/project-static/nautobot-icons/route.svg +3 -0
- nautobot/project-static/nautobot-icons/secrets.svg +3 -0
- nautobot/project-static/nautobot-icons/security.svg +3 -0
- nautobot/project-static/nautobot-icons/server-2.svg +3 -0
- nautobot/project-static/nautobot-icons/server.svg +3 -0
- nautobot/project-static/nautobot-icons/share.svg +3 -0
- nautobot/project-static/nautobot-icons/shield-check.svg +3 -0
- nautobot/project-static/nautobot-icons/sitemap-outline.svg +3 -0
- nautobot/project-static/nautobot-icons/sliders-vert-2.svg +3 -0
- nautobot/project-static/nautobot-icons/sliders-vert.svg +3 -0
- nautobot/project-static/nautobot-icons/star-filled.svg +3 -0
- nautobot/project-static/nautobot-icons/star.svg +3 -0
- nautobot/project-static/nautobot-icons/transform.svg +3 -0
- nautobot/project-static/nautobot-icons/wifi.svg +3 -0
- nautobot/tenancy/api/serializers.py +1 -0
- nautobot/tenancy/api/views.py +2 -1
- nautobot/tenancy/{filters/__init__.py → filters.py} +2 -10
- nautobot/tenancy/navigation.py +3 -1
- nautobot/tenancy/templates/tenancy/tenant_create.html +6 -6
- nautobot/tenancy/tests/test_filters.py +0 -2
- nautobot/tenancy/views.py +2 -1
- nautobot/ui/.gitignore +137 -0
- nautobot/ui/.node-version +1 -0
- nautobot/ui/.prettierignore +3 -0
- nautobot/ui/eslint.config.js +33 -0
- nautobot/ui/package-lock.json +6594 -0
- nautobot/ui/package.json +67 -0
- nautobot/ui/prettier.config.js +9 -0
- nautobot/ui/src/js/collapse.js +69 -0
- nautobot/ui/src/js/cookie.js +31 -0
- nautobot/ui/src/js/draggable.js +101 -0
- nautobot/ui/src/js/drawer.js +106 -0
- nautobot/ui/src/js/form.js +23 -0
- nautobot/ui/src/js/history.js +51 -0
- nautobot/ui/src/js/nautobot-graphiql.js +19 -0
- nautobot/ui/src/js/nautobot.js +128 -0
- nautobot/ui/src/js/search.js +274 -0
- nautobot/ui/src/js/select2.js +318 -0
- nautobot/ui/src/js/sidenav.js +87 -0
- nautobot/ui/src/js/tabs.js +139 -0
- nautobot/ui/src/js/theme.js +104 -0
- nautobot/ui/src/js/utils.js +54 -0
- nautobot/ui/src/scss/colors.scss +58 -0
- nautobot/ui/src/scss/nautobot.scss +2471 -0
- nautobot/ui/webpack.config.js +148 -0
- nautobot/users/apps.py +3 -0
- nautobot/users/filters.py +7 -11
- nautobot/users/forms.py +10 -0
- nautobot/users/models.py +8 -0
- nautobot/users/templates/users/advanced_settings_edit.html +31 -21
- nautobot/users/templates/users/api_tokens.html +61 -51
- nautobot/users/templates/users/base.html +23 -31
- nautobot/users/templates/users/change_password.html +29 -19
- nautobot/users/templates/users/preferences.html +55 -45
- nautobot/users/templates/users/profile.html +45 -14
- nautobot/users/tests/test_api.py +4 -0
- nautobot/users/urls.py +2 -0
- nautobot/users/views.py +70 -2
- nautobot/virtualization/api/views.py +1 -1
- nautobot/virtualization/filters.py +18 -32
- nautobot/virtualization/forms.py +22 -59
- nautobot/virtualization/models.py +1 -19
- nautobot/virtualization/navigation.py +3 -1
- nautobot/virtualization/tables.py +10 -6
- nautobot/virtualization/templates/virtualization/cluster.html +13 -13
- nautobot/virtualization/templates/virtualization/cluster_edit.html +6 -6
- nautobot/virtualization/templates/virtualization/inc/virtualmachine_vminterface_filter.html +1 -1
- nautobot/virtualization/templates/virtualization/virtualmachine.html +1 -1
- nautobot/virtualization/templates/virtualization/virtualmachine_component_add.html +24 -16
- nautobot/virtualization/templates/virtualization/virtualmachine_edit.html +1 -1
- nautobot/virtualization/templates/virtualization/virtualmachine_list.html +4 -4
- nautobot/virtualization/templates/virtualization/virtualmachine_update.html +27 -25
- nautobot/virtualization/templates/virtualization/vminterface.html +5 -5
- nautobot/virtualization/templates/virtualization/vminterface_edit.html +27 -11
- nautobot/virtualization/tests/test_api.py +3 -0
- nautobot/virtualization/tests/test_models.py +20 -5
- nautobot/virtualization/tests/test_views.py +3 -5
- nautobot/virtualization/urls.py +0 -11
- nautobot/virtualization/views.py +5 -122
- nautobot/vpn/__init__.py +0 -0
- nautobot/vpn/api/serializers.py +113 -0
- nautobot/vpn/api/urls.py +19 -0
- nautobot/vpn/api/views.py +70 -0
- nautobot/vpn/apps.py +8 -0
- nautobot/vpn/choices.py +171 -0
- nautobot/vpn/factory.py +209 -0
- nautobot/vpn/filters.py +233 -0
- nautobot/vpn/forms.py +486 -0
- nautobot/vpn/homepage.py +19 -0
- nautobot/vpn/migrations/0001_initial.py +541 -0
- nautobot/vpn/migrations/0002_populate_defaults.py +199 -0
- nautobot/vpn/migrations/__init__.py +0 -0
- nautobot/vpn/models.py +527 -0
- nautobot/vpn/navigation.py +98 -0
- nautobot/vpn/tables.py +380 -0
- nautobot/vpn/templates/vpn/vpnprofile.html +2 -0
- nautobot/vpn/templates/vpn/vpnprofile_create.html +150 -0
- nautobot/vpn/tests/__init__.py +0 -0
- nautobot/vpn/tests/test_api.py +341 -0
- nautobot/vpn/tests/test_filters.py +139 -0
- nautobot/vpn/tests/test_forms.py +294 -0
- nautobot/vpn/tests/test_models.py +97 -0
- nautobot/vpn/tests/test_views.py +281 -0
- nautobot/vpn/urls.py +16 -0
- nautobot/vpn/views.py +437 -0
- nautobot/wireless/filters.py +0 -8
- nautobot/wireless/navigation.py +3 -1
- nautobot/wireless/templates/wireless/wirelessnetwork_create.html +6 -6
- nautobot/wireless/tests/integration/test_radio_profile.py +3 -7
- nautobot/wireless/tests/test_api.py +1 -1
- {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/METADATA +5 -4
- {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/RECORD +802 -707
- {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/entry_points.txt +1 -0
- nautobot/core/management/commands/check_job_approval_status.py +0 -47
- nautobot/core/templates/search_form.html +0 -9
- nautobot/core/templates/utilities/templatetags/filter_form_modal.html +0 -87
- nautobot/dcim/filters/mixins.py +0 -354
- nautobot/extras/templates/extras/job_approval_request.html +0 -134
- nautobot/extras/templates/extras/scheduled_jobs_approval_queue_list.html +0 -28
- nautobot/ipam/mixins.py +0 -32
- nautobot/ipam/templates/ipam/inc/prefix_header_extra_content_table.html +0 -4
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.css +0 -587
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.css.map +0 -1
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.min.css +0 -6
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.min.css.map +0 -1
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.css +0 -6865
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.css.map +0 -1
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.min.css +0 -6
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.min.css.map +0 -1
- nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.eot +0 -0
- nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.svg +0 -288
- nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.woff +0 -0
- nautobot/project-static/bootstrap-3.4.1-dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
- nautobot/project-static/bootstrap-3.4.1-dist/js/bootstrap.js +0 -2580
- nautobot/project-static/bootstrap-3.4.1-dist/js/bootstrap.min.js +0 -6
- nautobot/project-static/bootstrap-3.4.1-dist/js/npm.js +0 -13
- nautobot/project-static/clipboard.js-2.0.9/clipboard.min.js +0 -7
- nautobot/project-static/css/base.css +0 -1040
- nautobot/project-static/css/dark.css +0 -282
- nautobot/project-static/flatpickr-4.6.9/flatpickr.min.js +0 -2
- nautobot/project-static/flatpickr-4.6.9/themes/light.min.css +0 -1
- nautobot/project-static/graphiql-1.5.16/graphiql.min.css +0 -12
- nautobot/project-static/graphiql-1.5.16/graphiql.min.js +0 -11
- nautobot/project-static/highlight.js-11.9.0/github-dark.min.css +0 -10
- nautobot/project-static/highlight.js-11.9.0/github.min.css +0 -10
- nautobot/project-static/highlight.js-11.9.0/highlight.min.js +0 -378
- nautobot/project-static/jquery/jquery-3.7.1.min.js +0 -2
- nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_444444_256x240.png +0 -0
- nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_555555_256x240.png +0 -0
- nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_777620_256x240.png +0 -0
- nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_777777_256x240.png +0 -0
- nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_cc0000_256x240.png +0 -0
- nautobot/project-static/jquery-ui-1.13.2/images/ui-icons_ffffff_256x240.png +0 -0
- nautobot/project-static/jquery-ui-1.13.2/jquery-ui.min.css +0 -7
- nautobot/project-static/jquery-ui-1.13.2/jquery-ui.min.js +0 -6
- nautobot/project-static/jquery-ui-1.13.2/jquery-ui.structure.min.css +0 -5
- nautobot/project-static/jquery-ui-1.13.2/jquery-ui.theme.min.css +0 -5
- nautobot/project-static/js/homepage_layout.js +0 -182
- nautobot/project-static/js/nav_menu.js +0 -250
- nautobot/project-static/js/theme.js +0 -133
- nautobot/project-static/materialdesignicons-7.4.47/LICENSE +0 -20
- nautobot/project-static/materialdesignicons-7.4.47/css/materialdesignicons.min.css +0 -3
- nautobot/project-static/react-16.14.0/react.production.min.js +0 -32
- nautobot/project-static/react-dom-16.14.0/react-dom.production.min.js +0 -239
- nautobot/project-static/select2-4.0.13/i18n/af.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ar.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/az.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/bg.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/bn.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/bs.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ca.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/cs.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/da.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/de.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/dsb.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/el.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/en.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/es.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/et.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/eu.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/fa.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/fi.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/fr.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/gl.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/he.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/hi.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/hr.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/hsb.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/hu.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/hy.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/id.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/is.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/it.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ja.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ka.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/km.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ko.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/lt.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/lv.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/mk.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ms.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/nb.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ne.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/nl.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/pl.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ps.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/pt-BR.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/pt.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ro.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/ru.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/sk.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/sl.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/sq.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/sr-Cyrl.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/sr.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/sv.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/th.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/tk.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/tr.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/uk.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/vi.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/zh-CN.js +0 -3
- nautobot/project-static/select2-4.0.13/i18n/zh-TW.js +0 -3
- nautobot/project-static/select2-4.0.13/select2.min.css +0 -1
- nautobot/project-static/select2-4.0.13/select2.min.js +0 -2
- nautobot/project-static/select2-bootstrap-0.1.0-beta.10/select2-bootstrap.min.css +0 -7
- nautobot/project-static/subscriptions-transport-ws-0.9.18/client.min.js +0 -8
- nautobot/project-static/whatwg-fetch-3.6.2/fetch.umd.min.js +0 -8
- nautobot/virtualization/templates/virtualization/cluster_add_devices.html +0 -37
- /nautobot/extras/{filters/customfields.py → filter_mixins_customfields.py} +0 -0
- /nautobot/project-static/{materialdesignicons-7.4.47/fonts/materialdesignicons-webfont.ttf → dist/1fcc36272ea3e53d0031.ttf} +0 -0
- /nautobot/project-static/{materialdesignicons-7.4.47/fonts/materialdesignicons-webfont.eot → dist/2146c3c82b553977abc7.eot} +0 -0
- /nautobot/project-static/{materialdesignicons-7.4.47/fonts/materialdesignicons-webfont.woff → dist/e55a20c80650829ec5fd.woff} +0 -0
- /nautobot/project-static/{materialdesignicons-7.4.47/fonts/materialdesignicons-webfont.woff2 → dist/ec024da790d2972da002.woff2} +0 -0
- /nautobot/tenancy/{filters/mixins.py → filter_mixins.py} +0 -0
- {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/LICENSE.txt +0 -0
- {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/NOTICE +0 -0
- {nautobot-2.4.21.dist-info → nautobot-3.0.0a3.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,2471 @@
|
|
|
1
|
+
/* nautobot.scss */
|
|
2
|
+
|
|
3
|
+
@use "sass:list";
|
|
4
|
+
@use "sass:map";
|
|
5
|
+
@use "sass:meta";
|
|
6
|
+
@use "sass:string";
|
|
7
|
+
|
|
8
|
+
/* 1. Include functions first (so you can manipulate colors, SVGs, calc, etc) */
|
|
9
|
+
@import "bootstrap/scss/functions";
|
|
10
|
+
|
|
11
|
+
@function replace-svg-color($svg, $original-color, $target-color) {
|
|
12
|
+
$index: string.index($svg, #{$original-color});
|
|
13
|
+
$length: string.length(#{$original-color});
|
|
14
|
+
@return #{string.slice($svg, 1, $index - 1)}#{$target-color}#{string.slice($svg, $index + $length, -1)};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* 2. Include any default variable overrides here */
|
|
18
|
+
@import "colors";
|
|
19
|
+
|
|
20
|
+
/* Color system */
|
|
21
|
+
$white: $white-0;
|
|
22
|
+
$black: $black-0;
|
|
23
|
+
|
|
24
|
+
$blue: $blue-0;
|
|
25
|
+
$red: $red-0;
|
|
26
|
+
$orange: $orange-0;
|
|
27
|
+
$yellow: $orange-0;
|
|
28
|
+
$green: $green-0;
|
|
29
|
+
$cyan: $blue-0;
|
|
30
|
+
|
|
31
|
+
$primary: $blue-0;
|
|
32
|
+
$secondary: $gray-3;
|
|
33
|
+
$success: $green-0;
|
|
34
|
+
$info: $blue-0;
|
|
35
|
+
$warning: $orange-0;
|
|
36
|
+
$danger: $red-0;
|
|
37
|
+
$light: $gray-3;
|
|
38
|
+
$dark: $gray-3;
|
|
39
|
+
|
|
40
|
+
$primary-text-emphasis: $blue-0;
|
|
41
|
+
$secondary-text-emphasis: $gray-3;
|
|
42
|
+
$success-text-emphasis: $green-0;
|
|
43
|
+
$info-text-emphasis: $blue-0;
|
|
44
|
+
$warning-text-emphasis: $orange-0;
|
|
45
|
+
$danger-text-emphasis: $red-0;
|
|
46
|
+
$light-text-emphasis: $gray-3;
|
|
47
|
+
$dark-text-emphasis: $gray-3;
|
|
48
|
+
|
|
49
|
+
$primary-bg-subtle: $blue-1;
|
|
50
|
+
$secondary-bg-subtle: $gray-0;
|
|
51
|
+
$success-bg-subtle: $green-1;
|
|
52
|
+
$info-bg-subtle: $blue-1;
|
|
53
|
+
$warning-bg-subtle: $orange-1;
|
|
54
|
+
$danger-bg-subtle: $red-1;
|
|
55
|
+
$light-bg-subtle: $gray-0;
|
|
56
|
+
$dark-bg-subtle: $gray-0;
|
|
57
|
+
|
|
58
|
+
$primary-border-subtle: $blue-2;
|
|
59
|
+
$secondary-border-subtle: $gray-05;
|
|
60
|
+
$success-border-subtle: $green-2;
|
|
61
|
+
$info-border-subtle: $blue-2;
|
|
62
|
+
$warning-border-subtle: $orange-2;
|
|
63
|
+
$danger-border-subtle: $red-2;
|
|
64
|
+
$light-border-subtle: $gray-05;
|
|
65
|
+
$dark-border-subtle: $gray-05;
|
|
66
|
+
|
|
67
|
+
$primary-dark: $blue-0-dark;
|
|
68
|
+
$secondary-dark: $gray-3-dark;
|
|
69
|
+
$success-dark: $green-0-dark;
|
|
70
|
+
$info-dark: $blue-0-dark;
|
|
71
|
+
$warning-dark: $orange-0-dark;
|
|
72
|
+
$danger-dark: $red-0-dark;
|
|
73
|
+
$light-dark: $gray-3-dark;
|
|
74
|
+
$dark-dark: $gray-3-dark;
|
|
75
|
+
|
|
76
|
+
$theme-colors-dark: (
|
|
77
|
+
"primary": $primary-dark,
|
|
78
|
+
"secondary": $secondary-dark,
|
|
79
|
+
"success": $success-dark,
|
|
80
|
+
"info": $info-dark,
|
|
81
|
+
"warning": $warning-dark,
|
|
82
|
+
"danger": $danger-dark,
|
|
83
|
+
"light": $light-dark,
|
|
84
|
+
"dark": $dark-dark
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
$primary-text-emphasis-dark: $blue-0-dark;
|
|
88
|
+
$secondary-text-emphasis-dark: $gray-3-dark;
|
|
89
|
+
$success-text-emphasis-dark: $green-0-dark;
|
|
90
|
+
$info-text-emphasis-dark: $blue-0-dark;
|
|
91
|
+
$warning-text-emphasis-dark: $orange-0-dark;
|
|
92
|
+
$danger-text-emphasis-dark: $red-0-dark;
|
|
93
|
+
$light-text-emphasis-dark: $gray-3-dark;
|
|
94
|
+
$dark-text-emphasis-dark: $gray-3-dark;
|
|
95
|
+
|
|
96
|
+
$primary-bg-subtle-dark: $blue-1-dark;
|
|
97
|
+
$secondary-bg-subtle-dark: $gray-0-dark;
|
|
98
|
+
$success-bg-subtle-dark: $green-1-dark;
|
|
99
|
+
$info-bg-subtle-dark: $blue-1-dark;
|
|
100
|
+
$warning-bg-subtle-dark: $orange-1-dark;
|
|
101
|
+
$danger-bg-subtle-dark: $red-1-dark;
|
|
102
|
+
$light-bg-subtle-dark: $gray-0-dark;
|
|
103
|
+
$dark-bg-subtle-dark: $gray-0-dark;
|
|
104
|
+
|
|
105
|
+
$primary-border-subtle-dark: $blue-2-dark;
|
|
106
|
+
$secondary-border-subtle-dark: $gray-05-dark;
|
|
107
|
+
$success-border-subtle-dark: $green-2-dark;
|
|
108
|
+
$info-border-subtle-dark: $blue-2-dark;
|
|
109
|
+
$warning-border-subtle-dark: $orange-2-dark;
|
|
110
|
+
$danger-border-subtle-dark: $red-2-dark;
|
|
111
|
+
$light-border-subtle-dark: $gray-05-dark;
|
|
112
|
+
$dark-border-subtle-dark: $gray-05-dark;
|
|
113
|
+
|
|
114
|
+
/* Options */
|
|
115
|
+
$enable-shadows: true;
|
|
116
|
+
$enable-caret: false;
|
|
117
|
+
$enable-negative-margins: true;
|
|
118
|
+
|
|
119
|
+
$prefix: bs-;
|
|
120
|
+
|
|
121
|
+
/* Spacing */
|
|
122
|
+
$spacer: 1rem;
|
|
123
|
+
/*
|
|
124
|
+
* `$spacers` were supposed to use a popular notation adapted by Tailwind CSS,
|
|
125
|
+
* where keys include decimals, such as 0.5, 1.5, 2.5, etc. Ultimately, it was
|
|
126
|
+
* impossible to achieve due to SCSS shortcomings.
|
|
127
|
+
*/
|
|
128
|
+
$spacers: (
|
|
129
|
+
0: 0,
|
|
130
|
+
1: $spacer * 0.0625,
|
|
131
|
+
2: $spacer * 0.125,
|
|
132
|
+
4: $spacer * 0.25,
|
|
133
|
+
5: $spacer * 0.3125,
|
|
134
|
+
6: $spacer * 0.375,
|
|
135
|
+
8: $spacer * 0.5,
|
|
136
|
+
10: $spacer * 0.625,
|
|
137
|
+
12: $spacer * 0.75,
|
|
138
|
+
14: $spacer * 0.875,
|
|
139
|
+
16: $spacer * 1,
|
|
140
|
+
20: $spacer * 1.25,
|
|
141
|
+
24: $spacer * 1.5,
|
|
142
|
+
);
|
|
143
|
+
|
|
144
|
+
/* Body */
|
|
145
|
+
$body-color: $black-0;
|
|
146
|
+
$body-bg: $white-0;
|
|
147
|
+
|
|
148
|
+
$body-secondary-color: $gray-3;
|
|
149
|
+
$body-secondary-bg: $bg;
|
|
150
|
+
|
|
151
|
+
$body-tertiary-color: $gray-2;
|
|
152
|
+
$body-tertiary-bg: $gray-0;
|
|
153
|
+
|
|
154
|
+
$body-emphasis-color: $black-0;
|
|
155
|
+
|
|
156
|
+
$body-color-dark: $black-0-dark;
|
|
157
|
+
$body-bg-dark: $white-0-dark;
|
|
158
|
+
$body-secondary-color-dark: $gray-3-dark;
|
|
159
|
+
$body-secondary-bg-dark: $bg-dark;
|
|
160
|
+
$body-tertiary-color-dark: $gray-2-dark;
|
|
161
|
+
$body-tertiary-bg-dark: $gray-0-dark;
|
|
162
|
+
$body-emphasis-color-dark: $black-0-dark;
|
|
163
|
+
|
|
164
|
+
/* Links */
|
|
165
|
+
$link-color: $primary-text-emphasis;
|
|
166
|
+
$link-decoration: none;
|
|
167
|
+
$link-hover-color: $link-color;
|
|
168
|
+
$link-hover-decoration: underline;
|
|
169
|
+
|
|
170
|
+
$link-color-dark: $primary-text-emphasis-dark;
|
|
171
|
+
$link-hover-color-dark: $link-color-dark;
|
|
172
|
+
|
|
173
|
+
/* Grid columns */
|
|
174
|
+
$grid-gutter-width: map.get($spacers, 20);
|
|
175
|
+
|
|
176
|
+
/* Container padding */
|
|
177
|
+
$container-padding-x: $grid-gutter-width * 2;
|
|
178
|
+
|
|
179
|
+
/* Components */
|
|
180
|
+
/* Use `rem` instead of `px` to enable arithmetics with `$spacers`. */
|
|
181
|
+
$border-width: 0.0625rem; /* 1px */
|
|
182
|
+
$border-widths: (
|
|
183
|
+
1: $border-width, /* 1px */
|
|
184
|
+
2: $border-width * 2, /* 2px */
|
|
185
|
+
3: $border-width * 3, /* 3px */
|
|
186
|
+
4: $border-width * 4, /* 4px */
|
|
187
|
+
5: $border-width * 5 /* 5px */
|
|
188
|
+
);
|
|
189
|
+
$border-color: $gray-1;
|
|
190
|
+
$border-color-translucent: $border-color;
|
|
191
|
+
|
|
192
|
+
$border-color-dark: $gray-1-dark;
|
|
193
|
+
$border-color-translucent-dark: $border-color-dark;
|
|
194
|
+
|
|
195
|
+
$border-radius: 0.25rem; /* 4px */;
|
|
196
|
+
$border-radius-sm: $border-radius;
|
|
197
|
+
$border-radius-lg: $border-radius;
|
|
198
|
+
$border-radius-xl: $border-radius;
|
|
199
|
+
$border-radius-xxl: $border-radius;
|
|
200
|
+
$border-radius-pill: $border-radius;
|
|
201
|
+
$border-radius-2xl: $border-radius;
|
|
202
|
+
|
|
203
|
+
$box-shadow: 0.3125rem 0.3125rem 0.625rem 0 rgba(0, 0, 0, 0.25);
|
|
204
|
+
$box-shadow-sm: 0 0 0.625rem 0 rgba(0, 0, 0, 0.1);
|
|
205
|
+
$box-shadow-lg: $box-shadow;
|
|
206
|
+
|
|
207
|
+
$focus-ring-width: 0.25rem; /* 4px */
|
|
208
|
+
$focus-ring-opacity: 1;
|
|
209
|
+
$focus-ring-color: rgba($primary-border-subtle, $focus-ring-opacity);
|
|
210
|
+
$focus-ring-blur: 0;
|
|
211
|
+
$focus-ring-box-shadow: 0 0 $focus-ring-blur $focus-ring-width var(--#{$prefix}focus-ring-color);
|
|
212
|
+
|
|
213
|
+
$focus-ring-color-dark: rgba($primary-border-subtle-dark, $focus-ring-opacity);
|
|
214
|
+
|
|
215
|
+
/* Typography */
|
|
216
|
+
$font-family-sans-serif: "Ubuntu", sans-serif;
|
|
217
|
+
$font-family-monospace: "Ubuntu Mono", monospace;
|
|
218
|
+
|
|
219
|
+
$font-size-root: 1rem; /* Assumes the browser default, typically `16px` */
|
|
220
|
+
$font-size-base: 0.875rem; /* 14px */
|
|
221
|
+
$font-size-sm: 0.75rem; /* 12px */
|
|
222
|
+
$font-size-lg: 1.125rem; /* 18px */
|
|
223
|
+
|
|
224
|
+
$line-height-base: 1.4375;
|
|
225
|
+
$line-height-sm: 1;
|
|
226
|
+
$line-height-lg: 1.67;
|
|
227
|
+
|
|
228
|
+
$h1-font-size: 1.5rem; /* 24px */
|
|
229
|
+
$h2-font-size: 1.25rem; /* 20px */
|
|
230
|
+
$h3-font-size: $font-size-lg; /* 18px */
|
|
231
|
+
$h4-font-size: $font-size-base; /* 14px */
|
|
232
|
+
$h5-font-size: $font-size-sm; /* 12px */
|
|
233
|
+
$h6-font-size: 0.625rem; /* 10px */
|
|
234
|
+
|
|
235
|
+
$headings-margin-bottom: map.get($spacers, 0);
|
|
236
|
+
$headings-line-height: $line-height-lg;
|
|
237
|
+
|
|
238
|
+
$small-font-size: $font-size-sm;
|
|
239
|
+
|
|
240
|
+
$hr-opacity: 1;
|
|
241
|
+
|
|
242
|
+
/* Tables */
|
|
243
|
+
$table-cell-padding-y: map.get($spacers, 8);
|
|
244
|
+
$table-cell-padding-x: map.get($spacers, 10);
|
|
245
|
+
$table-cell-padding-y-sm: map.get($spacers, 4);
|
|
246
|
+
$table-cell-padding-x-sm: map.get($spacers, 4);
|
|
247
|
+
|
|
248
|
+
$table-th-font-weight: 500;
|
|
249
|
+
|
|
250
|
+
$table-striped-bg-factor: 1;
|
|
251
|
+
$table-striped-bg: var(--#{$prefix}tertiary-bg);
|
|
252
|
+
|
|
253
|
+
$table-active-bg-factor: 1;
|
|
254
|
+
$table-active-bg: var(--#{$prefix}primary-bg-subtle);
|
|
255
|
+
|
|
256
|
+
$table-hover-bg-factor: 1;
|
|
257
|
+
$table-hover-bg: var(--#{$prefix}primary-bg-subtle);
|
|
258
|
+
|
|
259
|
+
$table-border-factor: 1;
|
|
260
|
+
|
|
261
|
+
/* Buttons + Forms */
|
|
262
|
+
$input-btn-focus-color: var(--#{$prefix}focus-ring-color);
|
|
263
|
+
|
|
264
|
+
$input-btn-padding-y: map.get($spacers, 6) - $border-width;
|
|
265
|
+
$input-btn-padding-x: map.get($spacers, 12) - $border-width;
|
|
266
|
+
|
|
267
|
+
$input-btn-padding-y-sm: map.get($spacers, 2);
|
|
268
|
+
$input-btn-padding-x-sm: map.get($spacers, 8);
|
|
269
|
+
|
|
270
|
+
$input-btn-padding-y-lg: $input-btn-padding-y;
|
|
271
|
+
$input-btn-padding-x-lg: $input-btn-padding-x;
|
|
272
|
+
$input-btn-font-size-lg: $font-size-base;
|
|
273
|
+
|
|
274
|
+
/* Buttons */
|
|
275
|
+
$btn-box-shadow: 0 0 0 0 transparent;
|
|
276
|
+
$btn-disabled-opacity: 1;
|
|
277
|
+
$btn-active-box-shadow: none;
|
|
278
|
+
|
|
279
|
+
$btn-link-disabled-color: $body-tertiary-color;
|
|
280
|
+
$btn-link-focus-shadow-rgb: to-rgb($primary-border-subtle);
|
|
281
|
+
|
|
282
|
+
$btn-link-disabled-color-dark: $body-tertiary-color-dark;
|
|
283
|
+
$btn-link-focus-shadow-rgb-dark: to-rgb($primary-border-subtle-dark);
|
|
284
|
+
|
|
285
|
+
/* Forms */
|
|
286
|
+
$input-bg: var(--#{$prefix}body-bg);
|
|
287
|
+
$input-disabled-color: var(--#{$prefix}tertiary-color);
|
|
288
|
+
$input-disabled-bg: var(--#{$prefix}tertiary-bg);
|
|
289
|
+
$input-disabled-border-color: var(--#{$prefix}border-color);
|
|
290
|
+
|
|
291
|
+
$input-box-shadow: 0 0 0 0 transparent;
|
|
292
|
+
|
|
293
|
+
$input-focus-border-color: var(--#{$prefix}primary-text-emphasis);
|
|
294
|
+
|
|
295
|
+
$form-check-input-width: 1.25rem;
|
|
296
|
+
$form-check-input-min-height: 1.25rem;
|
|
297
|
+
$form-check-padding-start: 0;
|
|
298
|
+
$form-check-margin-bottom: 0;
|
|
299
|
+
|
|
300
|
+
$form-check-input-bg: $input-bg;
|
|
301
|
+
$form-check-input-border-radius: var(--#{$prefix}border-radius);
|
|
302
|
+
|
|
303
|
+
$form-check-input-checked-color: var(--#{$prefix}primary-text-emphasis);
|
|
304
|
+
$form-check-input-checked-bg-color: $form-check-input-bg;
|
|
305
|
+
$form-check-input-checked-border-color: $form-check-input-checked-color;
|
|
306
|
+
$form-check-input-checked-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='#{$primary-text-emphasis}' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='m6 10 3 3 6-6'/></svg>");
|
|
307
|
+
$form-check-radio-checked-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='2' fill='#{$primary-text-emphasis}'/></svg>");
|
|
308
|
+
|
|
309
|
+
$form-check-input-indeterminate-color: $form-check-input-checked-color;
|
|
310
|
+
$form-check-input-indeterminate-bg-color: $form-check-input-checked-bg-color;
|
|
311
|
+
$form-check-input-indeterminate-border-color: $form-check-input-checked-border-color;
|
|
312
|
+
$form-check-input-indeterminate-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='#{$primary-text-emphasis}' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M6 10h8'/></svg>");
|
|
313
|
+
|
|
314
|
+
$form-check-input-disabled-opacity: 1;
|
|
315
|
+
$form-check-label-disabled-opacity: $form-check-input-disabled-opacity;
|
|
316
|
+
|
|
317
|
+
$form-check-inline-margin-end: map.get($spacers, 16);
|
|
318
|
+
|
|
319
|
+
/* Navs */
|
|
320
|
+
$nav-tabs-link-hover-border-color: var(--#{$prefix}border-color);
|
|
321
|
+
$nav-tabs-link-active-color: var(--#{$prefix}body-color);
|
|
322
|
+
$nav-tabs-link-active-border-color: var(--#{$prefix}border-color);
|
|
323
|
+
|
|
324
|
+
/* Dropdowns */
|
|
325
|
+
$dropdown-min-width: 15rem;
|
|
326
|
+
$dropdown-padding-y: map.get($spacers, 4) - $border-width;
|
|
327
|
+
$dropdown-spacer: $border-width;
|
|
328
|
+
$dropdown-bg: var(--#{$prefix}body-bg);
|
|
329
|
+
$dropdown-border-color: var(--#{$prefix}border-color);
|
|
330
|
+
$dropdown-divider-margin-y: map.get($spacers, 4);
|
|
331
|
+
$dropdown-box-shadow: $box-shadow;
|
|
332
|
+
|
|
333
|
+
$dropdown-link-hover-color: var(--#{$prefix}body-color);
|
|
334
|
+
$dropdown-link-hover-bg: var(--#{$prefix}primary-bg-subtle);
|
|
335
|
+
|
|
336
|
+
$dropdown-link-active-color: var(--#{$prefix}primary-text-emphasis);
|
|
337
|
+
$dropdown-link-active-bg: $dropdown-bg;
|
|
338
|
+
|
|
339
|
+
$dropdown-link-disabled-color: var(--#{$prefix}tertiary-color);
|
|
340
|
+
|
|
341
|
+
$dropdown-item-padding-y: map.get($spacers, 4);
|
|
342
|
+
$dropdown-item-padding-x: map.get($spacers, 12);
|
|
343
|
+
|
|
344
|
+
$dropdown-header-color: var(--#{$prefix}secondary-color);
|
|
345
|
+
/* Using a workaround below to get all 4 individual padding values with shorthand property. */
|
|
346
|
+
$dropdown-header-padding-x: map.get($spacers, 4) $dropdown-item-padding-x;
|
|
347
|
+
$dropdown-header-padding-y: map.get($spacers, 8) $dropdown-item-padding-x;
|
|
348
|
+
|
|
349
|
+
$dropdown-dark-color: $body-emphasis-color-dark;
|
|
350
|
+
$dropdown-dark-bg: $body-bg-dark;
|
|
351
|
+
$dropdown-dark-border-color: $border-color-dark;
|
|
352
|
+
$dropdown-dark-divider-bg: $dropdown-dark-border-color;
|
|
353
|
+
$dropdown-dark-box-shadow: $dropdown-box-shadow;
|
|
354
|
+
$dropdown-dark-link-hover-color: $body-color-dark;
|
|
355
|
+
$dropdown-dark-link-hover-bg: $primary-bg-subtle-dark;
|
|
356
|
+
$dropdown-dark-link-active-color: $primary-text-emphasis-dark;
|
|
357
|
+
$dropdown-dark-link-active-bg: $primary-bg-subtle-dark;
|
|
358
|
+
$dropdown-dark-link-disabled-color: $body-tertiary-color-dark;
|
|
359
|
+
$dropdown-dark-header-color: $body-secondary-color-dark;
|
|
360
|
+
|
|
361
|
+
/* Pagination */
|
|
362
|
+
$pagination-padding-y: $input-btn-padding-y;
|
|
363
|
+
$pagination-padding-x: $input-btn-padding-x;
|
|
364
|
+
$pagination-padding-y-sm: $input-btn-padding-y-sm;
|
|
365
|
+
$pagination-padding-x-sm: $input-btn-padding-x-sm;
|
|
366
|
+
$pagination-padding-y-lg: $input-btn-padding-y-lg;
|
|
367
|
+
$pagination-padding-x-lg: $input-btn-padding-x-lg;
|
|
368
|
+
|
|
369
|
+
$pagination-focus-bg: var(--#{$prefix}primary-bg-subtle);
|
|
370
|
+
|
|
371
|
+
$pagination-hover-bg: var(--#{$prefix}primary-bg-subtle);
|
|
372
|
+
|
|
373
|
+
$pagination-active-color: $white;
|
|
374
|
+
$pagination-active-bg: var(--#{$prefix}primary-text-emphasis);
|
|
375
|
+
$pagination-active-border-color: var(--#{$prefix}primary-text-emphasis);
|
|
376
|
+
|
|
377
|
+
/* Cards */
|
|
378
|
+
$card-spacer-y: map.get($spacers, 8);
|
|
379
|
+
$card-spacer-x: map.get($spacers, 10);
|
|
380
|
+
$card-title-spacer-y: $card-spacer-y;
|
|
381
|
+
$card-title-color: var(--#{$prefix}secondary-color);
|
|
382
|
+
$card-subtitle-color: var(--#{$prefix}tertiary-color);
|
|
383
|
+
$card-border-color: var(--#{$prefix}border-color);
|
|
384
|
+
$card-cap-padding-y: $card-spacer-y;
|
|
385
|
+
$card-cap-padding-x: $card-spacer-x;
|
|
386
|
+
$card-cap-bg: var(--#{$prefix}tertiary-bg);
|
|
387
|
+
$card-cap-color: $card-title-color;
|
|
388
|
+
$card-bg: var(--#{$prefix}body-bg);
|
|
389
|
+
|
|
390
|
+
/* Badges */
|
|
391
|
+
$badge-font-size: $font-size-base;
|
|
392
|
+
$badge-font-weight: 400;
|
|
393
|
+
$badge-color: $body-color;
|
|
394
|
+
$badge-padding-y: map.get($spacers, 2);
|
|
395
|
+
$badge-padding-x: map.get($spacers, 8);
|
|
396
|
+
|
|
397
|
+
/* Modals */
|
|
398
|
+
$modal-title-line-height: $line-height-base;
|
|
399
|
+
|
|
400
|
+
/* List group */
|
|
401
|
+
$list-group-item-padding-y: $table-cell-padding-y;
|
|
402
|
+
$list-group-item-padding-x: $table-cell-padding-x;
|
|
403
|
+
|
|
404
|
+
/* Breadcrumbs */
|
|
405
|
+
$breadcrumb-item-padding-x: map.get($spacers, 4);
|
|
406
|
+
$breadcrumb-margin-bottom: 0;
|
|
407
|
+
|
|
408
|
+
/* Close */
|
|
409
|
+
$btn-close-width: 1.5rem; /* 24px */
|
|
410
|
+
$btn-close-padding-x: 0;
|
|
411
|
+
$btn-close-color: #000000; /* Set color with proper CSS `filter` below. */
|
|
412
|
+
$btn-close-bg: url("data:image/svg+xml,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L12 10.9393L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L13.0607 12L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L12 13.0607L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L10.9393 12L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z' fill='#{$btn-close-color}'/></svg>");
|
|
413
|
+
$btn-close-opacity: 0.68;
|
|
414
|
+
$btn-close-hover-opacity: 1;
|
|
415
|
+
$btn-close-focus-opacity: 1;
|
|
416
|
+
$btn-close-disabled-opacity: 0.31;
|
|
417
|
+
$btn-close-filter: invert(1%) sepia(10%) saturate(233%) hue-rotate(314deg) brightness(99%) contrast(81%); /* $black-0: #1a1a1a; */
|
|
418
|
+
$btn-close-filter-dark: invert(100%); /* $black-0-dark: #ffffff; */
|
|
419
|
+
$btn-close-white-filter: $btn-close-filter-dark;
|
|
420
|
+
|
|
421
|
+
/* Code */
|
|
422
|
+
$kbd-padding-y: map.get($spacers, 1);
|
|
423
|
+
$kbd-padding-x: map.get($spacers, 4);
|
|
424
|
+
$kbd-color: var(--#{$prefix}secondary-color);
|
|
425
|
+
$kbd-bg: var(--#{$prefix}secondary-bg);
|
|
426
|
+
|
|
427
|
+
/* 3. Include remainder of required Bootstrap stylesheets (including any separate color mode stylesheets) */
|
|
428
|
+
@import "bootstrap/scss/variables";
|
|
429
|
+
@import "bootstrap/scss/variables-dark";
|
|
430
|
+
|
|
431
|
+
/* 4. Include any default map overrides here */
|
|
432
|
+
$theme-colors-rgb-dark: map-loop($theme-colors-dark, to-rgb, "$value");
|
|
433
|
+
|
|
434
|
+
/* Breakpoints */
|
|
435
|
+
$sidenav-width-for-breakpoints: 240px; // this is only for calculations below; sidenav has separate variable in rem in Layout section
|
|
436
|
+
|
|
437
|
+
$grid-breakpoints: (
|
|
438
|
+
xs: 0,
|
|
439
|
+
sm: 576px + $sidenav-width-for-breakpoints,
|
|
440
|
+
md: 768px + $sidenav-width-for-breakpoints,
|
|
441
|
+
lg: 992px + $sidenav-width-for-breakpoints,
|
|
442
|
+
xl: 1200px + $sidenav-width-for-breakpoints,
|
|
443
|
+
xxl: 1400px + $sidenav-width-for-breakpoints
|
|
444
|
+
);
|
|
445
|
+
|
|
446
|
+
/* 5. Include remainder of required parts */
|
|
447
|
+
@import "bootstrap/scss/maps";
|
|
448
|
+
@import "bootstrap/scss/mixins";
|
|
449
|
+
|
|
450
|
+
/*
|
|
451
|
+
* Modify original Bootstrap `color-mode` mixin to fall back to `prefers-color-scheme` media query when `data-bs-theme`
|
|
452
|
+
* attribute is not explicitly set on document root `<html>` element. This prevents white background flash during page
|
|
453
|
+
* load when application theme is set to `system` and system theme is `dark`.
|
|
454
|
+
*/
|
|
455
|
+
@mixin color-mode($mode: light, $root: false) {
|
|
456
|
+
@if $color-mode-type == "media-query" {
|
|
457
|
+
@if $root == true {
|
|
458
|
+
@media (prefers-color-scheme: $mode) {
|
|
459
|
+
:root {
|
|
460
|
+
@content;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
} @else {
|
|
464
|
+
@media (prefers-color-scheme: $mode) {
|
|
465
|
+
@content;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
} @else {
|
|
469
|
+
[data-bs-theme="#{$mode}"] {
|
|
470
|
+
@content;
|
|
471
|
+
}
|
|
472
|
+
@if $root == true {
|
|
473
|
+
@media (prefers-color-scheme: $mode) {
|
|
474
|
+
:root:not([data-bs-theme]) {
|
|
475
|
+
@content;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
@import "bootstrap/scss/utilities";
|
|
483
|
+
|
|
484
|
+
$utilities: map-merge(
|
|
485
|
+
$utilities,
|
|
486
|
+
(
|
|
487
|
+
"nb-color": (
|
|
488
|
+
class: nb-text,
|
|
489
|
+
property: color,
|
|
490
|
+
values: (
|
|
491
|
+
body-bg: var(--#{$prefix}body-bg),
|
|
492
|
+
transparent: transparent,
|
|
493
|
+
),
|
|
494
|
+
),
|
|
495
|
+
"nb-cursor": (
|
|
496
|
+
class: nb-cursor,
|
|
497
|
+
property: cursor,
|
|
498
|
+
values: unset,
|
|
499
|
+
),
|
|
500
|
+
"nb-text": (
|
|
501
|
+
class: nb-text,
|
|
502
|
+
property: text-transform,
|
|
503
|
+
values: none,
|
|
504
|
+
),
|
|
505
|
+
"nb-transition": (
|
|
506
|
+
class: nb-transition,
|
|
507
|
+
property: transition,
|
|
508
|
+
values: (
|
|
509
|
+
base: $transition-base,
|
|
510
|
+
fade: $transition-fade,
|
|
511
|
+
none: none,
|
|
512
|
+
),
|
|
513
|
+
),
|
|
514
|
+
"nb-w": (
|
|
515
|
+
class: nb-w,
|
|
516
|
+
property: width,
|
|
517
|
+
values: (
|
|
518
|
+
0: 0,
|
|
519
|
+
)
|
|
520
|
+
),
|
|
521
|
+
"nb-z-index": (
|
|
522
|
+
class: nb-z,
|
|
523
|
+
property: z-index,
|
|
524
|
+
values: (
|
|
525
|
+
dropdown: $zindex-dropdown, /* 1000 */
|
|
526
|
+
sticky: $zindex-sticky, /* 1020 */
|
|
527
|
+
fixed: $zindex-fixed, /* 1030 */
|
|
528
|
+
offcanvas-backdrop: $zindex-offcanvas-backdrop, /* 1040 */
|
|
529
|
+
offcanvas: $zindex-offcanvas, /* 1045 */
|
|
530
|
+
modal-backdrop: $zindex-modal-backdrop, /* 1050 */
|
|
531
|
+
modal: $zindex-modal, /* 1055 */
|
|
532
|
+
popover: $zindex-popover, /* 1070 */
|
|
533
|
+
tooltip: $zindex-tooltip, /* 1080 */
|
|
534
|
+
toast: $zindex-toast, /* 1090 */
|
|
535
|
+
)
|
|
536
|
+
),
|
|
537
|
+
)
|
|
538
|
+
);
|
|
539
|
+
|
|
540
|
+
/* 6. Optionally include any other parts as needed */
|
|
541
|
+
/* TODO: review the below and trim it down as appropriate */
|
|
542
|
+
@import "bootstrap/scss/root";
|
|
543
|
+
@import "bootstrap/scss/reboot";
|
|
544
|
+
@import "bootstrap/scss/type";
|
|
545
|
+
@import "bootstrap/scss/images";
|
|
546
|
+
@import "bootstrap/scss/containers";
|
|
547
|
+
@import "bootstrap/scss/grid";
|
|
548
|
+
@import "bootstrap/scss/tables";
|
|
549
|
+
@import "bootstrap/scss/forms";
|
|
550
|
+
@import "bootstrap/scss/buttons";
|
|
551
|
+
@import "bootstrap/scss/transitions";
|
|
552
|
+
@import "bootstrap/scss/dropdown";
|
|
553
|
+
@import "bootstrap/scss/button-group";
|
|
554
|
+
@import "bootstrap/scss/nav";
|
|
555
|
+
@import "bootstrap/scss/navbar";
|
|
556
|
+
@import "bootstrap/scss/card";
|
|
557
|
+
@import "bootstrap/scss/accordion";
|
|
558
|
+
@import "bootstrap/scss/breadcrumb";
|
|
559
|
+
@import "bootstrap/scss/pagination";
|
|
560
|
+
@import "bootstrap/scss/badge";
|
|
561
|
+
@import "bootstrap/scss/alert";
|
|
562
|
+
@import "bootstrap/scss/progress";
|
|
563
|
+
@import "bootstrap/scss/list-group";
|
|
564
|
+
@import "bootstrap/scss/close";
|
|
565
|
+
@import "bootstrap/scss/toasts";
|
|
566
|
+
@import "bootstrap/scss/modal";
|
|
567
|
+
@import "bootstrap/scss/tooltip";
|
|
568
|
+
@import "bootstrap/scss/popover";
|
|
569
|
+
/* @import "bootstrap/scss/carousel"; */
|
|
570
|
+
@import "bootstrap/scss/spinners";
|
|
571
|
+
@import "bootstrap/scss/offcanvas";
|
|
572
|
+
@import "bootstrap/scss/placeholders";
|
|
573
|
+
|
|
574
|
+
@import "bootstrap/scss/helpers";
|
|
575
|
+
|
|
576
|
+
/* 7. Optionally include utilities API last to generate classes based on the Sass map in `_utilities.scss` */
|
|
577
|
+
@import "bootstrap/scss/utilities/api";
|
|
578
|
+
|
|
579
|
+
/* 8. Include select2 and select2-bootstrap5-theme here */
|
|
580
|
+
@import "select2/src/scss/core";
|
|
581
|
+
|
|
582
|
+
$s2bs5-padding-y: $form-select-padding-y;
|
|
583
|
+
$s2bs5-padding-x: $form-select-padding-x;
|
|
584
|
+
|
|
585
|
+
/* Variables below cannot reference CSS custom properties because of Select2 processing error. We overwrite it later. */
|
|
586
|
+
$s2bs5-item-active-bg: $body-bg;
|
|
587
|
+
$s2bs5-item-hover-bg: $primary-bg-subtle;
|
|
588
|
+
$s2bs5-item-focus-bg: $primary-bg-subtle;
|
|
589
|
+
|
|
590
|
+
$s2bs5-clear-width: 0.75rem; /* 12px */
|
|
591
|
+
$s2bs5-clear-height: 0.75rem; /* 12px */
|
|
592
|
+
$s2bs5-clear-padding-x: $badge-padding-x;
|
|
593
|
+
$s2bs5-clear-padding-y: $badge-padding-y;
|
|
594
|
+
/* This is a workaround for select2-bootstrap5-theme issue: https://github.com/apalfrey/select2-bootstrap-5-theme/issues/75 */
|
|
595
|
+
$s2bs5-clear-icon: $btn-close-bg;
|
|
596
|
+
$s2bs5-clear-bg: transparent escape-svg($s2bs5-clear-icon) center / $s2bs5-clear-height auto no-repeat;
|
|
597
|
+
$s2bs5-clear-hover-bg: transparent escape-svg($s2bs5-clear-icon) center / $s2bs5-clear-height auto no-repeat;
|
|
598
|
+
|
|
599
|
+
@import "select2-bootstrap-5-theme/src/include-all";
|
|
600
|
+
|
|
601
|
+
@mixin select2-clear-icon($size: $s2bs5-clear-height) {
|
|
602
|
+
&:hover {
|
|
603
|
+
&::after {
|
|
604
|
+
opacity: 1;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/* Render background image within `::after` instead of base element to separate scope for `filter` color manipulation. */
|
|
609
|
+
&::after {
|
|
610
|
+
@include transition($transition-fade);
|
|
611
|
+
background: transparent escape-svg($s2bs5-clear-icon) center / $size auto no-repeat;
|
|
612
|
+
content: "";
|
|
613
|
+
filter: $btn-close-filter;
|
|
614
|
+
inset: map.get($spacers, 0);
|
|
615
|
+
opacity: $btn-close-opacity;
|
|
616
|
+
position: absolute;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
@include color-mode(dark, true) {
|
|
621
|
+
.select2-container--bootstrap-5 {
|
|
622
|
+
.select2-selection--single,
|
|
623
|
+
.select2-selection--multiple {
|
|
624
|
+
.select2-selection__clear {
|
|
625
|
+
&::after {
|
|
626
|
+
filter: $btn-close-filter-dark;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.select2-selection--multiple {
|
|
632
|
+
.select2-selection__rendered {
|
|
633
|
+
.select2-selection__choice {
|
|
634
|
+
.select2-selection__choice__remove {
|
|
635
|
+
&::after {
|
|
636
|
+
filter: $btn-close-filter-dark;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.select2-container--bootstrap-5 {
|
|
646
|
+
$select2-clear-width-lg: 1.25rem; /* 20px */
|
|
647
|
+
|
|
648
|
+
.select2-dropdown {
|
|
649
|
+
.select2-results__options {
|
|
650
|
+
.select2-results__option {
|
|
651
|
+
&.select2-results__option--highlighted {
|
|
652
|
+
color: $dropdown-link-hover-color;
|
|
653
|
+
background-color: $dropdown-link-hover-bg;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
&.select2-results__option--selected,
|
|
657
|
+
&[aria-selected="true"]:not(.select2-results__option--highlighted) {
|
|
658
|
+
color: $dropdown-link-active-color;
|
|
659
|
+
background-color: $dropdown-link-active-bg;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/*
|
|
663
|
+
* The rule below merges styles of highlighted and selected states. It is an addition to the original Select2
|
|
664
|
+
* Bootstrap 5 theme, in which highlighted and selected states are mutually exclusive.
|
|
665
|
+
*/
|
|
666
|
+
&.select2-results__option--highlighted.select2-results__option--selected,
|
|
667
|
+
&.select2-results__option--highlighted[aria-selected="true"] {
|
|
668
|
+
color: $dropdown-link-active-color;
|
|
669
|
+
background-color: $dropdown-link-hover-bg;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.select2-selection--single {
|
|
676
|
+
.select2-selection__rendered {
|
|
677
|
+
padding-inline-end: $select2-clear-width-lg + map.get($spacers, 6);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.select2-selection--multiple {
|
|
682
|
+
.select2-selection__rendered {
|
|
683
|
+
// Do not add additional `6px` to padding as above - multi-select badges already have it as their own margin.
|
|
684
|
+
padding-inline-end: $select2-clear-width-lg;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.select2-selection--single,
|
|
689
|
+
.select2-selection--multiple {
|
|
690
|
+
.select2-selection__clear {
|
|
691
|
+
@include select2-clear-icon($select2-clear-width-lg);
|
|
692
|
+
@include transition($btn-transition);
|
|
693
|
+
background: transparent;
|
|
694
|
+
border-radius: $border-radius;
|
|
695
|
+
color: transparent; /* Hide "×" ("×") character. */
|
|
696
|
+
padding: map.get($spacers, 10);
|
|
697
|
+
top: $s2bs5-padding-y;
|
|
698
|
+
transform: none;
|
|
699
|
+
|
|
700
|
+
&:hover {
|
|
701
|
+
background: var(--#{$prefix}border-color);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.select2-selection--multiple {
|
|
707
|
+
.select2-selection__rendered {
|
|
708
|
+
.select2-selection__choice {
|
|
709
|
+
border-color: var(--#{$prefix}tertiary-color); /* Supposed to be the standard border color but on a special request it was darkened to improve contrast and readability. */
|
|
710
|
+
line-height: $line-height-sm;
|
|
711
|
+
overflow-x: hidden;
|
|
712
|
+
|
|
713
|
+
.select2-selection__choice__remove {
|
|
714
|
+
@include select2-clear-icon;
|
|
715
|
+
@include transition($btn-transition);
|
|
716
|
+
background: transparent;
|
|
717
|
+
color: transparent; /* Hide "×" ("×") character. */
|
|
718
|
+
cursor: pointer;
|
|
719
|
+
height: auto;
|
|
720
|
+
margin-block: -#{$s2bs5-clear-padding-y};
|
|
721
|
+
margin-inline-end: -#{$s2bs5-clear-padding-x};
|
|
722
|
+
margin-inline-start: map.get($spacers, 0);
|
|
723
|
+
order: 1000; /* Place "X" at the end of the badge. */
|
|
724
|
+
position: relative;
|
|
725
|
+
width: auto;
|
|
726
|
+
|
|
727
|
+
&:hover {
|
|
728
|
+
background: var(--#{$prefix}border-color);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/* 9. Add additional custom code here */
|
|
737
|
+
$nautobot-chevron-svg: "<svg viewBox='0 0 17 20' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M0.277304 13C0.181925 13 0.102443 12.9571 0.054754 12.8856C-0.0247279 12.7711 0.022961 12.6281 0.150132 12.5566L4.96673 9.99603L0.134236 7.4498C0.00706488 7.37828 -0.040624 7.23523 0.0388579 7.12079C0.11834 7.00636 0.277303 6.96344 0.404474 7.03497L6 9.99603L0.404474 12.9714C0.372681 13 0.324993 13 0.277304 13Z' fill='#FF8400'/><path d='M6.26141 13C6.16603 13 6.08655 12.9571 6.03886 12.8856C5.95938 12.7711 6.00706 12.6281 6.13424 12.5566L10.9508 9.99603L6.13424 7.4498C6.00706 7.37828 5.95938 7.23523 6.03886 7.12079C6.11834 7.00636 6.2773 6.96344 6.40447 7.03497L12 9.99603L6.40447 12.9714C6.35679 13 6.3091 13 6.26141 13Z' fill='#FF8400'/><path d='M12.2311 13C12.1516 13 12.0854 12.9571 12.0456 12.8856C11.9794 12.7711 12.0191 12.6281 12.1251 12.5566L16.1389 9.99603L12.1119 7.4498C12.0059 7.37828 11.9661 7.23523 12.0324 7.12079C12.0986 7.00636 12.2311 6.96344 12.3371 7.03497L17 9.99603L12.3371 12.9714C12.3106 13 12.2708 13 12.2311 13Z' fill='#FF8400'/></svg>";
|
|
738
|
+
|
|
739
|
+
@if $enable-dark-mode {
|
|
740
|
+
@include color-mode(dark, true) {
|
|
741
|
+
/* Colors */
|
|
742
|
+
@each $color, $value in $theme-colors-dark {
|
|
743
|
+
--#{$prefix}#{$color}: #{$value};
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
@each $color, $value in $theme-colors-rgb-dark {
|
|
747
|
+
--#{$prefix}#{$color}-rgb: #{$value};
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/* Focus styles */
|
|
751
|
+
--#{$prefix}focus-ring-color: #{$focus-ring-color-dark};
|
|
752
|
+
|
|
753
|
+
@include meta.load-css('flatpickr/dist/themes/dark.css');
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
@include color-mode(light, true) {
|
|
757
|
+
@include meta.load-css('flatpickr/dist/themes/light.css');
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
/* Links */
|
|
762
|
+
a,
|
|
763
|
+
button {
|
|
764
|
+
outline: none;
|
|
765
|
+
@include transition($btn-transition);
|
|
766
|
+
|
|
767
|
+
&:focus-visible {
|
|
768
|
+
@include box-shadow(0 0 0 #{$focus-ring-width} var(--#{$prefix}focus-ring-color));
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/* Tables */
|
|
773
|
+
.table {
|
|
774
|
+
margin-block-end: map.get($spacers, 0);
|
|
775
|
+
|
|
776
|
+
> thead:not(caption) > tr > th {
|
|
777
|
+
background-color: var(--#{$prefix}tertiary-bg);
|
|
778
|
+
color: var(--#{$prefix}secondary-color);
|
|
779
|
+
position: relative;
|
|
780
|
+
|
|
781
|
+
&.nb-actionable,
|
|
782
|
+
&.orderable {
|
|
783
|
+
a,
|
|
784
|
+
button {
|
|
785
|
+
&:empty {
|
|
786
|
+
display: none; /* Fix for focusable actions column header. */
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
&:not(:is(.disabled, :disabled, :empty)) {
|
|
790
|
+
color: inherit;
|
|
791
|
+
display: inline-block;
|
|
792
|
+
margin-block: -#{$table-cell-padding-y};
|
|
793
|
+
margin-inline: -#{$table-cell-padding-x};
|
|
794
|
+
padding-block: $table-cell-padding-y;
|
|
795
|
+
padding-inline: $table-cell-padding-x;
|
|
796
|
+
text-decoration: none;
|
|
797
|
+
width: calc(100% + #{$table-cell-padding-x} * 2);
|
|
798
|
+
|
|
799
|
+
&:focus-visible,
|
|
800
|
+
&:hover {
|
|
801
|
+
background-color: var(--#{$prefix}primary-bg-subtle);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
.nb-actions {
|
|
809
|
+
.dropdown {
|
|
810
|
+
font-size: 0; /* Use `font-size: 0;` to remove any visible whitespace. */
|
|
811
|
+
|
|
812
|
+
.dropdown-toggle {
|
|
813
|
+
/*
|
|
814
|
+
* Make table actions dropdown toggle button occupy the entire cell (works for default table cell size):
|
|
815
|
+
* 1. Use negative margins to "cancel" table cell padding.
|
|
816
|
+
* 2. Overwrite default button padding with table cell padding. In addition to that, subtract border width
|
|
817
|
+
* from each side because paddings and borders add up, and idle button already has a (transparent) border.
|
|
818
|
+
*/
|
|
819
|
+
margin-block: -#{$table-cell-padding-y};
|
|
820
|
+
margin-inline: -#{$table-cell-padding-x};
|
|
821
|
+
padding-block: $table-cell-padding-y - $border-width;
|
|
822
|
+
padding-inline: $table-cell-padding-x - $border-width;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.table-hover {
|
|
829
|
+
> tbody > tr {
|
|
830
|
+
/* By default Bootstrap 5 defines only `:hover` and we need to slightly extend it to improve end user experience. */
|
|
831
|
+
&:hover,
|
|
832
|
+
&:focus-within,
|
|
833
|
+
&:has( .dropdown-toggle.show) { /* Leading space inside `has` is intentional and stands for descendant nodes. */
|
|
834
|
+
> * {
|
|
835
|
+
--#{$prefix}table-color-state: var(--#{$prefix}table-hover-color);
|
|
836
|
+
--#{$prefix}table-bg-state: var(--#{$prefix}table-hover-bg);
|
|
837
|
+
|
|
838
|
+
&.nb-actions .dropdown-toggle {
|
|
839
|
+
opacity: 1;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
> tbody > tr > * {
|
|
846
|
+
transition: $btn-transition; /* Use `$btn-transition` but in fact it is just for `background-color`. */
|
|
847
|
+
|
|
848
|
+
&.nb-actions .dropdown-toggle {
|
|
849
|
+
@include transition($btn-transition, $transition-fade);
|
|
850
|
+
opacity: 0;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
$table-variant-primary: (
|
|
856
|
+
"active": var(--#{$prefix}primary-border-subtle),
|
|
857
|
+
"bg": var(--#{$prefix}primary-bg-subtle),
|
|
858
|
+
"border": var(--#{$prefix}primary-text-emphasis),
|
|
859
|
+
"text": var(--#{$prefix}primary-text-emphasis),
|
|
860
|
+
);
|
|
861
|
+
$table-variant-secondary: (
|
|
862
|
+
"active": var(--#{$prefix}secondary-border-subtle),
|
|
863
|
+
"bg": var(--#{$prefix}secondary-bg-subtle),
|
|
864
|
+
"border": var(--#{$prefix}border-color),
|
|
865
|
+
"text": var(--#{$prefix}emphasis-color),
|
|
866
|
+
);
|
|
867
|
+
$table-variant-success: (
|
|
868
|
+
"active": var(--#{$prefix}success-border-subtle),
|
|
869
|
+
"bg": var(--#{$prefix}success-bg-subtle),
|
|
870
|
+
"border": var(--#{$prefix}success-text-emphasis),
|
|
871
|
+
"text": var(--#{$prefix}success-text-emphasis),
|
|
872
|
+
);
|
|
873
|
+
$table-variant-danger: (
|
|
874
|
+
"active": var(--#{$prefix}danger-border-subtle),
|
|
875
|
+
"bg": var(--#{$prefix}danger-bg-subtle),
|
|
876
|
+
"border": var(--#{$prefix}danger-text-emphasis),
|
|
877
|
+
"text": var(--#{$prefix}danger-text-emphasis),
|
|
878
|
+
);
|
|
879
|
+
$table-variant-warning: (
|
|
880
|
+
"active": var(--#{$prefix}warning-border-subtle),
|
|
881
|
+
"bg": var(--#{$prefix}warning-bg-subtle),
|
|
882
|
+
"border": var(--#{$prefix}warning-text-emphasis),
|
|
883
|
+
"text": var(--#{$prefix}warning-text-emphasis),
|
|
884
|
+
);
|
|
885
|
+
$table-variants: (
|
|
886
|
+
"primary": $table-variant-primary,
|
|
887
|
+
"secondary": $table-variant-secondary,
|
|
888
|
+
"success": $table-variant-success,
|
|
889
|
+
"danger": $table-variant-danger,
|
|
890
|
+
"warning": $table-variant-warning,
|
|
891
|
+
"info": $table-variant-primary,
|
|
892
|
+
"light": $table-variant-secondary,
|
|
893
|
+
"dark": $table-variant-secondary,
|
|
894
|
+
"default": $table-variant-secondary
|
|
895
|
+
);
|
|
896
|
+
@each $color, $variant-colors in $table-variants {
|
|
897
|
+
.table-#{$color} {
|
|
898
|
+
--#{$prefix}table-color: #{map.get($variant-colors, "text")};
|
|
899
|
+
--#{$prefix}table-bg: #{map.get($variant-colors, "bg")};
|
|
900
|
+
--#{$prefix}table-border-color: #{map.get($variant-colors, "border")};
|
|
901
|
+
--#{$prefix}table-striped-bg: #{map.get($variant-colors, "bg")};
|
|
902
|
+
--#{$prefix}table-striped-color: #{map.get($variant-colors, "text")};
|
|
903
|
+
--#{$prefix}table-active-bg: #{map.get($variant-colors, "active")};
|
|
904
|
+
--#{$prefix}table-active-color: #{map.get($variant-colors, "text")};
|
|
905
|
+
--#{$prefix}table-hover-bg: #{map.get($variant-colors, "active")};
|
|
906
|
+
--#{$prefix}table-hover-color: #{map.get($variant-colors, "text")};
|
|
907
|
+
|
|
908
|
+
color: var(--#{$prefix}table-color);
|
|
909
|
+
border-color: var(--#{$prefix}table-border-color);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
.nb-table-headings th {
|
|
914
|
+
background-color: var(--#{$prefix}tertiary-bg);
|
|
915
|
+
white-space: nowrap;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
/* Buttons */
|
|
919
|
+
.btn {
|
|
920
|
+
--#{$prefix}btn-box-shadow: #{$btn-box-shadow};
|
|
921
|
+
--#{$prefix}btn-focus-box-shadow: 0 0 0 #{$btn-focus-width} var(--#{$prefix}primary-border-subtle);
|
|
922
|
+
--#{$prefix}btn-active-border-color: var(--#{$prefix}primary-text-emphasis);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
$btn-variant-primary: (
|
|
926
|
+
"bg": var(--#{$prefix}primary-bg-subtle),
|
|
927
|
+
"border": var(--#{$prefix}primary-text-emphasis),
|
|
928
|
+
"ring": var(--#{$prefix}primary-border-subtle),
|
|
929
|
+
"text": var(--#{$prefix}primary-text-emphasis),
|
|
930
|
+
);
|
|
931
|
+
$btn-variant-secondary: (
|
|
932
|
+
"bg": var(--#{$prefix}secondary-bg-subtle),
|
|
933
|
+
"border": var(--#{$prefix}border-color),
|
|
934
|
+
"ring": var(--#{$prefix}secondary-border-subtle),
|
|
935
|
+
"text": var(--#{$prefix}emphasis-color),
|
|
936
|
+
);
|
|
937
|
+
$btn-variant-success: (
|
|
938
|
+
"bg": var(--#{$prefix}success-bg-subtle),
|
|
939
|
+
"border": var(--#{$prefix}success-text-emphasis),
|
|
940
|
+
"ring": var(--#{$prefix}success-border-subtle),
|
|
941
|
+
"text": var(--#{$prefix}success-text-emphasis),
|
|
942
|
+
);
|
|
943
|
+
$btn-variant-danger: (
|
|
944
|
+
"bg": var(--#{$prefix}danger-bg-subtle),
|
|
945
|
+
"border": var(--#{$prefix}danger-text-emphasis),
|
|
946
|
+
"ring": var(--#{$prefix}danger-border-subtle),
|
|
947
|
+
"text": var(--#{$prefix}danger-text-emphasis),
|
|
948
|
+
);
|
|
949
|
+
$btn-variant-warning: (
|
|
950
|
+
"bg": var(--#{$prefix}warning-bg-subtle),
|
|
951
|
+
"border": var(--#{$prefix}warning-text-emphasis),
|
|
952
|
+
"ring": var(--#{$prefix}warning-border-subtle),
|
|
953
|
+
"text": var(--#{$prefix}warning-text-emphasis),
|
|
954
|
+
);
|
|
955
|
+
$btn-variants: (
|
|
956
|
+
"primary": $btn-variant-primary,
|
|
957
|
+
"secondary": $btn-variant-secondary,
|
|
958
|
+
"success": $btn-variant-success,
|
|
959
|
+
"danger": $btn-variant-danger,
|
|
960
|
+
"warning": $btn-variant-warning,
|
|
961
|
+
"info": $btn-variant-primary,
|
|
962
|
+
"light": $btn-variant-secondary,
|
|
963
|
+
"dark": $btn-variant-secondary,
|
|
964
|
+
"default": $btn-variant-secondary
|
|
965
|
+
);
|
|
966
|
+
|
|
967
|
+
@each $color, $variant-colors in $btn-variants {
|
|
968
|
+
.btn-#{$color},
|
|
969
|
+
.btn-outline-#{$color} {
|
|
970
|
+
--#{$prefix}btn-focus-box-shadow: 0 0 0 #{$btn-focus-width} #{map.get($variant-colors, "ring")};
|
|
971
|
+
|
|
972
|
+
/* Bootstrap utilizes `button-variant` mixin but apparently it does not support color modes. */
|
|
973
|
+
--#{$prefix}btn-color: #{map.get($variant-colors, "text")};
|
|
974
|
+
--#{$prefix}btn-bg: transparent;
|
|
975
|
+
--#{$prefix}btn-border-color: #{map.get($variant-colors, "border")};
|
|
976
|
+
--#{$prefix}btn-hover-color: #{map.get($variant-colors, "text")};
|
|
977
|
+
--#{$prefix}btn-hover-bg: #{map.get($variant-colors, "bg")};
|
|
978
|
+
--#{$prefix}btn-hover-border-color: #{map.get($variant-colors, "border")};
|
|
979
|
+
--#{$prefix}btn-active-color: #{map.get($variant-colors, "text")};
|
|
980
|
+
--#{$prefix}btn-active-bg: #{map.get($variant-colors, "bg")};
|
|
981
|
+
--#{$prefix}btn-active-border-color: #{map.get($variant-colors, "border")};
|
|
982
|
+
--#{$prefix}btn-active-shadow: #{$btn-box-shadow};
|
|
983
|
+
--#{$prefix}btn-disabled-color: var(--#{$prefix}tertiary-color);
|
|
984
|
+
--#{$prefix}btn-disabled-bg: var(--#{$prefix}tertiary-bg);
|
|
985
|
+
--#{$prefix}btn-disabled-border-color: var(--#{$prefix}border-color);
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.btn-link {
|
|
990
|
+
--#{$prefix}btn-hover-bg: var(--#{$prefix}primary-bg-subtle);
|
|
991
|
+
--#{$prefix}btn-focus-box-shadow: 0 0 0 #{$btn-focus-width} var(--#{$prefix}focus-ring-color);
|
|
992
|
+
|
|
993
|
+
--#{$prefix}btn-hover-border-color: var(--#{$prefix}primary-bg-subtle);
|
|
994
|
+
--#{$prefix}btn-active-border-color: var(--#{$prefix}primary-bg-subtle);
|
|
995
|
+
--#{$prefix}btn-disabled-color: var(--#{$prefix}tertiary-color);
|
|
996
|
+
--#{$prefix}btn-disabled-bg: var(--#{$prefix}tertiary-bg);
|
|
997
|
+
--#{$prefix}btn-disabled-border-color: var(--#{$prefix}border-color);
|
|
998
|
+
--#{$prefix}btn-box-shadow: #{$btn-box-shadow};
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
.btn-xs {
|
|
1002
|
+
@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-border-radius-sm);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.nb-btn-indicator {
|
|
1006
|
+
background: var(--#{$prefix}warning-text-emphasis);
|
|
1007
|
+
border-radius: 50%;
|
|
1008
|
+
height: 0.5rem; /* 8px */
|
|
1009
|
+
position: absolute;
|
|
1010
|
+
right: map.get($spacers, 8);
|
|
1011
|
+
top: map.get($spacers, 2);
|
|
1012
|
+
width: 0.5rem; /* 8px */
|
|
1013
|
+
|
|
1014
|
+
/* Additional support for button indicator as an MDI icon, not a simple circle. */
|
|
1015
|
+
.btn &:is(i, span).mdi { /* It is required to bump selector specificity here with `.btn` and `:is(i, span)`. */
|
|
1016
|
+
background: transparent;
|
|
1017
|
+
color: var(--#{$prefix}warning-text-emphasis);
|
|
1018
|
+
|
|
1019
|
+
&::before {
|
|
1020
|
+
font-size: $font-size-base;
|
|
1021
|
+
top: -#{map.get($spacers, 4)};
|
|
1022
|
+
right: map.get($spacers, 2);
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
/* Forms */
|
|
1028
|
+
label {
|
|
1029
|
+
&.col-form-label {
|
|
1030
|
+
color: var(--#{$prefix}secondary-color);
|
|
1031
|
+
padding-inline-end: map.get($spacers, 10);
|
|
1032
|
+
text-align: end;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
.form-text ul {
|
|
1036
|
+
float: right;
|
|
1037
|
+
text-align: start;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
&.nb-required {
|
|
1041
|
+
font-weight: $font-weight-medium;
|
|
1042
|
+
|
|
1043
|
+
&::before {
|
|
1044
|
+
color: var(--#{$prefix}danger-text-emphasis);
|
|
1045
|
+
content: "*";
|
|
1046
|
+
float: right;
|
|
1047
|
+
margin-inline-start: map.get($spacers, 4);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
textarea {
|
|
1053
|
+
font-family: $font-family-monospace;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
.form-control {
|
|
1057
|
+
&:hover:not(:disabled):not([readonly]) {
|
|
1058
|
+
border-color: var(--#{$prefix}primary-text-emphasis);
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
/* Webkit browsers add "X" icon in `[type="search"]` input fields. It looks off and offers little configurability. */
|
|
1062
|
+
&[type="search"]::-webkit-search-cancel-button {
|
|
1063
|
+
display: none;
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
.form-check {
|
|
1068
|
+
/* Bootstrap 5 uses floats as a workaround here. Nautobot makes it more manageable with `display: flex` instead. */
|
|
1069
|
+
display: flex;
|
|
1070
|
+
|
|
1071
|
+
&:not(:last-child) {
|
|
1072
|
+
margin-block-end: map.get($spacers, 10);
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.form-check-input {
|
|
1076
|
+
float: none;
|
|
1077
|
+
|
|
1078
|
+
~ .form-check-label {
|
|
1079
|
+
padding-inline-start: map.get($spacers, 10);
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
.form-check-reverse {
|
|
1085
|
+
justify-content: flex-end;
|
|
1086
|
+
|
|
1087
|
+
.form-check-input {
|
|
1088
|
+
order: 9999; /* In `reverse` configuration, make sure this element always goes to the right-hand side. */
|
|
1089
|
+
|
|
1090
|
+
~ .form-check-label {
|
|
1091
|
+
padding-inline-end: map.get($spacers, 10);
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
.form-check-input {
|
|
1097
|
+
@include transition($btn-transition);
|
|
1098
|
+
margin-top: 0; /* Reset Bootstrap 5 who-knows-why top margin. */
|
|
1099
|
+
|
|
1100
|
+
&:focus {
|
|
1101
|
+
background-color: var(--#{$prefix}primary-bg-subtle);
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
&:not(:disabled):hover,
|
|
1105
|
+
&:not(:disabled):has(+ .form-check-label:hover) {
|
|
1106
|
+
background-color: var(--#{$prefix}primary-bg-subtle);
|
|
1107
|
+
border-color: $form-check-input-focus-border;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
&:disabled {
|
|
1111
|
+
background-color: $input-disabled-bg;
|
|
1112
|
+
color: $input-disabled-color;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
&[disabled],
|
|
1116
|
+
&:disabled {
|
|
1117
|
+
~ .form-check-label {
|
|
1118
|
+
color: $input-disabled-color;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
.nb-form-check-input-sm {
|
|
1124
|
+
height: 1rem; /* 16px */
|
|
1125
|
+
width: 1rem; /* 16px */
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
.form-text {
|
|
1129
|
+
display: block;
|
|
1130
|
+
font-weight: $font-weight-normal;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
.nb-form-group {
|
|
1134
|
+
&:not(:last-child) {
|
|
1135
|
+
margin-block-end: map.get($spacers, 10);
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
label {
|
|
1139
|
+
font-size: $font-size-sm;
|
|
1140
|
+
margin-block-end: map.get($spacers, 4);
|
|
1141
|
+
margin-inline-start: map.get($spacers, 12);
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
.nb-form-sticky-footer {
|
|
1146
|
+
@include transition($transition-base);
|
|
1147
|
+
align-items: center;
|
|
1148
|
+
background-color: var(--#{$prefix}body-bg);
|
|
1149
|
+
border-top: $border-width $border-style var(--#{$prefix}border-color);
|
|
1150
|
+
bottom: -#{map.get($spacers, 1)}; /* Set bottom to `-1px` instead of `0`, this enables detection when element is pinned. */
|
|
1151
|
+
display: flex;
|
|
1152
|
+
flex-wrap: wrap;
|
|
1153
|
+
gap: map.get($spacers, 8);
|
|
1154
|
+
justify-content: center;
|
|
1155
|
+
margin-block-end: -#{map.get($spacers, 16)};
|
|
1156
|
+
margin-inline: -#{map.get($spacers, 20)};
|
|
1157
|
+
padding-block-end: map.get($spacers, 16);
|
|
1158
|
+
padding-block-start: map.get($spacers, 16);
|
|
1159
|
+
padding-inline: map.get($spacers, 20);
|
|
1160
|
+
position: sticky;
|
|
1161
|
+
right: 0;
|
|
1162
|
+
transition: $transition-base;
|
|
1163
|
+
z-index: $zindex-sticky;
|
|
1164
|
+
|
|
1165
|
+
&.nb-is-pinned {
|
|
1166
|
+
@include box-shadow(0 -0.3125rem 0.625rem 0 rgba(0, 0, 0, 0.1));
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
/* Tabs */
|
|
1171
|
+
.nav-tabs {
|
|
1172
|
+
--#{$prefix}nav-link-padding-x: #{map.get($spacers, 12) - $border-width};
|
|
1173
|
+
--#{$prefix}nav-link-padding-y: #{map.get($spacers, 6) - $border-width};
|
|
1174
|
+
--#{$prefix}nav-link-color: var(--#{$prefix}body-color);
|
|
1175
|
+
--#{$prefix}nav-link-hover-color: var(--#{$prefix}body-color);
|
|
1176
|
+
--#{$prefix}nav-link-disabled-color: var(--#{$prefix}tertiary-color);
|
|
1177
|
+
|
|
1178
|
+
background: inherit;
|
|
1179
|
+
padding-inline: #{map.get($spacers, 20)};
|
|
1180
|
+
position: relative;
|
|
1181
|
+
|
|
1182
|
+
.nav-item {
|
|
1183
|
+
white-space: nowrap;
|
|
1184
|
+
|
|
1185
|
+
&:not(:first-child) {
|
|
1186
|
+
margin-inline-start: #{map.get($spacers, 8)};
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
.nav-link {
|
|
1191
|
+
align-items: center;
|
|
1192
|
+
cursor: pointer;
|
|
1193
|
+
display: flex;
|
|
1194
|
+
gap: map.get($spacers, 6);
|
|
1195
|
+
|
|
1196
|
+
&:hover,
|
|
1197
|
+
&:focus {
|
|
1198
|
+
background-color: var(--#{$prefix}nav-tabs-link-active-bg);
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
&.active {
|
|
1202
|
+
border-bottom-color: var(--#{$prefix}nav-tabs-link-active-bg);
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/* Dropdowns */
|
|
1208
|
+
.dropdown-header {
|
|
1209
|
+
@include font-size($font-size-base);
|
|
1210
|
+
font-weight: $font-weight-medium;
|
|
1211
|
+
text-transform: uppercase;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
.dropdown-item {
|
|
1215
|
+
align-items: center;
|
|
1216
|
+
display: flex;
|
|
1217
|
+
gap: map.get($spacers, 8);
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
/* Cards */
|
|
1221
|
+
.card {
|
|
1222
|
+
overflow: hidden; /* Fix border-radii for card content. */
|
|
1223
|
+
margin-bottom: map.get($spacers, 16); /* Default to mb-16 equivalent */
|
|
1224
|
+
|
|
1225
|
+
/* When card content is collapsed prevent card bottom border duplication by entirely removing `border-bottom` from card header. */
|
|
1226
|
+
&:has(.collapse:not(.show)) .card-header {
|
|
1227
|
+
border-bottom: none;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
/* Fix borders in case when `table` is rendered inside a `card`, e.g. in list views, detail views, etc. */
|
|
1231
|
+
.table {
|
|
1232
|
+
@mixin remove-row-border-bottom() {
|
|
1233
|
+
> * { /* Every cell. */
|
|
1234
|
+
border-bottom: none;
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
&:last-child { /* If table is the last item in card. */
|
|
1239
|
+
> :is(tbody, thead, tfoot):last-child { /* Bottommost table section group. */
|
|
1240
|
+
> :last-child { /* Bottommost row. */
|
|
1241
|
+
@include remove-row-border-bottom;
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
> tr:last-child { /* Bottommost row in case simplified table structure is used (i.e. without `thead`, `tbody`). */
|
|
1246
|
+
@include remove-row-border-bottom;
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
.list-group {
|
|
1252
|
+
/* Remove borders (except `border-bottom`) from list group items in cards, cards already have their own borders. */
|
|
1253
|
+
.list-group-item {
|
|
1254
|
+
border-block-start: none;
|
|
1255
|
+
border-inline: none;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
/* Remove `border-bottom` from the very last group list item because it duplicates card's own `border-bottom`. */
|
|
1259
|
+
&:last-child .list-group-item:last-child {
|
|
1260
|
+
border-block-end: none;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
.card-header {
|
|
1266
|
+
position: relative;
|
|
1267
|
+
text-transform: uppercase;
|
|
1268
|
+
|
|
1269
|
+
/*
|
|
1270
|
+
* When a `card-header` element contains a `stretched-link` descendant, which is the default case for collapsible card
|
|
1271
|
+
* headers, move all its interactive children, which are not `stretched-link` elements, to the front (using relative
|
|
1272
|
+
* position with positive z-index), so they can be interacted with and not be covered by the `stretched-link` element.
|
|
1273
|
+
*/
|
|
1274
|
+
&:has(.stretched-link) :is(a, button, input, label, select):not(.stretched-link) {
|
|
1275
|
+
position: relative;
|
|
1276
|
+
z-index: 1;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
/* Badges */
|
|
1281
|
+
.badge {
|
|
1282
|
+
--#{$prefix}badge-color: var(--#{$prefix}body-color);
|
|
1283
|
+
|
|
1284
|
+
color: var(--#{$prefix}badge-color);
|
|
1285
|
+
|
|
1286
|
+
&.bg-danger,
|
|
1287
|
+
&.bg-info,
|
|
1288
|
+
&.bg-primary,
|
|
1289
|
+
&.bg-secondary,
|
|
1290
|
+
&.bg-success,
|
|
1291
|
+
&.bg-warning,
|
|
1292
|
+
&.text-bg-danger,
|
|
1293
|
+
&.text-bg-info,
|
|
1294
|
+
&.text-bg-primary,
|
|
1295
|
+
&.text-bg-secondary,
|
|
1296
|
+
&.text-bg-success,
|
|
1297
|
+
&.text-bg-warning {
|
|
1298
|
+
--#{$prefix}badge-color: var(--#{$prefix}body-bg);
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
a {
|
|
1302
|
+
color: inherit;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
button {
|
|
1306
|
+
align-items: center;
|
|
1307
|
+
background-color: transparent;
|
|
1308
|
+
border: none;
|
|
1309
|
+
border-end-end-radius: $border-radius;
|
|
1310
|
+
border-start-end-radius: $border-radius;
|
|
1311
|
+
color: var(--#{$prefix}secondary-color);
|
|
1312
|
+
display: inline-flex;
|
|
1313
|
+
height: 1.25rem; /* 20px */
|
|
1314
|
+
justify-content: center;
|
|
1315
|
+
margin-block: -#{map.get($spacers, 2) + $border-width};
|
|
1316
|
+
margin-inline-end: -#{map.get($spacers, 8)};
|
|
1317
|
+
padding: map.get($spacers, 6) map.get($spacers, 8);
|
|
1318
|
+
width: 1.5rem; /* 24px */
|
|
1319
|
+
|
|
1320
|
+
&:hover {
|
|
1321
|
+
background-color: var(--#{$prefix}border-color);
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
&:focus-visible {
|
|
1325
|
+
@include box-shadow(0 0 0 #{$focus-ring-width} var(--#{$prefix}tertiary-color));
|
|
1326
|
+
background-color: var(--#{$prefix}border-color);
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
&.nb-multi-badge {
|
|
1331
|
+
$nb-multi-badge-button-height: 1.5rem /* 24px */;
|
|
1332
|
+
$nb-multi-badge-button-width: 1.375rem /* 22px */;
|
|
1333
|
+
$nb-multi-badge-padding-block-start: map.get($spacers, 5);
|
|
1334
|
+
|
|
1335
|
+
align-items: baseline;
|
|
1336
|
+
background-color: var(--#{$prefix}secondary-border-subtle);
|
|
1337
|
+
padding-block-start: $nb-multi-badge-padding-block-start;
|
|
1338
|
+
text-align: left;
|
|
1339
|
+
white-space: normal;
|
|
1340
|
+
|
|
1341
|
+
> button {
|
|
1342
|
+
float: right;
|
|
1343
|
+
height: $nb-multi-badge-button-height;
|
|
1344
|
+
margin-block: -#{$nb-multi-badge-padding-block-start};
|
|
1345
|
+
margin-inline-end: -#{$badge-padding-x};
|
|
1346
|
+
margin-inline-start: map.get($spacers, 0);
|
|
1347
|
+
padding-inline-start: map.get($spacers, 6);
|
|
1348
|
+
width: $nb-multi-badge-button-width;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
.nb-multi-badge-items {
|
|
1352
|
+
display: flex;
|
|
1353
|
+
gap: map.get($spacers, 4);
|
|
1354
|
+
flex-wrap: wrap;
|
|
1355
|
+
margin-block-start: map.get($spacers, 5);
|
|
1356
|
+
margin-inline: -#{map.get($spacers, 6)};
|
|
1357
|
+
|
|
1358
|
+
.badge {
|
|
1359
|
+
background-color: var(--#{$prefix}body-bg);
|
|
1360
|
+
border: $border-width solid var(--#{$prefix}body-bg);
|
|
1361
|
+
text-align: left;
|
|
1362
|
+
white-space: normal;
|
|
1363
|
+
|
|
1364
|
+
button {
|
|
1365
|
+
float: right;
|
|
1366
|
+
margin-inline-end: -#{map.get($spacers, 8) + $border-width};
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
/* Modals */
|
|
1374
|
+
/* Fix select dropdowns in modals and improve modal UX by making the modal body scrollable (instead of the whole page). */
|
|
1375
|
+
.modal-body {
|
|
1376
|
+
max-height: calc(100vh - 13.25rem); /* 100vh - 212px */
|
|
1377
|
+
overflow-y: scroll;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.modal-footer {
|
|
1381
|
+
justify-content: center;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
.modal-title {
|
|
1385
|
+
$modal-title-font-size: $h1-font-size;
|
|
1386
|
+
|
|
1387
|
+
font-size: $modal-title-font-size;
|
|
1388
|
+
|
|
1389
|
+
&::before {
|
|
1390
|
+
background: center no-repeat #{escape-svg(url("data:image/svg+xml,#{$nautobot-chevron-svg}"))};
|
|
1391
|
+
content: "";
|
|
1392
|
+
display: inline-block;
|
|
1393
|
+
height: $modal-title-font-size * $modal-title-line-height;
|
|
1394
|
+
margin-inline-end: map.get($spacers, 8);
|
|
1395
|
+
vertical-align: top;
|
|
1396
|
+
width: 1.5rem; /* 24px */
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
/* Progress bars */
|
|
1401
|
+
.progress {
|
|
1402
|
+
td & {
|
|
1403
|
+
min-width: 100px;
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
/* Breadcrumbs */
|
|
1408
|
+
.breadcrumb-item {
|
|
1409
|
+
align-items: center;
|
|
1410
|
+
color: var(--#{$prefix}secondary-color);
|
|
1411
|
+
display: inline-flex;
|
|
1412
|
+
|
|
1413
|
+
+ .breadcrumb-item {
|
|
1414
|
+
&::before { /* The separator between breadcrumbs (by default, a forward-slash: "/") */
|
|
1415
|
+
@include font-size($h6-font-size);
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
a {
|
|
1420
|
+
color: inherit;
|
|
1421
|
+
|
|
1422
|
+
&:focus-visible,
|
|
1423
|
+
&:hover {
|
|
1424
|
+
color: var(--#{$prefix}primary-text-emphasis);
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
/* Code */
|
|
1430
|
+
pre:not(:has(code.hljs)) { /* Do not include highlight.js in this rule because it has its own set of styles. */
|
|
1431
|
+
background: var(--#{$prefix}secondary-bg);
|
|
1432
|
+
border-radius: $border-radius;
|
|
1433
|
+
padding-block: map.get($spacers, 8);
|
|
1434
|
+
padding-inline: map.get($spacers, 10);
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
/* Collapse */
|
|
1438
|
+
.nb-collapse-toggle {
|
|
1439
|
+
@include transition($btn-transition);
|
|
1440
|
+
border-color: transparent !important; /* Kill ridiculous Bootstrap 5 specificity with fire. */
|
|
1441
|
+
color: var(--#{$prefix}secondary-color);
|
|
1442
|
+
float: right;
|
|
1443
|
+
font-size: 0; /* Use `font-size: 0;` to remove any visible whitespace. */
|
|
1444
|
+
padding: map.get($spacers, 2);
|
|
1445
|
+
|
|
1446
|
+
> * { /* Select *any* child, which is expected to be a chevron icon, to be icon library agnostic. */
|
|
1447
|
+
@include transition(transform .35s ease);
|
|
1448
|
+
display: inline-block; /* `transform` does not work on standard `inline` elements, like `span`, hence `inline-block`. */
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
&:not([aria-expanded="true"]) > .mdi-chevron-down {
|
|
1452
|
+
transform: rotate(-90deg); /* Rotate chevron icon when collapse is closed. */
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
/* Nautobot custom components */
|
|
1457
|
+
/* Various fixes for printing. */
|
|
1458
|
+
@media print {
|
|
1459
|
+
* {
|
|
1460
|
+
print-color-adjust: exact;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
body {
|
|
1464
|
+
padding-top: map.get($spacers, 0);
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
a[href]:after {
|
|
1468
|
+
content: none !important;
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
/* Layout */
|
|
1473
|
+
$nb-drawer-closed-width: 0;
|
|
1474
|
+
$nb-drawer-open-width: 20rem; /* 320px */
|
|
1475
|
+
$sidenav-width-collapsed: 4rem; /* 64px */
|
|
1476
|
+
$sidenav-width-expanded: ($sidenav-width-for-breakpoints / 16px) * 1rem; /* 16px is default browser conversion rate */
|
|
1477
|
+
/* we're converting to rem to have better web accessibility support */
|
|
1478
|
+
|
|
1479
|
+
* {
|
|
1480
|
+
margin: 0;
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
html, body {
|
|
1484
|
+
height: 100%;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
body {
|
|
1488
|
+
/* Transition below is Bootstrap `$transition-collapse-width` with `width` replaced by `padding-inline`. */
|
|
1489
|
+
@include transition(padding-inline .35s ease);
|
|
1490
|
+
display: grid;
|
|
1491
|
+
grid-template-areas:
|
|
1492
|
+
"sidenav header drawer"
|
|
1493
|
+
"sidenav main-content drawer"
|
|
1494
|
+
"sidenav banner-bottom-area drawer"
|
|
1495
|
+
"sidenav footer drawer";
|
|
1496
|
+
grid-template-columns: fit-content(0) minmax(0, 1fr) fit-content(0);
|
|
1497
|
+
grid-template-rows: fit-content(0) 1fr fit-content(0) fit-content(0);
|
|
1498
|
+
overflow-y: scroll;
|
|
1499
|
+
|
|
1500
|
+
#sidenav {
|
|
1501
|
+
grid-area: sidenav;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
#drawer {
|
|
1505
|
+
grid-area: drawer;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
#header {
|
|
1509
|
+
grid-area: header;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
#main-content {
|
|
1513
|
+
grid-area: main-content;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
#footer {
|
|
1517
|
+
grid-area: footer;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
&:has( #sidenav) {
|
|
1521
|
+
padding-inline-start: $sidenav-width-expanded;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
&:has( #sidenav.nb-sidenav-collapsed) {
|
|
1525
|
+
padding-inline-start: $sidenav-width-collapsed;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
&:has( #drawer .nb-drawer) {
|
|
1529
|
+
padding-inline-end: $nb-drawer-closed-width;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
&:has( #drawer .nb-drawer.nb-drawer-open) {
|
|
1533
|
+
padding-inline-end: $nb-drawer-open-width;
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
/* Sidenav (a.k.a. navbar, nav menu, sidebar) */
|
|
1538
|
+
#sidenav {
|
|
1539
|
+
$sidenav-chevron-svg: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill-rule='evenodd' clip-rule='evenodd' d='M14.53 5.46967C14.8229 5.76256 14.8229 6.23744 14.53 6.53033L10.7928 10.2676C10.388 10.6724 10.1167 10.9444 9.92461 11.1708C9.73817 11.3904 9.67071 11.5171 9.6393 11.6137C9.55773 11.8648 9.55773 12.1352 9.6393 12.3863C9.67071 12.4829 9.73817 12.6096 9.92461 12.8292C10.1167 13.0556 10.388 13.3276 10.7928 13.7324L14.53 17.4697C14.8229 17.7626 14.8229 18.2374 14.53 18.5303C14.2371 18.8232 13.7623 18.8232 13.4694 18.5303L9.73211 14.7931L9.71059 14.7715C9.33288 14.3939 9.01761 14.0786 8.7811 13.8C8.53443 13.5094 8.32969 13.2098 8.21272 12.8498C8.03326 12.2975 8.03326 11.7025 8.21272 11.1502C8.32969 10.7902 8.53443 10.4906 8.7811 10.2C9.01761 9.9214 9.33287 9.60615 9.71058 9.22845L9.73211 9.20693L13.4694 5.46967C13.7623 5.17678 14.2371 5.17678 14.53 5.46967Z' fill='#{$nav-white-0}'/></svg>";
|
|
1540
|
+
$sidenav-favorite-icon-svg: "<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M11.4189 0.599609C11.8569 0.444608 12.3438 0.470222 12.7656 0.676758C13.1382 0.85937 13.3661 1.1983 13.5303 1.48926C13.7037 1.79665 13.8896 2.21226 14.1113 2.7041L16.4121 7.80957H20.7764C21.3853 7.80957 21.8928 7.80944 22.2793 7.84277C22.6369 7.87368 23.0791 7.9417 23.4111 8.22754C23.8327 8.59073 24.0486 9.13456 23.9902 9.68359C23.9441 10.116 23.6675 10.4639 23.4268 10.7266C23.1665 11.0102 22.7947 11.3503 22.3486 11.7588L18.7549 15.0479L20.415 19.7119C20.6345 20.3287 20.8155 20.837 20.9189 21.2324C21.0129 21.5918 21.1024 22.0532 20.9238 22.4707C20.7004 22.993 20.2266 23.3717 19.6621 23.4785C19.2108 23.5637 18.7714 23.3814 18.4346 23.2158C18.064 23.0337 17.5972 22.7531 17.0312 22.4131L12 19.3887L6.96875 22.4131C6.40288 22.7531 5.93606 23.0337 5.56543 23.2158C5.22855 23.3813 4.78918 23.5638 4.33789 23.4785C3.77339 23.3717 3.29963 22.993 3.07617 22.4707C2.89765 22.0532 2.9871 21.5918 3.08105 21.2324C3.18447 20.837 3.36558 20.3286 3.58496 19.7119L5.24414 15.0479L1.65137 11.7588C1.20524 11.3502 0.833466 11.0103 0.573242 10.7266C0.332409 10.4639 0.0559191 10.116 0.00976562 9.68359C-0.048592 9.13464 0.168374 8.59073 0.589844 8.22754L0.717773 8.13086C1.02957 7.92557 1.40768 7.86983 1.7207 7.84277C2.10716 7.80943 2.61462 7.80957 3.22363 7.80957H7.58789L9.88867 2.7041C10.1103 2.21236 10.2963 1.79663 10.4697 1.48926C10.6339 1.19837 10.862 0.859412 11.2344 0.676758L11.4189 0.599609ZM12.0918 1.97266C12.0325 1.94907 11.9664 1.94881 11.9072 1.97266C11.8903 1.99137 11.8406 2.05132 11.7588 2.19629C11.6253 2.43288 11.4699 2.77672 11.2363 3.29492L8.74121 8.83203C8.62278 9.09452 8.35775 9.26367 8.06641 9.26367H3.22363C2.58589 9.26367 2.15619 9.26459 1.84961 9.29102C1.65621 9.30775 1.57052 9.33069 1.54395 9.33887C1.4994 9.38481 1.47564 9.44621 1.47656 9.50977C1.4907 9.53411 1.53727 9.6094 1.66699 9.75098C1.87346 9.97601 2.18793 10.2644 2.65527 10.6924L6.60254 14.3066C6.81725 14.5033 6.89362 14.8073 6.79688 15.0801L4.97656 20.1943C4.74783 20.8372 4.59263 21.2751 4.50879 21.5957C4.45591 21.798 4.44774 21.8941 4.44629 21.9258C4.47718 21.982 4.52974 22.0236 4.5918 22.042C4.62177 22.0343 4.71557 22.0082 4.90723 21.9141C5.20782 21.7664 5.61016 21.5255 6.2002 21.1709L11.6162 17.916C11.8518 17.7744 12.1481 17.7744 12.3838 17.916L17.7998 21.1709C18.39 21.5256 18.7921 21.7664 19.0928 21.9141C19.2823 22.0072 19.3761 22.0339 19.4072 22.042C19.4695 22.0238 19.5216 21.982 19.5527 21.9258C19.5512 21.8941 19.5441 21.798 19.4912 21.5957C19.4073 21.2751 19.2522 20.8372 19.0234 20.1943L17.2031 15.0801C17.1064 14.8074 17.183 14.5034 17.3975 14.3066L21.3447 10.6924C21.8119 10.2645 22.1265 9.97601 22.333 9.75098C22.4617 9.61056 22.5079 9.53469 22.5225 9.50977C22.5233 9.44589 22.5 9.38489 22.4551 9.33887C22.4274 9.3304 22.3416 9.30754 22.1504 9.29102C21.8438 9.2646 21.414 9.26367 20.7764 9.26367H15.9336C15.6422 9.26359 15.3771 9.09454 15.2588 8.83203L12.7637 3.29492C12.53 2.7766 12.3747 2.43289 12.2412 2.19629C12.1584 2.04951 12.108 1.99058 12.0918 1.97266Z' fill='#{$nav-white-0}'/></svg>";
|
|
1541
|
+
$sidenav-favorite-icon-svg-filled: "<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M11.4189 0.599457C11.8569 0.444456 12.3438 0.470069 12.7656 0.676605C13.1383 0.859207 13.3671 1.19809 13.5312 1.48911C13.7046 1.79644 13.8897 2.21229 14.1113 2.70395L16.4121 7.80942H20.7773C21.386 7.80942 21.8929 7.80931 22.2793 7.84262C22.6369 7.87353 23.0791 7.94253 23.4111 8.22836C23.8325 8.59154 24.0496 9.13456 23.9912 9.68344C23.9451 10.1159 23.6676 10.4637 23.4268 10.7264C23.1665 11.0101 22.7947 11.3502 22.3486 11.7586L18.7559 15.0477L20.415 19.7118C20.6345 20.3285 20.8155 20.8368 20.9189 21.2323C21.0129 21.5917 21.1024 22.053 20.9238 22.4706C20.7003 22.9929 20.2267 23.3716 19.6621 23.4784C19.2108 23.5635 18.7714 23.3812 18.4346 23.2157C18.0641 23.0336 17.598 22.7529 17.0322 22.4129L12 19.3885L6.96875 22.4129C6.40284 22.753 5.93608 23.0336 5.56543 23.2157C5.22855 23.3811 4.78918 23.5636 4.33789 23.4784C3.77348 23.3715 3.29961 22.9928 3.07617 22.4706C2.89773 22.0531 2.98711 21.5916 3.08105 21.2323C3.18447 20.8368 3.36655 20.3284 3.58594 19.7118L5.24414 15.0477L1.65137 11.7586C1.20515 11.35 0.833472 11.0102 0.573242 10.7264C0.33238 10.4637 0.0558689 10.1159 0.00976562 9.68344C-0.0485905 9.1345 0.168395 8.59155 0.589844 8.22836L0.717773 8.13071C1.02957 7.92542 1.40768 7.86968 1.7207 7.84262C2.10718 7.80926 2.61454 7.80942 3.22363 7.80942H7.58789L9.88867 2.70395C10.1103 2.21223 10.2963 1.79647 10.4697 1.48911C10.6339 1.19814 10.8628 0.859214 11.2354 0.676605L11.4189 0.599457Z' fill='#{$nav-white-0}'/></svg>";
|
|
1542
|
+
$sidenav-favorite-size: 1.25rem; /* 20px */
|
|
1543
|
+
$sidenav-link-gap: map.get($spacers, 5);
|
|
1544
|
+
$sidenav-link-segment-icon-height: 5.625rem; /* 90px */
|
|
1545
|
+
$sidenav-link-segment-icon-width: 1.25rem; /* 20px */
|
|
1546
|
+
$sidenav-link-segment-icon-svg: "<svg viewBox='0 0 20 90' xmlns='http://www.w3.org/2000/svg'><line x1='9.5' x2='9.5' y2='90' stroke='#{$nav-gray-3}'/><line x1='10' y1='45' x2='15' y2='45' stroke='#{$nav-gray-3}'/></svg>";
|
|
1547
|
+
$sidenav-link-segment-icon-svg-last: "<svg viewBox='0 0 20 90' xmlns='http://www.w3.org/2000/svg'><line x1='9.5' x2='9.5' y2='45.5' stroke='#{$nav-gray-3}'/><line x1='10' y1='45' x2='15' y2='45' stroke='#{$nav-gray-3}'/></svg>";
|
|
1548
|
+
$sidenav-link-width: $sidenav-width-expanded;
|
|
1549
|
+
|
|
1550
|
+
@mixin chevron($size, $color: $nav-white-0) {
|
|
1551
|
+
@include transition($accordion-icon-transition, $transition-fade);
|
|
1552
|
+
background: no-repeat center/#{$size} #{escape-svg(url("data:image/svg+xml,#{replace-svg-color($sidenav-chevron-svg, $nav-white-0, $color)}"))};
|
|
1553
|
+
content: "";
|
|
1554
|
+
display: block;
|
|
1555
|
+
height: $size;
|
|
1556
|
+
width: $size;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
@mixin fade-in {
|
|
1560
|
+
opacity: 1;
|
|
1561
|
+
visibility: visible;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
@mixin fade-out {
|
|
1565
|
+
opacity: 0;
|
|
1566
|
+
visibility: hidden;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
@mixin filter-nav-orange-0 {
|
|
1570
|
+
/*
|
|
1571
|
+
* CSS workaround to change element color (including its `background-image`)
|
|
1572
|
+
* from white to any given color, `$orange-0-dark` in this case. Though it
|
|
1573
|
+
* evaluates to `#ff9938`, not the exact `#ff9933`, it is _good enough_.
|
|
1574
|
+
* Generated with: https://codepen.io/jumarjuaton/full/mdJYWYq
|
|
1575
|
+
*/
|
|
1576
|
+
filter: invert(57%) sepia(100%) saturate(478%) hue-rotate(336deg) brightness(141%) contrast(101%);
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
@mixin filter-nav-gray-3 {
|
|
1580
|
+
/*
|
|
1581
|
+
* CSS workaround to change element color (including its `background-image`) from white to `$nav-gray-3`.
|
|
1582
|
+
* Generated with: https://codepen.io/jumarjuaton/full/mdJYWYq
|
|
1583
|
+
*/
|
|
1584
|
+
filter: invert(69%) sepia(15%) saturate(1%) hue-rotate(311deg) brightness(223%) contrast(98%);
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
@include box-shadow(0.0625rem 0 0 0 $navy-2, $box-shadow);
|
|
1588
|
+
@include transition($transition-collapse-width);
|
|
1589
|
+
align-items: center;
|
|
1590
|
+
background-color: $navy-0;
|
|
1591
|
+
color: $nav-white-0;
|
|
1592
|
+
display: flex;
|
|
1593
|
+
flex-direction: column;
|
|
1594
|
+
height: 100%;
|
|
1595
|
+
left: 0;
|
|
1596
|
+
position: fixed;
|
|
1597
|
+
top: 0;
|
|
1598
|
+
width: $sidenav-width-expanded;
|
|
1599
|
+
z-index: $zindex-fixed;
|
|
1600
|
+
|
|
1601
|
+
&.nb-sidenav-collapsed {
|
|
1602
|
+
width: $sidenav-width-collapsed;
|
|
1603
|
+
|
|
1604
|
+
/* Transition between brand logo and icon when navbar expands/collapses. */
|
|
1605
|
+
.nb-sidenav-brand {
|
|
1606
|
+
&:first-of-type { /* Brand icon */
|
|
1607
|
+
@include fade-in;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
&:nth-of-type(2) { /* Brand logo */
|
|
1611
|
+
@include fade-out;
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
.nb-sidenav-list-item {
|
|
1616
|
+
> :last-child { /* Sidenav list item name and chevron icon wrapper */
|
|
1617
|
+
@include fade-out;
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
.nb-sidenav-toggler::before { /* Sidenav toggler chevron icon */
|
|
1622
|
+
transform: rotate(180deg);
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
#sidenav-branch-picker {
|
|
1626
|
+
.select2-selection__rendered { /* Sidenav branch picker select branch name */
|
|
1627
|
+
@include fade-out;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
.select2-container--bootstrap-5 .select2-selection--single { /* Sidenav branch picker select chevron icon */
|
|
1631
|
+
background-image: none;
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
/*
|
|
1637
|
+
* `&, *` stands for the current element selector (`&`, i.e. `#sidenav`) and
|
|
1638
|
+
* all its descendants (`*`), it interpolates to `#sidenav, #sidenav *`.
|
|
1639
|
+
*/
|
|
1640
|
+
&, * {
|
|
1641
|
+
scrollbar-width: none;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
.nb-sidenav-brand {
|
|
1645
|
+
@include transition($transition-base);
|
|
1646
|
+
display: inline-block;
|
|
1647
|
+
margin-block-start: map.get($spacers, 10);
|
|
1648
|
+
padding: map.get($spacers, 10);
|
|
1649
|
+
|
|
1650
|
+
&:first-of-type { /* Brand icon */
|
|
1651
|
+
@include fade-out;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
&:nth-of-type(2) { /* Brand logo */
|
|
1655
|
+
@include fade-in;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
img {
|
|
1659
|
+
height: 1.875rem; /* 30px */
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
.nb-sidenav-flyout {
|
|
1664
|
+
@include box-shadow($box-shadow);
|
|
1665
|
+
@include fade-out;
|
|
1666
|
+
@include transition($transition-base);
|
|
1667
|
+
background: $navy-1;
|
|
1668
|
+
display: flex;
|
|
1669
|
+
flex-direction: column;
|
|
1670
|
+
flex-wrap: wrap;
|
|
1671
|
+
height: 100%;
|
|
1672
|
+
left: 0;
|
|
1673
|
+
padding-block: map.get($spacers, 20);
|
|
1674
|
+
position: absolute;
|
|
1675
|
+
top: 0;
|
|
1676
|
+
width: max-content;
|
|
1677
|
+
z-index: -1;
|
|
1678
|
+
min-width: $sidenav-link-width;
|
|
1679
|
+
|
|
1680
|
+
/*
|
|
1681
|
+
* FIXME(norbert-mieczkowski-codilime): remove this hack when browsers fix their bug: https://bugzilla.mozilla.org/show_bug.cgi?id=995020.
|
|
1682
|
+
* Bug has already been observed in Firefox and Safari, Chrome is confirmed to be _clean_.
|
|
1683
|
+
* Workaround based on: https://www.answeroverflow.com/m/1353731321620598945.
|
|
1684
|
+
*/
|
|
1685
|
+
/* hack */
|
|
1686
|
+
flex-direction: row;
|
|
1687
|
+
padding-block: map.get($spacers, 0);
|
|
1688
|
+
padding-inline: map.get($spacers, 20);
|
|
1689
|
+
writing-mode: vertical-lr;
|
|
1690
|
+
|
|
1691
|
+
> * {
|
|
1692
|
+
writing-mode: horizontal-tb;
|
|
1693
|
+
}
|
|
1694
|
+
/* endhack */
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
.nb-sidenav-link {
|
|
1698
|
+
align-items: center;
|
|
1699
|
+
color: inherit;
|
|
1700
|
+
display: flex;
|
|
1701
|
+
flex: 1;
|
|
1702
|
+
overflow: hidden;
|
|
1703
|
+
padding-block: map.get($spacers, 8);
|
|
1704
|
+
padding-inline-start: map.get($spacers, 20) + $sidenav-link-segment-icon-width + $sidenav-link-gap;
|
|
1705
|
+
position: relative;
|
|
1706
|
+
text-decoration: none;
|
|
1707
|
+
width: $sidenav-link-width;
|
|
1708
|
+
|
|
1709
|
+
&-active {
|
|
1710
|
+
color: $orange-0-dark;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
&::before { /* Segment icon */
|
|
1714
|
+
background: no-repeat center/$sidenav-link-segment-icon-width $sidenav-link-segment-icon-height #{escape-svg(url("data:image/svg+xml,#{$sidenav-link-segment-icon-svg}"))};
|
|
1715
|
+
content: "";
|
|
1716
|
+
display: block;
|
|
1717
|
+
flex: none;
|
|
1718
|
+
height: $sidenav-link-segment-icon-height;
|
|
1719
|
+
left: map.get($spacers, 20);
|
|
1720
|
+
position: absolute;
|
|
1721
|
+
width: $sidenav-link-segment-icon-width;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
&.flat {
|
|
1725
|
+
padding-inline-start: map.get($spacers, 20);
|
|
1726
|
+
|
|
1727
|
+
&::before {
|
|
1728
|
+
content: none;
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
li:last-child > .nb-sidenav-link::before { /* Last link segment icon */
|
|
1734
|
+
background-image: #{escape-svg(url("data:image/svg+xml,#{$sidenav-link-segment-icon-svg-last}"))};
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
.nb-sidenav-favorite {
|
|
1738
|
+
@include fade-out;
|
|
1739
|
+
@include transition($transition-base);
|
|
1740
|
+
background: no-repeat #{map.get($spacers, 10)} center/$sidenav-favorite-size #{escape-svg(url("data:image/svg+xml,#{$sidenav-favorite-icon-svg}"))};
|
|
1741
|
+
border: none;
|
|
1742
|
+
flex: none;
|
|
1743
|
+
padding: 0;
|
|
1744
|
+
width: $sidenav-favorite-size + 2 * map.get($spacers, 10); /* 20px + 2 * 10px = 40px */
|
|
1745
|
+
|
|
1746
|
+
&:focus-visible,
|
|
1747
|
+
&:hover {
|
|
1748
|
+
background-image: #{escape-svg(url("data:image/svg+xml,#{$sidenav-favorite-icon-svg-filled}"))};
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
&.active {
|
|
1752
|
+
@include fade-in;
|
|
1753
|
+
@include filter-nav-orange-0;
|
|
1754
|
+
background-image: #{escape-svg(url("data:image/svg+xml,#{$sidenav-favorite-icon-svg-filled}"))};
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
.nb-sidenav-link-wrapper {
|
|
1759
|
+
display: flex;
|
|
1760
|
+
width: $sidenav-link-width;
|
|
1761
|
+
|
|
1762
|
+
&.disabled {
|
|
1763
|
+
color: $nav-gray-3;
|
|
1764
|
+
pointer-events: none;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
&:has(> :focus-visible), /* CSS has `:focus-within` pseudo-class available but it works similar to `:focus` rather than `:focus-visible` */
|
|
1768
|
+
&:hover {
|
|
1769
|
+
background-color: $navy-2;
|
|
1770
|
+
|
|
1771
|
+
> .nb-sidenav-favorite {
|
|
1772
|
+
@include fade-in;
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
.nb-sidenav-link-group {
|
|
1778
|
+
color: $nav-gray-3;
|
|
1779
|
+
font-weight: $font-weight-medium;
|
|
1780
|
+
padding-block: map.get($spacers, 8);
|
|
1781
|
+
padding-inline: map.get($spacers, 20);
|
|
1782
|
+
text-transform: uppercase;
|
|
1783
|
+
width: $sidenav-link-width;
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
.nb-sidenav-list-divider {
|
|
1787
|
+
border-top: $border-width solid transparent;
|
|
1788
|
+
margin: #{map.get($spacers, 10)} #{map.get($spacers, 20)};
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
.nb-sidenav-list-item {
|
|
1792
|
+
@include transition($btn-transition);
|
|
1793
|
+
align-items: center;
|
|
1794
|
+
background: transparent;
|
|
1795
|
+
border: none;
|
|
1796
|
+
color: inherit;
|
|
1797
|
+
display: inline-flex;
|
|
1798
|
+
font-weight: $font-weight-medium;
|
|
1799
|
+
padding-block: map.get($spacers, 8);
|
|
1800
|
+
padding-inline: #{map.get($spacers, 20)} #{map.get($spacers, 10)};
|
|
1801
|
+
text-decoration: none;
|
|
1802
|
+
text-transform: uppercase;
|
|
1803
|
+
width: 100%;
|
|
1804
|
+
|
|
1805
|
+
&[aria-expanded="true"] { /* When list item is expanded */
|
|
1806
|
+
background-color: $navy-1;
|
|
1807
|
+
|
|
1808
|
+
&::after { /* Overlay */
|
|
1809
|
+
@include fade-in;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
& + .nb-sidenav-flyout {
|
|
1813
|
+
@include fade-in;
|
|
1814
|
+
left: 100%;
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
&:not(:disabled):focus-visible,
|
|
1819
|
+
&:not(:disabled):hover {
|
|
1820
|
+
background-color: $navy-1;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
&::after { /* Overlay */
|
|
1824
|
+
@include fade-out;
|
|
1825
|
+
@include transition($transition-base);
|
|
1826
|
+
background: rgba(0, 0, 0, 0.25);
|
|
1827
|
+
content: "";
|
|
1828
|
+
cursor: default;
|
|
1829
|
+
display: block;
|
|
1830
|
+
inset: 0 0 0 $sidenav-link-width;
|
|
1831
|
+
position: fixed;
|
|
1832
|
+
z-index: -1;
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
&:disabled { /* When list item is disabled */
|
|
1836
|
+
color: $nav-gray-3;
|
|
1837
|
+
|
|
1838
|
+
> :first-child, /* Nav menu tab icon */
|
|
1839
|
+
> :last-child::after { /* Chevron icon */
|
|
1840
|
+
@include filter-nav-gray-3;
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
&:has(+ .nb-sidenav-flyout .nb-sidenav-link-active) { /* When list item contains an active link */
|
|
1845
|
+
color: $orange-0-dark;
|
|
1846
|
+
|
|
1847
|
+
> :first-child, /* Nav menu tab icon */
|
|
1848
|
+
> :last-child::after { /* Chevron icon */
|
|
1849
|
+
@include filter-nav-orange-0;
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
> :first-child { /* Primary icon */
|
|
1854
|
+
flex: none;
|
|
1855
|
+
height: 1.5rem; /* 24px */
|
|
1856
|
+
width: 1.5rem; /* 24px */
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
> :last-child { /* Name and chevron icon wrapper */
|
|
1860
|
+
@include transition($transition-base);
|
|
1861
|
+
@include fade-in;
|
|
1862
|
+
align-items: center;
|
|
1863
|
+
display: inline-flex;
|
|
1864
|
+
flex: auto 1 0;
|
|
1865
|
+
margin-inline-start: map.get($spacers, 10);
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
&:not(.nb-sidenav-list-item-flat) > :last-child::after { /* Chevron icon, not rendered when `nb-sidenav-list-item` has `nb-sidenav-list-item-flat` class. */
|
|
1869
|
+
@include chevron(1.5rem); /* 24px */
|
|
1870
|
+
margin-inline-start: auto;
|
|
1871
|
+
transform: rotate(180deg);
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
.nb-sidenav-toggler {
|
|
1876
|
+
@include fade-in;
|
|
1877
|
+
@include transition($transition-base);
|
|
1878
|
+
right: -0.8125rem; /* -13px */
|
|
1879
|
+
top: 1.375rem; /* 22px */
|
|
1880
|
+
|
|
1881
|
+
&::before { /* Chevron icon */
|
|
1882
|
+
@include chevron(1rem, $navy-0); /* 16px */
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
&:has(> ul .nb-sidenav-list-item[aria-expanded="true"]) { /* When flyout is expanded */
|
|
1887
|
+
.nb-sidenav-toggler {
|
|
1888
|
+
@include fade-out;
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
#sidenav-branch-picker {
|
|
1893
|
+
position: relative;
|
|
1894
|
+
width: $sidenav-width-expanded;
|
|
1895
|
+
|
|
1896
|
+
> :first-child { /* Branch icon */
|
|
1897
|
+
height: 1.5rem; /* 24px */
|
|
1898
|
+
left: map.get($spacers, 20);
|
|
1899
|
+
pointer-events: none;
|
|
1900
|
+
position: absolute;
|
|
1901
|
+
top: map.get($spacers, 4);
|
|
1902
|
+
width: 1.5rem; /* 24px */
|
|
1903
|
+
z-index: 2;
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
select,
|
|
1907
|
+
.select2-selection {
|
|
1908
|
+
background-color: $navy-1;
|
|
1909
|
+
border-radius: 0;
|
|
1910
|
+
color: inherit;
|
|
1911
|
+
padding-inline-start: calc(map.get($spacers, 20) + 1.5rem + map.get($spacers, 10)); /* 20px + 24px + 10px = 54px */
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
select,
|
|
1915
|
+
.select2-selection__rendered {
|
|
1916
|
+
font-weight: $font-weight-medium;
|
|
1917
|
+
color: inherit;
|
|
1918
|
+
text-transform: uppercase;
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
.select2-selection__rendered {
|
|
1922
|
+
@include fade-in;
|
|
1923
|
+
@include transition($transition-base);
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
select,
|
|
1927
|
+
.select2-container:not(.select2-container--focus):not(.select2-container--open) .select2-selection:not(:focus-visible):not(:hover) {
|
|
1928
|
+
background-color: transparent;
|
|
1929
|
+
border-color: transparent;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
select,
|
|
1933
|
+
.select2-container--bootstrap-5 .select2-selection--single {
|
|
1934
|
+
/*
|
|
1935
|
+
* Change select chevron icon color from `#343a40` (`$gray-800`, default) to `#ffffff` (`$nav-white-0`) and right
|
|
1936
|
+
* offset from `11px` (default) to `13px` to keep it consistent and aligned with with other sidenav chevrons.
|
|
1937
|
+
*/
|
|
1938
|
+
background-image: escape-svg(replace-svg-color($s2bs5-indicator, $form-select-indicator-color, $nav-white-0));
|
|
1939
|
+
background-position: right 0.8125rem center;
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
/* Drawer */
|
|
1945
|
+
$nb-drawer-open-box-shadow: 0 0 0.625rem 0 rgba(0, 0, 0, 0.25);
|
|
1946
|
+
|
|
1947
|
+
#drawer {
|
|
1948
|
+
@include box-shadow(none);
|
|
1949
|
+
@include transition($input-transition, $transition-collapse-width); /* Using `$input-transition` just for `box-shadow`. */
|
|
1950
|
+
height: 100%;
|
|
1951
|
+
overflow: hidden;
|
|
1952
|
+
position: fixed;
|
|
1953
|
+
right: 0;
|
|
1954
|
+
top: 0;
|
|
1955
|
+
width: $nb-drawer-closed-width;
|
|
1956
|
+
z-index: $zindex-fixed;
|
|
1957
|
+
|
|
1958
|
+
&:has(.nb-drawer-open) {
|
|
1959
|
+
@include box-shadow($nb-drawer-open-box-shadow);
|
|
1960
|
+
width: $nb-drawer-open-width;
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
.nb-drawer {
|
|
1965
|
+
@include transition(visibility .35s ease);
|
|
1966
|
+
background: var(--#{$prefix}body-bg);
|
|
1967
|
+
display: flex;
|
|
1968
|
+
flex-direction: column;
|
|
1969
|
+
inset: 0 auto 0 0;
|
|
1970
|
+
outline: none;
|
|
1971
|
+
overflow: hidden auto;
|
|
1972
|
+
position: absolute;
|
|
1973
|
+
scrollbar-width: none;
|
|
1974
|
+
visibility: hidden;
|
|
1975
|
+
width: $nb-drawer-open-width;
|
|
1976
|
+
|
|
1977
|
+
&.nb-drawer-open {
|
|
1978
|
+
visibility: visible;
|
|
1979
|
+
z-index: 1;
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
.nb-drawer-header {
|
|
1983
|
+
align-items: center;
|
|
1984
|
+
display: flex;
|
|
1985
|
+
gap: map.get($spacers, 8);
|
|
1986
|
+
justify-content: space-between;
|
|
1987
|
+
padding-block: map.get($spacers, 12);
|
|
1988
|
+
padding-inline: map.get($spacers, 20);
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
.nb-drawer-body {
|
|
1992
|
+
display: flex;
|
|
1993
|
+
flex: 1 1 auto;
|
|
1994
|
+
flex-direction: column;
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
/* Header */
|
|
1999
|
+
#header {
|
|
2000
|
+
background: var(--#{$prefix}secondary-bg);
|
|
2001
|
+
position: relative;
|
|
2002
|
+
|
|
2003
|
+
.alert {
|
|
2004
|
+
--bs-alert-border-radius: 0;
|
|
2005
|
+
--bs-alert-padding-x: #{$grid-gutter-width};
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
/* Main content */
|
|
2010
|
+
#main-content {
|
|
2011
|
+
box-shadow: $box-shadow-sm;
|
|
2012
|
+
outline: none;
|
|
2013
|
+
padding-block: map.get($spacers, 16);
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
/* Footer */
|
|
2017
|
+
#footer {
|
|
2018
|
+
a {
|
|
2019
|
+
color: inherit;
|
|
2020
|
+
font-size: 0;
|
|
2021
|
+
|
|
2022
|
+
&:focus-visible,
|
|
2023
|
+
&:hover {
|
|
2024
|
+
color: var(--#{$prefix}primary-text-emphasis);
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
/* paginator.html */
|
|
2030
|
+
#per_page {
|
|
2031
|
+
display: inline-block;
|
|
2032
|
+
padding-inline-start: 0.4375rem; /* 7px */
|
|
2033
|
+
padding-inline-end: 1.9375rem; /* 31px */
|
|
2034
|
+
width: 4.5rem; /* 72px */
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
/* Draggable */
|
|
2038
|
+
.nb-draggable-container {
|
|
2039
|
+
.nb-draggable {
|
|
2040
|
+
&.nb-dragging {
|
|
2041
|
+
opacity: 0.5;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
.nb-draggable-handle {
|
|
2045
|
+
cursor: move;
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
/* MDI icons */
|
|
2051
|
+
:is(i, span).mdi { /* `:is(i, span)` is required to overwrite the default `.mdi` class specificity. */
|
|
2052
|
+
&::before {
|
|
2053
|
+
font-size: $h2-font-size;
|
|
2054
|
+
line-height: $line-height-sm;
|
|
2055
|
+
position: relative;
|
|
2056
|
+
top: map.get($spacers, 2);
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
.alert &::before {
|
|
2060
|
+
margin-inline-end: map.get($spacers, 2);
|
|
2061
|
+
position: relative;
|
|
2062
|
+
top: map.get($spacers, 4);
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
.badge &::before {
|
|
2066
|
+
font-size: $font-size-sm;
|
|
2067
|
+
left: map.get($spacers, 0);
|
|
2068
|
+
line-height: 1;
|
|
2069
|
+
top: map.get($spacers, 0);
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
.btn & {
|
|
2073
|
+
margin-block: -#{map.get($spacers, 2)};
|
|
2074
|
+
|
|
2075
|
+
&::before {
|
|
2076
|
+
font-size: $h2-font-size;
|
|
2077
|
+
line-height: 0.7; /* 20px * 0.7 = 14px */
|
|
2078
|
+
position: relative;
|
|
2079
|
+
top: map.get($spacers, 2);
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
.btn-sm &::before,
|
|
2084
|
+
.btn-xs &::before {
|
|
2085
|
+
font-size: $font-size-lg;
|
|
2086
|
+
top: 0.1875rem; /* 3px */
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
.dropdown-menu & {
|
|
2090
|
+
margin-inline-start: map.get($spacers, 2);
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
.input-group-addon &::before {
|
|
2094
|
+
position: relative;
|
|
2095
|
+
top: 0.1875rem; /* 3px */
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
.input-group-btn &::before {
|
|
2099
|
+
font-size: $h2-font-size;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
.list-group-item &::before {
|
|
2103
|
+
left: -0.1875rem; /* -3px */
|
|
2104
|
+
position: relative;
|
|
2105
|
+
top: 0.1875rem;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
.nav &::before {
|
|
2109
|
+
left: -#{map.get($spacers, 2)};
|
|
2110
|
+
position: relative;
|
|
2111
|
+
top: map.get($spacers, 2);
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
.nb-btn-inline-hover &::before {
|
|
2115
|
+
font-size: .9em;
|
|
2116
|
+
top: map.get($spacers, 0);
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
/* Nautobot icons */
|
|
2121
|
+
.nb-letter-icon {
|
|
2122
|
+
align-items: center;
|
|
2123
|
+
border-color: currentcolor;
|
|
2124
|
+
border-radius: 0.375rem; /* 6px - consistent with icons from nautobot-icons library. */
|
|
2125
|
+
border-style: solid;
|
|
2126
|
+
border-width: 0.09375rem; /* 1.5px - consistent with icons from nautobot-icons library. */
|
|
2127
|
+
display: inline-flex;
|
|
2128
|
+
justify-content: center;
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
/* Tiles */
|
|
2132
|
+
.nb-tiles {
|
|
2133
|
+
$tile-width: 27rem; /* 432px */
|
|
2134
|
+
|
|
2135
|
+
display: grid;
|
|
2136
|
+
grid-gap: map.get($spacers, 16);
|
|
2137
|
+
grid-template-columns: repeat(auto-fill, minmax(min($tile-width, 100%), 1fr));
|
|
2138
|
+
|
|
2139
|
+
.nb-tile {
|
|
2140
|
+
background: var(--#{$prefix}body-bg);;
|
|
2141
|
+
border: $border-width solid var(--#{$prefix}border-color);
|
|
2142
|
+
border-radius: $border-radius;
|
|
2143
|
+
display: flex;
|
|
2144
|
+
flex-direction: column;
|
|
2145
|
+
padding-block: map.get($spacers, 12);
|
|
2146
|
+
padding-inline: map.get($spacers, 16);
|
|
2147
|
+
|
|
2148
|
+
&.nb-clickable {
|
|
2149
|
+
@include transition($btn-transition);
|
|
2150
|
+
cursor: pointer;
|
|
2151
|
+
outline: none;
|
|
2152
|
+
|
|
2153
|
+
&,
|
|
2154
|
+
&:hover,
|
|
2155
|
+
&:focus,
|
|
2156
|
+
&:visited {
|
|
2157
|
+
color: inherit;
|
|
2158
|
+
text-decoration: none;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
&:active,
|
|
2162
|
+
&:focus-visible,
|
|
2163
|
+
&:hover {
|
|
2164
|
+
@include box-shadow($box-shadow-sm);
|
|
2165
|
+
border-color: var(--#{$prefix}primary-text-emphasis);
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
&:focus-visible {
|
|
2169
|
+
@include box-shadow($box-shadow-sm, $focus-ring-box-shadow);
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
&.nb-disabled {
|
|
2174
|
+
background: var(--#{$prefix}secondary-bg);
|
|
2175
|
+
color: var(--#{$prefix}secondary-color);
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
h2 {
|
|
2179
|
+
font-size: $font-size-root;
|
|
2180
|
+
margin-block-end: map.get($spacers, 2);
|
|
2181
|
+
margin-block-start: map.get($spacers, 10);
|
|
2182
|
+
margin-inline: 0;
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
.nb-tile-header {
|
|
2186
|
+
align-items: center;
|
|
2187
|
+
display: flex;
|
|
2188
|
+
gap: map.get($spacers, 10);
|
|
2189
|
+
|
|
2190
|
+
h3 {
|
|
2191
|
+
color: var(--#{$prefix}secondary-color);
|
|
2192
|
+
display: flex;
|
|
2193
|
+
flex: 1;
|
|
2194
|
+
font-size: $font-size-sm;
|
|
2195
|
+
font-weight: $font-weight-normal;
|
|
2196
|
+
margin: map.get($spacers, 0);
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
img {
|
|
2200
|
+
float: left;
|
|
2201
|
+
margin-right: map.get($spacers, 16);
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
.nb-tile-description {
|
|
2206
|
+
flex: 1;
|
|
2207
|
+
|
|
2208
|
+
p {
|
|
2209
|
+
margin-bottom: map.get($spacers, 12);
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
.nb-tile-footer {
|
|
2214
|
+
border-top: $border-width solid var(--#{$prefix}border-color);
|
|
2215
|
+
column-gap: map.get($spacers, 10);
|
|
2216
|
+
color: var(--#{$prefix}secondary-color);
|
|
2217
|
+
display: flex;
|
|
2218
|
+
flex-wrap: wrap;
|
|
2219
|
+
justify-content: space-between;
|
|
2220
|
+
padding-top: map.get($spacers, 12);
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
/* Miscellaneous */
|
|
2226
|
+
.nb-btn-inline-hover {
|
|
2227
|
+
@include transition($transition-fade);
|
|
2228
|
+
font-size: $font-size-sm;
|
|
2229
|
+
opacity: 0;
|
|
2230
|
+
margin-inline-start: map.get($spacers, 4);
|
|
2231
|
+
padding-block: map.get($spacers, 1);
|
|
2232
|
+
padding-inline: map.get($spacers, 4);
|
|
2233
|
+
|
|
2234
|
+
&:focus-visible,
|
|
2235
|
+
:has(> &):hover .nb-btn-inline-hover { /* Show `nb-btn-inline-hover` while hovering over its parent element. */
|
|
2236
|
+
opacity: 1;
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
.nb-color-block {
|
|
2241
|
+
border: $border-width solid var(--#{$prefix}border-color);
|
|
2242
|
+
border-radius: $border-radius;
|
|
2243
|
+
display: block;
|
|
2244
|
+
width: 5rem; /* 80px */
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
.nb-right-side-panel {
|
|
2248
|
+
max-width: 25rem; /* 400px */
|
|
2249
|
+
min-width: 18.75rem; /* 300px */
|
|
2250
|
+
padding-block-end: map.get($spacers, 0);
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
ul.nb-software-image-hierarchy {
|
|
2254
|
+
list-style-type: "↳ ";
|
|
2255
|
+
padding-block-start: 1.125rem; /* 18px */
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
ul.nb-tree-hierarchy {
|
|
2259
|
+
list-style-type: none;
|
|
2260
|
+
padding-inline-start: map.get($spacers, 0);
|
|
2261
|
+
|
|
2262
|
+
ul {
|
|
2263
|
+
list-style-type: "↳ ";
|
|
2264
|
+
padding-inline-start: 1.125rem; /* 18px */
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
/* Banners */
|
|
2269
|
+
.nb-banner-bottom {
|
|
2270
|
+
grid-area: banner-bottom-area;
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
/* Reports */
|
|
2274
|
+
.nb-report-stats .badge {
|
|
2275
|
+
min-width: 2.5rem; /* 40px */
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
/* Cable tracing */
|
|
2279
|
+
.nb-cable-trace {
|
|
2280
|
+
margin-block: map.get($spacers, 16);
|
|
2281
|
+
margin-inline: auto;
|
|
2282
|
+
max-width: 37.5rem; /* 600px */
|
|
2283
|
+
text-align: center;
|
|
2284
|
+
|
|
2285
|
+
.nb-active {
|
|
2286
|
+
border: map.get($border-widths, 3) solid var(--#{$prefix}success-text-emphasis);
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
.nb-cable {
|
|
2290
|
+
border-left-style: solid;
|
|
2291
|
+
border-left-width: map.get($border-widths, 4);
|
|
2292
|
+
margin-block: map.get($spacers, 12);
|
|
2293
|
+
margin-inline-end: map.get($spacers, 0);
|
|
2294
|
+
margin-inline-start: 50%;
|
|
2295
|
+
padding: map.get($spacers, 24);
|
|
2296
|
+
text-align: left;
|
|
2297
|
+
width: 50%;
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
.nb-node {
|
|
2301
|
+
background-color: var(--#{$prefix}secondary-bg);
|
|
2302
|
+
border: $border-width solid var(--#{$prefix}border-color);
|
|
2303
|
+
border-radius: $border-radius * 2;
|
|
2304
|
+
padding-block: map.get($spacers, 24);
|
|
2305
|
+
padding-inline: map.get($spacers, 16);
|
|
2306
|
+
position: relative;
|
|
2307
|
+
z-index: 1;
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
.nb-termination {
|
|
2311
|
+
background-color: var(--#{$prefix}tertiary-bg);
|
|
2312
|
+
border: $border-width solid var(--#{$prefix}border-color);
|
|
2313
|
+
border-radius: $border-radius;
|
|
2314
|
+
margin-block: -#{map.get($spacers, 16)};
|
|
2315
|
+
margin-inline: auto;
|
|
2316
|
+
padding: map.get($spacers, 12);
|
|
2317
|
+
position: relative;
|
|
2318
|
+
width: 60%;
|
|
2319
|
+
z-index: 2;
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
.nb-trace-end {
|
|
2323
|
+
margin-top: 3rem; /* 48px */
|
|
2324
|
+
text-align: center;
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
/* AJAX loader */
|
|
2329
|
+
.nb-loading {
|
|
2330
|
+
display: none;
|
|
2331
|
+
position: fixed;
|
|
2332
|
+
height: 2em;
|
|
2333
|
+
inset: map.get($spacers, 0);
|
|
2334
|
+
margin: auto;
|
|
2335
|
+
overflow: visible;
|
|
2336
|
+
z-index: $zindex-dropdown - 1;
|
|
2337
|
+
width: 2em;
|
|
2338
|
+
|
|
2339
|
+
&::before {
|
|
2340
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
2341
|
+
content: "";
|
|
2342
|
+
display: block;
|
|
2343
|
+
height: 100%;
|
|
2344
|
+
left: map.get($spacers, 0);
|
|
2345
|
+
position: fixed;
|
|
2346
|
+
top: map.get($spacers, 0);
|
|
2347
|
+
width: 100%;
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
/* highlight.js */
|
|
2352
|
+
pre code.hljs {
|
|
2353
|
+
background-color: var(--#{$prefix}secondary-bg);
|
|
2354
|
+
border-radius: $border-radius;
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
/* Rendered Markdown */
|
|
2358
|
+
.nb-rendered-markdown {
|
|
2359
|
+
table {
|
|
2360
|
+
width: 100%;
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
th {
|
|
2364
|
+
border-bottom: map.get($border-widths, 2) solid var(--#{$prefix}border-color);
|
|
2365
|
+
padding: map.get($spacers, 8);
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
td {
|
|
2369
|
+
border-top: $border-width solid var(--#{$prefix}border-color);
|
|
2370
|
+
padding: map.get($spacers, 8);
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
:last-child {
|
|
2374
|
+
margin-bottom: map.get($spacers, 0);
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
/* Monaco Editor container */
|
|
2379
|
+
.nb-editor-container {
|
|
2380
|
+
display: flex;
|
|
2381
|
+
flex-direction: column;
|
|
2382
|
+
flex: 1;
|
|
2383
|
+
min-height: 6.25rem; /* 100px */
|
|
2384
|
+
position: relative; /* Required for Monaco's absolute positioning. */
|
|
2385
|
+
overflow: hidden; /* Let Monaco handle scrolling. */
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2388
|
+
/* Admonition (docs) */
|
|
2389
|
+
.admonition {
|
|
2390
|
+
margin-block-end: map.get($spacers, 10);
|
|
2391
|
+
padding-block-end: map.get($spacers, 2);
|
|
2392
|
+
|
|
2393
|
+
p {
|
|
2394
|
+
padding-block: 0;
|
|
2395
|
+
padding-inline: map.get($spacers, 12);
|
|
2396
|
+
|
|
2397
|
+
&.admonition-title {
|
|
2398
|
+
color: var(--#{$prefix}body-bg);
|
|
2399
|
+
font-weight: $font-weight-medium;
|
|
2400
|
+
padding-block: map.get($spacers, 4);
|
|
2401
|
+
padding-inline: map.get($spacers, 12);
|
|
2402
|
+
|
|
2403
|
+
&::before {
|
|
2404
|
+
content: "\f06a";
|
|
2405
|
+
font-family: "FontAwesome";
|
|
2406
|
+
margin-inline-end: map.get($spacers, 4);
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2411
|
+
pre {
|
|
2412
|
+
margin-block-end: map.get($spacers, 10px);
|
|
2413
|
+
margin-block-start: map.get($spacers, 0);
|
|
2414
|
+
margin-inline: map.get($spacers, 12);
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
&.danger {
|
|
2418
|
+
background-color: var(--#{$prefix}danger-bg-subtle);
|
|
2419
|
+
|
|
2420
|
+
.admonition-title {
|
|
2421
|
+
background-color: var(--#{$prefix}danger-border-subtle);
|
|
2422
|
+
|
|
2423
|
+
&::before {
|
|
2424
|
+
content: "\f071";
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2429
|
+
&.note {
|
|
2430
|
+
background-color: var(--#{$prefix}info-bg-subtle);
|
|
2431
|
+
|
|
2432
|
+
.admonition-title {
|
|
2433
|
+
background-color: var(--#{$prefix}info-border-subtle);
|
|
2434
|
+
|
|
2435
|
+
&::before {
|
|
2436
|
+
content: "\f05a";
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
&.warning {
|
|
2441
|
+
background-color: var(--#{$prefix}warning-bg-subtle);
|
|
2442
|
+
|
|
2443
|
+
.admonition-title {
|
|
2444
|
+
background-color: var(--#{$prefix}warning-border-subtle);
|
|
2445
|
+
|
|
2446
|
+
&::before {
|
|
2447
|
+
content: "\f06a";
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
.progress {
|
|
2454
|
+
position: relative;
|
|
2455
|
+
|
|
2456
|
+
span {
|
|
2457
|
+
position: absolute;
|
|
2458
|
+
left: 50%;
|
|
2459
|
+
transform: translateX(-50%);
|
|
2460
|
+
font-size: 1em;
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
.nb-lg-max-width {
|
|
2465
|
+
max-width: 960px;
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
/* Workaround to fix `d-none` being overridden by `d-md-flex` (and possibly other `d-{display}` classes). */
|
|
2469
|
+
.d-none {
|
|
2470
|
+
display: none !important;
|
|
2471
|
+
}
|