소스 검색

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

Paulo Reis 8 년 전
부모
커밋
d5502fd502
2개의 변경된 파일과 7개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 1
      services/web/public/stylesheets/app/project-list.less
  2. 2 2
      services/web/public/stylesheets/core/scaffolding.less

+ 5 - 1
services/web/public/stylesheets/app/project-list.less

@@ -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) {

+ 2 - 2
services/web/public/stylesheets/core/scaffolding.less

@@ -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;
   }
 }