Skip to content

Commit

Permalink
Adjusted the dimensions of the navbar for better alignment
Browse files Browse the repository at this point in the history
also  Eliminated the red line that appeared under navlinks for a cleaner look
  • Loading branch information
jhuma20 committed Oct 13, 2024
1 parent 241e289 commit 9dfb565
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 9dfb565

Please sign in to comment.