Skip to content

Commit

Permalink
style : "cityfood.js" added padding for filters for scroll and normal…
Browse files Browse the repository at this point in the history
… position
  • Loading branch information
sanidhiya-khandelwal committed Jan 3, 2024
1 parent ec82521 commit 55ba77c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cityFood.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ window.addEventListener('scroll', function () {
var scrollPosition = window.scrollY;
if (scrollPosition > 150) {
dishContainer.style.display = 'block';
document.querySelector('.filters').style.padding = '1rem 5.3rem';
document.querySelector('.filters').style.padding = '1.8rem 5.3rem';
deliveryDiningContainerSM.style.display = 'none';
}
else {
dishContainer.style.display = 'none';
document.querySelector('.filters').style.padding = '0 6rem';
document.querySelector('.filters').style.padding = '1.8rem 6rem';
deliveryDiningContainerSM.style.display = 'flex';
}
})
Expand Down

0 comments on commit 55ba77c

Please sign in to comment.