Skip to content

Commit c8932c8

Browse files
docs(dropdowns): make dropdowns scrollable and easier to see in navigation bar (#10090)
Co-authored-by: Gil Forsyth <[email protected]>
1 parent 08b0089 commit c8932c8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/styles.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,20 @@ section[id^="parameters-"] {
3636
margin: 0 5px;
3737
/* Adds a small margin between columns */
3838
}
39+
40+
/* dropdown menu styles */
41+
.dropdown-menu {
42+
max-height: 400px;
43+
overflow: auto;
44+
}
45+
46+
.quarto-navbar-tools .dropdown-menu.show {
47+
right: 0px;
48+
left: auto;
49+
}
50+
51+
@media (max-width: 988px) {
52+
.quarto-navbar-tools .dropdown-menu.show {
53+
right: -80px;
54+
}
55+
}

0 commit comments

Comments
 (0)