Skip to content

Commit

Permalink
Merge pull request #1509 from jhuma20/main
Browse files Browse the repository at this point in the history
fix: The size of the navbar seems off, and the red line that appears when we click doesn’t quite fit the design. #1486
  • Loading branch information
apu52 authored Oct 25, 2024
2 parents 11d6e56 + 9dfb565 commit c70705f
Showing 1 changed file with 44 additions and 7 deletions.
51 changes: 44 additions & 7 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2066,7 +2066,8 @@ body {
.nav-container {
margin-top: 0;
height: auto;
width: 200%;
/* width: 200%; */
width: 100%;
display: flex;
justify-content: flex-start;
align-items: center;
Expand All @@ -2083,7 +2084,7 @@ body {
gap: 0.5rem;
height: auto;
width: 100%;
padding: 0.4rem 0.5rem;
padding: 0.4rem 1rem;
z-index: 10000;
transition: all 0.6s;
}
Expand All @@ -2106,13 +2107,16 @@ body {
display: flex;
justify-content: center;
align-items: center;
font-size: 1.16rem;
/* font-size: 1.16rem; */
font-size: 1rem;
list-style: none;
gap: 0.97rem;
/* gap: 0.97rem; */
position: relative;
top: 0.5rem;
/* top: 0.5rem; */
top: 0;
z-index: 10;
right: 24px;

}

.link {
Expand Down Expand Up @@ -2189,6 +2193,9 @@ body {
width: 100%;
transition: all 0.2s ease-in-out;
} */



.contact-btn {
position: relative;
right: 15px;
Expand Down Expand Up @@ -2228,9 +2235,11 @@ body {
position: absolute;
top: 70px;
background-color: #091020;
width: 0%;
/* width: 0%; */
width: 100%;
left: 0;
height: 100vh;
/* height: 100vh; */
height: auto;
padding: 2rem 0;
flex-direction: column;
transition: 0.2s;
Expand Down Expand Up @@ -3098,4 +3107,32 @@ a:hover::after {
margin-bottom: auto;
font-size: 14px;
font-weight: 600;
}

/* For removing the red line that appears on the navbar of navlink section */
.navLinks a, .link a {
position: relative;
text-decoration: none;
color: white;
font-size: 14px;
}

.navLinks a::after, .link a::after {
content: '';
position: absolute;
width: 0%;
height: 0px;
bottom: -5px;
left: 0;
background-color: transparent;
transition: all 0.3s ease-in-out;
}

.navLinks a:hover, .link a:hover {
color: red;
}

.navLinks a:hover::after, .link a:hover::after {
width: 0%;
background-color: transparent;
}

0 comments on commit c70705f

Please sign in to comment.