diff --git a/netbox/project-static/dist/netbox.css b/netbox/project-static/dist/netbox.css index 2472556f3..67ccb0287 100644 Binary files a/netbox/project-static/dist/netbox.css and b/netbox/project-static/dist/netbox.css differ diff --git a/netbox/project-static/styles/netbox.scss b/netbox/project-static/styles/netbox.scss index 93a88f5cd..626318f0d 100644 --- a/netbox/project-static/styles/netbox.scss +++ b/netbox/project-static/styles/netbox.scss @@ -9,4 +9,6 @@ // Transitional styling to ease migration of templates from NetBox v3.x @import 'transitional/cards'; +@import 'transitional/layout'; @import 'transitional/tables'; +@import 'transitional/tabs'; diff --git a/netbox/project-static/styles/transitional/_layout.scss b/netbox/project-static/styles/transitional/_layout.scss new file mode 100644 index 000000000..e1dd57b5b --- /dev/null +++ b/netbox/project-static/styles/transitional/_layout.scss @@ -0,0 +1,8 @@ +// Tweak layout section colors +.page { + background-color: var(--#{$prefix}bg-surface-secondary); +} +.page-header { + background-color: var(--#{$prefix}bg-surface); + min-height: 0; +} diff --git a/netbox/project-static/styles/transitional/_tabs.scss b/netbox/project-static/styles/transitional/_tabs.scss new file mode 100644 index 000000000..86c340805 --- /dev/null +++ b/netbox/project-static/styles/transitional/_tabs.scss @@ -0,0 +1,21 @@ +// In-page content tabs +.page-tabs { + .nav-tabs { + position: relative; + + .nav-link { + &.active, + &:active, + &:hover { + border-color: $card-border-color; + border-bottom-color: transparent; + } + + &.active { + color: $headings-color; + background: var(--#{$prefix}bg-surface-secondary); + border-bottom-color: transparent; + } + } + } +} diff --git a/netbox/templates/base/layout.html b/netbox/templates/base/layout.html index c03c5a0a6..532d18e88 100644 --- a/netbox/templates/base/layout.html +++ b/netbox/templates/base/layout.html @@ -116,7 +116,9 @@ Blocks:
{# Page header #} -
+ {% endif %} + {# /Banners #} {% block header %} -
+
+
+ + {# Title #} +
+

{% block title %}{% endblock title %}

+ {% block subtitle %}{% endblock %} +
+ + {# Controls #} +
+ {% block controls %}{% endblock controls %} +
- {# Title #} -
-

{% block title %}{% endblock title %}

- {% block subtitle %}{% endblock %}
- - {# Controls #} -
- {% block controls %}{% endblock controls %} -
-
+ + {# Tabs #} +
+ {% block tabs %}{% endblock %} +
+ {% endblock header %}
{# /Page header #} + {# Page body #}
-
- {% block tabs %}{% endblock %} +
{# TODO: Remove content-wrapper block #} {% block content-wrapper %} {% block content %}{% endblock %} diff --git a/netbox/templates/generic/object.html b/netbox/templates/generic/object.html index 675a7f768..b677e2393 100644 --- a/netbox/templates/generic/object.html +++ b/netbox/templates/generic/object.html @@ -19,7 +19,7 @@ Context: {% endcomment %} {% block header %} -
+
{# Breadcrumbs #}