Przeglądaj źródła

Adjust the body to take header and footer into account with padding.

Paulo Reis 9 lat temu
rodzic
commit
435a5b6a43

+ 1 - 1
services/web/public/stylesheets/core/_common-variables.less

@@ -794,7 +794,7 @@
 // Custom
 // Custom
 @is-overleaf: false;
 @is-overleaf: false;
 @header-height: 69px;
 @header-height: 69px;
-@footer-height: 81px;
+@footer-height: 50px;
 
 
 @content-alt-bg-color: lighten(@gray-lightest, 2.5%);
 @content-alt-bg-color: lighten(@gray-lightest, 2.5%);
 
 

+ 2 - 2
services/web/public/stylesheets/core/ol-variables.less

@@ -1,8 +1,8 @@
 @import "./_common-variables.less";
 @import "./_common-variables.less";
 
 
 @is-overleaf: true;
 @is-overleaf: true;
-@header-height: 69px;
-@footer-height: 81px;
+@header-height: 70px;
+@footer-height: 50px;
 
 
 // Styleguide colors
 // Styleguide colors
 @ol-blue-gray-1 : #E4E8EE;
 @ol-blue-gray-1 : #E4E8EE;

+ 3 - 1
services/web/public/stylesheets/core/scaffolding.less

@@ -29,8 +29,10 @@ body {
   line-height: @line-height-base;
   line-height: @line-height-base;
   color: @text-color;
   color: @text-color;
   background-color: @body-bg;
   background-color: @body-bg;
-  height: 100vh;
+  min-height: 100vh;
   position: relative;
   position: relative;
+  padding-top: @header-height;
+  padding-bottom: @footer-height;
 }
 }
 
 
 // Reset fonts for relevant elements
 // Reset fonts for relevant elements