Ensure that the sidepane positions correctly with custom layout

This commit is contained in:
Toby Zerner 2015-07-27 16:03:56 +09:30
parent a9d4be8c0b
commit 639c37f34a

View File

@ -71,11 +71,11 @@
.DiscussionPage-list { .DiscussionPage-list {
left: -@pane-width; left: -@pane-width;
width: 100%; width: 100%;
position: fixed; position: absolute;
z-index: @zindex-pane; z-index: @zindex-pane;
overflow: auto; overflow: auto;
top: @header-height; top: @header-height;
bottom: 0; height: ~"calc(100vh - @{header-height})";
width: @pane-width; width: @pane-width;
background: @body-bg; background: @body-bg;
padding-bottom: 40px; padding-bottom: 40px;
@ -83,6 +83,11 @@
.box-shadow(2px 2px 6px -2px @shadow-color); .box-shadow(2px 2px 6px -2px @shadow-color);
.transition(left 0.2s); .transition(left 0.2s);
.affix & {
position: fixed;
bottom: 0;
height: auto;
}
.paneShowing & { .paneShowing & {
left: 0; left: 0;
} }