toutes les pages de mobile ok

This commit is contained in:
Valentin
2023-12-14 06:01:09 +01:00
parent 1bf7b2b251
commit 6c4cf6f696
8 changed files with 236 additions and 19 deletions

View File

@@ -5,8 +5,7 @@
> h2 {
margin-bottom: 2vh;
a {
color: black;
font-size: 1.6rem;
@include sous_titre_alt();
}
}
> div:first-of-type {

View File

@@ -0,0 +1,45 @@
.content_partenaires {
.views-row {
margin-bottom: 2vh;
article {
> h2 {
margin-bottom: 2vh;
a {
@include sous_titre_alt();
}
}
> div:first-of-type {
max-height: none;
display: flex;
flex-direction: column;
align-items: center;
> div:first-of-type {
> div {
width: 40vw;
height: auto;
overflow: hidden;
margin-bottom: 1rem;
img {
width: 100%;
height: auto;
mix-blend-mode: darken;
}
}
}
> div:nth-of-type(2) {
@include main_text_content();
margin-bottom: 2rem;
}
> div:last-of-type {
width: 100%;
text-align: right;
padding-bottom: 2rem;
margin-top: 1rem;
@include fluo_button();
}
}
}
}
}

View File

@@ -2,6 +2,7 @@
$sm_font_size: 0.8rem;
$m_font_size: 0.9rem;
$l_font_size: 1.3rem;
$xl_font_size: 1.6rem;
$main_font_size: 1rem;
$title_size: 2.3rem;
@@ -31,6 +32,12 @@ $title_size: 2.3rem;
font-weight: 800;
}
@mixin sous_titre_alt() {
font-family: "Barlow", sans-serif;
color: black;
font-size: $xl_font_size;
}
@mixin fluo_button() {
a {
text-align: center;

View File

@@ -53,32 +53,62 @@
height: 100%;
background-color: $fluo_green;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
justify-content: space-around;
h2 {
font-size: $sm_font_size;
font-family: 'Marianne', sans-serif;
font-weight: 800;
text-align: center;
}
.burger-icon {
width: 2rem;
height: 1.5rem;
display: flex;
flex-direction: column;
justify-content: space-between;
padding-bottom: 0.5rem;
div {
border-bottom: solid 1px black;
width: 100%;
background-color: black;
opacity: 1;
transition: opacity 0.2s ease-out, transform 0.4s ease-out;
transform: none;
}
}
.burger-icon.open {
div:first-of-type {
transform: translate(0rem, 0.5rem) rotate(-45deg);
}
div:nth-of-type(2) {
opacity: 0;
}
div:last-of-type {
transform: translate(0rem, -0.5rem) rotate(45deg);
}
}
}
ul {
display: none;
}
ul.active {
display: block;
height: auto;
max-height: 0vh;
transition: max-height 0.9s ease, padding 0.5s ease-out;
position: fixed;
background-color: $dark_green;
top: 7vh;
left: 0;
width: 100vw;
z-index: 0;
padding: 30px 0;
padding: 0;
li {
width: 100%;
display: flex;
justify-content: center;
padding: 6px 0;
opacity: 0;
transition: opacity 0.3s ease;
a {
color: white;
font-family: 'Marianne', sans-serif;
@@ -90,6 +120,13 @@
color: $dark_green;
}
}
li.visible {
opacity: 1;
}
}
ul.active {
padding: 30px 0;
max-height: 100vh;
}
}
}