0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Move bottom notifications outlet outside of <main>

Closes #4379

- Moves the bottom notification outlet _outside_ the `<main>` element which allows notifications to show above the nav bar
- Removes (the now unnecessary) code which counter-positioned the bottom notifications when a Settings Menu was opened.

The way these notifications look or are positioned at various viewport sizes **has not changed**.
This commit is contained in:
Paul Adam Davis 2015-01-30 15:32:41 +00:00
parent 5553f4f6fe
commit 44911304d5
2 changed files with 3 additions and 14 deletions

View file

@ -20,26 +20,14 @@
left: 0; left: 0;
right: 0; right: 0;
z-index: 9999; z-index: 9999;
transition: transform $settings-menu-transition cubic-bezier($settings-menu-bezier);
// This selector ends up being `body.settings-menu-expanded .notifications`
body.settings-menu-expanded & {
transform: translate3d(100%, 0px, 0px);
}
} }
@media (min-width: 401px) { @media (min-width: 401px) {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
left: 0; left: 0;
z-index: 980; z-index: 800;
width: 300px; width: 300px;
transition: transform $settings-menu-transition cubic-bezier($settings-menu-bezier);
// This selector ends up being `body.settings-menu-expanded .notifications`
body.settings-menu-expanded & {
transform: translate3d(350px, 0px, 0px);
}
} }
}//.notifications }//.notifications

View file

@ -6,10 +6,11 @@
<main id="gh-main" class="viewport" role="main" {{bind-attr data-notification-count=topNotificationCount}}> <main id="gh-main" class="viewport" role="main" {{bind-attr data-notification-count=topNotificationCount}}>
{{gh-notifications location="top" notify="topNotificationChange"}} {{gh-notifications location="top" notify="topNotificationChange"}}
{{gh-notifications location="bottom"}}
{{outlet}} {{outlet}}
</main> </main>
{{gh-notifications location="bottom"}}
{{outlet "modal"}} {{outlet "modal"}}
{{outlet "settings-menu"}} {{outlet "settings-menu"}}