From f21aab70e3a7eee63562f94df0eee2a4bc76713a Mon Sep 17 00:00:00 2001 From: Andrew Gormley Date: Wed, 17 Jul 2024 23:18:56 +0100 Subject: [PATCH] removed labs logo and added sub text for all editions --- netbox/project-static/dist/netbox.css | Bin 557095 -> 556947 bytes .../img/logo_netboxlabs_bright_teal.svg | 24 -------- .../img/logo_netboxlabs_dark_teal.svg | 24 -------- .../styles/transitional/_navigation.scss | 54 +++++++----------- netbox/templates/base/layout.html | 22 +++---- 5 files changed, 30 insertions(+), 94 deletions(-) delete mode 100644 netbox/project-static/img/logo_netboxlabs_bright_teal.svg delete mode 100644 netbox/project-static/img/logo_netboxlabs_dark_teal.svg diff --git a/netbox/project-static/dist/netbox.css b/netbox/project-static/dist/netbox.css index 0a68db990b3af9c33786e2e17a69b7289cccf78d..3deed1af48cc56e11cb7626bec5528b71eb0c202 100644 GIT binary patch delta 167 zcmZ49pfvfvVnYjK3sVbo3rh=Y3tJ2O7LL@M>6hNIs7}|(=a89h@QH-6=W ztX%9yMX9+82DQ^S=5QEJpPIw5T_rO&T`xDkBr~l#DZiv7KiA5@IwiBXASbcXDlb1T z)jB6Ntz^1%9!JRZf;^6E5(womRY^Jd$=S8j8wxqBw_nfan8M5nSF^pQm}4~$01$~j AQUCw| delta 272 zcmbRIUvYVZQbP-43sVbo3rh=Y3tJ2O7LL@M=|NVkTGQX=aO|D#;KRtFo>Y{Wm!g}Q zo0y)eo0^hYl9``ZospWEo>5|DsAp7^nrmI2nNpH5-O!#@b$UZ42di9aNm71=Zf<@_ zW*S_jfq|-ZPHI|-mBI9dUs;5?z - - - - - - - - - - - \ No newline at end of file diff --git a/netbox/project-static/img/logo_netboxlabs_dark_teal.svg b/netbox/project-static/img/logo_netboxlabs_dark_teal.svg deleted file mode 100644 index 7ac19ef93..000000000 --- a/netbox/project-static/img/logo_netboxlabs_dark_teal.svg +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/netbox/project-static/styles/transitional/_navigation.scss b/netbox/project-static/styles/transitional/_navigation.scss index 2c2b83f60..6321c53a3 100644 --- a/netbox/project-static/styles/transitional/_navigation.scss +++ b/netbox/project-static/styles/transitional/_navigation.scss @@ -57,6 +57,12 @@ // Logo text for non-community editions .navbar-brand { + + // Reduce logo padding on mobile view + @include media-breakpoint-down(lg) { + padding: 0.2rem 0; + } + a:hover { text-decoration: none; } @@ -65,39 +71,26 @@ letter-spacing: .25rem; text-align: center; } - &-image-edition { - height: 1.2rem; - width: auto; - } } // Navigation geometric graphic for non-community editions - .netbox-motif { - height: 100%; - left: 0; + img.motif { + bottom: 0; + display: none; + left:0; + mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.30) 100%); + opacity: .5; position: absolute; - width: 100%; - - img { - bottom: 0; - mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.30) 100%); - opacity: .25; - position: absolute; - user-drag: none; - user-select: none; - -moz-user-select: none; - -webkit-user-drag: none; - -webkit-user-select: none; - -ms-user-select: none; - width:100%; - } + user-drag: none; + user-select: none; + -moz-user-select: none; + -webkit-user-drag: none; + -webkit-user-select: none; + -ms-user-select: none; + width:100%; @include media-breakpoint-up(lg) { - bottom: 0; - - img { - opacity: .5; - } + display: block; } } } @@ -135,10 +128,7 @@ body[data-bs-theme=dark] .navbar-vertical.navbar-expand-lg { color: $bright-teal!important; } - // Navigation geometric graphic for non-community editions - .netbox-motif { - img { - opacity: .25; - } + img.motif { + opacity: .25; } } diff --git a/netbox/templates/base/layout.html b/netbox/templates/base/layout.html index c52de36c5..d374b98cc 100644 --- a/netbox/templates/base/layout.html +++ b/netbox/templates/base/layout.html @@ -20,13 +20,12 @@ Blocks: {# Sidebar #}