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