fix(adhesion): height flow

This commit is contained in:
Matthieu Bessat 2023-07-14 12:20:15 +02:00
parent be64ca4110
commit 57d077438b
2 changed files with 42 additions and 19 deletions

View file

@ -1,18 +1,27 @@
.adhesion-body {
overflow: hidden !important;
height: 100%;
}
.root {
min-height: 100%;
overflow: hidden;
height: 100%;
display: flex;
flex-direction: column;
}
.adhesion-container {
background-color: black;
height: 100%;
width: 100%;
min-height: 100%;
height: 90vh;
flex-grow: 1;
// height: 100%;
// min-height: 100%;
// height: 90vh;
.video-presentation {
height: 100%;
@ -29,11 +38,11 @@
}
.adhesion-footer {
background-color: $background;
width: 100%;
height: 10vh;
height: auto;
padding: 1rem 0;
background-color: $background;
display: flex;
justify-content: center;
align-items: center;
@ -85,6 +94,10 @@
width: 3rem;
height: 3rem;
margin-right: 1rem;
&:last-of-type {
margin-right: 0;
}
a {
display: block;
width: 100%;
@ -103,21 +116,24 @@
}
}
@media (max-width: $md-breakpoint) {
.adhesion-container {
height: 85vh;
}
.adhesion-footer {
height: 15vh;
}
}
// @media (min-height: 800px) and (max-height: 900px) {
// .body {
// display: none;
// }
// .adhesion-container {
// height: 76vh !important;
// }
// .adhesion-footer {
// height: 100% !important;
// }
// }
@media (max-width: $mobile-breakpoint) {
.adhesion-footer {
height: auto;
}
@media (max-width: $xs-breakpoint) {
.adhesion-container {
height: 80vh;
}
.adhesion-footer {
height: 20vh;
.subscribe-button {
margin-bottom: 1rem;
}
@ -129,3 +145,9 @@
}
}
}
// @media (max-width: $xs-breakpoint) {
// .adhesion-container {
// height: 80vh;
// }
// }

View file

@ -2,6 +2,7 @@ $xl-breakpoint: 1800px;
$lg-breakpoint: 1600px;
$md-breakpoint: 1100px;
$sm-breakpoint: 900px;
$mobile-breakpoint: 450px;
$xs-breakpoint: 400px;