Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navbar fixed #822

Merged
merged 2 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ ul li a:hover {
display: inline-block;
width: 34px;
height: 20px;
margin-right: 30px;
margin-right: 5px;
position: relative;
}

Expand Down Expand Up @@ -696,12 +696,7 @@ h2 {
transition: opacity 200ms linear, max-height 200ms linear;
will-change: opacity, max-height;
padding: 0 1.5em;
<<<<<<< HEAD
margin: 10px 0;
border-radius: 10px;
=======
border-bottom: 2px solid black;
>>>>>>> f7ad5e177cebb1da0a2605ce3ba5bc533f65cf54
}

.accordion .accordion-content p {
Expand Down Expand Up @@ -1665,7 +1660,7 @@ div.card {
}
.navbar nav.sticky {
height: 80px;
background: linear-gradient(rgb(183, 123, 27), rgba(249, 177, 43, 0.7));
background: linear-gradient(rgba(247, 113, 3, 0.7), rgba(249, 177, 43, 0.7));
color: white !important;
/* border-bottom: 1.5px solid rgb(0, 0, 0); */
border-bottom-left-radius: 16px;
Expand Down
15 changes: 11 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
/* Navbar styles */
/* Navbar styles */
.navbar {
background-color: #333; /* Background color for navbar */
/* background-color: #333; Background color for navbar */
padding: 0; /* Remove padding for the navbar */
}

Expand Down Expand Up @@ -319,10 +319,16 @@
cursor: pointer;
}

.theme-switch img{
margin-right: 20px !important;
}

nav {
background-color: #444; /* Navbar background color */
background-color: #444; /*Navbar background color*/
padding: 5px 20px; /* Padding */
border-radius: 8px;
display: grid;
grid-auto-flow: column;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

Expand All @@ -331,12 +337,13 @@
}

.slider {
width: 60px; /* Slider width */
width: 50px;
height: 34px; /* Slider height */
background-color: #ccc;
position: relative;
border-radius: 34px;
transition: 0.4s;
margin-right: 0px !important;
}

.slider:before {
Expand Down Expand Up @@ -508,7 +515,7 @@
<input type="checkbox" id="checkbox" />
<div class="slider round" id="toggle"></div>
</label>
<img id="image" src="path/to/profile/image.jpg" onclick="ProfileClicked()" alt="Profile">
<img id="image" style="margin-right: 55px;" src="images/profile1.jpg" onclick="ProfileClicked()" alt="Profile">
</nav>
</div>

Expand Down