From c6ff601b8527e79fa59d52fb7d169ca8f61d1449 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 1 Aug 2024 20:48:26 -0400 Subject: [PATCH] Move dashboard styling --- netbox/project-static/styles/custom/_dashboard.scss | 12 ++++++++++++ netbox/project-static/styles/netbox.scss | 2 +- .../project-static/styles/overrides/_gridstack.scss | 12 ------------ 3 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 netbox/project-static/styles/custom/_dashboard.scss delete mode 100644 netbox/project-static/styles/overrides/_gridstack.scss diff --git a/netbox/project-static/styles/custom/_dashboard.scss b/netbox/project-static/styles/custom/_dashboard.scss new file mode 100644 index 000000000..a1c0e13ec --- /dev/null +++ b/netbox/project-static/styles/custom/_dashboard.scss @@ -0,0 +1,12 @@ +// Alter default color for dashboard widget headings +.grid-stack { + .card-header { + // Default color of card header changes depending on theme + &.bg-default { + background: var(--tblr-bg-surface-secondary) !important; + } + a { + color: inherit !important; + } + } +} diff --git a/netbox/project-static/styles/netbox.scss b/netbox/project-static/styles/netbox.scss index 17cadf21c..effc90dec 100644 --- a/netbox/project-static/styles/netbox.scss +++ b/netbox/project-static/styles/netbox.scss @@ -6,7 +6,6 @@ // Overrides of external libraries @import 'overrides/bootstrap'; -@import 'overrides/gridstack'; @import 'overrides/tabler'; @import 'overrides/tomselect'; @@ -22,6 +21,7 @@ // Custom styling @import 'custom/code'; +@import 'custom/dashboard'; @import 'custom/interfaces'; @import 'custom/markdown'; @import 'custom/misc'; diff --git a/netbox/project-static/styles/overrides/_gridstack.scss b/netbox/project-static/styles/overrides/_gridstack.scss deleted file mode 100644 index ecb5d9a4c..000000000 --- a/netbox/project-static/styles/overrides/_gridstack.scss +++ /dev/null @@ -1,12 +0,0 @@ -// Altering dashboard card colors -.grid-stack { - .card-header { - // Default color of card header changes depending on theme - &.bg-default { - background: var(--tblr-bg-surface-secondary)!important; - } - a { - color: inherit!important; - } - } -}