Skip to content

Commit ef33ff1

Browse files
000-781: extra level navi
1 parent 99adb2f commit ef33ff1

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

_sass/_main.scss

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

2020

21-
/* Prevent navbar from growing vertically */
22-
.navbar-menu {
23-
overflow: visible;
24-
position: relative;
25-
height: auto;
26-
}
27-
28-
/* Ensure dropdown content appears over the navbar */
29-
.navbar-dropdown {
21+
/* Position third-level dropdown */
22+
.navbar-item.has-dropdown .navbar-dropdown .navbar-item.has-dropdown .navbar-dropdown {
23+
display: none; /* Hide third-level dropdown by default */
3024
position: absolute;
31-
background-color: #ffffff; /* Match your dropdown background color */
25+
left: 100%; /* Position it to the right of the second-level item */
26+
top: 0;
27+
background-color: #ffffff; /* Match your dropdown background */
3228
z-index: 1000;
29+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Optional: Add shadow for clarity */
3330
}
3431

35-
/* Keep dropdown within bounds */
36-
.navbar-item.has-dropdown:hover .navbar-dropdown {
32+
/* Show third-level dropdown on hover */
33+
.navbar-item.has-dropdown .navbar-dropdown .navbar-item.has-dropdown:hover .navbar-dropdown {
3734
display: block;
38-
top: 100%; /* Position below the parent item */
39-
left: 0;
4035
}
4136

42-
/* Optional: Add some shadow for better visibility */
43-
.navbar-dropdown {
37+
/* Ensure the second-level menu doesn't get disrupted */
38+
.navbar-item.has-dropdown .navbar-dropdown {
39+
position: absolute;
40+
background-color: #ffffff;
41+
z-index: 1000;
42+
top: 100%;
43+
left: 0;
4444
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
4545
}
4646

47+
/* Prevent navbar height from expanding */
48+
.navbar-menu {
49+
overflow: visible;
50+
position: relative;
51+
height: auto;
52+
}
53+
54+
4755

4856

4957

0 commit comments

Comments
 (0)