Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/comp creation new #4

Merged
merged 4 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions blocks/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default async function decorate(block) {
</button>`;
hamburger.addEventListener('click', (e) => {
toggleMenu(nav, navSections)
hamburgerHandler(e);
hamburgerHandler();
});
nav.prepend(hamburger);
nav.setAttribute('aria-expanded', 'false');
Expand Down Expand Up @@ -210,10 +210,10 @@ function clickToShowMobileNavDropDown(){
})
}

function hamburgerHandler(e){
if(e.target.parentNode.getAttribute('aria-label') == "Close navigation"){
function hamburgerHandler(){
if(document.querySelector('.nav-hamburger').querySelector('[aria-label]').ariaLabel.toLowerCase() == "close navigation"){
document.querySelector('.section.mobile-view-header').style.display = 'block';
}else if(e.target.parentNode.getAttribute('aria-label') == "Open navigation"){
}else if(document.querySelector('.nav-hamburger').querySelector('[aria-label]').ariaLabel.toLowerCase() == "open navigation"){
document.querySelector('.section.mobile-view-header').style.display = 'none';
}
}
21 changes: 6 additions & 15 deletions styles/partnership/partnership.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
transform: translate(-50%, -50%);
width: calc(100% - 4pc);
max-width: 600px;
/* height: 100%; */
}

.section.partnership-image-popup .wrappercreation-wrapper .offer-documents-wrapper .offer-documents.block .richtext.text>.cmp-text div picture>img {
Expand All @@ -79,7 +78,6 @@
width: calc(100% - 4pc);
z-index: 1;
width: 100%;
/* height: 100%; */
overflow: hidden;
}

Expand All @@ -103,13 +101,8 @@
}

.section.partnership-image-popup .wrappercreation-wrapper .offer-documents-wrapper .offer-documents.block .richtext.text .stake-pop-up .text.popupText .cmp-text {
/* padding: 73px 32px 32px;
max-width: 600px;
width: 100%;
max-height: 350px;
height: 100%;
overflow: hidden; */
position: relative;
padding: 32px;
}

.section.partnership-image-popup .wrappercreation-wrapper .offer-documents-wrapper .offer-documents.block .richtext.text .stake-pop-up .text.popupText .cmp-text>p>span {
Expand All @@ -130,15 +123,13 @@
right: 15px;
}

.section.partnership-image-popup .wrappercreation-wrapper .offer-documents-wrapper .offer-documents.block .richtext.text .stake-pop-up .text.popupText .cmp-text .popup-parent-cont {
overflow: hidden;
overflow-y: auto;
}

.section.partnership-image-popup .wrappercreation-wrapper .offer-documents-wrapper .offer-documents.block .richtext.text .stake-pop-up .text.popupText .cmp-text .popup-parent-cont .popupContainer {
margin-top: 56px;
max-height: 350px;
height: 100%;
display: block;
height: 100%;
margin: 0 2pc 2pc;
overflow-y: auto;
padding: 8px 24px;
}

.section.partnership-image-popup .wrappercreation-wrapper .offer-documents-wrapper .offer-documents.block .richtext.text .stake-pop-up .text.popupText .cmp-text .popup-parent-cont .popupContainer div p,
Expand Down
Loading