mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 10:14:16 +08:00
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:
parent
81a1c0955b
commit
55e80f135d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user