Skip to content

Commit 99adb2f

Browse files
000-780: extra level navi
1 parent 9378b95 commit 99adb2f

File tree

1 file changed

+23
-26
lines changed

1 file changed

+23
-26
lines changed

_sass/_main.scss

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,32 @@ $hero-darken: $dark !default;
1818
@import "../node_modules/bulma-block-list/src/block-list.scss";
1919

2020

21-
.navbar-dropdown {
21+
/* Prevent navbar from growing vertically */
22+
.navbar-menu {
23+
overflow: visible;
2224
position: relative;
25+
height: auto;
26+
}
27+
28+
/* Ensure dropdown content appears over the navbar */
29+
.navbar-dropdown {
30+
position: absolute;
31+
background-color: #ffffff; /* Match your dropdown background color */
32+
z-index: 1000;
33+
}
2334

24-
/* First-Level Dropdowns */
25-
.has-dropdown > .navbar-dropdown {
26-
display: none;
27-
position: absolute;
28-
left: 0;
29-
top: 100%;
30-
z-index: 10;
31-
}
32-
33-
.has-dropdown:hover > .navbar-dropdown,
34-
.has-dropdown:focus-within > .navbar-dropdown {
35-
display: block;
36-
}
37-
38-
/* Second-Level Dropdowns */
39-
.has-dropdown.is-hoverable > .navbar-dropdown {
40-
display: none;
41-
position: absolute;
42-
left: 100%; /* Aligns to the right of the parent dropdown */
43-
top: 0;
44-
}
45-
46-
.has-dropdown.is-hoverable:hover > .navbar-dropdown {
47-
display: block;
48-
}
35+
/* Keep dropdown within bounds */
36+
.navbar-item.has-dropdown:hover .navbar-dropdown {
37+
display: block;
38+
top: 100%; /* Position below the parent item */
39+
left: 0;
4940
}
5041

42+
/* Optional: Add some shadow for better visibility */
43+
.navbar-dropdown {
44+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
45+
}
46+
47+
5148

5249

0 commit comments

Comments
 (0)