Skip to content

Commit

Permalink
Merge pull request #68 from M4-Park-Checklist/fix/responsive-mobile
Browse files Browse the repository at this point in the history
fix/adjust styling for mobile responsiveness
  • Loading branch information
Jesuitman authored Mar 1, 2024
2 parents 7e4faba + cf24dda commit 80a61ba
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 18 deletions.
6 changes: 6 additions & 0 deletions src/Navigation/Navigation.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@

.banner {
justify-content: center;
}

@media screen and (max-width: 600px) {
.welcome-message {
margin: 5px;
}
}
5 changes: 5 additions & 0 deletions src/ParkChecklist/ParkChecklist.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,9 @@ h2 {
width: calc(95% / 1);
box-sizing: border-box;
}
.state-selector {
display:flex;
flex-direction: column;
padding-left: 20px;
}
}
42 changes: 24 additions & 18 deletions src/SelectedStateParks/SelectedStateParks.css
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 40px;
align-items: center;
margin: 2%;
margin-bottom: 0px;
}
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 40px;
align-items: center;
margin: 2%;
margin-bottom: 0px;
align-self: center;
}

.no-state{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
color: #333;
background-color: rgba(255, 255, 255, 0.8);
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
z-index: 999;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
color: #333;
background-color: rgba(255, 255, 255, 0.8);
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
z-index: 999;
}

@media screen and (max-width: 600px) {
.card-grid {
justify-items: center;
}
}


0 comments on commit 80a61ba

Please sign in to comment.