Ditch separate stylesheet for print media

This commit is contained in:
Jeremy Stretch 2024-01-02 15:05:01 -05:00
parent 6fc83eb7e7
commit 135aff7a58
3 changed files with 0 additions and 23 deletions

View File

@ -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',

View File

@ -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';
}
}

View File

@ -33,12 +33,6 @@
href="{% static 'netbox.css'%}?v={{ settings.VERSION }}"
onerror="window.location='{% url 'media_failure' %}?filename=netbox.css'"
/>
<link
rel="stylesheet"
media="print"
href="{% static 'netbox-print.css'%}?v={{ settings.VERSION }}"
onerror="window.location='{% url 'media_failure' %}?filename=netbox-print.css'"
/>
<link rel="icon" type="image/png" href="{% static 'netbox.ico' %}" />
<link rel="apple-touch-icon" type="image/png" href="{% static 'netbox_touch-icon-180.png' %}" />