Skip to content

Commit aac99a6

Browse files
committed
chore: fix algolia search
1 parent b95293b commit aac99a6

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

website/src/css/custom.css

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -943,12 +943,6 @@ footer .hoverLink:hover {
943943
}
944944
}
945945

946-
@media (min-width: 1024px) {
947-
:root .DocSearch-Modal {
948-
margin-top: 85px !important;
949-
}
950-
}
951-
952946
.expandable-content {
953947
max-height: 0;
954948
overflow: hidden;
@@ -5353,10 +5347,6 @@ nav.table-of-contents .table-of-contents__link--active,
53535347
display: flex !important;
53545348
padding: 0 12px !important;
53555349
}
5356-
.DocSearch-Modal {
5357-
margin-top: unset !important;
5358-
padding: unset !important;
5359-
}
53605350
}
53615351

53625352
/* Scrollbar styling for table of contents */
@@ -5518,15 +5508,24 @@ nav.table-of-contents .table-of-contents__link--active,
55185508
.DocSearch-Container {
55195509
background-color: rgba(0, 0, 0, 0.8) !important;
55205510
backdrop-filter: blur(4px) !important;
5521-
margin-top: 20px !important;
5511+
margin-top: 0 !important;
5512+
/* Keep search modal above sticky docs navbar and announcement bar */
5513+
z-index: 2000 !important;
55225514
}
55235515

55245516
.DocSearch-Modal {
55255517
box-shadow: none !important;
5526-
margin-top: 85px !important;
5518+
margin-top: 72px !important;
55275519
padding: 0 5px;
55285520
}
55295521

5522+
@media (max-width: 996px) {
5523+
.DocSearch-Modal {
5524+
margin-top: 16px !important;
5525+
padding: 0 !important;
5526+
}
5527+
}
5528+
55305529
.DocSearch-Form {
55315530
border-radius: 4px !important;
55325531
box-shadow: none !important;

0 commit comments

Comments
 (0)