Client - fix app height

This commit is contained in:
Sam 2021-08-15 09:24:10 +02:00
parent 8465c0e4cb
commit 4bbfb800cb
5 changed files with 19 additions and 15 deletions

View File

@ -1,6 +1,8 @@
<template> <template>
<NavBar /> <NavBar />
<div class="app-container">
<router-view /> <router-view />
</div>
<Footer /> <Footer />
</template> </template>
@ -21,4 +23,7 @@
<style lang="scss"> <style lang="scss">
@import '~@/scss/base'; @import '~@/scss/base';
.app-container {
height: $app-height;
}
</style> </style>

View File

@ -25,11 +25,7 @@
justify-content: center; justify-content: center;
padding: $default-padding; padding: $default-padding;
height: calc(100vh - 100px); height: 100%;
@media screen and (max-width: $medium-limit) {
height: auto;
}
.bike-img { .bike-img {
max-width: 40%; max-width: 40%;

View File

@ -101,10 +101,9 @@
#login-form { #login-form {
display: flex; display: flex;
align-items: center; align-items: center;
height: calc(100vh - 100px);
border-radius: 4px;
margin: $default-margin 0; margin: $default-margin 0;
height: 100%;
#user-form { #user-form {
width: 60%; width: 60%;

View File

@ -5,6 +5,11 @@ $container-width: 1140px;
$medium-limit: 1000px; $medium-limit: 1000px;
$small-limit: 500px; $small-limit: 500px;
/*
* === HEIGHT ===
*/
$app-height: calc(100vh - 130px);
/* /*
* === PADDING / MARGIN === * === PADDING / MARGIN ===
*/ */

View File

@ -1,5 +1,5 @@
<template> <template>
<div id="login"> <div id="loginOrRegister">
<div class="container"> <div class="container">
<div class="container-sub"> <div class="container-sub">
<BikePic /> <BikePic />
@ -35,14 +35,15 @@
<style lang="scss"> <style lang="scss">
@import '~@/scss/base'; @import '~@/scss/base';
#login { #loginOrRegister {
height: 84vh; height: 100%;
.container { .container {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly; justify-content: space-evenly;
height: 100%;
margin-bottom: $default-margin * 2; margin-bottom: $default-margin * 2;
.container-sub { .container-sub {
@ -50,9 +51,7 @@
} }
@media screen and (max-width: $medium-limit) { @media screen and (max-width: $medium-limit) {
flex-direction: column; display: block;
flex-wrap: nowrap;
.container-sub { .container-sub {
.bike-img { .bike-img {
margin-top: $default-margin * 1.5; margin-top: $default-margin * 1.5;