From 135aff7a5837b832971ed0e7287b5e6b4d6d78c3 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 2 Jan 2024 15:05:01 -0500 Subject: [PATCH] Ditch separate stylesheet for print media --- netbox/project-static/bundle.js | 1 - netbox/project-static/styles/_print.scss | 16 ---------------- netbox/templates/base/base.html | 6 ------ 3 files changed, 23 deletions(-) delete mode 100644 netbox/project-static/styles/_print.scss diff --git a/netbox/project-static/bundle.js b/netbox/project-static/bundle.js index 3b4bdbebc..fdcce4218 100644 --- a/netbox/project-static/bundle.js +++ b/netbox/project-static/bundle.js @@ -75,7 +75,6 @@ async function bundleStyles() { const entryPoints = { 'netbox-external': 'styles/_external.scss', 'netbox': 'styles/_netbox.scss', - 'netbox-print': 'styles/_print.scss', rack_elevation: 'styles/_rack_elevation.scss', cable_trace: 'styles/_cable_trace.scss', graphiql: 'netbox-graphiql/graphiql.scss', diff --git a/netbox/project-static/styles/_print.scss b/netbox/project-static/styles/_print.scss deleted file mode 100644 index 6074687c7..000000000 --- a/netbox/project-static/styles/_print.scss +++ /dev/null @@ -1,16 +0,0 @@ -// Entry for netbox-print.css. Force light-mode theming when printing. - -@media print { - // Force black and white background/foreground colors when printing. - :root { - --nbx-body-bg: #fff !important; - --nbx-body-color: #000 !important; - } - - html { - @import './theme-light'; - @import './bootstrap'; - @import './select'; - @import './netbox'; - } -} diff --git a/netbox/templates/base/base.html b/netbox/templates/base/base.html index 8bc2cd372..67f7f9b06 100644 --- a/netbox/templates/base/base.html +++ b/netbox/templates/base/base.html @@ -33,12 +33,6 @@ href="{% static 'netbox.css'%}?v={{ settings.VERSION }}" onerror="window.location='{% url 'media_failure' %}?filename=netbox.css'" /> -