Skip to content

Commit 5e44b3a

Browse files
committed
Add debug logging and improve mobile menu styling
1 parent 9c58302 commit 5e44b3a

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

portfolio/themes/basic/layouts/_default/baseof.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,19 @@
3636

3737
<script>
3838
function toggleNav() {
39+
console.log('toggleNav called');
3940
const menu = document.getElementById('nav-menu');
40-
menu.classList.toggle('show');
41+
console.log('menu element:', menu);
42+
if (menu) {
43+
menu.classList.toggle('show');
44+
console.log('menu classes:', menu.className);
45+
}
4146
}
47+
48+
// Test on page load
49+
document.addEventListener('DOMContentLoaded', function() {
50+
console.log('Page loaded, nav-menu element:', document.getElementById('nav-menu'));
51+
});
4252
</script>
4353
</body>
4454
</html>

portfolio/themes/basic/static/css/minimal.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,13 @@ nav a:hover {
162162
gap: 1rem;
163163
margin-top: 2rem;
164164
text-align: center;
165+
background: var(--light-lavender);
166+
padding: 1rem;
167+
border-radius: 4px;
165168
}
166169

167170
nav ul.show {
168-
display: flex;
171+
display: flex !important;
169172
}
170173
}
171174

0 commit comments

Comments
 (0)