Skip to content

Commit 9ac5b54

Browse files
add comment
1 parent 51baa29 commit 9ac5b54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/html_support_files/odoc.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,9 @@ td.def-doc *:first-child {
783783
line-height: 1.2;
784784
}
785785

786+
/* When a search bar is present, we need the sticky sidebar to be a bit lower,
787+
so `top` is higher */
788+
786789
.odoc-search + * + .odoc-toc {
787790
--toc-top: calc(var(--search-bar-height) + var(--search-padding-top) + 20px);
788791
max-height: calc(100vh - 2 * var(--toc-top));

0 commit comments

Comments
 (0)