From c903a064bb9e7f8d168df30c5caa9e7a02aa99e8 Mon Sep 17 00:00:00 2001 From: captainill Date: Sat, 14 Nov 2015 14:41:17 -0800 Subject: [PATCH] rename sidebar to mobile nav to avoid conflict --- website/www/source/javascripts/Sidebar.js | 8 +- website/www/source/layouts/_mobile_nav.erb | 22 ++-- website/www/source/stylesheets/_header.less | 4 +- .../_hashicorp-mobile-nav.less | 112 +++++++++--------- 4 files changed, 73 insertions(+), 73 deletions(-) diff --git a/website/www/source/javascripts/Sidebar.js b/website/www/source/javascripts/Sidebar.js index b36e508c4..94f2cbdb6 100644 --- a/website/www/source/javascripts/Sidebar.js +++ b/website/www/source/javascripts/Sidebar.js @@ -11,9 +11,9 @@ constructor: function(){ this.$body = $('body'); - this.$overlay = $('.sidebar-overlay'); - this.$sidebar = $('#sidebar'); - this.$sidebarHeader = $('#sidebar .sidebar-header'); + this.$overlay = $('.mobile-nav-overlay'); + this.$sidebar = $('#mobile-nav'); + this.$sidebarHeader = $('#mobile-nav .mobile-nav-header'); this.$toggleButton = $('.navbar-toggle'); this.sidebarImg = this.$sidebarHeader.css('background-image'); @@ -25,7 +25,7 @@ _this.$toggleButton.on('click', function() { _this.$sidebar.toggleClass('open'); - if ((_this.$sidebar.hasClass('sidebar-fixed-left') || _this.$sidebar.hasClass('sidebar-fixed-right')) && _this.$sidebar.hasClass('open')) { + if ((_this.$sidebar.hasClass('mobile-nav-fixed-left') || _this.$sidebar.hasClass('mobile-nav-fixed-right')) && _this.$sidebar.hasClass('open')) { _this.$overlay.addClass('active'); _this.$body.css('overflow', 'hidden'); } else { diff --git a/website/www/source/layouts/_mobile_nav.erb b/website/www/source/layouts/_mobile_nav.erb index 142b6880f..728260b9c 100644 --- a/website/www/source/layouts/_mobile_nav.erb +++ b/website/www/source/layouts/_mobile_nav.erb @@ -1,18 +1,18 @@ - - + +
- -