1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-08 07:52:06 +00:00

Make layout work nicely without navbar (content BG now expands to the top).

This commit is contained in:
Paulo Reis 2017-12-21 11:03:27 +00:00
parent 70b755603d
commit d5502fd502
2 changed files with 7 additions and 3 deletions
services/web/public/stylesheets

View file

@ -23,11 +23,15 @@
position: absolute;
top: @header-height;
bottom: @footer-height;
padding-top: 0;
padding-bottom: 0;
width: 100%;
overflow-x: hidden;
overflow-y: auto;
// Specificity needed to override default `body > .content` values
body > .content& {
min-height: calc(~"100vh -" (@header-height + @footer-height));
padding-top: 0;
}
}
.project-list-content when (@is-overleaf) {

View file

@ -32,10 +32,10 @@ body {
background-color: @body-bg;
min-height: 100%;
position: relative;
padding-top: @header-height;
padding-bottom: @footer-height;
& > .content {
min-height: calc(~"100vh -" (@header-height + @footer-height));
min-height: calc(~"100vh -" @footer-height);
padding-top: @header-height + @content-margin-vertical;
}
}