Tweak admin side-pane styles

Position the side-pane absolutely when scrolled to the top so that it does not disjoin from the header in Safari.
This commit is contained in:
Toby Zerner 2015-12-03 15:02:07 +10:30
parent 81a1c0955b
commit 55e80f135d

View File

@ -14,15 +14,21 @@
}
@media @desktop, @desktop-hd {
.App-nav {
position: fixed;
position: absolute;
top: @header-height;
bottom: 0;
height: ~"calc(100vh - @{header-height})";
width: @admin-pane-width;
.box-shadow(0 6px 6px @shadow-color);
background: @body-bg;
border-top: 1px solid @control-bg;
z-index: @zindex-pane;
overflow: auto;
.affix & {
position: fixed;
bottom: 0;
height: auto;
}
}
.App-content .sideNavOffset {
margin-left: @admin-pane-width;