Skip to content

Commit

Permalink
style: "cityFood.css" bread crumb made visible for ss<=900px
Browse files Browse the repository at this point in the history
  • Loading branch information
sanidhiya-khandelwal committed Jan 3, 2024
1 parent c31f09b commit 61d6950
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
32 changes: 17 additions & 15 deletions cityFood.css
Original file line number Diff line number Diff line change
Expand Up @@ -1201,21 +1201,14 @@ a {
}


@media all and (width<=900px) {
.down-arrow {
display: none;
}
}


@media all and (width<=900px) {
body {
width: 100%;
}

header {
margin-top: 0rem;
padding: 1.5rem 2rem;
padding: 1.5rem 2rem 1rem 2rem;
box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 6px -6px;
}

Expand All @@ -1241,8 +1234,21 @@ a {
box-shadow: rgba(28, 28, 28, 0.06) 0px 1px 4px;
}

.down-arrow {
display: none;
}

.bread-crumb {
display: flex;
margin-top: -5rem;
padding: 0px 2rem;
}

.filters {
top: 80px;
top: 6.7rem;
margin-top: -8rem;
margin-bottom: 7.5rem;
margin-left: -4rem;
}

.dish-sm {
Expand Down Expand Up @@ -1335,18 +1341,14 @@ a {
display: none;
}

.filters {
margin-top: -5rem;
margin-left: -4rem;
}

.deliveryRestaurants {
padding: 0 5rem;
margin: -1rem 0 0 -3rem;
margin: 0 0 0 -3rem;
}

.deliveryRestaurants-Header {
font-size: 1.5rem;
margin-top: 2.3rem;
}

/* footer disclaimer */
Expand Down
5 changes: 2 additions & 3 deletions cityFood.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ document.addEventListener('DOMContentLoaded', function () {
})





// makes search container visible on scroll in small screens
window.addEventListener('scroll', function () {
var dishContainer = document.querySelector('.dish-sm');
Expand All @@ -31,11 +28,13 @@ window.addEventListener('scroll', function () {
if (scrollPosition > 150) {
dishContainer.style.display = 'block';
document.querySelector('.filters').style.padding = '1.8rem 5.3rem';
document.querySelector('.filters').style.top = '4.7rem';
deliveryDiningContainerSM.style.display = 'none';
}
else {
dishContainer.style.display = 'none';
document.querySelector('.filters').style.padding = '1.8rem 6rem';
document.querySelector('.filters').style.top = '6.7rem';
deliveryDiningContainerSM.style.display = 'flex';
}
})
Expand Down

0 comments on commit 61d6950

Please sign in to comment.