diff --git a/core/client/assets/css/ember-hacks.css b/core/client/assets/css/ember-hacks.css index ecd98ecffa..2b38fa42a6 100644 --- a/core/client/assets/css/ember-hacks.css +++ b/core/client/assets/css/ember-hacks.css @@ -19,6 +19,25 @@ transition: none; } +/* + By default nav menu should be displayed as it's visibility is controllerd + by GhostPopover +*/ +.navbar .subnav ul { + display: block; +} + +/* + Styles for GhostPopoverComponent + */ + +.ghost-popover { + display: none; +} + +.ghost-popover.open { + display: block; +} .fade-in { animation: fadein 0.5s; -moz-animation: fadein 0.5s; /* Firefox */ diff --git a/core/client/components/ghost-popover.js b/core/client/components/ghost-popover.js new file mode 100644 index 0000000000..fb2fd579d7 --- /dev/null +++ b/core/client/components/ghost-popover.js @@ -0,0 +1,8 @@ + +var GhostPopover = Ember.Component.extend({ + classNames: 'ghost-popover', + classNameBindings: ['open'], + open: false +}); + +export default GhostPopover; \ No newline at end of file diff --git a/core/client/controllers/application.js b/core/client/controllers/application.js index 2e0578effb..ed99eec6a9 100644 --- a/core/client/controllers/application.js +++ b/core/client/controllers/application.js @@ -1,5 +1,10 @@ var ApplicationController = Ember.Controller.extend({ - isLoggedOut: Ember.computed.match('currentPath', /(signin|signup|forgotten|reset)/) + isLoggedOut: Ember.computed.match('currentPath', /(signin|signup|forgotten|reset)/), + actions: { + toggleMenu: function () { + this.toggleProperty('showMenu'); + } + } }); export default ApplicationController; \ No newline at end of file diff --git a/core/client/templates/-navbar.hbs b/core/client/templates/-navbar.hbs index 7666f14c68..cb1f247252 100644 --- a/core/client/templates/-navbar.hbs +++ b/core/client/templates/-navbar.hbs @@ -9,20 +9,22 @@ {{activating-list-item route="settings" title="Settings" classNames="content"}}