mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 05:28:16 -06:00
Ditch separate stylesheet for print media
This commit is contained in:
parent
6fc83eb7e7
commit
135aff7a58
@ -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',
|
||||
|
@ -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';
|
||||
}
|
||||
}
|
@ -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' %}" />
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user