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:
parent
70b755603d
commit
d5502fd502
2 changed files with 7 additions and 3 deletions
services/web/public/stylesheets
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue