diff --git a/assets/css/style.css b/assets/css/style.css index e42e5934..1b04c20b 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -540,7 +540,11 @@ background-size: cover; padding: 0; /* Remove default padding */ } + .navbar-link { + display: flex; + justify-content: center; + align-items: center; position: relative; color: var(--charcoal); padding: 8px 12px; /* Adjust padding as needed */ @@ -567,12 +571,8 @@ background-size: cover; z-index: 1; transition: all 0.3s ease; top: 100%; + text-align: center; } - -.dropdown-item { - margin-top: 5px; -} - .dropdown-menu-list { list-style: none; margin: 0; @@ -598,11 +598,20 @@ background-size: cover; .navbar-item.dropdown { position: relative; /* Ensure the dropdown menu is positioned relative to the navbar item */ +} +.dropdown-menu-item .navbar-link { + display: inline-block; /* Ensure links are inline-block to center them */ } - .navbar-item.dropdown:hover .dropdown-menu { display: block; -} */ +} +.dropdown-arrow { + transition: transform 0.3s ease; /* Smooth transition for rotation */ +} + +.navbar-item.dropdown:hover .dropdown-arrow { + transform: rotate(180deg); +} .nav-toggle-btn { diff --git a/assets/js/script.js b/assets/js/script.js index 6e1ba153..51affaf3 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -219,19 +219,4 @@ function validateAndConnect() { document.getElementById('bookAuthor').value=''; document.getElementById('yourPrice').value=''; } -} - - -function toggleMoreDropdown(event) { - event.preventDefault(); - const moreDropdown = document.getElementById('more-dropdown'); - const dropdownMenu = document.getElementById('dropdown-menu'); - const moreLink = document.getElementById('more-link'); - - if (dropdownMenu.style.display === "block") { - dropdownMenu.style.display = "none"; - moreLink.style.display = "block"; - } else { - dropdownMenu.style.display = "block"; - } -} +} \ No newline at end of file diff --git a/index.html b/index.html index 11fec8e2..efd2c886 100644 --- a/index.html +++ b/index.html @@ -127,9 +127,9 @@ -