Bladeren bron

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

Paulo Reis 8 jaren geleden
bovenliggende
commit
d5502fd502

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

@@ -23,11 +23,15 @@
 	position: absolute;
 	position: absolute;
 	top: @header-height;
 	top: @header-height;
 	bottom: @footer-height;
 	bottom: @footer-height;
-	padding-top: 0;
 	padding-bottom: 0;
 	padding-bottom: 0;
 	width: 100%;
 	width: 100%;
 	overflow-x: hidden;
 	overflow-x: hidden;
 	overflow-y: auto;
 	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) {
 .project-list-content when (@is-overleaf) {

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

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