Ghost/ghost/admin/app/templates/application.hbs
Kevin Ansfield 909e038e63 Better flickering auto-nav fix
refs #5652
- reverts previous fix (#5698) to return translate3d smoothness
- add separate open-autonav toggle element and style it to always stick to the viewport edge to avoid wandering hover hit areas
2015-09-02 17:41:50 +01:00

24 lines
890 B
Handlebars

{{#gh-app showSettingsMenu=showSettingsMenu}}
<a class="sr-only sr-only-focusable" href="#gh-main">Skip to main content</a>
{{gh-alerts notify="topNotificationChange"}}
<div class="gh-viewport {{if autoNav 'gh-autonav'}} {{if showSettingsMenu 'settings-menu-expanded'}} {{if showMobileMenu 'mobile-menu-expanded'}}">
{{#unless signedOut}}
{{gh-nav-menu open=autoNavOpen toggleMaximise="toggleAutoNav" openAutoNav="openAutoNav" openModal="openModal" closeMobileMenu="closeMobileMenu"}}
{{/unless}}
{{#gh-main onMouseEnter="closeAutoNav" data-notification-count=topNotificationCount}}
{{outlet}}
{{/gh-main}}
{{gh-notifications}}
{{gh-content-cover onClick="closeMenus" onMouseEnter="closeAutoNav"}}
{{outlet "modal"}}
{{outlet "settings-menu"}}
</div>{{!gh-viewport}}
{{/gh-app}}