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

fix: made the navbar translucent #216

Merged
merged 1 commit into from
May 12, 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
19 changes: 11 additions & 8 deletions media-queries.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,23 @@
/* max-height: 10vh; */
margin-top: 50px;
padding: 0;
}

background: rgba(236, 235, 255, 0.2);
/* border-radius: 16px; */
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(3.3px);
-webkit-backdrop-filter: blur(3.3px);
border: 1px solid rgba(236, 235, 255, 0.3);

body.dark-mode .nav-menu {
background-color: rgba(0, 0, 0, 0.932);
backdrop-filter: blur(8px);
}

.nav-menu:not(.dark-mode) {
background-color:rgba(194, 190, 190, 0.925);;
backdrop-filter: blur(10px)
}

.hover-link{
margin: 16px 0;
}
#home-hover:hover{
color: #61b3f2;
color: #9dc3df;
}
.nav-menu.active{
top: 13%;
Expand Down
4 changes: 3 additions & 1 deletion mode-switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ function toggleDarkMode() {

if (darkModeEnabled) {
document.body.style.backgroundColor = "#111111";
nav.style.backgroundColor = "#111111";
nav.style.backgroundColor = /*"#38373768"*/"#38373743";
nav.style.backdropFilter = "blur(100px)";

companyLogo.style = " -webkit-filter: invert(100%);";
footer.style.backgroundColor = "#242525";
tables.forEach(function (table) {
Expand Down
14 changes: 13 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,20 @@ body {
color: var(--primary-text-color);
overflow-x: hidden;
}
#main_navbar {
background-color: rgba(237, 225, 225, 0.144); /* Adjust the color and opacity as needed */
backdrop-filter: blur(70px);
-webkit-backdrop-filter: blur(50px);
border: 1px solid rgba(236, 235, 255, 0.3);
}



nav {
text-align: center;
position: sticky;
top:2px;
background-color: #fefefe;
background-color: #edc8c827;
z-index: 1;
}

Expand Down Expand Up @@ -802,3 +811,6 @@ table .ribbon::after {
width: 22px;
cursor: pointer;
}
/*body{
color:#38373743
}
Loading