diff --git a/netbox/project-static/dist/netbox-dark.css b/netbox/project-static/dist/netbox-dark.css index b1ee4229f..fadf89370 100644 Binary files a/netbox/project-static/dist/netbox-dark.css and b/netbox/project-static/dist/netbox-dark.css differ diff --git a/netbox/project-static/dist/netbox-light.css b/netbox/project-static/dist/netbox-light.css index b12312569..6c740c96b 100644 Binary files a/netbox/project-static/dist/netbox-light.css and b/netbox/project-static/dist/netbox-light.css differ diff --git a/netbox/project-static/styles/netbox.scss b/netbox/project-static/styles/netbox.scss index 9d8c124a8..90870f7dd 100644 --- a/netbox/project-static/styles/netbox.scss +++ b/netbox/project-static/styles/netbox.scss @@ -920,3 +920,19 @@ div.card > div.card-header > div.table-controls { background-color: $tab-content-bg; border-bottom: 1px solid $nav-tabs-border-color; } + +// Shade the home page content background-color. +body { + &[data-netbox-path='/'] { + .content-container, + .search { + background-color: $gray-100; + } + &[data-netbox-color-mode='dark'] { + .content-container, + .search { + background-color: $darkest; + } + } + } +} diff --git a/netbox/templates/base/base.html b/netbox/templates/base/base.html index 5c9f162c1..3a2d8012d 100644 --- a/netbox/templates/base/base.html +++ b/netbox/templates/base/base.html @@ -1,6 +1,5 @@ {# Base template for (almost) all NetBox pages #} {% load static %} -{% load static %} {% load helpers %} @@ -47,6 +46,7 @@ {% if preferences|get_key:'ui.colormode' == 'dark'%} data-netbox-color-mode="dark" {% else %} data-netbox-color-mode="light" {% endif %} + data-netbox-path="{{ request.path }}" > {# Page layout #} diff --git a/netbox/templates/home.html b/netbox/templates/home.html index 32ddc98ea..3fbcc4f45 100644 --- a/netbox/templates/home.html +++ b/netbox/templates/home.html @@ -24,7 +24,7 @@ {% block title %}Home{% endblock %} {% block content-wrapper %} -
+
{# General stats #}
{% for section, items, icon in stats %}