Make header vh sized

This commit is contained in:
Gregory Trolliet 2020-04-27 23:17:53 +02:00
parent 2ace48748e
commit 9ac32636c5
2 changed files with 18 additions and 13 deletions

View file

@ -11,16 +11,19 @@
--footer-height-inline: 4em; --footer-height-inline: 4em;
--footer-height-block: 8em; --footer-height-block: 8em;
--navbar-height: 8vh;
} }
/******************* Base *******************/ /******************* Base *******************/
html {
box-sizing: border-box;
}
*, *,
*::before, *::before,
*::after { *::after {
box-sizing:inherit box-sizing: border-box;
}
html {
font-family: Roboto, Ubuntu, Oxygen, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
font-size: medium;
} }
a { a {
color: black; color: black;
@ -31,10 +34,9 @@ a:visited {
text-decoration: none; text-decoration: none;
} }
body { body {
padding-top: 4em; padding-top: var(--navbar-height);
font-family: Roboto, Ubuntu, Oxygen, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
line-height: 1.62; line-height: 1.62;
height: 100vh; min-height: 100vh;
margin: 0; margin: 0;
} }
.page-icon { .page-icon {
@ -45,9 +47,9 @@ body {
/******************* Post *******************/ /******************* Post *******************/
.post { .post {
min-height: 100%; min-height: 92vh;
padding-top: 3em; padding-top: 3em;
padding-bottom: 3em; padding-bottom: var(--footer-height-inline);
margin-bottom: calc(-1 * var(--footer-height-inline)); margin-bottom: calc(-1 * var(--footer-height-inline));
} }
.post:after { .post:after {
@ -109,7 +111,7 @@ body {
width: 100%; width: 100%;
margin: auto; margin: auto;
padding: 0 5vw; padding: 0 5vw;
line-height: 4em; line-height: 8vh;
z-index: 50; z-index: 50;
background: white; background: white;
box-shadow: 0 1px 5px black; box-shadow: 0 1px 5px black;
@ -118,6 +120,9 @@ body {
max-width: var(--max-width-full); max-width: var(--max-width-full);
margin: auto; margin: auto;
} }
.navigation-container {
height: 8vh
}
#navigation-list { #navigation-list {
margin-bottom: 0; margin-bottom: 0;
} }
@ -227,7 +232,7 @@ body {
/******************* Front-screen *******************/ /******************* Front-screen *******************/
.front-screen { .front-screen {
height: 90vh; height: 93vh;
position: relative; position: relative;
padding-left: 3em; padding-left: 3em;
margin: auto; margin: auto;

View file

@ -30,7 +30,7 @@
} }
/******************* Navbar Menu *******************/ /******************* Navbar Menu *******************/
@media only screen and (min-width: 768px) { @media screen and (min-width: 768px) {
#navigation-list { #navigation-list {
position: relative; position: relative;