Skip to content

Commit

Permalink
Release 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenebreenire committed Jan 13, 2025
1 parent 752ed46 commit 9bcba46
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ body {

/* Hamburger Menu Button */
.hamburger {
display: block; /* Ensure it's shown on mobile */
display: block; /* Always show hamburger */
font-size: 30px;
color: white;
background: none;
Expand All @@ -56,7 +56,7 @@ body {
position: absolute;
top: 15px;
right: 20px;
z-index: 2000; /* Increased z-index */
z-index: 2000; /* Ensure it's above navbar */
}

.hamburger span {
Expand Down Expand Up @@ -290,7 +290,7 @@ footer .social-icons a {
}

/* Responsive Styles for Smaller Screens */
@media (max-width: 768px) {
@media (max-width: 1024px) {
.header-top {
flex-direction: column;
align-items: center;
Expand Down Expand Up @@ -318,10 +318,12 @@ footer .social-icons a {
text-align: center;
}

/* Ensure hamburger button is always visible */
.hamburger {
display: block;
}

/* Hide the main menu and only show the mobile version when toggled */
.navbar ul {
display: none;
}
Expand All @@ -330,4 +332,9 @@ footer .social-icons a {
display: flex;
flex-direction: column;
}

/* Show the mobile menu when active */
.navbar ul.mobile.active {
display: flex;
}
}
2 changes: 1 addition & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ document.addEventListener("DOMContentLoaded", function () {
const menu = document.querySelector(".navbar ul");

hamburger.addEventListener("click", function () {
menu.classList.toggle("active"); // Show/hide the menu
menu.classList.toggle("active"); // Toggle visibility on click
});
});

0 comments on commit 9bcba46

Please sign in to comment.