mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +03:00
Allow notifications to sit over the nav bar
Closes #4379 - Adjusts the `.viewport` `z-index` propetty to allow notificatons to sit over the nav bar Looks like a weird fix, but inheritence of z-index was the issue here.
This commit is contained in:
parent
4f94c77634
commit
a2e550f594
@ -23,7 +23,6 @@
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
overflow: hidden;
|
||||
z-index: 500; // Above the .global-nav when collapsed
|
||||
transition: transform $settings-menu-transition cubic-bezier($settings-menu-bezier);
|
||||
|
||||
@media (max-width: 900px) {
|
||||
@ -56,6 +55,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
// A <span> that wraps the main {{outlet}} which created a new z-index stack, separate to the nav
|
||||
.viewport-content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 500; // Above the .global-nav when collapsed
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// The header bar - visible below 900px
|
||||
|
@ -7,7 +7,9 @@
|
||||
<main id="gh-main" class="viewport" role="main" {{bind-attr data-notification-count=topNotificationCount}}>
|
||||
{{gh-notifications location="top" notify="topNotificationChange"}}
|
||||
{{gh-notifications location="bottom"}}
|
||||
{{outlet}}
|
||||
<span class="viewport-content">
|
||||
{{outlet}}
|
||||
</span>
|
||||
</main>
|
||||
|
||||
{{outlet modal}}
|
||||
|
Loading…
Reference in New Issue
Block a user