Skip to content

Commit

Permalink
Merge pull request #308 from Subhajit-2023-44/NavbarIssue
Browse files Browse the repository at this point in the history
Fixed Navbar issue !
  • Loading branch information
AnitSarkar123 authored Oct 12, 2024
2 parents a77ce68 + 269336e commit 5b4fa13
Showing 1 changed file with 66 additions and 48 deletions.
114 changes: 66 additions & 48 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,28 +171,33 @@ html::-webkit-scrollbar-thumb:window-inactive {
}

.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 34px;

position: absolute;
cursor: pointer;
top: 0px;
left: 0px;
right: 0px;
bottom: 4px;
background-color: #ccc;
transition: .4s;
border-radius: 34px;
width: 50px;

}

.slider:before {
position: absolute;
content: "";
height: 22px;
width: 22px;
left: 6px;
bottom: 2px;
top:1px;
background-color: black;
transition: .4s;
border-radius: 50%;

position: absolute;
content: "";
height: 18px;
width: 18px;
left: 6px;
bottom: 3px;
top: 1px;
background-color: black;
transition: .4s;
border-radius: 50%;

}

input:checked + .slider {
Expand Down Expand Up @@ -247,29 +252,35 @@ html::-webkit-scrollbar-thumb:window-inactive {
}

nav {
height: 78.16px;
display: flex;
align-items: center;
NavbarIssue

flex: 1;
text-align: right;
margin-right: 100px;
margin-top: 12px;
}

nav ul{
display: flex;
flex-direction: row;
height: 78.16px;
align-items: center;
NavbarIssue
margin-left: 20px;
display: flex;
flex-direction: row;
margin-bottom: 30px;
}

nav ul li {
list-style: none;
display: inline;
margin-right: 30px;
display: inline;
margin-right: 30px;
text-wrap: nowrap;
}

nav ul li a {
text-decoration: none;
color: #000;
font-size: 14px;
font-weight: bold;
display: inline-block;
font-size: 14px;
font-weight: bold;
display: inline-block;
transition: color 0.5s, transform 0.5s;
}

Expand All @@ -281,12 +292,16 @@ nav ul li a:hover {
transform: scale(1.18);
}


nav ul li.login {
background: linear-gradient(to right, #fb5283, #ff3527);
height: 24px;
border-radius: 20px;
padding: 4px 18px;
cursor: pointer;

background: linear-gradient(to right, #fb5283, #ff3527);
height: 24px;
border-radius: 20px;
padding: 4px 18px;
cursor: pointer;
margin-top: -4px;

}

nav ul li.login a {
Expand Down Expand Up @@ -1055,18 +1070,21 @@ button:hover img {
justify-content: center;
}
.search-bar {
text-align: center;
margin: 15px 0;
display: flex;
justify-content: flex-end; /* Align to right */
align-items: center;
gap: 8px; /* Space between input and button */
background-color: #f0f0f0;
padding: 8px 15px;
border-radius: 50px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 50%;
left: 27rem;
NavbarIssue
text-align: center;
margin: 15px 0;
display: flex;
justify-content: flex-end; /* Align to right */
align-items: center;
gap: 8px; /* Space between input and button */
background-color: #f0f0f0;
padding: 8px 15px;
border-radius: 50px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 250px; /* Adjust width to make it smaller */
margin: 8px auto 0 auto;
position: relative;
right: 80px; /* Push it further right */
}

#search-input {
Expand Down

0 comments on commit 5b4fa13

Please sign in to comment.