1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #15236: Clean up unused static resources (#15539)

* Remove unused images

* Remove unused stylesheets
This commit is contained in:
Jeremy Stretch
2024-03-26 15:27:25 -04:00
committed by GitHub
parent 0cff4c9795
commit 04d8db7c52
7 changed files with 22 additions and 134 deletions

View File

@@ -1,17 +1,21 @@
@import '../old/theme-light';
@import '../../node_modules/bootstrap/scss/functions';
@import '../../node_modules/bootstrap/scss/variables';
@import '../../node_modules/bootstrap/scss/variables-dark';
// Cable Trace Styles.
/*
* Cable trace SVG styling
*/
:root {
// Light Mode Variables.
// Light mode values
--nbx-trace-color: #{$black};
--nbx-trace-node-bg: #{$gray-200};
--nbx-trace-termination-bg: #{$gray-100};
--nbx-trace-cable-shadow: #{$gray-800};
--nbx-trace-attachment: #{$gray-400};
&[data-netbox-color-mode='dark'] {
// Dark Mode Variables.
// Note: only the `theme-light.scss` file is in-scope for simplicity.
&[data-bs-theme='dark'] {
// Dark mode values
--nbx-trace-color: #{$white};
--nbx-trace-node-bg: #{$gray-900};
--nbx-trace-termination-bg: #{$gray-800};

View File

@@ -1,9 +1,13 @@
@import '../old/theme-light';
@import '../../node_modules/bootstrap/scss/functions';
@import '../../node_modules/bootstrap/scss/variables';
@import '../../node_modules/bootstrap/scss/variables-dark';
// Rack Elevation Styles.
/*
* Rack elevation SVG styling
*/
svg {
// Light Mode Variables.
// Light mode values
--nbx-rack-bg: #{$gray-200};
--nbx-rack-border: #{$black};
--nbx-rack-slot-bg: #{$gray-200};
@@ -12,9 +16,8 @@ svg {
--nbx-rack-link-color: #{$blue};
--nbx-rack-unit-color: #{$text-muted};
&[data-netbox-color-mode='dark'] {
// Dark Mode Variables.
// Note: only the `theme-light.scss` file is in-scope for simplicity.
&[data-bs-theme='dark'] {
// Dark mode values
--nbx-rack-bg: #{$gray-800};
--nbx-rack-border: #{$gray-600};
--nbx-rack-slot-bg: #{$gray-800};
@@ -41,7 +44,7 @@ svg {
// Rack unit numbers along left side of rack elevation.
.unit {
margin: 0;
padding: 5px 0px;
padding: 5px 0;
// Rack unit text color.
fill: var(--nbx-rack-unit-color);
}