Skip to content

Commit

Permalink
UPdate nav bar styling
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylagordon committed May 20, 2024
1 parent b382405 commit 252ec59
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 70 deletions.
26 changes: 13 additions & 13 deletions _sass/home-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -523,19 +523,19 @@ nav {
border-bottom: 3px solid lighten($turing-secondary, 25%);
}

@media (max-width: 1024px) {
.nav-links {
margin: 0 35px;
font-size: 0.9rem;
grid-template-columns: auto 200px 200px;
grid-template-rows: 90px;

.home-logo-link img {
height: 55px;
width: 55px;
}
}
}
// @media (max-width: 1024px) {
// .nav-links {
// margin: 0 35px;
// font-size: 0.9rem;
// grid-template-columns: auto 200px 200px;
// grid-template-rows: 90px;

// .home-logo-link img {
// height: 55px;
// width: 55px;
// }
// }
// }

@media (max-width: 850px) {
.nav-links {
Expand Down
91 changes: 34 additions & 57 deletions _sass/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,91 +2,68 @@ nav {
border-bottom: 2px solid $light-gray;
font-family: $standard-copy;
font-weight: 700;
z-index: 99;
background: #fff;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}

.nav-links {
display: grid;
grid-template-columns: auto 230px 230px;
grid-template-rows: 120px;
display: flex;
align-items: center;
justify-items: center;
grid-gap: 0 10px;
margin-top: 0;
list-style: none;

li:first-child {
justify-self: left;
margin: 5px 0;
}
list-style-type: none;

a {
color: $dark-gray;
border-bottom: 3px solid transparent;
transition: border-color 0.3s;
text-decoration: none;
}

li:not(:first-child) {
// Hover border does not apply to logo
li {
margin: 10px;
a:hover {
border-bottom: 3px solid lighten($turing-secondary, 25%);
}
}
}

li:not(:first-child):hover {
background-color: #fff;
}

.home-logo-link img {
display: block;
height: 80px;
width: 80px;
}
.home-logo-link img {
display: block;
height: 80px;
width: 80px;
margin-left: 10px;
}

.nav-links a.active-link {
// This border does not get applied to logo
// because of code in active-links.js file
border-bottom: 3px solid lighten($turing-secondary, 25%);
}

@media (max-width: 1024px) {
.nav-links {
margin: 0 35px;
font-size: 0.9rem;
grid-template-columns: auto 200px 200px;
grid-template-rows: 90px;
// @media (max-width: 1024px) {
// .nav-links {
// margin: 0 35px;
// font-size: 0.9rem;
// grid-template-columns: auto 200px 200px;
// grid-template-rows: 90px;

.home-logo-link img {
height: 55px;
width: 55px;
}
}
}
// .home-logo-link img {
// height: 55px;
// width: 55px;
// }
// }
// }

@media (max-width: 850px) {
.nav-links {
margin: 0 15px 15px 15px;
padding: 15px 0 0 0;
font-size: 1rem;
grid-template-columns: auto auto;
grid-template-rows: 45px 45px;
justify-items: right;

li {
grid-column: 2;
font-size: 13px;
}

li:first-child {
grid-column: 1;
grid-row: 1 / 5;
}
flex-direction: column;
align-items: end;
margin: 0px;
}

.home-logo-link img {
height: 70px;
width: 70px;
}
.home-logo-link img {
height: 70px;
width: 70px;
}
}

0 comments on commit 252ec59

Please sign in to comment.