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

@ -98,8 +98,9 @@ a {
height: 100%; height: 100%;
background-color: #00ff80; background-color: #00ff80;
display: flex; display: flex;
flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: space-around;
} }
.layout-container header div #block-erabletheme-header #hamburger h2 { .layout-container header div #block-erabletheme-header #hamburger h2 {
font-size: 0.8rem; font-size: 0.8rem;
@ -107,35 +108,69 @@ a {
font-weight: 800; font-weight: 800;
text-align: center; text-align: center;
} }
.layout-container header div #block-erabletheme-header #hamburger .burger-icon {
width: 2rem;
height: 1.5rem;
display: flex;
flex-direction: column;
justify-content: space-between;
padding-bottom: 0.5rem;
}
.layout-container header div #block-erabletheme-header #hamburger .burger-icon 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;
}
.layout-container header div #block-erabletheme-header #hamburger .burger-icon.open div:first-of-type {
transform: translate(0rem, 0.5rem) rotate(-45deg);
}
.layout-container header div #block-erabletheme-header #hamburger .burger-icon.open div:nth-of-type(2) {
opacity: 0;
}
.layout-container header div #block-erabletheme-header #hamburger .burger-icon.open div:last-of-type {
transform: translate(0rem, -0.5rem) rotate(45deg);
}
.layout-container header div #block-erabletheme-header ul { .layout-container header div #block-erabletheme-header ul {
display: none; display: none;
} height: auto;
.layout-container header div #block-erabletheme-header ul.active { max-height: 0vh;
display: block; transition: max-height 0.9s ease, padding 0.5s ease-out;
position: fixed; position: fixed;
background-color: #314e41; background-color: #314e41;
top: 7vh; top: 7vh;
left: 0; left: 0;
width: 100vw; width: 100vw;
z-index: 0; z-index: 0;
padding: 30px 0; padding: 0;
} }
.layout-container header div #block-erabletheme-header ul.active li { .layout-container header div #block-erabletheme-header ul li {
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
padding: 6px 0; padding: 6px 0;
opacity: 0;
transition: opacity 0.3s ease;
} }
.layout-container header div #block-erabletheme-header ul.active li a { .layout-container header div #block-erabletheme-header ul li a {
color: white; color: white;
font-family: "Marianne", sans-serif; font-family: "Marianne", sans-serif;
font-weight: 800; font-weight: 800;
padding: 4px 6px; padding: 4px 6px;
} }
.layout-container header div #block-erabletheme-header ul.active li a.is-active { .layout-container header div #block-erabletheme-header ul li a.is-active {
background-color: white; background-color: white;
color: #314e41; color: #314e41;
} }
.layout-container header div #block-erabletheme-header ul li.visible {
opacity: 1;
}
.layout-container header div #block-erabletheme-header ul.active {
padding: 30px 0;
max-height: 100vh;
}
.layout-container > footer { .layout-container > footer {
width: 100vw; width: 100vw;
@ -539,6 +574,7 @@ a {
margin-bottom: 2vh; margin-bottom: 2vh;
} }
.content_gouvernance .views-row article > h2 a { .content_gouvernance .views-row article > h2 a {
font-family: "Barlow", sans-serif;
color: black; color: black;
font-size: 1.6rem; font-size: 1.6rem;
} }
@ -583,4 +619,58 @@ a {
line-height: 1.4; line-height: 1.4;
} }
.content_partenaires .views-row {
margin-bottom: 2vh;
}
.content_partenaires .views-row article > h2 {
margin-bottom: 2vh;
}
.content_partenaires .views-row article > h2 a {
font-family: "Barlow", sans-serif;
color: black;
font-size: 1.6rem;
}
.content_partenaires .views-row article > div:first-of-type {
max-height: none;
display: flex;
flex-direction: column;
align-items: center;
}
.content_partenaires .views-row article > div:first-of-type > div:first-of-type > div {
width: 40vw;
height: auto;
overflow: hidden;
margin-bottom: 1rem;
}
.content_partenaires .views-row article > div:first-of-type > div:first-of-type > div img {
width: 100%;
height: auto;
mix-blend-mode: darken;
}
.content_partenaires .views-row article > div:first-of-type > div:nth-of-type(2) {
font-family: "Marianne", sans-serif;
font-size: 1rem;
line-height: 1.4;
margin-bottom: 2rem;
}
.content_partenaires .views-row article > div:first-of-type > div:last-of-type {
width: 100%;
text-align: right;
padding-bottom: 2rem;
margin-top: 1rem;
}
.content_partenaires .views-row article > div:first-of-type > div:last-of-type a {
text-align: center;
color: black;
font-family: "Marianne", sans-serif;
font-weight: 800;
font-size: 0.9rem;
background-color: white;
border: solid 2px #00ff80;
padding: 9px 18px;
}
.content_partenaires .views-row article > div:first-of-type > div:last-of-type a svg {
display: none;
}
/*# sourceMappingURL=styles.css.map */ /*# sourceMappingURL=styles.css.map */

View File

@ -1 +1 @@
{"version":3,"sourceRoot":"","sources":["../scss/styles.scss","../scss/global/_fonts.scss","../scss/global/variables/_typography.scss","../scss/global/_typography.scss","../scss/global/_global.scss","../scss/partials/_header.scss","../scss/global/variables/_layout.scss","../scss/global/variables/_colors.scss","../scss/partials/_footer.scss","../scss/partials/_carousel.scss","../scss/partials/_articles.scss","../scss/partials/_articles_teaser.scss","../scss/_home.scss","../scss/_fullpage.scss","../scss/_gouvernance.scss"],"names":[],"mappings":"AAAA;ACAA;AAEA;EACI;EACA;EAEA;EACA;;AAGJ;EACI;EACA;EAEA;EACA;;AAGJ;EACI;EACA;EAEA;EACA;;AAGJ;EACI;EACA;EAEA;EACA;;AAGJ;AAEA;EACI;EACA;EAEA;EACA;;ACzCJ;AAOA;ACPA;EACI;;;ACDJ;EACI;;;AJOJ;AKPA;EACI;EACA;;AACA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;EACA;;AACA;EACI;;AACA;EACI;EACA;;AACA;EACI,cCxBb;EDyBa;EACA;;AAIZ;EACI;;AACA;EACI;EACA;;AACA;EACI;EACA;EACA;EACA;;AAIZ;EACI;;AAEJ;EACI;;AAGA;EACI;EACA;EACA,kBErDP;EFsDO;EACA;EACA;;AACA;EACI,WHzDT;EG0DS;EACA;EACA;;AAGR;EACI;;AAEJ;EACI;EACA;EACA,kBEnEP;EFoEO;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;;AAEJ;EACI;EACA,OEtFf;;;ACHb;EACI;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;EACA;;AACA;EACI;;AACA;EACI;EACA;;AAGR;EACI;;AACA;EACI;EACA;;AAIZ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;;AACA;EACI;EACA;;AACA;EACI,ODxCP;ECyCO,WN3CL;EM4CK;EACA;EACA;;AAKZ;EACI;;AACA;EACI;EACA;;AAEI;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBDjEjB;;ACmEa;EACI;EACA;;;ACtExB;EFMI;EEJA;EACA;;AACA;EACI;;AACA;EACI;EACA;EACA;EACA;;AACA;EACI;;AACA;EACI;;AACA;EACI;EACA;;AAOpB;EACI;EACA;;AACA;EACI;EACA;;AACA;EACI,OF/BH;;AEiCD;EACI;;AAIZ;EAEI;EACA;EACA;;APRJ;EACI;EACA;EACA;EACA;EACA,WArCM;EAsCN;EACA;EACA;;AACA;EACI;;;AQ5CZ;EHMI;EGJA;EACA;EACA;;AACA;ERgBA;EACA,WAlBa;EAmBb;;AQfA;EACI,WRRO;EQSP;EACA,OHVD;EGWC,cJZG;;AIcP;EACI,cJfG;EIgBH;;AACA;EACI,WRjBG;EQkBH;;AAGR;ERZA;EACA,WANS;EAOT;EACA;EACA,OKbG;;ALcH;EACI,OKfD;;AGwBH;EACI,SJ1BG;;AI2BH;EACI;;AAEJ;EACI;EACA;;AAGA;EACI;EACA;;AACA;EACI;EACA;;AAMhB;EACI;EACA;EACA;;ARfJ;EACI;EACA;EACA;EACA;EACA,WArCM;EAsCN;EACA;EACA;;AACA;EACI;;;AS1CJ;EACI;EACA;EACA;EACA;EACA,cLPD;EKQC,eLRD;;AKUK;EACI;EACA;;AAKZ;EACI;EACA,WTjBE;ESkBF;EACA;EACA;EACA,OJtBL;EIuBK;EACA;EACA;EACA;;AACA;EACI;;AAIR;EACI;EACA,WTjCE;ESkCF;;AAGJ;ET7BJ;EACA,WANS;EAOT;EACA;EACA,OKbG;;ALcH;EACI,OKfD;;;APcP;AYfA;EACI;EACA;EACA;;AACA;EACI;;AAEJ;EACI;;AACA;EVYJ;EACA,WAlBa;EAmBb;;AUVA;EAEI;EACA;EACA;EACA;EACA;;AVeJ;EACI;EACA;EACA;EACA;EACA,WArCM;EAsCN;EACA;EACA;;AACA;EACI;;;AUrBZ;ELjBI;EKmBA;EACA;;AACA;EVjBA;EACA,WANS;EAOT;EACA;EACA,OKbG;EK4BC;;AVdJ;EACI,OKfD;;AK8BH;EACI;;AACA;EVZJ;EACA,WAlBa;EAmBb;;AUcA;EAEI;EACA;EACA;EACA;;AVRJ;EACI;EACA;EACA;EACA;EACA,WArCM;EAsCN;EACA;EACA;;AACA;EACI;;;AW5CZ;EACI;EACA;ENIA;;AMFA;EXMA;EACA,WANS;EAOT;EACA;EACA,OKbG;EMKC;EACA;;AXQJ;EACI,OKfD;;AMUC;EXDJ;EACA,WANS;EAOT;EACA;EACA,OKbG;EMYK;;AXER;EACI,OKfD;;AMeC;EXKJ;EACA,WAlBa;EAmBb;EWLQ;;AAGJ;EXAJ;EACA,WAlBa;EAmBb;EWAQ;EACA;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA;;AXAR;EACI;EACA;EACA;EACA;EACA,WArCM;EAsCN;EACA;EACA;;AACA;EACI;;AWLR;EACI;;;ACvCJ;EACI;;AAEI;EACI;;AACA;EACI;EACA;;AAGR;EACI;;AAEJ;EACI;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;;AACA;EACI;EACA;;AAKZ;EZTZ;EACA,WAzBU;EA0BV,OK5BG;EL6BH;EYQgB;;AAGJ;EACI;;AAGJ;EZxBZ;EACA,WAlBa;EAmBb","file":"styles.css"} {"version":3,"sourceRoot":"","sources":["../scss/styles.scss","../scss/global/_fonts.scss","../scss/global/variables/_typography.scss","../scss/global/_typography.scss","../scss/global/_global.scss","../scss/partials/_header.scss","../scss/global/variables/_layout.scss","../scss/global/variables/_colors.scss","../scss/partials/_footer.scss","../scss/partials/_carousel.scss","../scss/partials/_articles.scss","../scss/partials/_articles_teaser.scss","../scss/_home.scss","../scss/_fullpage.scss","../scss/_gouvernance.scss","../scss/_partenaires.scss"],"names":[],"mappings":"AAAA;ACAA;AAEA;EACI;EACA;EAEA;EACA;;AAGJ;EACI;EACA;EAEA;EACA;;AAGJ;EACI;EACA;EAEA;EACA;;AAGJ;EACI;EACA;EAEA;EACA;;AAGJ;AAEA;EACI;EACA;EAEA;EACA;;ACzCJ;AAQA;ACRA;EACI;;;ACDJ;EACI;;;AJOJ;AKPA;EACI;EACA;;AACA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;EACA;;AACA;EACI;;AACA;EACI;EACA;;AACA;EACI,cCxBb;EDyBa;EACA;;AAIZ;EACI;;AACA;EACI;EACA;;AACA;EACI;EACA;EACA;EACA;;AAIZ;EACI;;AAEJ;EACI;;AAGA;EACI;EACA;EACA,kBErDP;EFsDO;EACA;EACA;EACA;;AACA;EACI,WH1DT;EG2DS;EACA;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;EACA;EACA;;AAIJ;EACI;;AAEJ;EACI;;AAEJ;EACI;;AAIZ;EACI;EACA;EACA;EACA;EACA;EACA,kBE/FP;EFgGO;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;;AAEJ;EACI;EACA,OEpHf;;AFuHO;EACI;;AAGR;EACI;EACA;;;AGhIpB;EACI;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;EACA;;AACA;EACI;;AACA;EACI;EACA;;AAGR;EACI;;AACA;EACI;EACA;;AAIZ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;;AACA;EACI;EACA;;AACA;EACI,ODxCP;ECyCO,WN3CL;EM4CK;EACA;EACA;;AAKZ;EACI;;AACA;EACI;EACA;;AAEI;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBDjEjB;;ACmEa;EACI;EACA;;;ACtExB;EFMI;EEJA;EACA;;AACA;EACI;;AACA;EACI;EACA;EACA;EACA;;AACA;EACI;;AACA;EACI;;AACA;EACI;EACA;;AAOpB;EACI;EACA;;AACA;EACI;EACA;;AACA;EACI,OF/BH;;AEiCD;EACI;;AAIZ;EAEI;EACA;EACA;;APDJ;EACI;EACA;EACA;EACA;EACA,WA5CM;EA6CN;EACA;EACA;;AACA;EACI;;;AQnDZ;EHMI;EGJA;EACA;EACA;;AACA;ERiBA;EACA,WAlBa;EAmBb;;AQhBA;EACI,WRRO;EQSP;EACA,OHVD;EGWC,cJZG;;AIcP;EACI,cJfG;EIgBH;;AACA;EACI,WRjBG;EQkBH;;AAGR;ERXA;EACA,WANS;EAOT;EACA;EACA,OKdG;;ALeH;EACI,OKhBD;;AGwBH;EACI,SJ1BG;;AI2BH;EACI;;AAEJ;EACI;EACA;;AAGA;EACI;EACA;;AACA;EACI;EACA;;AAMhB;EACI;EACA;EACA;;ARRJ;EACI;EACA;EACA;EACA;EACA,WA5CM;EA6CN;EACA;EACA;;AACA;EACI;;;ASjDJ;EACI;EACA;EACA;EACA;EACA,cLPD;EKQC,eLRD;;AKUK;EACI;EACA;;AAKZ;EACI;EACA,WTjBE;ESkBF;EACA;EACA;EACA,OJtBL;EIuBK;EACA;EACA;EACA;;AACA;EACI;;AAIR;EACI;EACA,WTjCE;ESkCF;;AAGJ;ET5BJ;EACA,WANS;EAOT;EACA;EACA,OKdG;;ALeH;EACI,OKhBD;;;APcP;AYfA;EACI;EACA;EACA;;AACA;EACI;;AAEJ;EACI;;AACA;EVaJ;EACA,WAlBa;EAmBb;;AUXA;EAEI;EACA;EACA;EACA;EACA;;AVsBJ;EACI;EACA;EACA;EACA;EACA,WA5CM;EA6CN;EACA;EACA;;AACA;EACI;;;AU5BZ;ELjBI;EKmBA;EACA;;AACA;EVhBA;EACA,WANS;EAOT;EACA;EACA,OKdG;EK4BC;;AVbJ;EACI,OKhBD;;AK8BH;EACI;;AACA;EVXJ;EACA,WAlBa;EAmBb;;AUaA;EAEI;EACA;EACA;EACA;;AVDJ;EACI;EACA;EACA;EACA;EACA,WA5CM;EA6CN;EACA;EACA;;AACA;EACI;;;AWnDZ;EACI;EACA;ENIA;;AMFA;EXOA;EACA,WANS;EAOT;EACA;EACA,OKdG;EMKC;EACA;;AXSJ;EACI,OKhBD;;AMUC;EXAJ;EACA,WANS;EAOT;EACA;EACA,OKdG;EMYK;;AXGR;EACI,OKhBD;;AMeC;EXMJ;EACA,WAlBa;EAmBb;EWNQ;;AAGJ;EXCJ;EACA,WAlBa;EAmBb;EWDQ;EACA;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA;;AXOR;EACI;EACA;EACA;EACA;EACA,WA5CM;EA6CN;EACA;EACA;;AACA;EACI;;AWZR;EACI;;;ACvCJ;EACI;;AAEI;EACI;;AACA;EZ6BZ;EACA;EACA,WAjCW;;AYMH;EACI;;AAEJ;EACI;EACA;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;;AACA;EACI;EACA;EACA;EACA;;AACA;EACI;EACA;;AAKZ;EZPZ;EACA,WA1BU;EA2BV,OK7BG;EL8BH;EYMgB;;AAGJ;EACI;;AAGJ;EZtBZ;EACA,WAlBa;EAmBb;;;AavBA;EACI;;AAEI;EACI;;AACA;Eb6BZ;EACA;EACA,WAjCW;;AaMH;EACI;EACA;EACA;EACA;;AAEI;EACI;EACA;EACA;EACA;;AACA;EACI;EACA;EACA;;AAKZ;EbPZ;EACA,WAlBa;EAmBb;EaOgB;;AAGJ;EACI;EACA;EACA;EACA;;AbGhB;EACI;EACA;EACA;EACA;EACA,WA5CM;EA6CN;EACA;EACA;;AACA;EACI","file":"styles.css"}

View File

@ -18,22 +18,56 @@
}); });
})(jQuery, window); })(jQuery, window);
//
// Toggle du menu
//
const hamburgerBtn = document.getElementById("hamburger"); const hamburgerBtn = document.getElementById("hamburger");
const hamburgerIcon = document.querySelector(".burger-icon");
const menu = hamburgerBtn.nextElementSibling; const menu = hamburgerBtn.nextElementSibling;
const menuItems = menu.children;
const opacityDelay = 50;
function toggleMenuItems(action) {
let delay = opacityDelay;
for (let i = 0; i < menuItems.length; i++) {
setTimeout(() => {
if (action === 'show') {
menuItems[i].classList.add('visible');
} else if (action === 'hide') {
menuItems[menuItems.length - i - 1].classList.remove('visible');
}
}, delay);
delay += opacityDelay;
}
}
// Toggle menu visibility on hamburger click // Toggle menu visibility on hamburger click
hamburgerBtn.addEventListener("click", function(event) { hamburgerBtn.addEventListener("click", function(event) {
event.stopPropagation(); event.stopPropagation();
menu.classList.toggle("active"); hamburgerIcon.classList.toggle('open');
if(menu.classList.contains('active')) {
setTimeout(() => {
menu.style.display = "none";
}, 700);
toggleMenuItems('hide');
} else {
menu.style.display = "block";
toggleMenuItems('show');
}
setTimeout(() => {
menu.classList.toggle("active");
}, 1);
}); });
// Close menu when clicking outside of the menu // Close menu when clicking outside of the menu
document.addEventListener("click", function(event) { document.addEventListener("click", function(event) {
const isMenuClicked = event.target.closest("#menu") !== null;
const isHamburgerClicked = event.target === hamburgerBtn; const isHamburgerClicked = event.target === hamburgerBtn;
const isMenuClicked = event.target === menu || event.target.parentElement === menu;
if (!isMenuClicked && !isHamburgerClicked) { if (!isMenuClicked && !isHamburgerClicked) {
hamburgerIcon.classList.remove('open');
menu.classList.remove("active"); menu.classList.remove("active");
toggleMenuItems('hide');
} }
}); });
} }

View File

@ -5,8 +5,7 @@
> h2 { > h2 {
margin-bottom: 2vh; margin-bottom: 2vh;
a { a {
color: black; @include sous_titre_alt();
font-size: 1.6rem;
} }
} }
> div:first-of-type { > 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; $sm_font_size: 0.8rem;
$m_font_size: 0.9rem; $m_font_size: 0.9rem;
$l_font_size: 1.3rem; $l_font_size: 1.3rem;
$xl_font_size: 1.6rem;
$main_font_size: 1rem; $main_font_size: 1rem;
$title_size: 2.3rem; $title_size: 2.3rem;
@ -31,6 +32,12 @@ $title_size: 2.3rem;
font-weight: 800; font-weight: 800;
} }
@mixin sous_titre_alt() {
font-family: "Barlow", sans-serif;
color: black;
font-size: $xl_font_size;
}
@mixin fluo_button() { @mixin fluo_button() {
a { a {
text-align: center; text-align: center;

View File

@ -53,32 +53,62 @@
height: 100%; height: 100%;
background-color: $fluo_green; background-color: $fluo_green;
display: flex; display: flex;
flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: space-around;
h2 { h2 {
font-size: $sm_font_size; font-size: $sm_font_size;
font-family: 'Marianne', sans-serif; font-family: 'Marianne', sans-serif;
font-weight: 800; font-weight: 800;
text-align: center; 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 { ul {
display: none; display: none;
} height: auto;
ul.active { max-height: 0vh;
display: block; transition: max-height 0.9s ease, padding 0.5s ease-out;
position: fixed; position: fixed;
background-color: $dark_green; background-color: $dark_green;
top: 7vh; top: 7vh;
left: 0; left: 0;
width: 100vw; width: 100vw;
z-index: 0; z-index: 0;
padding: 30px 0; padding: 0;
li { li {
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
padding: 6px 0; padding: 6px 0;
opacity: 0;
transition: opacity 0.3s ease;
a { a {
color: white; color: white;
font-family: 'Marianne', sans-serif; font-family: 'Marianne', sans-serif;
@ -90,6 +120,13 @@
color: $dark_green; color: $dark_green;
} }
} }
li.visible {
opacity: 1;
}
}
ul.active {
padding: 30px 0;
max-height: 100vh;
} }
} }
} }

View File

@ -33,6 +33,11 @@
{% if label %} {% if label %}
<div id="hamburger"> <div id="hamburger">
<h2{{ title_attributes }}>{{ label }}</h2> <h2{{ title_attributes }}>{{ label }}</h2>
<div class="burger-icon">
<div></div>
<div></div>
<div></div>
</div>
</div> </div>
{% endif %} {% endif %}
{{ title_suffix }} {{ title_suffix }}