Skip to content

Commit

Permalink
UPDATE: made the footer responsive for mobile view also
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSingh1101 committed Feb 25, 2024
1 parent f024491 commit aa4261d
Showing 1 changed file with 33 additions and 12 deletions.
45 changes: 33 additions & 12 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -683,14 +683,15 @@ body {
align-items: start;
justify-content: start;
gap: 1.5rem;
padding: 0 2rem;
border: 2px solid red;
padding: 1rem 2rem;
/* border: 2px solid red; */
}

.company-details {
font-size: 1.25rem;
font-weight: 600;
color: var(--gray);
text-align: left;
}

.company-contact {
Expand All @@ -717,16 +718,17 @@ body {
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
width: 70%;
justify-items: center;
row-gap: 2rem;
column-gap: 2rem;
border: 2px solid red;
row-gap: 3rem;
column-gap: 3rem;
/* border: 2px solid red; */
padding: 1rem 1rem;
}

.nav-section {
display: flex;
flex-direction: column;
gap: 1rem;
align-items: start;
align-items: center;
}

.nav-section-header {
Expand All @@ -739,15 +741,15 @@ body {
list-style-type: none;
display: flex;
flex-direction: column;
align-items: start;
align-items: center;
gap: 1.5rem;
}

.nav-item {
font-size: 1.15rem;
font-weight: 600;
color: var(--gray);
text-align: left;
text-align: center;
overflow-wrap: break-word
}

Expand Down Expand Up @@ -781,21 +783,40 @@ body {
height: 2rem;
}

@media screen and (max-width: 930px) {
@media screen and (min-width:451px) and (max-width: 930px) {
.footer-navigation {
display: flex;
flex-direction: column;
align-items: center;
gap: 3rem;
bordeR: 2px solid red;
/* border: 2px solid red; */
}
.company-info {
width: 100%;
}
.navigation-panel {
width: 100%;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
}

justify-items: center;
@media screen and (max-width: 450px) {
.footer-navigation {
display: flex;
flex-direction: column;
align-items: center;
gap: 3rem;
/* border: 2px solid red; */
}
.company-info {
width: 100%;
align-items: center;
}

.company-details {
text-align: center;;
}

.navigation-panel {
width: 100%;
}
}

0 comments on commit aa4261d

Please sign in to comment.