diff --git a/web/themes/custom/eql/scripts/main.js b/web/themes/custom/eql/scripts/main.js index 8a89b6f..5bbed12 100644 --- a/web/themes/custom/eql/scripts/main.js +++ b/web/themes/custom/eql/scripts/main.js @@ -20,11 +20,11 @@ var questions = document.getElementsByClassName(".field--name-field-question"); for (let i = 0; i < questions.length; i++) { const question = questions[i] - question.addEventListener("click", toggleMenu); + question.addEventListener("click", toggleFaq); } -function toggleMenu(event) { +function toggleFaq(event) { console.log(event); for (let i = 0; i < answers.length; i++) { const answer = answers[i] diff --git a/web/themes/custom/eql/scss/partials/_header.scss b/web/themes/custom/eql/scss/partials/_header.scss index 8b4c974..ee639b8 100644 --- a/web/themes/custom/eql/scss/partials/_header.scss +++ b/web/themes/custom/eql/scss/partials/_header.scss @@ -86,8 +86,8 @@ header{ // ul:is(.ul1 .sous-liste .ul2){ // display: none; // } - :hover ul div:first-child{ - li div{ + :hover ul { + div:first-child li div{ display: block; background-color: $white; padding: 1rem; @@ -99,19 +99,19 @@ header{ } } } - :hover ul div:nth-child(2){ - li div{ - display: block; - background-color: $white; - padding: 1rem; - a{ - color: $black; - &:hover{ - color: $blue-light; - } - } + :hover ul { + div:nth-child(2) li div{ + display: block; + background-color: $white; + padding: 1rem; + a{ + color: $black; + &:hover{ + color: $blue-light; + } } } + } } #block-burger { // menu burger à droite