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

i fixed the nav bar where dark mode icon and profile icon is overlapping the nav bar items #2848

Merged
merged 1 commit into from
Aug 10, 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
5 changes: 4 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3185,7 +3185,7 @@ footer {

/* Switch Label */
.switch-label {
position: relative;
position: relative; /* Or absolute if needed */
width: 45px;
height: 30px;
background-color: #ccc;
Expand All @@ -3197,8 +3197,11 @@ footer {
padding: 0 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.5s ease;
left: 250px; /* Adjust to move it to the right */
}



.switch-label .sun-icon,
.switch-label .moon-icon {
font-size: 19px;
Expand Down
23 changes: 13 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,17 @@


.nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px;
}
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px;
margin-left: -47px; /* Increased negative margin to move content more to the left */
}


.action {
position: absolute;
right: 600px;
left: 1440px;
top: 15px;
}

Expand Down Expand Up @@ -676,15 +678,16 @@


/* Basic navbar styling */
.header {
.header {
position: fixed;
width: 100%;
top: 10;
top: 10px; /* Assuming you meant 10px for the top */
z-index: 1000;
transition: top 0.3s;
transition: transform 0.3s ease;
transition: top 0.3s, transform 0.3s ease;
margin-left: 10px; /* Add a negative margin to shift left */
}


/* Hide the navbar */
.header.hidden {
top: -93px; /* Adjust according to your header height */
Expand Down
Loading