From ff4dbea19d269791d0169e99c7b6a6125b60fc2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sun, 7 Feb 2016 12:28:06 +0100 Subject: [PATCH] ux(navbar): worked on responsive breakpoints for navbar --- public/app/core/directives/body_class.js | 8 + .../features/dashboard/dashnav/dashnav.html | 8 +- .../dashboard/timepicker/timepicker.html | 8 +- public/less/grafana-responsive.less | 86 ++++++-- public/less/grafana.less | 8 +- public/less/navbar.less | 12 +- public/less/timepicker.less | 10 +- public/vendor/bootstrap/less/navbar.less | 193 +----------------- 8 files changed, 112 insertions(+), 221 deletions(-) diff --git a/public/app/core/directives/body_class.js b/public/app/core/directives/body_class.js index 73426c60e00..dcf04a0bfd6 100644 --- a/public/app/core/directives/body_class.js +++ b/public/app/core/directives/body_class.js @@ -12,6 +12,14 @@ function (_, $, coreModule) { var lastHideControlsVal; + $scope.onAppEvent('panel-fullscreen-enter', function() { + elem.toggleClass('panel-in-fullscreen', true); + }); + + $scope.onAppEvent('panel-fullscreen-exit', function() { + elem.toggleClass('panel-in-fullscreen', false); + }); + $scope.$watch('dashboard.hideControls', function() { if (!$scope.dashboard) { return; diff --git a/public/app/features/dashboard/dashnav/dashnav.html b/public/app/features/dashboard/dashnav/dashnav.html index 765c68c7ee4..67c98520bd3 100644 --- a/public/app/features/dashboard/dashnav/dashnav.html +++ b/public/app/features/dashboard/dashnav/dashnav.html @@ -1,6 +1,6 @@ -
+ -
+ -