From 68e3dfb3805fed60b08d26f8c6f0041b1fd81b90 Mon Sep 17 00:00:00 2001
From: polkapolka <7219835+polkapolka@users.noreply.github.com>
Date: Fri, 13 Jun 2025 22:12:22 +0000
Subject: [PATCH 1/2] fixed the dropdown menus
---
PyBay/assets/js/countdown-timer.js | 2 +-
PyBay/templates/layout.html | 144 ++++++++++++++++++-----------
PyBay/webpack/js/main.js | 2 -
PyBay/webpack/scss/main.scss | 36 +++++++-
4 files changed, 122 insertions(+), 62 deletions(-)
diff --git a/PyBay/assets/js/countdown-timer.js b/PyBay/assets/js/countdown-timer.js
index 550d9a3..f04812e 100644
--- a/PyBay/assets/js/countdown-timer.js
+++ b/PyBay/assets/js/countdown-timer.js
@@ -58,4 +58,4 @@ customElements.define('countdown-timer', CountdownTimer);
// Optional: export for test or bundling purposes
-export default CountdownTimer;
\ No newline at end of file
+export default CountdownTimer;
diff --git a/PyBay/templates/layout.html b/PyBay/templates/layout.html
index 732e56e..91dc3ad 100644
--- a/PyBay/templates/layout.html
+++ b/PyBay/templates/layout.html
@@ -33,14 +33,13 @@
-
-
+
+
+
+
-
-
+
@@ -108,14 +107,11 @@
}
/* Custom Nav Link Styles */
- .navbar-custom {
- background-color: #4B8BBE; /* Python blue */
- }
.nav-link {
- color: #00749E; /* Python yellow */
+ color: #FCD582; /* Python yellow */
font-weight: bold;
- text-decoration: underline #00749E;
+ text-decoration: underline #FCD582;
text-decoration-thickness: 3px;
text-underline-offset: 10px;
text-decoration-style: wavy;
@@ -123,12 +119,12 @@
transition: text-decoration-color 1000ms;
}
.nav-link:hover {
- color: #00749E;
+ color: #FCD582;
text-decoration-color: #ff914d;
border-radius: 5px;
}
.nav-link:active {
- color: #00749E;
+ color: #FCD582;
text-decoration-color: #ff914d;
border-radius: 5px;
@@ -254,52 +250,87 @@
clip-path: polygon(20% 0%, 0% 20%, 11% 52%, 0% 80%, 20% 100%, 49% 86%, 80% 100%, 100% 80%, 87% 50%, 100% 20%, 80% 0%, 45% 8%);
}
}
+ /* Match dropdown to navbar color and theme */
+.dropdown-menu {
+ background-color: #00749E; /* same golden yellow, slightly more opaque */
+ border: none;
+ border-radius: 0;
+ box-shadow: none;
+ padding: 0.5rem 0;
+ font-weight: bold;
+}
+
+/* Style the dropdown items to match nav-link styling */
+.dropdown-item {
+ color: rgba(252, 213, 130, 0.95) ; /* Python blue text */
+ padding: 0.5rem 1.25rem;
+ text-decoration: underline #00749E;
+ text-decoration-thickness: 2px;
+ text-underline-offset: 6px;
+ text-decoration-style: wavy;
+ background-color: transparent;
+ transition: text-decoration-color 0.3s ease;
+}
+
+.dropdown-item:hover,
+.dropdown-item:focus {
+ background-color: rgba(255, 145, 77, 0.2); /* a soft orange glow */
+ text-decoration-color: #ff914d;
+}
+
+.dropdown-item:active {
+ background-color: rgba(255, 145, 77, 0.3);
+}
+
-
-
-