From f1cbc7da33910af520c125f07b85dad696d5ab86 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 17 May 2017 16:00:46 -0400 Subject: [PATCH] Fixes #1157: Hide nav menu search bar on small displays --- netbox/project-static/css/base.css | 7 +++++++ netbox/templates/_base.html | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/netbox/project-static/css/base.css b/netbox/project-static/css/base.css index 1eadac7e4..f725dafa3 100644 --- a/netbox/project-static/css/base.css +++ b/netbox/project-static/css/base.css @@ -74,6 +74,13 @@ footer p { } } +/* Hide the nav search bar on displays less than 1600px wide */ +@media (max-width: 1599px) { + #navbar_search { + display: none; + } +} + /* Forms */ label { font-weight: normal; diff --git a/netbox/templates/_base.html b/netbox/templates/_base.html index cb7a059fe..f7280f95e 100644 --- a/netbox/templates/_base.html +++ b/netbox/templates/_base.html @@ -246,8 +246,8 @@